/* PosturaScreen — marketing site
   ─────────────────────────────────────────────────────────────
   Visual direction: confident editorial. Cohesive with the app
   (same indigo + slate ink), but with more typographic ambition,
   asymmetric layout in the hero, and richer "product visual"
   mocks instead of bare placeholder cards.
*/

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-num: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Brand */
  --p1: #3D4ED6;     --p2: #6B43C9;     --p-dark: #2E3DBF;
  --grad: linear-gradient(135deg, #3D4ED6 0%, #6B43C9 100%);
  --grad-soft: linear-gradient(135deg, rgba(61,78,214,.08), rgba(107,67,201,.08));
  --p-tint: #EEF0FF;
  --p-tint-2: #E1E6FF;
  --p-tint-3: #F4F5FF;

  /* Ink */
  --ink: #0F172A;
  --body: #344054;
  --mute: #64748B;
  --faint: #9AA3B2;

  /* Surface */
  --bg: #FFFFFF;
  --soft: #F4F5F9;
  --softer: #FAFBFE;
  --line: #E6E8EF;
  --line-soft: #EEF0F4;

  /* Semantic */
  --ok: #0E9F6E;    --okd: #058256;     --okbg: #E8F6EF;
  --warn: #D93B3B;  --warnd: #B82A2A;   --warnbg: #FCEDED;
  --approx: #B45309; --approxbg: #FEF3C7;

  /* Radius / shadow */
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 18px;
  --shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --shadow-2: 0 4px 16px rgba(15,23,42,.06), 0 24px 48px -16px rgba(15,23,42,.12);
  --shadow-3: 0 8px 24px rgba(15,23,42,.08), 0 32px 80px -24px rgba(61,78,214,.22);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv01";
  color: var(--body);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--p1); outline-offset: 3px; border-radius: 4px; }

/* ───────────── Layout ───────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
.section-tight { padding: 32px 0; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.02em; line-height: 1.1; font-weight: 700; }
h2 { font-size: 40px; letter-spacing: -.022em; }
h3 { font-weight: 700; letter-spacing: -.012em; }

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--p1);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--p1); opacity: .5;
}
.eyebrow.center { display: inline-flex; }

.lede {
  font-size: 18px; color: var(--mute);
  max-width: 620px; line-height: 1.6;
}
.center { text-align: center; }
.center .lede { margin: 14px auto 0; }
.center .eyebrow { margin-left: auto; margin-right: auto; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: var(--r); border: none;
  cursor: pointer; font-family: inherit;
  transition: background .14s ease, box-shadow .14s ease, transform .04s ease;
  line-height: 1;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary {
  background: var(--p1); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 14px rgba(61,78,214,.22);
}
.btn-primary:hover { background: var(--p-dark); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 18px rgba(61,78,214,.32); }
.btn-ghost {
  background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #C9CEDA; background: var(--softer); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 11px; }
.btn .arrow { width: 14px; height: 14px; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ───────────── Nav ───────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 0;
  font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.brand .logo { margin-right: 10px; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 8px rgba(61,78,214,.32);
  flex-shrink: 0;
  position: relative;
}
.brand .logo svg {
  width: 17px; height: 17px;
  fill: none; stroke: #fff; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.brand .logo svg .spine-dot { fill: #fff; stroke: none; }
.brand span:not(.logo) { color: var(--p1); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--mute); transition: color .12s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 16px; font-size: 13.5px; }

/* ───────────── Hero ───────────── */
.hero {
  position: relative; padding: 80px 0 88px;
  background: radial-gradient(ellipse 1100px 700px at 75% -10%, rgba(61,78,214,.08), transparent 60%),
              radial-gradient(ellipse 800px 500px at 8% -10%, rgba(107,67,201,.06), transparent 60%);
  overflow: hidden;
}
.hero::before {
  /* very subtle grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; position: relative; z-index: 1;
}
.hero h1 {
  font-size: 60px; font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; margin: 14px 0 20px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .lede { font-size: 19px; line-height: 1.55; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note {
  font-size: 13px; color: var(--mute); margin-top: 18px;
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero-note .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--faint);
  display: inline-block;
}
.hero-note b { color: var(--ink); font-weight: 600; }

/* Hero visual — stacked composition */
.hero-visual {
  position: relative; min-height: 460px;
}
.hv-card-back, .hv-card-front {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-3);
  overflow: hidden;
  position: absolute;
}
.hv-card-back {
  top: 30px; right: 0; width: 78%;
  transform: rotate(2.4deg);
}
.hv-card-front {
  bottom: 30px; left: 0; width: 60%;
  transform: rotate(-1.6deg);
  z-index: 2;
}
.hv-card-back:hover, .hv-card-front:hover { transform: none; transition: transform .25s ease; }

