/* ============================================================
   PainTrack — between-visits pain & procedure outcome platform
   Design tokens + components
   ============================================================ */

:root {
  /* Surfaces */
  --paper:      #F5F2EC;
  --paper-2:    #FBF9F4;
  --card:       #FFFFFF;
  --ink-bg:     #14201C;   /* deep band */
  --ink-bg-2:   #1B2A25;

  /* Text */
  --ink:        #1B201E;
  --ink-soft:   #515B56;
  --muted:      #8A938C;
  --on-dark:    #EFEDE5;
  --on-dark-soft:#A9B4AD;

  /* Brand */
  --teal:       #11705C;   /* relief / primary */
  --teal-deep:  #0B5346;
  --teal-soft:  #E2EFE9;
  --coral:      #D75A3E;   /* pain */
  --coral-soft: #F6E2DA;
  --amber:      #C58A2E;   /* return / warning */
  --amber-soft: #F3E7CF;

  /* Lines */
  --line:       #E4DDD0;
  --line-2:     #D8CFBE;
  --line-dark:  rgba(255,255,255,0.12);

  /* Type */
  --display: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(27,32,30,0.04), 0 2px 8px rgba(27,32,30,0.05);
  --shadow-md: 0 8px 24px rgba(27,32,30,0.08), 0 2px 6px rgba(27,32,30,0.05);
  --shadow-lg: 0 24px 60px rgba(20,32,28,0.14), 0 6px 18px rgba(20,32,28,0.08);

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }

/* Eyebrow / kicker */
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 22px; height: 1.5px; background: var(--teal); display: inline-block;
}
.kicker--amber { color: var(--amber); }
.kicker--amber::before { background: var(--amber); }
.kicker--coral { color: var(--coral); }
.kicker--coral::before { background: var(--coral); }
.kicker--light { color: var(--on-dark-soft); }
.kicker--light::before { background: var(--on-dark-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Headings */
.h-xl { font-size: clamp(2.6rem, 5.2vw, 4.3rem); }
.h-lg { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
.h-md { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 54ch;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ink { background: var(--ink); color: var(--paper-2); }
.btn--ink:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(27,32,30,0.03); }
.btn--light { background: var(--paper-2); color: var(--ink); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 16px 28px; font-size: 16.5px; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--paper-2); color: var(--ink-soft);
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--teal { background: var(--teal); }
.dot--coral { background: var(--coral); }
.dot--amber { background: var(--amber); }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,236,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(245,242,236,0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: none; padding: 6px; }
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
}

/* ===================== HERO ===================== */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 56px; align-items: center;
}
.hero h1 { margin: 22px 0 0; }
.hero .lede { margin-top: 22px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); letter-spacing: 0.02em; }
.hero__trust svg { width: 15px; height: 15px; color: var(--teal); }

/* Curve panel (hero) */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.panel__bar .traffic { display: flex; gap: 6px; }
.panel__bar .traffic i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.panel__title { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-left: 6px; }
.panel__title b { color: var(--ink-soft); font-weight: 600; }
.panel__body { padding: 22px 24px 26px; }

.chart { width: 100%; height: auto; display: block; }
.chart__legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.chart__legend span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0.02em; }

.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.metric { background: var(--card); padding: 16px 18px; }
.metric__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.metric__v { font-family: var(--display); font-size: 27px; margin-top: 4px; line-height: 1; }
.metric__v small { font-size: 14px; color: var(--ink-soft); font-family: var(--sans); }

/* ===================== LOGO STRIP ===================== */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.proof__inner { display: flex; align-items: center; gap: 38px; padding: 22px 0; flex-wrap: wrap; justify-content: space-between; }
.proof__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.proof__logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.proof__logos span { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink-soft); opacity: .7; letter-spacing: -0.01em; }

