/* ============================================================
   Mermaid Health — Psychology
   Ocean / Seafoam palette · warm display serif + Archivo
   ============================================================ */

/* ---- Theme tokens ---- */
:root {
  /* Core ocean / seafoam palette */
  --ocean: #1C4A6E;
  --deep-ocean: #133652;
  --seafoam: #7DC4BC;
  --seafoam-light: #A2D4CE;
  --seafoam-pale: #E8F3F5;
  --bg: #F4F8F8;
  --white: #FAFCFB;
  --border: #C8DCDA;
  --text: #1A2D38;
  --text-muted: #4A6470;

  /* Derived */
  --deep-ocean-soft: #1d4762;
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* Accent — coral by default (warm energy) */
  --primary: #E07A55;
  --primary-strong: #CC6743;
  --primary-ink: #FFFFFF;
  --highlight: #E07A55;
  --highlight-soft: rgba(224, 122, 85, 0.14);

  /* Type */
  --font-display: 'Yeseva One', Georgia, serif;
  --font-body: 'Archivo', system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(19, 54, 82, 0.06), 0 4px 14px rgba(19, 54, 82, 0.06);
  --shadow-md: 0 18px 48px -18px rgba(19, 54, 82, 0.30);
  --shadow-card: 0 24px 60px -24px rgba(19, 54, 82, 0.45);
}

/* Font direction tweaks */
html[data-font="editorial"] { --font-display: 'Newsreader', Georgia, serif; }
html[data-font="sturdy"]    { --font-display: 'Rokkitt', Georgia, serif; }

/* Accent tweaks */
html[data-accent="teal"] {
  --primary: #1C4A6E;
  --primary-strong: #133652;
  --primary-ink: #FFFFFF;
  --highlight: #2C8A80;
  --highlight-soft: rgba(44, 138, 128, 0.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--highlight);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.04;
  color: var(--text);
  text-wrap: balance;
}
h2.display { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
  text-wrap: pretty;
}
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); }
.btn-ghost {
  background: var(--white);
  color: var(--ocean);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ocean); transform: translateY(-2px); }
.btn-quiet {
  background: transparent;
  color: var(--ocean);
  padding: 16px 8px;
}
.btn-quiet:hover { color: var(--primary); }
.btn-quiet .arrow { transition: transform .18s ease; }
.btn-quiet:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 15px 30px; font-size: 1.0rem; }
.btn-on-dark.btn-ghost { background: transparent; color: #fff; border-color: var(--line-on-dark); }
.btn-on-dark.btn-ghost:hover { border-color: rgba(255,255,255,.55); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; flex: none; color: var(--ocean); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--ocean);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--seafoam-light);
  padding: 4px 9px;
  border-radius: 999px;
  align-self: center;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.98rem; color: var(--text-muted); transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ocean); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}
.hero-blob.a { width: 520px; height: 520px; right: -180px; top: -120px; background: radial-gradient(circle at 30% 30%, var(--seafoam-light), transparent 70%); opacity: .55; }
.hero-blob.b { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle at 50% 50%, var(--seafoam-pale), transparent 72%); }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--ocean); }
html[data-font="editorial"] .hero h1 em { font-style: italic; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); margin-bottom: 30px; max-width: 52ch; }
/* Differentiator line — sits between the subheadline and the CTA */
.hero-diff {
  margin: 0 0 30px;
  padding-left: 18px;
  border-left: 3px solid var(--seafoam);
  max-width: 50ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ocean);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-fine { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 26px; }
.hero-fine b { color: var(--text); font-weight: 700; }
.hero-trust { font-size: 0.96rem; color: var(--text-muted); padding-top: 24px; border-top: 1px solid var(--border); max-width: 56ch; }
.hero-trust b { color: var(--ocean); font-weight: 700; }

/* Product summary card (mirrors the real app) */
.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotate(1.4deg);
}
.summary-card-head {
  background: var(--deep-ocean);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}