/* ───────────── Mock report ───────────── */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.mock-ribbon { height: 5px; background: var(--grad); }
.mock-head {
  padding: 14px 18px 12px; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.mock-head .clinic { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.mock-head .clinic small { display: block; font-size: 10px; font-weight: 500; color: var(--mute); margin-top: 2px; letter-spacing: 0; }
.mock-head .kind {
  font-size: 9px; font-weight: 700; color: var(--p1);
  text-transform: uppercase; letter-spacing: .12em; text-align: right;
}
.mock-head .kind b { display: block; font-size: 12px; color: var(--ink); margin-top: 3px; letter-spacing: -.005em; }
.mock-patient {
  display: flex; gap: 14px; padding: 9px 18px; background: var(--softer);
  border-bottom: 1px solid var(--line-soft); align-items: center;
}
.mock-patient .f { font-size: 11px; }
.mock-patient .f-l { font-size: 8.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mock-patient .f-v { font-size: 11px; color: var(--ink); font-weight: 600; margin-top: 1px; font-variant-numeric: tabular-nums; }
.mock-patient .sep { width: 1px; height: 18px; background: var(--line); }
.mock-patient .flag {
  margin-left: auto;
  background: var(--warnbg); color: var(--warnd);
  font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.mock-patient .flag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }

.mock-pad { padding: 16px 18px; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .nm {
  color: var(--ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
}
.mock-row .nm::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor;
  color: var(--ok);
}
.mock-row.warn .nm::before { background: var(--warn); color: var(--warn); }
.mock-row .val {
  font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--okd); font-size: 12.5px;
}
.mock-row.warn .val { color: var(--warnd); }
.mock-row .range {
  color: var(--faint); font-size: 11px; margin-left: 14px;
  font-variant-numeric: tabular-nums;
}

/* Mock — full sample report (used in sample section) */
.mock-report .mock-body { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.mock-report .photo-col { flex: 0 0 130px; }
.mock-report .photo-frame {
  width: 100%; aspect-ratio: 3/4;
  background: var(--softer); border-radius: 8px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.mock-report .photo-tag {
  font-size: 9px; font-weight: 700; color: var(--mute);
  text-align: center; margin-top: 6px; letter-spacing: .14em; text-transform: uppercase;
}
.mock-report .tbl { flex: 1; min-width: 0; }
.mock-report .grp {
  font-size: 9px; font-weight: 700; color: var(--p1);
  text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 6px; display: flex; align-items: center; gap: 8px;
}
.mock-report .grp::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.mock-foot {
  padding: 10px 18px; border-top: 1px solid var(--line-soft);
  background: var(--softer);
  display: flex; justify-content: space-between; align-items: center;
}
.mock-foot .bn { font-size: 10.5px; font-weight: 700; color: var(--p1); display: inline-flex; align-items: center; gap: 6px; }
.mock-foot .bn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.mock-foot .num { font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* Silhouette + skeleton overlay (drawn in SVG) */
.silhouette {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.silhouette svg { width: 90%; height: 90%; }
.silhouette .skel-line { stroke: var(--p1); stroke-width: 1.6; fill: none; opacity: .9; }
.silhouette .skel-pt   { fill: #fff; stroke: var(--p1); stroke-width: 1.4; }
.silhouette .skel-pt.warn { stroke: var(--warn); }
.silhouette .body-fill { fill: #C9CFDA; opacity: .7; }
.silhouette .grid-line { stroke: var(--line); stroke-dasharray: 2 3; stroke-width: 1; }
.silhouette .frame-corners { stroke: var(--p1); stroke-width: 2; fill: none; }

/* ───────────── Trust strip ───────────── */
.trust {
  padding: 36px 0;
  background: var(--softer);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust .label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
  text-align: center; margin-bottom: 18px;
}
.trust-row {
  display: flex; justify-content: center; align-items: center;
  gap: 36px; flex-wrap: wrap; opacity: .9;
}
.trust-mark {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--mute); font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
}
.trust-mark svg { width: 18px; height: 18px; stroke: var(--mute); stroke-width: 1.6; fill: none; flex-shrink: 0; }

/* ───────────── Problem → Solution split ───────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.split .panel {
  position: relative; padding: 6px 0 0 22px;
}
.split .panel::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: var(--line);
}
.split .panel.solution::before { background: var(--p1); }

/* ───────────── How it works ───────────── */
.section-howto { background: var(--soft); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px; position: relative;
}
.steps::before {
  /* connector line between steps (desktop only) */
  content: ""; position: absolute;
  top: 26px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 12%, var(--line) 88%, transparent);
  z-index: 0;
}
.step {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px 24px;
}
.step .n {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--p1);
  font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--p-tint-2), 0 2px 8px rgba(61,78,214,.12);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { font-size: 14.5px; color: var(--mute); line-height: 1.6; }
.step .step-ill {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  min-height: 88px;
}
.step .step-ill svg { width: 100%; max-width: 200px; height: auto; }

/* ───────────── Stats band ───────────── */
.stats-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; max-width: 920px; margin: 60px auto 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; overflow: hidden;
}
.stats-band .item {
  padding: 22px 24px; text-align: center;
  border-right: 1px solid var(--line);
}
.stats-band .item:last-child { border-right: none; }
.stats-band .num {
  font-size: 36px; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stats-band .num span { color: var(--p1); }
.stats-band .lbl {
  font-size: 12px; color: var(--mute); margin-top: 8px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}

/* ───────────── Features ───────────── */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: #D7DBE6; box-shadow: var(--shadow-2); }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--p-tint); display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .ico svg { width: 20px; height: 20px; stroke: var(--p1); stroke-width: 1.7; fill: none; }
.card h3 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: -.005em; }
.card p { font-size: 14px; color: var(--mute); line-height: 1.6; }

/* ───────────── Sample report section ───────────── */
.sample-section { background: var(--soft); }
.sample-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
}
.sample-bullets {
  list-style: none; margin: 20px 0 26px; padding: 0;
}
.sample-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: 14.5px; color: var(--body);
}
.sample-bullets li svg {
  flex-shrink: 0; width: 18px; height: 18px;
  stroke: var(--ok); stroke-width: 2.2; fill: none; margin-top: 2px;
}
.sample-bullets li b { color: var(--ink); font-weight: 600; }

/* ───────────── Testimonials ───────────── */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; position: relative;
}
.quote::before {
  content: '"'; position: absolute;
  top: 4px; left: 18px; font-family: Georgia, serif;
  font-size: 64px; color: var(--p-tint-2); font-weight: 700;
  line-height: 1; pointer-events: none;
}
.quote p {
  font-size: 15px; color: var(--ink); line-height: 1.6;
  position: relative; z-index: 1; letter-spacing: -.005em;
}
.quote .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.quote .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.quote .av-2 { background: linear-gradient(135deg, #0E9F6E, #3FD49E); }
.quote .av-3 { background: linear-gradient(135deg, #D97757, #F0A878); }
.quote .who b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.quote .who span { font-size: 12.5px; color: var(--mute); }
.quote-meta {
  font-size: 11.5px; color: var(--faint);
  text-align: center; margin-top: 16px; font-style: italic;
}

/* ───────────── Pricing ───────────── */
.beta-banner {
  background: linear-gradient(180deg, var(--p-tint-3) 0%, var(--p-tint) 100%);
  border: 1px solid var(--p-tint-2); border-radius: 12px;
  padding: 14px 22px; text-align: center;
  font-size: 14px; color: var(--p-dark);
  margin: 32px auto 0; max-width: 640px;
  display: inline-flex; align-items: center; gap: 10px;
}
.beta-banner b { font-weight: 700; color: var(--ink); }
.beta-banner .dot-anim {
  width: 8px; height: 8px; border-radius: 50%; background: var(--p1);
  box-shadow: 0 0 0 4px rgba(61,78,214,.18);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,78,214,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(61,78,214,.06); }
}
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 44px; align-items: stretch;
}
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 26px 26px;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.plan:hover { border-color: #D7DBE6; }
.plan.featured {
  border: 1px solid var(--p1); box-shadow: 0 16px 40px -16px rgba(61,78,214,.32), var(--shadow-2);
  position: relative;
  background: linear-gradient(180deg, var(--p-tint-3) 0%, #fff 30%);
}
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -11px;
  left: 50%; transform: translateX(-50%);
  background: var(--p1); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(61,78,214,.32);
}
.plan .name {
  font-size: 14px; font-weight: 700; color: var(--p1);
  text-transform: uppercase; letter-spacing: .08em;
}
.plan .price {
  font-size: 42px; font-weight: 800; color: var(--ink);
  margin: 14px 0 4px; letter-spacing: -.025em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price span {
  font-size: 14.5px; font-weight: 500; color: var(--mute);
  margin-left: 2px;
}
.plan .pitch { font-size: 13.5px; color: var(--mute); margin-bottom: 0; }
.plan ul {
  list-style: none; margin: 22px 0 24px; padding: 0;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
  flex: 1;
}
.plan li {
  font-size: 14px; padding: 6px 0 6px 26px;
  position: relative; color: var(--body); line-height: 1.5;
}
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--okbg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230E9F6E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 7l2.5 2.5L10.5 4.5'/></svg>") center / 10px no-repeat;
}
.plan .btn { width: 100%; justify-content: center; }

/* ───────────── FAQ ───────────── */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-size: 16px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4ED6' stroke-width='2.4' stroke-linecap='round'><path d='M5 12h14M12 5v14'/></svg>");
  background-position: center; background-size: 12px; background-repeat: no-repeat;
  flex-shrink: 0; margin-left: 16px;
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4ED6' stroke-width='2.4' stroke-linecap='round'><path d='M5 12h14'/></svg>");
  transform: rotate(180deg);
}
.faq p {
  font-size: 15px; color: var(--mute); margin-top: 12px;
  line-height: 1.65; max-width: 640px;
}

/* ───────────── CTA band ───────────── */
.cta-band {
  background: var(--grad);
  border-radius: 22px; padding: 64px 56px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 48px -16px rgba(61,78,214,.4);
}
.cta-band::before {
  /* subtle decorative dot grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff; font-size: 36px; letter-spacing: -.025em;
  text-wrap: balance;
}
.cta-band p {
  color: rgba(255,255,255,.86); font-size: 17px;
  margin: 14px auto 28px; max-width: 540px;
  line-height: 1.55;
}
.cta-band .btn-ghost {
  background: #fff; color: var(--p1);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.cta-band .btn-ghost:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,0,0,.24); }

/* ───────────── Article / legal pages ───────────── */
.doc { max-width: 740px; margin: 0 auto; padding: 64px 0 80px; }
.doc h1 { font-size: 40px; letter-spacing: -.025em; margin-bottom: 12px; line-height: 1.1; }
.doc .updated { color: var(--mute); font-size: 13.5px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -.012em; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li {
  font-size: 16.5px; color: var(--body); line-height: 1.7; margin-bottom: 12px;
}
.doc ul { padding-left: 24px; margin-bottom: 16px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .note {
  background: var(--approxbg); border: 1px solid #F0DBA0;
  color: #6E5113; border-radius: 10px; padding: 14px 18px;
  font-size: 14px; margin-bottom: 32px; line-height: 1.55;
  display: flex; gap: 10px; align-items: flex-start;
}
.doc .note svg { flex-shrink: 0; width: 16px; height: 16px; stroke: var(--approx); stroke-width: 1.8; fill: none; margin-top: 2px; }
.doc .article-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--p1);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}
.doc-back {
  color: var(--mute); font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 18px;
}
.doc-back:hover { color: var(--p1); }

/* ───────────── Blog index ───────────── */
.posts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 56px;
}
.post {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #D7DBE6; }
.post .thumb {
  aspect-ratio: 16/9; background: var(--grad);
  position: relative; overflow: hidden;
}
.post .thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
}
.post .pad { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.post .tag {
  font-size: 11px; font-weight: 700; color: var(--p1);
  text-transform: uppercase; letter-spacing: .08em;
}
.post h3 { font-size: 17px; margin: 10px 0 8px; letter-spacing: -.01em; line-height: 1.3; }
.post p { font-size: 13.5px; color: var(--mute); flex: 1; line-height: 1.55; }
.post .meta { font-size: 12px; color: var(--faint); margin-top: 16px; font-variant-numeric: tabular-nums; }

/* ───────────── Footer ───────────── */
.footer {
  background: #0B1020; color: #C7CEDB;
  padding: 64px 0 28px;
  border-top: 1px solid #1A2138;
}
.footer .cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer .brand { color: #fff; margin-bottom: 14px; font-size: 18px; }
.footer .brand span:not(.logo) { color: #9BA8F5; }
.footer p { font-size: 14px; color: #8C96A8; max-width: 280px; line-height: 1.6; }
.footer h4 {
  color: #fff; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { font-size: 14px; color: #C7CEDB; transition: color .12s; }
.footer a:hover { color: #fff; }
.footer .bottom {
  border-top: 1px solid #1A2138; margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px; color: #6B7689;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
  section { padding: 80px 0; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 50px; }
  h2 { font-size: 34px; }
  .cta-band h2 { font-size: 30px; }
  .footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav .wrap { gap: 16px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }

  section { padding: 64px 0; }
  .wrap { padding: 0 22px; }

  .hero { padding: 48px 0 56px; }
  .hero-grid, .split, .sample-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 17px; }
  .hero-visual { min-height: 380px; max-width: 460px; margin: 0 auto; }

  h2 { font-size: 28px; }

  .steps, .cards, .quotes, .plans, .posts {
    grid-template-columns: 1fr; gap: 14px;
  }
  .steps::before { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band .item { border-right: none; border-bottom: 1px solid var(--line); }
  .stats-band .item:last-child { border-bottom: none; }

  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > div:first-child { grid-column: 1 / -1; }
  .footer .bottom { flex-direction: column; gap: 8px; }

  .cta-band { padding: 40px 28px; border-radius: 16px; }
  .cta-band h2 { font-size: 26px; }

  .doc { padding: 44px 0 60px; }
  .doc h1 { font-size: 32px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .plan .price { font-size: 36px; }
  .trust-row { gap: 16px 22px; }
  .nav .wrap { gap: 10px; }
  .brand { font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────────
   v2 EVOLUTION — health-tech SaaS polish on top of the indigo base.
   New surfaces, AI affordances, mesh gradient, data-viz accents.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Extra accent — sky tint for AI moments (rare, kept subtle) */
  --sky: #2E7BBD;
  --violet: #7A5AF8;
  /* AI gradient — slightly brighter than core grad for accents */
  --grad-ai: linear-gradient(135deg, #4C5EE0 0%, #7A5AF8 100%);
  --mesh-1: radial-gradient(ellipse 1200px 720px at 80% -10%, rgba(76,94,224,.16), transparent 55%);
  --mesh-2: radial-gradient(ellipse 900px 580px at 8% -8%, rgba(122,90,248,.12), transparent 55%);
  --mesh-3: radial-gradient(ellipse 700px 460px at 50% 40%, rgba(46,123,189,.06), transparent 60%);
}

/* Mesh gradient hero — supersedes the simpler dual radial */
.hero {
  background: var(--mesh-1), var(--mesh-2), var(--mesh-3), #fff;
}

/* AI pill — used in hero & section eyebrows */
.ai-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--p-tint-2);
  border-radius: 999px; padding: 5px 14px 5px 6px;
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px -4px rgba(61,78,214,.18);
}
.ai-pill .badge {
  background: var(--grad-ai); color: #fff;
  padding: 2px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.ai-pill .badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.ai-pill .sep { color: var(--whisper, #C7CBD2); }

/* AI confidence inline mark (e.g. footers, mock chrome) */
.ai-conf {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--p1);
  letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.ai-conf .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--p1);
  box-shadow: 0 0 0 3px rgba(61,78,214,.16);
}

/* Skeleton photo frame — premium dark glass for hero/sample */
.scan-frame {
  width: 100%; aspect-ratio: 3/4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(76,94,224,.18), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(122,90,248,.12), transparent 50%),
    #0B1020;
  border-radius: 10px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.scan-frame::before {
  /* subtle inner grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.scan-frame .scan-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.16);
}
.scan-frame .scan-ai {
  position: absolute; top: 12px; right: 12px;
  background: rgba(76,94,224,.22);
  border: 1px solid rgba(76,94,224,.4);
  color: #C5CCFF; font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.scan-frame .scan-ai::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #93B0FF; box-shadow: 0 0 8px rgba(147,176,255,.8);
  animation: pulse 1.8s ease-in-out infinite;
}
.scan-frame .scan-corners { position: absolute; inset: 14px; pointer-events: none; }
.scan-frame .scan-corners::before, .scan-frame .scan-corners::after,
.scan-frame .scan-corners > i::before, .scan-frame .scan-corners > i::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1.5px solid rgba(255,255,255,.4);
}
.scan-frame .scan-corners > i { position: absolute; inset: 0; }
.scan-frame .scan-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.scan-frame .scan-corners::after  { top: 0; right: 0; border-left: none; border-bottom: none; }
.scan-frame .scan-corners > i::before { bottom: 0; left: 0; border-right: none; border-top: none; }
.scan-frame .scan-corners > i::after  { bottom: 0; right: 0; border-left: none; border-top: none; }

.scan-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-frame .s-line { stroke: rgba(255,255,255,.92); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.scan-frame .s-line.ref { stroke: rgba(147,176,255,.45); stroke-dasharray: 3 4; stroke-width: 1; }
.scan-frame .s-line.warn { stroke: #F87171; }
.scan-frame .s-pt   { fill: #fff; stroke: #6B7BE6; stroke-width: 1.4; }
.scan-frame .s-pt.warn { stroke: #F87171; }
.scan-frame .s-pt.warn { filter: drop-shadow(0 0 4px rgba(248,113,113,.6)); }
.scan-frame .s-body { fill: rgba(255,255,255,.05); }
.scan-frame .s-annot {
  fill: #fff; font-family: var(--font-num); font-size: 9.5px; font-weight: 700;
}
.scan-frame .s-annot.warn { fill: #FCA5A5; }
.scan-frame .s-annot.ai { fill: #B6C2FF; font-size: 9px; }

/* HUD overlay strip — mimics live inference UI */
.scan-frame .hud {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 8px 10px;
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-num); font-size: 9.5px;
  color: rgba(255,255,255,.88);
  font-variant-numeric: tabular-nums;
}
.scan-frame .hud .k { color: rgba(255,255,255,.5); font-weight: 600; letter-spacing: .04em; }
.scan-frame .hud .v { color: #fff; font-weight: 700; }
.scan-frame .hud .v.warn { color: #FCA5A5; }
.scan-frame .hud .v.ok { color: #6FD5A6; }
.scan-frame .hud .sep { width: 1px; height: 12px; background: rgba(255,255,255,.15); }

/* Trust strip — add a "trusted by N+ clinics" mark */
.trust .trust-count {
  text-align: center; margin-bottom: 12px;
  font-size: 13px; color: var(--ink); font-weight: 600;
}
.trust .trust-count b {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Feature card with "AI" gradient ico — used on key features */
.card .ico.ai {
  background: var(--grad-ai); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(76,94,224,.4);
}
.card .ico.ai svg { stroke: #fff; }

/* Section header with right-aligned chip */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-head .lhs { max-width: 640px; }
.section-head .rhs { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.indigo { background: var(--p-tint); color: var(--p1); }
.chip.indigo::before { content:""; width:5px; height:5px; border-radius:50%; background: var(--p1); }
.chip.gray { background: var(--soft); color: var(--mute); border: 1px solid var(--line); }

/* Analysis grid — biomechanical "categories" tiles */
.analysis-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 56px;
}
.an-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 18px;
  position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.an-tile:hover { transform: translateY(-2px); border-color: var(--p-tint-2); box-shadow: var(--shadow-2); }
.an-tile .an-ico {
  width: 28px; height: 28px; color: var(--p1);
  margin-bottom: 16px;
}
.an-tile .an-ico svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.an-tile .an-name { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.an-tile .an-cnt {
  font-size: 11px; color: var(--mute); margin-top: 4px;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.an-tile::after {
  content: ""; position: absolute; right: -28px; top: -28px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--grad-soft); opacity: 0;
  transition: opacity .2s ease;
}
.an-tile:hover::after { opacity: 1; }

/* Mesh-soft section background (used between dark + white sections) */
.section-mesh {
  background:
    radial-gradient(ellipse 900px 480px at 80% 0%, rgba(76,94,224,.06), transparent 60%),
    radial-gradient(ellipse 700px 400px at 0% 100%, rgba(122,90,248,.05), transparent 60%),
    #fff;
}

/* Inference badge on report mock chrome (small, replaces "kind" eyebrow) */
.mock-head .kind .ai-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 700; letter-spacing: .12em;
  background: var(--p-tint); color: var(--p1);
  padding: 2px 6px; border-radius: 3px; margin-top: 4px;
}
.mock-head .kind .ai-tag::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--p1);
}

/* Mock confidence bar — visual element under the patient bar */
.mock-conf {
  padding: 7px 18px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff 0%, var(--softer) 100%);
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; color: var(--mute);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.mock-conf .lbl { font-weight: 600; letter-spacing: .04em; }
.mock-conf .bar {
  flex: 1; height: 4px; border-radius: 999px; background: var(--line-soft);
  overflow: hidden; position: relative;
}
.mock-conf .bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--grad-ai);
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(76,94,224,.5);
}
.mock-conf .v { color: var(--ink); font-weight: 700; font-size: 11px; }

/* Footer wordmark — bigger/bolder */
.footer .brand .ai-mark {
  font-size: 9.5px; font-weight: 700;
  color: #9BA8F5; letter-spacing: .14em; text-transform: uppercase;
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
}
.footer .brand .ai-mark::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #9BA8F5; box-shadow: 0 0 8px rgba(147,176,255,.5);
}

/* Narrow responsive */
@media (max-width: 1080px) {
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .analysis-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scan-frame .hud { padding: 6px 8px; gap: 10px; font-size: 9px; }
}

