/* ============================================================
   StitchFlow — marketing site
   Type: PP Neue Montreal (single system per fonts/README.md
   "Marketing landing page" occasion row: Text Regular body,
   Medium headings/controls, Bold on the one display hero only).
   Palette lifted from app/DesignSystem/StitchFlowTheme.swift
   ============================================================ */

:root {
  /* Studio theme, straight from StitchFlowTheme.swift */
  --cream:       #f6f1e6;  /* background */
  --surface:     #fffcf4;  /* surface */
  --ink:         #1e1813;  /* warm ink (text) */
  --panel-dark:  #1e1813;  /* CTA band — stays dark in dark theme */
  --on-dark:     #fffcf4;
  --on-dark-muted: rgba(255, 252, 244, 0.78);
  --on-dark-faint: rgba(255, 252, 244, 0.6);
  --clay:        #b85c2e;  /* accent */
  --sage:        #536F4A;  /* secondary accent — text-safe on cream (4.97:1),
                              mirrors the app token from the 10/10 fix pass */

  /* Tints derived from the above for depth (no new hues) */
  --clay-soft:   rgba(184, 92, 46, 0.16);
  --clay-line:   rgba(184, 92, 46, 0.28);
  --clay-deep:   #9c4a22;  /* clay as a TEXT colour on light grounds (5.25:1) */
  --sage-soft:   rgba(92, 122, 83, 0.14);
  --ink-soft:    rgba(30, 24, 19, 0.66);
  /* 0.62 alpha = 4.67:1 on cream; 0.46 was 2.92:1 — same fix the app's
     inkFaint token took in the 10/10 pass (a857d14). */
  --ink-faint:   rgba(30, 24, 19, 0.62);
  --gold:        #e6a14f;  /* dusk accent, used sparingly */
  --paper-line:  rgba(30, 24, 19, 0.10);

  --shadow-sm: 0 1px 2px rgba(30, 24, 19, 0.06), 0 4px 14px rgba(30, 24, 19, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 24, 19, 0.10), 0 2px 6px rgba(30, 24, 19, 0.06);
  --shadow-lg: 0 26px 60px rgba(30, 24, 19, 0.18), 0 6px 16px rgba(30, 24, 19, 0.10);

  --radius: 14px;          /* StitchType.cornerRadius */
  --radius-lg: 26px;
  --maxw: 1160px;

  --serif: "PP Neue Montreal", "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
  --sans: "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
}

:root { color-scheme: light; --paper-dot: rgba(30,24,19,0.035); --nav-bg: rgba(246,241,230,0.82); }

/* Dark theme (added in audit) — warm studio dusk; inverts cream/ink surfaces, keeps clay/sage/gold accents. */
:root[data-theme="dark"] {
  --cream:#171310; --surface:#211b16; --ink:#f3ece0;
  --panel-dark:#1e1813; --on-dark:#fffcf4;
  --on-dark-muted:rgba(255,252,244,0.78); --on-dark-faint:rgba(255,252,244,0.6);
  --ink-soft:rgba(243,236,224,0.70); --ink-faint:rgba(243,236,224,0.64);
  --clay-deep:#d67a4a; /* clay text on dark grounds (5.93:1) */
  --paper-line:rgba(243,236,224,0.12); --paper-dot:rgba(243,236,224,0.05);
  --clay-soft:rgba(214,122,74,0.20); --clay-line:rgba(214,122,74,0.36);
  --sage-soft:rgba(122,154,110,0.18);
  --shadow-sm:0 1px 2px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.4);
  --shadow-md:0 10px 30px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg:0 26px 60px rgba(0,0,0,.65), 0 6px 16px rgba(0,0,0,.45);
  --nav-bg:rgba(23,19,16,0.82);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream:#171310; --surface:#211b16; --ink:#f3ece0;
    --panel-dark:#1e1813; --on-dark:#fffcf4;
    --on-dark-muted:rgba(255,252,244,0.78); --on-dark-faint:rgba(255,252,244,0.6);
    --ink-soft:rgba(243,236,224,0.70); --ink-faint:rgba(243,236,224,0.64);
    --clay-deep:#d67a4a; /* clay text on dark grounds (5.93:1) */
    --paper-line:rgba(243,236,224,0.12); --paper-dot:rgba(243,236,224,0.05);
    --clay-soft:rgba(214,122,74,0.20); --clay-line:rgba(214,122,74,0.36);
    --sage-soft:rgba(122,154,110,0.18);
    --shadow-sm:0 1px 2px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.4);
    --shadow-md:0 10px 30px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4);
    --shadow-lg:0 26px 60px rgba(0,0,0,.65), 0 6px 16px rgba(0,0,0,.45);
    --nav-bg:rgba(23,19,16,0.82);
    color-scheme: dark;
  }
}