/* ===================== PROBLEM (dark band) ===================== */
.band-dark { background: var(--ink-bg); color: var(--on-dark); }
.band-dark h2 { color: var(--on-dark); }
.band-dark .lede { color: var(--on-dark-soft); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; }
.cmp-card { border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.cmp-card--old { background: rgba(215,90,62,0.07); }
.cmp-card--new { background: rgba(17,112,92,0.12); }
.cmp-card__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.cmp-card--old .cmp-card__tag { color: #E68A6E; }
.cmp-card--new .cmp-card__tag { color: #5FC2A6; }
.cmp-card__quote { font-family: var(--display); font-size: 25px; line-height: 1.25; margin: 18px 0 0; color: var(--on-dark); }
.cmp-card p.small { color: var(--on-dark-soft); margin-top: 16px; font-size: 15px; }
.cmp-card__recall { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.cmp-card__recall .chip { background: rgba(255,255,255,0.04); border-color: var(--line-dark); color: var(--on-dark-soft); }

/* mini bars for recall vs data */
.miniseries { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 22px; }
.miniseries i { flex: 1; border-radius: 3px 3px 0 0; display: block; }

/* ===================== HOW IT WORKS ===================== */
.steps { display: flex; flex-direction: column; gap: 26px; margin-top: 56px; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.step:nth-child(even) .step__art { order: -1; }
.step__copy { padding: 46px 48px; display: flex; flex-direction: column; justify-content: center; }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--teal); letter-spacing: 0.1em; font-weight: 600; }
.step h3 { font-size: 1.85rem; margin-top: 14px; }
.step p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; }
.step__list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; }
.step__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.step__list svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.step__art { background: var(--paper-2); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 40px; min-height: 340px; position: relative; }
.step:nth-child(even) .step__art { border-left: none; border-right: 1px solid var(--line); }

/* body map mini */
.bodymap-mini { position: relative; }

/* ===================== DEMO ===================== */
.demo-shell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 360px 1fr;
}
.demo-phone { background: var(--ink-bg); padding: 34px; display: flex; align-items: center; justify-content: center; }
.phone {
  width: 280px; background: var(--paper); border-radius: 34px; padding: 14px;
  border: 8px solid #0a120f; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.04);
}
.phone__screen { background: var(--paper-2); border-radius: 22px; overflow: hidden; }
.phone__statusbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 4px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.phone__head { padding: 6px 18px 14px; }
.phone__head .eyebrow { font-size: 10.5px; }
.phone__head h4 { font-family: var(--display); font-size: 19px; margin-top: 3px; }

.checkin { padding: 4px 16px 18px; }
.bm-wrap { display: flex; justify-content: center; padding: 6px 0 4px; }
.bm { width: 132px; height: auto; }
.bm .region { fill: var(--line); stroke: var(--line-2); stroke-width: 1; cursor: pointer; transition: fill .15s; }
.bm .region:hover { fill: var(--coral-soft); }
.bm .region.active { fill: var(--coral); stroke: var(--coral); }
.bm__hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }

.slider-block { padding: 14px 4px 2px; }
.slider-block .row { display: flex; justify-content: space-between; align-items: baseline; }
.slider-block .row label { font-size: 13px; font-weight: 600; color: var(--ink); }
.slider-block .row .val { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.pain-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; margin: 12px 0 2px; background: linear-gradient(90deg,#2BA17E 0%, #C9B73E 50%, #D75A3E 100%); outline: none; }
.pain-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.pain-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); cursor: pointer; }
.scale-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }

.quick-toggles { display: flex; gap: 7px; margin-top: 14px; }
.qt { flex: 1; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 9px 6px; text-align: center; transition: all .15s; }
.qt svg { width: 18px; height: 18px; color: var(--ink-soft); }
.qt span { display: block; font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; font-weight: 500; }
.qt.on { border-color: var(--teal); background: var(--teal-soft); }
.qt.on svg, .qt.on span { color: var(--teal-deep); }
.checkin__submit { width: 100%; margin-top: 16px; justify-content: center; }
.checkin__done { text-align: center; padding: 16px; }
.checkin__done .tick { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; color: var(--teal); }