.summary-card-head .title { font-weight: 700; font-size: 1.12rem; line-height: 1.25; max-width: 16ch; }
.summary-copy-btn {
  background: var(--seafoam);
  color: var(--deep-ocean);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  padding: 12px 16px;
  border: none;
  flex: none;
  line-height: 1.15;
  text-align: center;
}
.summary-card-body { padding: 26px 26px 30px; }
.summary-field + .summary-field { margin-top: 24px; }
.summary-label {
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.summary-text { color: var(--text); font-size: 1rem; line-height: 1.55; }
.summary-text .muted { color: var(--text-muted); }
.card-float-tag {
  position: absolute;
  left: -18px; bottom: 28px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
  display: flex; align-items: center; gap: 9px; z-index: 2;
}
.card-float-tag svg { width: 15px; height: 15px; flex: none; }

/* ---- Hero product visual ----
   Deliberately smaller than the step-3 card: it supports the headline, it
   doesn't compete with it. All sizes scoped to .hero-card-wrap so the
   How-It-Works card is untouched. */
.hero-visual { display: flex; justify-content: center; }
.hero-card-wrap { position: relative; width: 100%; max-width: 355px; }

.hero-card-wrap .summary-card-head { padding: 15px 17px; }
.hero-card-wrap .summary-card-head .title { font-size: 0.9rem; max-width: 14ch; }
.hero-card-wrap .summary-copy-btn { font-size: 0.72rem; padding: 8px 11px; border-radius: 9px; }
.hero-card-wrap .summary-card-body { position: relative; padding: 18px 18px 6px; }
.hero-card-wrap .summary-field + .summary-field { margin-top: 15px; }
.hero-card-wrap .summary-label { font-size: 0.62rem; letter-spacing: 0.11em; margin-bottom: 7px; padding-bottom: 7px; }
.hero-card-wrap .summary-text { font-size: 0.82rem; line-height: 1.5; }

/* Fade the last field so the card reads as an excerpt, not the whole summary */
.hero-card-wrap .summary-field.summary-fade { position: relative; padding-bottom: 26px; }
.hero-card-wrap .summary-field.summary-fade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 74px;
  background: linear-gradient(to bottom, rgba(250, 252, 251, 0), var(--white) 82%);
  pointer-events: none;
}
.hero-card-wrap .card-float-tag { font-size: 0.76rem; padding: 9px 15px; left: -14px; bottom: 22px; }
.hero-card-wrap .card-float-tag svg { width: 13px; height: 13px; }
.card-caption { margin-top: 18px; text-align: center; font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 1040px) {
  .hero-card-wrap { max-width: 300px; }
}

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
/* The wave fills its lower half with `color` and shows `background` above it,
   so each divider states both sides explicitly: background = section above,
   color = section below. Negative margins kill the sub-pixel seam. */
/* Height must be explicit. With height:auto the browser derives it from the
   viewBox ratio (1440:80 = 18:1), so the wave grows with the window — about
   80px at 1440px wide, but ~142px on a 2560px monitor. preserveAspectRatio
   is "none" on each wave, so the path simply stretches to whatever we set.
   Tune the middle value to make the waves deeper or shallower. */
.wave { display: block; width: 100%; height: clamp(28px, 3vw, 52px); margin-top: -1px; margin-bottom: -1px; }
.wave-flip { transform: scaleY(-1); }
.wave-bg-to-pale   { background: var(--bg);           color: var(--seafoam-pale); }
.wave-pale-to-bg   { background: var(--seafoam-pale); color: var(--bg); }
.wave-pale-to-ocean{ background: var(--seafoam-pale); color: var(--ocean); }

/* ============================================================
   PROBLEM
   ============================================================ */
.band-pale { background: var(--seafoam-pale); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.problem-list { display: flex; flex-direction: column; gap: 22px; }
.problem-item { display: flex; gap: 16px; align-items: flex-start; }
.problem-item .dot {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  background: var(--white); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--ocean); margin-top: 2px;
}
.problem-item p { font-size: 1.05rem; color: var(--text-muted); }
.problem-item p b { color: var(--text); font-weight: 700; }

/* ============================================================
   COMPARISON
   ============================================================ */