/* Theme toggle (added in audit) */
.theme-toggle{width:44px;height:44px;padding:0;display:inline-grid;place-items:center;border:1px solid var(--clay-line);border-radius:999px;background:transparent;color:var(--ink-soft);cursor:pointer;transition:border-color .15s ease,color .15s ease,transform .15s ease;}
.theme-toggle:hover{transform:translateY(-1px);border-color:var(--clay);color:var(--clay);}
.theme-toggle__mark{width:15px;height:15px;border-radius:50%;border:2px solid currentColor;background:linear-gradient(90deg,currentColor 0 50%,transparent 50%);}

/* Mobile menu disclosure — replaces the hidden .nav__links below 720px. */
.nav__menu{display:none;width:44px;height:44px;padding:0;place-items:center;border:1px solid var(--clay-line);border-radius:999px;background:transparent;color:var(--ink-soft);cursor:pointer;transition:border-color .15s ease,color .15s ease;}
.nav__menu:hover{border-color:var(--clay);color:var(--clay);}
.nav__drawer{display:none;}
.nav__drawer a:not(.btn){
  display:flex;align-items:center;min-height:48px;
  font-weight:500;font-size:1rem;color:var(--ink-soft);
}
.nav__drawer a:not(.btn):hover{color:var(--clay);}
.nav__drawer .btn{width:100%;margin-top:0.6rem;}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  /* subtle woven-paper texture, not a gradient wash */
  background-image:
    radial-gradient(circle at 1px 1px, var(--paper-dot) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.5;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Marketing preset weights: Regular body, Medium headings and controls,
   Bold on the single display hero only (set on .hero__title below). */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* Labels are sentence case Medium with colour for hierarchy — never
   uppercase plus letter-spacing (fonts/README.md "Patterns to avoid"). */
.eyebrow {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clay-deep);  /* clay itself is 4.05:1 on cream — not AA text */
  margin: 0 0 0.85rem;
}

em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--clay);
  color: #fff;              /* #fffcf4 on clay is 4.44:1; #fff is 4.56:1 */
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--clay-line);
}
.btn--ghost:hover { background: var(--clay-soft); border-color: var(--clay); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg, rgba(246, 241, 230, 0.82));
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--paper-line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* The bar's controls are fixed-size tap targets; without this the flex row
   squeezed the 44px theme toggle to 18px at the 320px probe. */
.nav__inner > * { flex-shrink: 0; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;       /* brand link is a tap target too */
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark__ring { display: inline-flex; }
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav__links a { color: var(--ink-soft); padding: 0.4rem 0; position: relative; }
.nav__links a:hover { color: var(--clay); }
.nav__cta { margin-left: 0.4rem; }

/* ---------- Layout helper ---------- */
.hero, .value, .features, .showcase, .how, .pricing, .faq {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section-head { max-width: 56ch; margin: 0 auto 3rem; }
.section-head--center { text-align: center; }
/* Marketing preset: section headings sit at 22-26px, one step over body. */
.section-head h2 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); margin-bottom: 0.6rem; }
.section-head__sub { color: var(--ink-soft); font-size: 1.0625rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
/* Marketing preset: the one display hero, 36-44px, the only Bold on the page.
   Uses the Text stack because the Bold cut ships under "PP Neue Montreal Text"
   (the "PP Neue Montreal" family only has Medium, so a 700 there would render
   Medium — font-synthesis is off). */
.hero__title {
  font-family: "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 4.2vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.hero__note { font-size: 0.92rem; color: var(--ink-faint); margin: 0; }

/* ---------- Phone frame ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 320 / 660;
  background: #14100c;
  border-radius: 46px;
  padding: 13px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.4);
}
.phone--sm { width: 280px; }
/* Real app capture inside the frame (store-assets/sources/captures). */
.phone--shot { aspect-ratio: auto; }
.phone__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}
.phone__notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #14100c;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, #fffefb 0%, var(--surface) 55%, #f3ead8 100%);
  border-radius: 34px;
  padding: 2.6rem 1.4rem 1.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.screen__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.screen__project {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
}
.screen__chip {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sage);
  background: var(--sage-soft);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

/* ---------- The signature counter ring ---------- */
.ring-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: auto 0;
  display: grid;
  place-items: center;
  padding: 0.5rem;
}
.ring-stage--sm { max-width: 232px; margin: auto; }
.ring { width: 100%; height: 100%; }
.ring__track {
  fill: none;
  stroke: var(--clay-soft);
  stroke-width: 18;
}
.ring__progress {
  fill: none;
  stroke: var(--clay);
  stroke-width: 18;
  stroke-linecap: round;
  /* r=102 -> circumference 640.9; progress 47/120 = 0.3917 */
  stroke-dasharray: 640.9;
  stroke-dashoffset: 390;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: ringFill 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ringFill {
  from { stroke-dashoffset: 640.9; }
  to   { stroke-dashoffset: 390; }
}
.ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.ring__count {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ring__label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--sage);
}
.ring__minus {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--clay-line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.ring__hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0.5rem 0 0;
}
.screen__row-note {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}
.screen__row-note-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}

