/* Nailwell landing site — palette derived from app icon:
   teal #008f97, deep navy #22506d, cream #fffbec, amber #f6a83c */

:root {
  --teal: #008f97;
  --teal-deep: #006d74;
  --teal-dark: #00565c;
  --navy: #22506d;
  --ink: #1d3a4d;
  --cream: #fffbec;
  --cream-soft: #fdf6e0;
  --amber: #f6a83c;
  --amber-deep: #b06d0a;
  --paper: #ffffff;
  --line: #dbe7e2;
  --muted: #47616f;
  --radius-nail: 46% 46% 14px 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #2fb8bf;
    --teal-deep: #57c9cf;
    --teal-dark: #0b3336;
    --navy: #a9c8dd;
    --ink: #e8f1ee;
    --cream: #10262b;
    --cream-soft: #143034;
    --amber: #f6a83c;
    --amber-deep: #f2b45e;
    --paper: #0c1e22;
    --line: #24444a;
    --muted: #9db8bc;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-deep); }
a:hover { color: var(--teal-dark); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-deep); }
@media (prefers-color-scheme: dark) {
  .nav-cta { color: #06272a !important; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.9rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fffbec;
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fffbec;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: #eafbf9;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #05262a;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 251, 236, 0.5);
  border-radius: 12px;
  padding: 0.55rem 1.15rem;
  line-height: 1.2;
}
.store-badge:hover { background: #0a3a40; color: #fff; }
.store-badge .apple-mark { width: 24px; height: 24px; flex: none; }
.store-badge small { display: block; font-size: 0.68rem; opacity: 0.85; }
.store-badge strong { font-size: 1.05rem; font-weight: 600; }

.hero-note { font-size: 0.9rem; color: #d5f2ef; margin-top: 0.9rem; }

/* icon-based "nail" mock, since no screenshots exist */
.hero-visual { display: flex; justify-content: center; }
.nail-card {
  background: var(--cream);
  color: #1d3a4d;
  border-radius: var(--radius-nail);
  border: 4px solid #16404f;
  padding: 3rem 2rem 2rem;
  width: min(300px, 80vw);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 40, 44, 0.35);
}
.nail-card img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 1rem; }
.nail-card .stat { font-size: 2rem; font-weight: 800; color: #006d74; }
.nail-card .stat-label { font-size: 0.9rem; color: #47616f; }
.nail-card hr { border: 0; border-top: 1px dashed #c9bfa0; margin: 1rem 0; }

@media (max-width: 840px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .nail-card { padding: 2rem 1.5rem 1.5rem; }
}

/* ---------- Sections ---------- */
section { padding: 3.75rem 0; }
section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-deep);
  margin-bottom: 0.4rem;
}
.section-intro { max-width: 44rem; color: var(--muted); margin-bottom: 2rem; }

.alt-band { background: var(--cream); }

/* problem / solution */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.split-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--paper);
}
.split-card.solution { border-color: var(--teal); }
.split-card h3 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1.2rem; }
.split-card ul { list-style: none; }
.split-card li { padding-left: 1.7rem; position: relative; margin-bottom: 0.6rem; }
.split-card li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--amber-deep);
  font-weight: 700;
}
.split-card.solution li::before { content: "✓"; color: var(--teal-deep); }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.feature {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px 14px 22px 22px;
  border-top: 5px solid var(--teal);
  padding: 1.5rem 1.4rem;
}
.feature h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.feature p { font-size: 0.95rem; color: var(--muted); }
.feature .f-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber);
  margin-bottom: 0.7rem;
}

/* program timeline */
.timeline { list-style: none; margin-top: 1.75rem; display: grid; gap: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 2.2rem;
  border-left: 3px solid var(--teal);
  margin-left: 0.5rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 0.2rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--paper);
}
.timeline strong { color: var(--navy); display: block; }
.timeline p { color: var(--muted); font-size: 0.97rem; max-width: 40rem; }

/* privacy strip */
.privacy-strip {
  background: var(--navy);
  color: #f3f8f6;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
@media (prefers-color-scheme: dark) {
  .privacy-strip { background: var(--cream-soft); color: var(--ink); }
}
.privacy-strip h2 { color: inherit; font-size: 1.35rem; margin: 0; }
.privacy-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.privacy-strip li { font-size: 0.95rem; }
.privacy-strip li::before { content: "✓ "; color: var(--amber); font-weight: 700; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.1rem 2.4rem 1.1rem 0.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  font-size: 1.05rem;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--teal-deep);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-a { padding: 0 0.1rem 1.2rem; color: var(--muted); max-width: 46rem; }
.faq-a[hidden] { display: none; }

/* CTA band */
.cta-band {
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fffbec;
  text-align: center;
  border-radius: 22px;
  padding: 3rem 1.5rem;
}
.cta-band h2 { color: #fffbec; }
.cta-band p { max-width: 36rem; margin: 0.75rem auto 1.5rem; color: #eafbf9; }
.cta-band .store-badge { border-color: rgba(255, 251, 236, 0.6); }

/* ---------- Guides listing ---------- */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.guide-card {
  display: block;
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--ink); }
.guide-card h3 { color: var(--teal-deep); font-size: 1.05rem; margin-bottom: 0.5rem; }
.guide-card p { font-size: 0.93rem; color: var(--muted); }
.guide-card .read-more { font-size: 0.85rem; font-weight: 700; color: var(--amber-deep); }

/* ---------- Article pages ---------- */
.article-hero {
  background: var(--cream);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: 0.88rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--muted); }
.breadcrumbs a { color: var(--teal-deep); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 46rem;
}
.article-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }

.article-body { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.article-body h2 { font-size: 1.5rem; color: var(--navy); margin: 2.2rem 0 0.8rem; }
.article-body h3 { font-size: 1.15rem; color: var(--navy); margin: 1.6rem 0 0.6rem; }
.article-body p { margin-bottom: 1.05rem; }
.article-body ul, .article-body ol { margin: 0 0 1.05rem 1.4rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body blockquote {
  border-left: 4px solid var(--amber);
  background: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.4rem 0;
  color: var(--muted);
}
.app-help-box {
  border: 2px solid var(--teal);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--cream);
}
.app-help-box h2, .app-help-box h3 { margin-top: 0; }
.next-guides { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.next-guides h2 { font-size: 1.15rem; margin-top: 0; }
.next-guides ul { list-style: none; margin-left: 0; }
.next-guides li { padding-left: 1.4rem; position: relative; }
.next-guides li::before { content: "→"; position: absolute; left: 0; color: var(--amber-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #d9efec;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h2 { font-size: 1rem; color: #fffbec; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #bfe8e4; }
.site-footer a:hover { color: #fffbec; }
.footer-note {
  border-top: 1px solid rgba(255, 251, 236, 0.2);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #a8d5d1;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