.compare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.compare-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-card.bad { background: #fff; }
.compare-card.win {
  background: var(--ocean);
  border-color: var(--ocean);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
}
.compare-card .ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 6px;
}
.compare-card.bad .ico { background: var(--seafoam-pale); color: var(--text-muted); }
.compare-card.win .ico { background: var(--seafoam); color: var(--deep-ocean); }
.compare-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; }
.compare-card.win h3 { color: #fff; }
.compare-card p { font-size: 0.96rem; color: var(--text-muted); }
.compare-card.win p { color: rgba(255,255,255,.82); }
.compare-tag {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.compare-card.win .compare-tag { color: var(--seafoam); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 60px; }
.step { display: flex; flex-direction: column; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.placeholder {
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background-color: var(--seafoam-pale);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(28, 74, 110, 0.05) 11px, rgba(28, 74, 110, 0.05) 22px);
  display: grid;
  place-items: center;
  color: var(--ocean);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 18px;
  margin-top: auto;
}
.placeholder.ph-step { aspect-ratio: 4 / 3; }
.placeholder.ph-wide { aspect-ratio: 16 / 8; width: 100%; }

/* ============================================================
   DEMO
   ============================================================ */
.demo-card {
  margin-top: 52px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.demo-card .placeholder { margin: 0; border: none; border-radius: 0; aspect-ratio: 16 / 8.2; background-color: #dce9e9; }
.demo-play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.demo-play .circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.demo-note { text-align: center; color: var(--text-muted); margin-top: 22px; font-size: 0.98rem; }

/* ============================================================
   SAFETY (dark band)
   ============================================================ */
.band-dark { background: var(--deep-ocean); color: #fff; position: relative; overflow: hidden; }
.band-dark .display { color: #fff; }
.band-dark .eyebrow { color: var(--seafoam); }
.band-dark .eyebrow::before { background: var(--seafoam); }
.band-dark .lead { color: rgba(255,255,255,.78); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.safety-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.safety-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(125, 196, 188, 0.16); color: var(--seafoam);
  display: grid; place-items: center; margin-bottom: 18px;
}
.safety-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; margin-bottom: 8px; color: #fff; }
.safety-card p { color: rgba(255,255,255,.72); font-size: 0.96rem; }
.safety-note {
  margin-top: 40px;
  border-left: 3px solid var(--seafoam);
  background: rgba(255,255,255,0.05);
  border-radius: 0 14px 14px 0;
  padding: 22px 26px;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 80ch;
}
.safety-note b { color: #fff; }

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
/* Flex-wrap, not a 3-col grid: there are 5 chips, so a grid leaves an
   orphaned half-empty second row. This centres them instead. */
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 50px; }
.who-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.who-chip:hover { transform: translateY(-3px); border-color: var(--seafoam); box-shadow: var(--shadow-sm); }
.who-chip .tick { color: var(--seafoam); flex: none; width: 26px; height: 26px; }
.who-also {
  margin: 34px auto 0; color: var(--text-muted); font-size: 1.02rem;
  max-width: 70ch; text-align: center;
}
.who-also b { color: var(--ocean); font-weight: 700; }
.who-disclaim {
  margin: 40px auto 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; max-width: 62ch;
}
.who-disclaim-ico {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--seafoam-pale); color: var(--ocean);
  display: grid; place-items: center;
}
.who-disclaim-ico svg { width: 24px; height: 24px; }
.who-disclaim p { font-size: 1.08rem; line-height: 1.6; color: var(--text-muted); text-wrap: balance; }
.who-disclaim p b { color: var(--ocean); font-weight: 700; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.quote .mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--seafoam); height: 26px; }
.quote p { font-size: 1.06rem; line-height: 1.55; color: var(--text); }
.quote .who { margin-top: auto; }
.quote .who .name { font-weight: 800; color: var(--ocean); }
.quote .who .role { color: var(--text-muted); font-size: 0.94rem; }

/* ============================================================
   PRICING
   ============================================================ */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1040px; margin: 52px auto 0; align-items: stretch; }
/* two-plan layout */
.tier-grid.two-up { grid-template-columns: repeat(2, 1fr); max-width: 740px; }
/* features that aren't built yet — remove the .soon class and the
   <span class="feat-soon"> badge once each one actually ships */
.tier-feats li.soon { color: var(--text-muted); }
.tier-feats li.soon .tick { opacity: 0.4; }
.feat-soon {
  display: inline-block; margin-left: 6px; vertical-align: middle; white-space: nowrap;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ocean); background: var(--highlight-soft);
  padding: 2px 7px; border-radius: 999px;
}
.tier-note {
  font-size: 0.86rem; line-height: 1.45; color: var(--text-muted);
  background: var(--highlight-soft); border-radius: 10px;
  padding: 10px 12px; margin: 16px 0 0;
}
.tier {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 32px 28px; position: relative;
}
.tier.featured { border-color: var(--ocean); box-shadow: var(--shadow-md); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ocean); color: #fff;
  font-weight: 800; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.tier-name { font-family: var(--font-body); font-weight: 800; font-size: 1.18rem; color: var(--ocean); }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.tier-price .num { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--text); }
.tier-price .cyc { color: var(--text-muted); font-size: 1rem; font-weight: 600; }
.tier-sub { color: var(--text-muted); font-size: 0.96rem; line-height: 1.5; min-height: 2.8em; }
.tier-feats { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 22px 0 26px; flex: 1; }
.tier-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.98rem; line-height: 1.4; }
.tier-feats .tick { color: var(--seafoam); flex: none; width: 22px; height: 22px; margin-top: 1px; }
.price-disclaim { text-align: center; color: var(--text-muted); font-size: 0.92rem; margin-top: 26px; font-style: italic; }
.placeholder-flag {
  display: inline-block; vertical-align: middle; margin-right: 8px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-ink); background: var(--highlight-soft);
  padding: 4px 10px; border-radius: 999px; transform: translateY(-1px);
}