.demo-side { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.demo-side h3 { font-size: 1.9rem; }
.demo-side p { color: var(--ink-soft); margin-top: 14px; }
.demo-feed { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.feed-item { display: flex; gap: 13px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); }
.feed-item__ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; }
.feed-item__ic svg { width: 18px; height: 18px; }
.feed-item b { font-size: 14.5px; }
.feed-item p { font-size: 13.5px; margin-top: 2px; }
.feed-item .stamp { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; flex: none; }

/* ===================== OUTCOME DEEP DIVE ===================== */
.outcome-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin-top: 54px; }
.bigchart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 28px 30px 24px; }
.phases { display: flex; flex-direction: column; gap: 14px; }
.phase { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.phase:last-child { border-bottom: none; }
.phase__mark { font-family: var(--mono); font-size: 12px; font-weight: 600; width: 26px; flex: none; padding-top: 2px; }
.phase h4 { font-family: var(--sans); font-size: 16px; font-weight: 700; }
.phase p { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; }

/* ===================== DASHBOARD ===================== */
.dash-shell { margin-top: 54px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--card); }
.browserbar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browserbar .traffic { display: flex; gap: 6px; }
.browserbar .traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browserbar .addr { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; margin-left: 8px; }
.dash { display: grid; grid-template-columns: 1.5fr 1fr; }
.dash__main { padding: 26px 28px; border-right: 1px solid var(--line); }
.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash__head h3 { font-family: var(--display); font-size: 22px; }
.dash__head .sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.dash-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-filter { font-family: var(--mono); font-size: 11.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-soft); }
.dash-filter.on { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }

.ptable { width: 100%; border-collapse: collapse; }
.ptable th { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; font-weight: 500; border-bottom: 1px solid var(--line); }
.ptable td { padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.ptable tr:last-child td { border-bottom: none; }
.ptable tr { cursor: pointer; transition: background .12s; }
.ptable tbody tr:hover { background: var(--paper-2); }
.ptable tr.sel { background: var(--teal-soft); }
.p-name { font-weight: 600; }
.p-cond { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.spark { width: 96px; height: 30px; display: block; }
.status { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.status--good { background: var(--teal-soft); color: var(--teal-deep); }
.status--watch { background: var(--amber-soft); color: #8a5e16; }
.status--flag { background: var(--coral-soft); color: #a23c22; }

.dash__side { padding: 26px 26px; background: var(--paper-2); }
.dash__side .eyebrow { color: var(--teal); }
.patient-hd { display: flex; align-items: center; gap: 13px; margin: 8px 0 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; font-weight: 600; flex: none; }
.patient-hd h4 { font-family: var(--display); font-size: 19px; }
.patient-hd .p-cond { margin-top: 2px; }
.previsit { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-top: 18px; }
.previsit .eyebrow { color: var(--muted); }
.previsit p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }
.previsit b { color: var(--ink); }
.previsit .ai-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--teal); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }

/* ===================== MULTIDISCIPLINARY ===================== */
.insight-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; margin-top: 54px; align-items: stretch; }
.insight-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px 36px; box-shadow: var(--shadow-sm); }
.insight-card--feature { background: var(--ink-bg); color: var(--on-dark); border-color: transparent; display: flex; flex-direction: column; }
.insight-flag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--amber); padding: 7px 13px; border: 1px solid rgba(197,138,46,0.4); background: rgba(197,138,46,0.1); border-radius: 999px; }
.insight-card--feature h3 { color: var(--on-dark); font-size: 1.7rem; margin-top: 22px; }
.insight-card--feature p { color: var(--on-dark-soft); margin-top: 14px; font-size: 15.5px; }
.corr { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.corr__col .eyebrow { color: var(--on-dark-soft); }
.corr__bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 10px; }
.corr__bars i { flex: 1; border-radius: 3px 3px 0 0; display: block; }

.team-routing { display: flex; flex-direction: column; gap: 14px; }
.route { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); }
.route__ic { width: 42px; height: 42px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; }
.route__ic svg { width: 20px; height: 20px; }
.route b { font-size: 15px; }
.route p { font-size: 13px; color: var(--ink-soft); margin-top: 1px; }