/* floating badge */
.hero__badge {
  position: absolute;
  top: 8%;
  right: -6px;
  background: var(--surface);
  border: 1px solid var(--clay-line);
  border-radius: 16px;
  padding: 0.55rem 0.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: floaty 5s ease-in-out infinite;
}
.hero__badge-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--clay-deep);
  font-variant-numeric: tabular-nums;
}
.hero__badge-txt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Value band ---------- */
.value {
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.value__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  line-height: 1.4;
  font-weight: 400;
  max-width: 34ch;
  margin: 0 auto 1.8rem;
  color: var(--ink);
}
.value__pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1rem;
}
.value__pills li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
.value__pills strong { color: var(--clay-deep); font-weight: 500; }

/* ---------- Features ---------- */
.features { padding-block: clamp(3.5rem, 7vw, 6rem); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature--wide { grid-column: span 2; }
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--clay-soft);
  color: var(--clay);
  margin-bottom: 1.1rem;
}
.feature--watch .feature__icon { background: var(--sage-soft); color: var(--sage); }
.feature h3 { font-size: 1.0625rem; margin-bottom: 0.55rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Signature showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.showcase__visual {
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, var(--clay-soft) 0%, transparent 62%);
  border-radius: var(--radius-lg);
  padding: 2rem 0;
}
.showcase__copy h2 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); margin-bottom: 0.8rem; }
.showcase__copy > p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 1.5rem; max-width: 50ch; }
.showcase__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.showcase__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
  font-size: 1rem;
}
.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--clay);
}

/* ---------- How it works ---------- */
.how { padding-block: clamp(3.5rem, 7vw, 6rem); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;              /* on clay, #fff clears AA; --surface misses it */
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Pricing ---------- */
.pricing { padding-block: clamp(3.5rem, 7vw, 6rem); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 1.5px solid var(--clay);
  box-shadow: var(--shadow-md);
}
.plan__ribbon {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: #fff;              /* on clay, #fff clears AA; --surface misses it */
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}
.plan__name { font-size: 1.0625rem; margin-bottom: 0.6rem; }
.plan__price { margin: 0 0 0.4rem; display: flex; align-items: baseline; gap: 0.3rem; }
.plan__amount { font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--ink); }
.plan__per { font-size: 1rem; color: var(--ink-faint); font-weight: 500; }
.plan__tag { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 1.3rem; }
.plan__tag strong { color: var(--clay-deep); font-weight: 500; }
.plan__features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}
.plan__features li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.96rem;
  color: var(--ink);
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 2.4px solid var(--sage);
  border-bottom: 2.4px solid var(--sage);
  transform: rotate(-45deg);
}
.plans__note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 1.6rem auto 0;
  max-width: 60ch;
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(3.5rem, 7vw, 6rem); }
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}
.qa {
  background: var(--surface);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 0.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.qa summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 1rem 2rem 1rem 0;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--clay);
  transition: transform 0.2s ease;
}
.qa[open] summary::after { content: "\2212"; }
.qa p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.98rem; }

/* verified-capabilities wrap — this section's .wrap helper is otherwise
   unstyled on index, leaving content flush against the viewport edge. */
.vcaps .wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Final CTA ---------- */
.cta-band {
  margin: clamp(2rem, 5vw, 4rem) 1.5rem 0;
}
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--panel-dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 22px 22px;
}
.cta-band__inner h2 {
  color: var(--on-dark);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  margin-bottom: 0.7rem;
}
.cta-band__inner p {
  color: var(--on-dark-muted);
  max-width: 44ch;
  margin: 0 auto 1.8rem;
  font-size: 1.1rem;
}
/* Gold button keeps fixed dark ink: --ink flips to a light value in dark
   theme, which put #f3ece0 text on gold at 1.87:1. */
.cta-band .btn--primary { background: var(--gold); color: #1e1813; }
.cta-band .btn--primary:hover { background: #efb060; }
.cta-band__note { font-size: 0.9rem; color: var(--on-dark-faint) !important; margin-top: 1.1rem !important; }

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--paper-line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.footer__brand { max-width: 36ch; }
.wordmark--footer { font-size: 1.125rem; margin-bottom: 0.8rem; }
.footer__tagline { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.footer__head {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.25rem; }
.footer__col a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--ink-soft); font-size: 0.96rem;
}
.footer__col a:hover { color: var(--clay); }
.footer__base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.footer__base p { margin: 0; font-size: 0.83rem; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { margin-top: 1rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature--wide { grid-column: span 2; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__copy { text-align: center; }
  .showcase__copy > p { margin-inline: auto; }
  .showcase__list { display: inline-grid; text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .faq__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }  /* the CTA moves into the drawer */
  .theme-toggle { margin-left: auto; }
  .nav__menu { display: inline-grid; }
  .nav.nav--open .nav__drawer {
    display: block;
    padding: 0.35rem 1.5rem 1rem;
    border-top: 1px solid var(--paper-line);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature--wide { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav__cta { font-size: 0.9rem; padding: 0 1rem; }
  .hero__badge { right: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ring__progress { stroke-dashoffset: 390; }
}