/* legacy single-plan card (unused) */
.price-wrap { display: grid; grid-template-columns: 1fr; max-width: 560px; margin: 56px auto 0; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}
.price-top { background: var(--ocean); color: #fff; padding: 38px 30px 34px; position: relative; }
.price-top .amount { font-family: var(--font-display); font-size: 4.4rem; line-height: 1; }
.price-top .per { color: rgba(255,255,255,.8); margin-top: 8px; font-size: 1rem; }
.price-top .ribbon {
  position: absolute; top: 20px; right: 20px;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.price-body { padding: 32px 36px 38px; }
.price-feats { display: flex; flex-direction: column; gap: 14px; text-align: left; margin-bottom: 28px; }
.price-feats li { display: flex; gap: 12px; align-items: center; font-size: 1.04rem; }
.price-feats .tick { color: var(--seafoam); flex: none; width: 24px; height: 24px; }
.price-guarantee { color: var(--text-muted); font-size: 0.96rem; margin-top: 22px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: var(--font-body); font-weight: 700; font-size: 1.16rem; color: var(--text);
}
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; color: var(--ocean); transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--ocean); color: #fff; border-color: var(--ocean); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 4px 28px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; max-width: 72ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--ocean); color: #fff; position: relative; overflow: hidden; }
.final .display { color: #fff; max-width: 28ch; }
.final-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final .lead { color: rgba(255,255,255,.82); }
.final-blob { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(125,196,188,.28), transparent 70%); z-index: 0; }
.final-blob.l { left: -200px; top: -160px; }
.final-blob.r { right: -200px; bottom: -200px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--deep-ocean); color: rgba(255,255,255,.7); padding: 56px 0 40px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-on-dark); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer-right-top { display: flex; align-items: center; gap: 26px; }
.footer .brand-name { color: #fff; }
.footer .brand-mark { color: var(--seafoam); }
.footer-blurb { max-width: 36ch; margin-top: 16px; font-size: 0.96rem; line-height: 1.6; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { font-weight: 600; color: rgba(255,255,255,.78); }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-contact { font-style: normal; margin-top: 0; font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,.7); text-align: right; }
.footer-contact a { color: var(--seafoam); font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-social {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 10px; border: 1px solid var(--line-on-dark); color: rgba(255,255,255,.78);
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.footer-social svg { width: 20px; height: 20px; }
.footer-social:hover { color: #fff; border-color: var(--seafoam); transform: translateY(-2px); }

/* Comparison heading + coming-soon badge */
.compare-head {
  margin-top: 56px; font-family: var(--font-body); font-weight: 800;
  font-size: clamp(1.18rem, 2vw, 1.45rem); color: var(--ocean); letter-spacing: -0.01em;
}
.compare-head + .compare-grid { margin-top: 22px; }
.soon-badge {
  display: inline-block; vertical-align: middle; margin-right: 10px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--deep-ocean); background: var(--seafoam-light);
  padding: 4px 11px; border-radius: 999px; transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .compare-grid, .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; max-width: 460px; }
  .tier-grid.two-up { grid-template-columns: 1fr; max-width: 460px; }
  .tier.featured { order: -1; }
  .compare-card.win { transform: none; }
  .steps, .quotes, .who-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); color: var(--ocean); }
  .hero-grid, .problem-grid { grid-template-columns: 1fr; }
  .hero-lower { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero-card-wrap { max-width: 420px; margin: 8px auto 0; zoom: 1; }
  .summary-card { transform: rotate(1deg); }
  .card-float-tag { left: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .compare-grid, .safety-grid, .steps, .quotes, .who-grid { grid-template-columns: 1fr; }
  .trust-chips { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
  .footer-contact { text-align: left; }
  .nav-cta .btn-quiet { display: none; }
  .hero-actions .btn { width: 100%; }
  .footer-top { flex-direction: column; }

  /* Stop the nav overflowing on small screens */
  .nav-inner { gap: 12px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.18rem; white-space: nowrap; }
  .brand-pill { font-size: 0.6rem; padding: 3px 7px; letter-spacing: 0.1em; }
  .nav-cta { gap: 10px; flex: none; }
  .nav-cta .btn-primary { padding: 11px 16px; font-size: 0.88rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* Narrowest phones: drop the nav CTA — the hero button sits directly below,
   and Pricing is reachable from the menu */
@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
}

/* ============================================================
   SAFETY (light) — callouts, prep card, trust chips
   ============================================================ */
.safety-top { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(34px, 5vw, 70px); align-items: start; }
.callouts { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
}
.callout p { font-size: 1rem; color: var(--text-muted); line-height: 1.55; }
.callout p b { color: var(--text); font-weight: 700; }
.callout-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.callout-ico svg { width: 22px; height: 22px; }
.ico-tint-ocean { background: var(--seafoam-pale); color: var(--ocean); }
.ico-tint-coral { background: var(--highlight-soft); color: var(--primary); }
.ico-tint-seafoam { background: rgba(125, 196, 188, 0.20); color: #2C8A80; }

/* Prep card (mirrors the in-app "Preparing your summary" view) */
.prep-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 32px 32px 26px; text-align: center;
}
.prep-badge { position: relative; width: 88px; height: 88px; margin: 2px auto 20px; }
.prep-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.prep-arc { transform-origin: 50% 50%; animation: prep-spin 1.5s linear infinite; }
@keyframes prep-spin { to { transform: rotate(360deg); } }
.prep-wave { position: absolute; inset: 0; width: 58%; height: 58%; margin: auto; color: var(--ocean); }
.prep-title { font-family: var(--font-display); font-size: 1.65rem; color: var(--text); margin-bottom: 8px; line-height: 1.1; }
.prep-sub { color: var(--text-muted); font-size: 0.96rem; line-height: 1.5; max-width: 36ch; margin: 0 auto 22px; }
.prep-steps { display: flex; flex-direction: column; gap: 15px; text-align: left; border-top: 1px solid var(--border); padding-top: 22px; }
.prep-steps li { display: flex; align-items: center; gap: 13px; font-size: 1.02rem; color: var(--text); }
.prep-steps .step-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.prep-steps li.done .step-ico { background: #2C8A80; color: #fff; }
.prep-steps li.done .step-ico svg { width: 14px; height: 14px; }
.prep-steps li.active { color: var(--ocean); font-weight: 700; }
.prep-steps li.active .step-ico { color: var(--seafoam); }
.prep-steps li.active .step-ico svg { width: 24px; height: 24px; }
.spin { animation: prep-spin 0.9s linear infinite; transform-origin: 50% 50%; }
.prep-foot { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem; }
.prep-foot svg { flex: none; width: 15px; height: 15px; color: var(--text-muted); }

/* Trust chips */
.trust-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 24px 10px 11px;
  font-weight: 700; font-size: 1.02rem; color: var(--text); white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--seafoam); }
.chip-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.chip-ico svg { width: 18px; height: 18px; }

/* Safety note — light treatment overrides the dark-band rule above */
.safety-note {
  margin: 48px auto 0; max-width: 80ch; text-align: center;
  border: none; border-left: none; background: transparent; padding: 0;
  border-radius: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.65;
}
.safety-note b { color: var(--ocean); }

@media (max-width: 860px) {
  .safety-top { grid-template-columns: 1fr; }
  .prep-card { max-width: 460px; margin-top: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
  .prep-arc, .spin { animation: none !important; }
}

/* ============================================================
   HOW IT WORKS — alternating product walkthrough
   ============================================================ */
.how-flow { display: flex; flex-direction: column; gap: clamp(32px, 3.5vw, 52px); margin-top: clamp(36px, 4vw, 56px); }
.how-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.how-row.flip .how-text { order: 2; }
.how-text .step-num { display: block; margin-bottom: 14px; }
.how-text h3 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: 14px; line-height: 1.1; }
.how-text p { color: var(--text-muted); font-size: 1.12rem; line-height: 1.65; max-width: 44ch; }
.how-visual { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 432px; }
/* Scale the three walkthrough mocks down so the steps sit closer together */
.how-visual .mock { zoom: 0.76; }
@supports not (zoom: 1) { .how-visual .mock { max-width: 330px; } }

/* Step 1 — upload mock */
.mock-upload { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 16px; }
.dropzone { border: 2px dashed var(--seafoam-light); border-radius: 16px; background: var(--seafoam-pale); padding: 20px; text-align: center; }
.dz-head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dz-folder { width: 30px; height: auto; color: var(--seafoam); flex: none; }
.dz-title { font-weight: 800; color: var(--ocean); font-size: 1.04rem; }
.dz-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 6px; line-height: 1.4; }
.mock-opt { display: flex; align-items: center; gap: 10px; padding: 16px 6px; margin-top: 6px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.92rem; }
.mock-opt .gear { width: 18px; height: 18px; flex: none; }
.mock-opt b { color: var(--ocean); font-weight: 700; }
.mock-focus { padding: 16px 6px 4px; }
.mock-q { font-weight: 800; color: var(--text); font-size: 0.96rem; margin-bottom: 12px; }
.mock-radio { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 9px; color: var(--text-muted); font-size: 0.92rem; }
.mock-radio .r { width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.mock-radio.sel { border-color: var(--seafoam); background: var(--seafoam-pale); color: var(--ocean); font-weight: 700; }
.mock-radio.sel .r { border-color: var(--seafoam); box-shadow: inset 0 0 0 4px var(--seafoam); }
.mock-generate { margin-top: 12px; background: var(--seafoam); color: var(--deep-ocean); font-weight: 800; text-align: center; padding: 16px; border-radius: 14px; font-size: 1.02rem; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Step 2/3 — reuse prep + summary cards as static mocks */
.mock.prep-card { max-width: 432px; }
.prep-card.static .prep-arc { animation: none; }
.summary-card.flat { transform: none; }

/* Callouts as a centered row (Safety) */
.callouts-row { flex-direction: row; max-width: 980px; margin: 40px auto 0; }
.callouts-row .callout { flex: 1; }

@media (max-width: 860px) {
  .how-row { grid-template-columns: 1fr; gap: 26px; }
  .how-row.flip .how-text { order: 0; }
  .mock { max-width: 420px; }
  .how-visual .mock { zoom: 0.88; }
}
@media (max-width: 760px) {
  .callouts-row { flex-direction: column; }
}

/* ============================================================
   RESPONSIVE FIXES — trust chips
   The base .trust-chips rule (repeat(3, max-content)) is defined after the
   main responsive block, so it was overriding the single-column rule there
   and pushing the page wider than the viewport on phones. These live at the
   end of the file so they win the cascade.
   ============================================================ */
@media (max-width: 860px) {
  .trust-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
}
@media (max-width: 620px) {
  .trust-chips { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .chip { white-space: normal; }
}