/* ===================== EDUCATION ===================== */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.edu-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.edu-card__thumb { height: 150px; display: flex; align-items: flex-end; padding: 16px; position: relative; }
.edu-card__thumb .tag { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,0.85); padding: 4px 10px; border-radius: 999px; color: var(--ink); }
.edu-card__b { padding: 20px 22px 24px; }
.edu-card__b h4 { font-family: var(--display); font-size: 19px; }
.edu-card__b p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.edu-card__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 7px; }

.podcast { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-top: 22px; background: var(--ink-bg); border-radius: var(--r-xl); padding: 30px; color: var(--on-dark); }
.podcast__cover { width: 200px; height: 200px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--teal), var(--teal-deep)); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.podcast__cover .pmark { width: 54px; height: 54px; }
.podcast__cover small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
.podcast h3 { color: var(--on-dark); font-size: 1.6rem; }
.podcast p { color: var(--on-dark-soft); margin-top: 12px; }
.podcast__play { display: inline-flex; align-items: center; gap: 11px; margin-top: 20px; }
.podcast__play .pbtn { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.podcast__play .pbtn svg { width: 18px; height: 18px; }
.podcast__play .meta { font-family: var(--mono); font-size: 12px; color: var(--on-dark-soft); }

/* ===================== PRIVACY ===================== */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.priv-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.priv-badge { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.priv-badge svg { width: 26px; height: 26px; color: var(--teal); }
.priv-badge b { display: block; margin-top: 14px; font-size: 15px; }
.priv-badge p { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }

/* ===================== CTA ===================== */
.cta { background: var(--ink-bg); color: var(--on-dark); border-radius: var(--r-xl); padding: 64px 56px; position: relative; overflow: hidden; }
.cta h2 { color: var(--on-dark); font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 16ch; }
.cta p { color: var(--on-dark-soft); margin-top: 18px; max-width: 46ch; font-size: 17px; }
.cta__form { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; max-width: 540px; }
.cta__form input { flex: 1; min-width: 200px; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,0.06); color: var(--on-dark); font-family: var(--sans); font-size: 15px; }
.cta__form input::placeholder { color: var(--on-dark-soft); }
.cta__form input:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,0.09); }
.cta__fine { font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-soft); margin-top: 16px; }
.cta__glow { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(17,112,92,0.5), transparent 70%); pointer-events: none; }

/* ===================== FOOTER ===================== */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .lede { font-size: 14.5px; max-width: 34ch; margin-top: 16px; color: var(--ink-soft); }
.footer__col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.footer__col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 11px; transition: color .15s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.footer__bottom p { font-size: 12.5px; color: var(--muted); }
.footer__disc { font-size: 12px; color: var(--muted); max-width: 60ch; margin-top: 8px; line-height: 1.5; }

/* ===================== REVEAL ANIM =====================
   Content is visible by default (robust everywhere). When JS confirms a
   live, painting browser it adds .anim to <html>, enabling a gentle
   scroll-triggered entrance. If JS is absent or the context can't paint,
   nothing is ever hidden. */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .reveal[data-d="1"] { transition-delay: .08s; }
.anim .reveal[data-d="2"] { transition-delay: .16s; }
.anim .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* draw animation for hero curve (enhancement only — line is drawn by default) */
.anim .draw-path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.anim .draw-path.go { animation: draw 1.8s cubic-bezier(.4,0,.1,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .compare, .outcome-grid, .insight-grid, .privacy, .demo-shell, .dash, .step { grid-template-columns: 1fr; }
  .step__art { border-left: none !important; border-right: none !important; border-top: 1px solid var(--line); min-height: 280px; }
  .step:nth-child(even) .step__art { order: 0; }
  .dash__main { border-right: none; border-bottom: 1px solid var(--line); }
  .edu-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .podcast { grid-template-columns: 1fr; text-align: center; }
  .podcast__cover { margin: 0 auto; }
  .demo-shell { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .metric-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 44px 28px; }
  .step__copy, .demo-side, .insight-card { padding: 30px 26px; }
}
