/* ============================================================
   MediClarity — White + Teal (brand-true)
   Aesthetic: clean clinical white surfaces, navy ink (matches
   the wordmark), teal #299CA5 as the brand accent. Editorial
   typography preserved (Fraunces + Newsreader + IBM Plex Mono).
   ============================================================ */

/* Brand-true type pairing pulled from the MediClarity companion app:
   DM Sans (display + body) and JetBrains Mono (data + utility). */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --paper:        #FFFFFF;
  --paper-2:      #F4F8F9;   /* cool off-white */
  --paper-3:      #E6F1F2;   /* very light teal */
  --paper-4:      #D4ECEE;   /* matches existing site light teal */

  /* Ink — matches navy-500 in the companion app, which is the wordmark color */
  --ink:          #1A4368;   /* navy-500 */
  --ink-2:        #153653;   /* navy-600 */
  --ink-3:        #5F6B7A;
  --ink-4:        #8B96A4;

  /* Rules */
  --rule:         #DEE7EA;
  --rule-strong:  #B6C5CA;

  /* Brand teal — pulled exact from the companion app burnt-500 palette */
  --teal:         #2799A2;   /* burnt-500 (the brand's true teal) */
  --teal-2:       #1F7A82;   /* burnt-600 */
  --teal-3:       #175C61;   /* burnt-700 */
  --teal-soft:    #66C9CF;   /* burnt-300, light teal for accents on dark */
  --teal-100:     #CCEDEF;   /* burnt-100, soft fill */
  --teal-glow:    rgba(39, 153, 162, 0.4);

  /* Type — brand pairing from the companion app */
  --serif-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --serif-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Scale */
  --maxw: 1280px;
  --gutter: 32px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--serif-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  position: relative;
  overflow-x: hidden;
}

/* Subtle clinical chart-paper dot grid texture — very faint */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image: radial-gradient(circle, rgba(31, 71, 105, 0.06) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ----- Typography ----- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot { color: var(--teal); }
.section-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
}
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 400; margin: 0; letter-spacing: -0.012em; color: var(--ink); }
.display-xl { font-size: clamp(56px, 9vw, 124px); line-height: 0.94; font-weight: 520; letter-spacing: -0.022em; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.display-lg { font-size: clamp(44px, 6vw, 84px);  line-height: 0.98; font-weight: 520; letter-spacing: -0.018em; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.display-md { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; font-weight: 520; letter-spacing: -0.016em; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
h1 em, h2 em, .display-xl em, .display-lg em, .display-md em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 90;
  color: var(--teal);
}
.lede {
  font-family: var(--serif-body);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 56ch;
}
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* Drop cap */
.drop-cap::first-letter {
  font-family: var(--serif-display);
  font-size: 5.4em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--teal);
  font-weight: 520;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
}

/* ----- Layout ----- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.shell-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.rule { height: 1px; background: var(--rule); width: 100%; }

/* ----- Masthead ----- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.masthead-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
  gap: 32px;
}
.masthead-main nav { display: flex; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); align-items: center; }
.masthead-main nav a { padding: 6px 0; position: relative; }
.masthead-main nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--teal); transition: right 0.35s ease; }
.masthead-main nav a:hover::after { right: 0; }
.masthead-main nav.right { justify-content: flex-end; align-items: center; }
.nav-locale { display: inline-flex; gap: 6px; align-items: baseline; color: var(--ink-3); font-size: 11px; }
.nav-locale .sep { color: var(--rule-strong); }
.nav-locale a::after { display: none; }

/* Logo image */
.brand-link { display: inline-flex; align-items: center; }
.brand-logo {
  display: block;
  width: auto;
  height: 46px;
}
.brand-logo--footer { height: 42px; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
  justify-self: end;
}
.nav-toggle:hover { background: var(--paper-3); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.masthead.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.masthead.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.masthead.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* CTA button — companion-app gradient treatment */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--teal-2);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
  color: var(--paper);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  box-shadow: 0 4px 14px -4px rgba(39, 153, 162, 0.4);
}
.btn:hover {
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--teal-3) 100%);
  border-color: var(--teal-3);
  box-shadow: 0 8px 22px -4px rgba(39, 153, 162, 0.5);
  transform: translateY(-1px);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; transform: none; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn--ink:hover { background: var(--teal); border-color: var(--teal); box-shadow: 0 8px 22px -4px rgba(39, 153, 162, 0.5); }
.btn--glow { animation: brandGlow 3.2s ease-in-out infinite; }
.btn .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
  color: var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link-arrow:hover { color: var(--teal); border-color: var(--teal-2); }
.link-arrow .arrow { transition: transform 0.3s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ----- Hero ----- */
.hero { padding: var(--space-7) 0; border-bottom: 1px solid var(--rule); position: relative; background: var(--paper); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 80% 30%, rgba(41, 156, 165, 0.08), transparent 70%);
  z-index: 0;
}
.hero > .shell { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-6);
  align-items: end;
}
.hero-eyebrow { display: flex; align-items: center; gap: 18px; margin-bottom: var(--space-4); flex-wrap: wrap; }
.hero-eyebrow .badge { padding: 5px 12px; border: 1px solid var(--teal); background: var(--paper-3); border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-3); }
.hero h1 { margin-bottom: var(--space-4); }
.hero .lede { margin-bottom: var(--space-5); }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; margin-top: var(--space-5); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

/* Dashboard mockup */
.dashboard {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  box-shadow:
    18px 18px 0 var(--paper-4),
    0 30px 60px -20px rgba(31, 71, 105, 0.18);
  font-family: var(--mono);
  position: relative;
  transform: rotate(-0.4deg);
}
.dashboard-tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dashboard-tabs .tab { padding: 11px 16px; border-right: 1px solid var(--rule); color: var(--ink-3); }
.dashboard-tabs .tab.active { background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--teal); margin-bottom: -1px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 130px 1fr 180px;
}
.dashboard-col { padding: 16px 14px; border-right: 1px solid var(--rule); }
.dashboard-col:last-child { border-right: 0; }
.dashboard-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.patient-row { padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.patient-row:last-child { border-bottom: 0; }
.patient-row .pdot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.patient-row.active { background: var(--paper-3); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.pdot.green { background: #2F7F50; }
.pdot.amber { background: #B47823; }
.pdot.red { background: #B42318; }

.timeline { position: relative; padding-left: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--rule-strong); }
.tl-item { position: relative; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-2); }
.tl-item.accent::before { background: var(--teal); border-color: var(--teal); }
.tl-item:last-child { border-bottom: 0; }
.tl-item .date { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.06em; }
.tl-item .label { color: var(--ink); font-family: var(--serif-body); font-size: 13.5px; margin-top: 3px; }

.summary-card { font-size: 11.5px; color: var(--ink-2); }
.summary-card .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.summary-card .row span:last-child { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-card .row:last-child { border-bottom: 0; }
.summary-card .flag { display: inline-block; background: rgba(41, 156, 165, 0.16); color: var(--teal-3); padding: 1px 6px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 6px; }

.dashboard-footer { padding: 10px 14px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.dashboard-footer .pulse { display: inline-flex; align-items: center; gap: 8px; }
.dashboard-footer .pulse::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.45); } }

/* ----- Sections (editorial) ----- */
section { padding: var(--space-7) 0; border-bottom: 1px solid var(--rule); position: relative; background: var(--paper); }
section.tinted { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-5); margin-bottom: var(--space-6); align-items: end; }
.section-head .left { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -0.016em; font-variation-settings: 'opsz' 144, 'SOFT' 0; }
.section-head .right { padding-bottom: 8px; }
.section-head .right p { margin: 0; }

/* Problem / editorial body */
.problem-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: start; }
.problem-body p { font-size: 18px; line-height: 1.62; color: var(--ink-2); max-width: 60ch; }
.problem-body p + p { margin-top: 1em; }
.pullquote {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: var(--space-5) var(--space-4);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.18;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  position: relative;
  background: var(--paper-3);
}
.pullquote::before { content: '"'; position: absolute; top: -10px; left: -8px; background: var(--paper); padding: 0 10px; font-size: 56px; color: var(--teal); line-height: 1; }
.pullquote cite { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 16px; font-weight: 500; }

/* Workflow */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.workflow .step { padding: var(--space-5) var(--space-4); border-right: 1px solid var(--rule); position: relative; background: var(--paper); transition: background 0.3s ease; }
.workflow .step:hover { background: var(--paper-3); }
.workflow .step:last-child { border-right: 0; }
.workflow .step .step-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-3); display: block; }
.workflow .step h3 { font-family: var(--serif-display); font-size: 28px; line-height: 1.05; font-weight: 500; letter-spacing: -0.012em; margin-bottom: var(--space-3); font-variation-settings: 'opsz' 90, 'SOFT' 0; }
.workflow .step p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 var(--space-3); }
.workflow .step .mini-ui {
  border: 1px solid var(--rule);
  padding: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--paper-2);
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-3);
}
.mini-ui .line { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.mini-ui .line:last-child { border-bottom: 0; }
.mini-ui .line .v { color: var(--teal-3); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Who-we-serve — companion app's practice-card pattern */
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.serve-card {
  background: var(--paper);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.serve-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(39, 153, 162, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.serve-card:hover {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -12px rgba(39, 153, 162, 0.25);
}
.serve-card:hover::before { opacity: 1; }
.serve-card > * { position: relative; z-index: 1; }
.serve-card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); }
.serve-card h3 { font-family: var(--serif-display); font-size: 22px; line-height: 1.1; font-weight: 600; margin: var(--space-3) 0 var(--space-2); letter-spacing: -0.005em; }
.serve-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 var(--space-3); }
.serve-card .more { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }

/* Gradient text — companion app's stat-value treatment, for big numbers */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Founder */
.founder { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-6); align-items: center; }
.founder-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-3) 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
}
.founder-portrait::after {
  content: 'AK';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  color: var(--paper);
  font-size: 124px;
  font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  letter-spacing: -0.06em;
  opacity: 0.94;
}
.founder-portrait .label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.75;
}
.founder-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.18;
  font-variation-settings: 'opsz' 144, 'SOFT' 90;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

/* Founder quote block — centered editorial treatment (no photo placeholder) */
.founder-quote-block { max-width: 960px; margin: 0 auto; text-align: center; }
.founder-quote-block::before {
  content: '\201C';
  display: block;
  font-family: var(--serif-display);
  font-size: 140px;
  line-height: 0.6;
  color: var(--teal);
  font-style: italic;
  margin-bottom: 24px;
}
.founder-quote-block .founder-quote {
  font-size: clamp(30px, 3vw, 50px);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}
.founder-quote-block .founder-meta { justify-content: center; }
.founder-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.trust-item { padding: var(--space-3) 0; border-top: 1px solid var(--ink); }
.trust-item .icon {
  font-family: var(--serif-display);
  font-size: 32px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-3);
  font-variation-settings: 'opsz' 144;
}
.trust-item h4 { font-family: var(--serif-display); font-size: 19px; line-height: 1.2; font-weight: 400; margin-bottom: 8px; }
.trust-item p { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.price-card { background: var(--paper); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.price-card.featured { background: var(--teal); color: var(--paper); position: relative; }
.price-card.featured h3,
.price-card.featured .amount { color: var(--paper); }
.price-card.featured .price-label { color: rgba(255,255,255,0.85); }
.price-card.featured .price-meta { color: rgba(255,255,255,0.78); }
.price-card.featured .price-list li { border-color: rgba(255,255,255,0.22); color: var(--paper); }
.price-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.price-card .amount { font-family: var(--serif-display); font-size: 64px; line-height: 1; font-variation-settings: 'opsz' 144, 'SOFT' 0; letter-spacing: -0.018em; font-weight: 520; color: var(--ink); }
.price-card .amount sup { font-size: 22px; vertical-align: top; line-height: 1.6; margin-right: 2px; }
.price-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.price-list { list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-4); }
.price-list li { padding: 11px 0; border-bottom: 1px dashed var(--rule); font-size: 14.5px; display: flex; align-items: baseline; gap: 10px; }
.price-list li::before { content: '§'; color: var(--teal); font-family: var(--serif-display); font-style: italic; font-weight: 500; }
.price-card.featured .price-list li::before { color: var(--paper); }

/* Crosslink */
.crosslink {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
}
.crosslink h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; font-weight: 500; font-variation-settings: 'opsz' 110, 'SOFT' 0; }
.crosslink p { color: var(--ink-2); font-size: 17px; margin: var(--space-3) 0 var(--space-4); max-width: 50ch; }

/* Final CTA — teal hero section, the brand color as punctuation */
.final-cta {
  background: var(--teal);
  color: var(--paper);
  padding: var(--space-8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(31, 71, 105, 0.35), transparent 60%);
  pointer-events: none;
}
.final-cta > .shell { position: relative; z-index: 1; }
.final-cta .section-no { color: rgba(255,255,255,0.85); }
.final-cta h2 {
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 24px auto var(--space-5);
  color: var(--paper);
}
.final-cta h2 em { color: var(--ink); font-style: italic; }
.final-cta .lede { color: rgba(255,255,255,0.92); margin: 0 auto var(--space-5); }
.final-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final-cta .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.final-cta .secondary { display: inline-block; margin-top: var(--space-4); font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.6); padding-bottom: 3px; }
.final-cta .secondary:hover { color: var(--paper); border-color: var(--paper); }

/* Footer */
footer { padding: var(--space-6) 0 var(--space-5); background: var(--paper-2); border-top: 1px solid var(--rule); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--rule); }
.footer-grid h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 6px 0; font-size: 14px; }
.footer-grid li a:hover { color: var(--teal); }
.footer-meta { display: flex; justify-content: space-between; padding-top: var(--space-4); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ----- For Clinicians page ----- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); }
.before-after > div { padding: var(--space-5); }
.before-after .before { background: var(--paper-2); border-right: 1px solid var(--ink); }
.before-after .with { background: var(--teal); color: var(--paper); position: relative; }
.before-after h3 { font-family: var(--serif-display); font-size: 26px; font-weight: 500; margin-bottom: var(--space-3); font-variation-settings: 'opsz' 60, 'SOFT' 0; }
.before-after .with h3 { color: var(--paper); }
.before-after .with h3 em { color: var(--ink); }
.before-after ul { list-style: none; padding: 0; margin: 0; }
.before-after li { padding: 14px 0; border-bottom: 1px dashed var(--rule); display: flex; gap: 12px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.before-after .with li { border-color: rgba(255,255,255,0.25); color: var(--paper); }
.before-after li::before { content: '—'; color: var(--teal); font-weight: 500; flex: none; }
.before-after .with li::before { color: var(--paper); }
.before-after li:last-child { border-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.feature { background: var(--paper); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); min-height: 280px; transition: background 0.3s ease; }
.feature:hover { background: var(--paper-3); }
.feature .feat-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--teal); }
.feature h3 { font-family: var(--serif-display); font-size: 28px; line-height: 1.05; font-weight: 500; font-variation-settings: 'opsz' 90, 'SOFT' 0; }
.feature p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 48ch; }
.feature .demo {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal-3);
  padding: 12px;
  background: var(--paper-3);
  border-left: 2px solid var(--teal);
}

.profiles { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-chip {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-family: var(--serif-display);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  font-variation-settings: 'opsz' 60;
}
.profile-chip:hover { background: var(--teal); color: var(--paper); border-color: var(--teal); }
.profile-chip em { font-style: italic; color: var(--teal); }
.profile-chip:hover em { color: var(--paper); }

.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { padding: var(--space-4) 0; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--serif-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.15; font-weight: 500; font-variation-settings: 'opsz' 90, 'SOFT' 0; flex: 1; }
.faq-item summary .marker { font-family: var(--mono); font-size: 22px; color: var(--teal); transition: transform 0.3s ease; }
.faq-item[open] summary .marker { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 var(--space-4); max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.faq-item .answer em { color: var(--teal); font-style: italic; }

/* ----- Blog index ----- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.blog-card { background: var(--paper); padding: var(--space-4); display: flex; flex-direction: column; min-height: 360px; transition: background 0.3s ease, transform 0.3s ease; position: relative; overflow: hidden; }
.blog-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top, rgba(39, 153, 162, 0.10), transparent 55%); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.blog-card:hover { background: var(--paper); transform: translateY(-3px); }
.blog-card:hover::before { opacity: 1; }
.blog-card > * { position: relative; z-index: 1; }
.blog-card .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; display: flex; justify-content: space-between; gap: 16px; }
.blog-card .meta .date { color: var(--ink-3); }
.blog-card h3 { font-family: var(--serif-display); font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); margin-bottom: var(--space-3); }
.blog-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 0 var(--space-3); flex: 1; }
.blog-card .read { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-top: auto; }
.blog-card .featured-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-4) 100%); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; margin: -8px -8px 20px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4); }
.blog-card .featured-img { aspect-ratio: 16/9; width: calc(100% + 16px); margin: -8px -8px 20px; object-fit: cover; border: 1px solid var(--rule); background: var(--paper-2); display: block; transition: transform 0.4s ease; }
.blog-card:hover .featured-img { transform: scale(1.02); }

/* Article hero image */
.article-hero { margin: var(--space-5) 0 var(--space-4); }
.article-hero img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); aspect-ratio: 16/9; object-fit: cover; }
.article-hero figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* Categories chip strip */
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.blog-cat { padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.blog-cat:hover, .blog-cat.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ----- Blog post (article) ----- */
.article { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article-header { padding: var(--space-7) 0 var(--space-5); border-bottom: 1px solid var(--rule); }
.article-meta { display: flex; gap: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-3); }
.article-meta .cat { color: var(--teal); }
.article-title { font-family: var(--serif-display); font-size: clamp(40px, 5vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.022em; color: var(--ink); margin: 0 0 var(--space-4); }
.article-title em { color: var(--teal); font-style: italic; font-weight: 700; }
.article-lede { font-family: var(--serif-body); font-size: 22px; line-height: 1.45; color: var(--ink-2); margin: 0 0 var(--space-5); }
.article-byline { display: flex; align-items: center; gap: 16px; }
.article-byline .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--ink) 0%, var(--teal-3) 100%); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.article-byline .who { display: flex; flex-direction: column; }
.article-byline .name { font-family: var(--serif-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.article-byline .role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

.article-body { padding: var(--space-6) 0; font-family: var(--serif-body); font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.article-body > p { margin: 0 0 1.2em; }
.article-body > p:first-of-type::first-letter { font-family: var(--serif-display); font-size: 4.4em; line-height: 0.82; float: left; padding: 0.06em 0.12em 0 0; color: var(--teal); font-weight: 700; }
.article-body h2 { font-family: var(--serif-display); font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -0.016em; color: var(--ink); margin: 2em 0 0.6em; }
.article-body h3 { font-family: var(--serif-display); font-size: 26px; font-weight: 600; line-height: 1.18; color: var(--ink); margin: 1.6em 0 0.4em; }
.article-body em { color: var(--teal); font-style: italic; font-weight: 500; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 1px; }
.article-body a:hover { color: var(--teal-2); border-color: var(--teal-2); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: 0.6em; }
.article-body blockquote { border-left: 3px solid var(--teal); margin: 1.6em 0; padding: 0.4em 0 0.4em 24px; font-family: var(--serif-display); font-style: italic; font-size: 26px; line-height: 1.32; color: var(--ink); font-weight: 500; }
.article-body blockquote cite { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
.article-body code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-3); padding: 2px 6px; border-radius: 3px; color: var(--ink); }
.article-body pre { font-family: var(--mono); font-size: 13px; line-height: 1.55; background: var(--ink); color: var(--paper); padding: 20px 22px; overflow-x: auto; margin: 1.6em 0; border-radius: 4px; }
.article-body pre code { background: transparent; padding: 0; color: var(--paper); }
.article-body hr { border: none; height: 1px; background: var(--rule); margin: 2.4em 0; }

.callout { margin: 1.8em 0; padding: 20px 24px; background: var(--paper-3); border-left: 3px solid var(--teal); }
.callout .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.callout p { font-size: 16.5px; line-height: 1.55; color: var(--ink); margin: 0; }

.article-footer { padding: var(--space-5) 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: var(--space-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); flex-wrap: wrap; }
.article-footer a { color: var(--teal); }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 17.5px; }
  .article-body h2 { font-size: 28px; }
}

/* ----- Forms (Contact page) ----- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-side .channel {
  padding: var(--space-3);
  border: 1px solid var(--rule);
  background: var(--paper);
  border-left: 3px solid var(--teal);
  transition: background 0.25s ease, transform 0.25s ease;
}
.contact-side .channel:hover { background: var(--paper-3); transform: translateX(2px); }
.contact-side .channel h4 { font-family: var(--serif-display); font-size: 22px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.contact-side .channel p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 10px; }
.contact-side .channel a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 2px; }
.contact-side .channel a:hover { color: var(--teal-2); border-color: var(--teal-2); }

.intent-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.intent-tab {
  flex: 1;
  padding: 14px 14px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.intent-tab:hover { color: var(--ink); }
.intent-tab.is-active { color: var(--teal); border-bottom-color: var(--teal); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--serif-body);
  font-size: 16px;
  padding: 14px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 48px;
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(39, 153, 162, 0.12);
}
.form-field .hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-4); margin-top: 2px; }
.form-submit { display: flex; gap: 16px; align-items: center; margin-top: var(--space-2); flex-wrap: wrap; }
.form-fineprint { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-4); margin: 0; max-width: 48ch; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .intent-tab { font-size: 10.5px; padding: 12px 8px; }
}

/* ----- Promo video section (below hero) ----- */
.promo {
  background: var(--paper-2);
  padding: var(--space-6) 0 var(--space-7);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.promo-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-5);
}
.promo-head .left { display: flex; flex-direction: column; gap: 12px; }
.promo-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.016em;
  color: var(--ink);
}
.promo-head .lede { margin: 0; padding-bottom: 8px; }
.promo-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.promo-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* The video frame — matches platform-shot treatment for visual cohesion */
.promo-frame {
  position: relative;
  border: 1px solid var(--rule-strong);
  background: var(--ink);
  box-shadow:
    18px 18px 0 var(--paper-4),
    0 30px 60px -20px rgba(31, 71, 105, 0.22);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.promo-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-frame .promo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.promo-frame.is-playing .promo-poster { opacity: 0; pointer-events: none; }

/* Play button overlay */
.promo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(15, 17, 21, 0.10), transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.promo-frame.is-playing .promo-play { opacity: 0; }
.promo-play-button {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -8px rgba(39, 153, 162, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.3s ease, background 0.3s ease;
  animation: brandGlow 2.8s ease-in-out infinite;
}
.promo-frame:hover .promo-play-button { transform: scale(1.05); background: var(--teal-2); }
.promo-play-button svg { display: block; margin-left: 6px; }

/* Caption strip under the video */
.promo-caption {
  margin-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.promo-caption .left, .promo-caption .right { display: inline-flex; gap: 18px; align-items: center; }

@media (max-width: 980px) {
  .promo-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .promo-head .lede { padding-bottom: 0; }
  .promo-frame { box-shadow: 8px 8px 0 var(--paper-4); }
  .promo-play-button { width: 80px; height: 80px; }
  .promo-caption { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .promo { padding: var(--space-5) 0; }
  .promo-play-button { width: 64px; height: 64px; }
  .promo-play-button svg { width: 24px; height: 24px; margin-left: 4px; }
}

/* ----- Scroll progress bar ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

/* ----- Companion-app motion library (ported) ----- */
@keyframes scan {
  0%   { transform: translateY(-30%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(140%); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes brandGlow {
  0%, 100% { box-shadow: 0 4px 14px -4px rgba(39, 153, 162, 0.4), 0 0 0 0 rgba(39, 153, 162, 0); }
  50%      { box-shadow: 0 8px 28px -4px rgba(39, 153, 162, 0.65), 0 0 0 6px rgba(39, 153, 162, 0.08); }
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 153, 162, 0.55); }
  50%      { box-shadow: 0 0 0 14px rgba(39, 153, 162, 0); }
}
@keyframes countUp {
  0%   { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ----- Platform shot (real UI screenshot frame, replaces HTML mockup) ----- */
.platform-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  box-shadow:
    18px 18px 0 var(--paper-4),
    0 30px 60px -20px rgba(31, 71, 105, 0.20);
  transform: rotate(-0.4deg);
  overflow: hidden;
}
.platform-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.platform-shot--tilt-right { transform: rotate(0.6deg); }

/* Scan sweep on platform shots — fires when scrolled into view */
.platform-shot::after,
.showcase-stack::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(39, 153, 162, 0.18) 40%,
    rgba(39, 153, 162, 0.32) 50%,
    rgba(39, 153, 162, 0.18) 60%,
    transparent 100%
  );
  filter: blur(6px);
  opacity: 0;
  z-index: 2;
  transform: translateY(-30%);
}
.platform-shot.in-view::after { animation: scan 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.35s 1; }
.showcase-stack.scanning::after { animation: scan 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1; }

/* Shimmer on hover for showcase stack (subtle premium feel) */
.platform-shot::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: -200% 0;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.4s ease;
}
.platform-shot:hover::before {
  opacity: 1;
  animation: shimmer 1.8s linear 1;
}

/* ----- Showcase: sticky scroll-jacked platform tour ----- */
.showcase { background: var(--paper-2); padding: var(--space-6) 0 var(--space-7); }
.showcase-intro { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-5); margin-bottom: var(--space-6); align-items: end; }
.showcase-intro .left { display: flex; flex-direction: column; gap: 14px; }
.showcase-intro h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 500; letter-spacing: -0.016em; font-variation-settings: 'opsz' 144, 'SOFT' 0; }

.showcase-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-6);
  align-items: start;
}
.showcase-text { display: flex; flex-direction: column; }
.showcase-step {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  border-top: 1px solid var(--rule);
}
.showcase-step:first-child { border-top: 0; padding-top: 0; }
.showcase-step .step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.showcase-step h3 {
  font-family: var(--serif-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.014em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  margin: 0 0 var(--space-3);
}
.showcase-step h3 em {
  font-style: italic;
  color: var(--teal);
  font-variation-settings: 'opsz' 144, 'SOFT' 90;
}
.showcase-step p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
}
.showcase-step-img { display: none; } /* mobile-only fallback */

.showcase-viz {
  position: sticky;
  top: 110px;
  height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  box-shadow:
    14px 14px 0 var(--paper-4),
    0 24px 50px -20px rgba(31, 71, 105, 0.20);
  overflow: hidden;
}
.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  background: var(--paper);
  pointer-events: none;
}
.showcase-img.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----- Reveal ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }
.reveal.delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { transition: none; opacity: 1; transform: none; }
  .dashboard-footer .pulse::before { animation: none; }
  .showcase-img { transition: opacity 0.15s linear; }
  .scroll-progress { display: none; }
  .btn--glow,
  .platform-shot::after,
  .platform-shot::before,
  .showcase-stack::after { animation: none !important; }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero .stagger > * { animation: rise-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero .stagger > *:nth-child(2) { animation-delay: 0.20s; }
.hero .stagger > *:nth-child(3) { animation-delay: 0.40s; }
.hero .stagger > *:nth-child(4) { animation-delay: 0.60s; }
.hero .stagger > *:nth-child(5) { animation-delay: 0.80s; }
.hero .dashboard { animation: rise-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 0.55s; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  /* Masthead → logo left, hamburger right; nav becomes a dropdown panel */
  .masthead-main { grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; }
  .masthead-main .brand-link { justify-self: start; }
  .brand-logo { height: 38px; }
  .nav-toggle { display: inline-flex; }
  .masthead-main nav { display: none; }
  .masthead.is-open .masthead-main { grid-template-columns: 1fr auto; }
  .masthead.is-open .masthead-main > nav {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    margin-top: 12px;
    border-top: 1px solid var(--rule);
  }
  .masthead.is-open .masthead-main > nav.right { border-top: 0; padding-top: 0; margin-top: 0; }
  .masthead.is-open .masthead-main nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--rule);
    font-size: 13px;
  }
  .masthead.is-open .masthead-main nav a::after { display: none; }
  .masthead.is-open .masthead-main nav .btn {
    margin: 16px 0 4px;
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid var(--teal);
  }
  .masthead.is-open .nav-locale { padding: 14px 4px; border-bottom: 1px solid var(--rule); justify-content: flex-start; }

  /* Section spacing — tighter on mobile */
  section { padding: var(--space-6) 0; }
  .hero { padding: var(--space-6) 0; }

  /* Layout grids → single column */
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .section-head { grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-5); }
  .problem-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .workflow { grid-template-columns: 1fr; }
  .workflow .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .workflow .step:last-child { border-bottom: 0; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: var(--space-4); }
  .founder-portrait { aspect-ratio: 3/2; }
  .founder-portrait::after { font-size: 92px; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .pricing-grid { grid-template-columns: 1fr; }
  .crosslink { grid-template-columns: 1fr; gap: var(--space-4); }
  .crosslink > div:last-child { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--rule); padding-top: var(--space-4) !important; }
  .before-after { grid-template-columns: 1fr; }
  .before-after .before { border-right: 0; border-bottom: 1px solid var(--ink); }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { flex-direction: column; gap: 8px; }

  /* Dashboard tightening */
  .dashboard { transform: none; box-shadow: 8px 8px 0 var(--paper-4); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-col { border-right: 0; border-bottom: 1px solid var(--rule); }
  .dashboard-col:last-child { border-bottom: 0; }

  /* Platform shot — drop rotation/heavy shadow on mobile */
  .platform-shot, .platform-shot--tilt-right { transform: none; box-shadow: 8px 8px 0 var(--paper-4); }

  /* Showcase — collapse the sticky panel and show images inline with each step */
  .showcase-intro { grid-template-columns: 1fr; gap: 16px; }
  .showcase-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .showcase-text { gap: var(--space-5); }
  .showcase-step { min-height: 0; padding: 0; border-top: 0; padding-bottom: var(--space-5); border-bottom: 1px solid var(--rule); }
  .showcase-step:last-child { border-bottom: 0; }
  .showcase-step-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-3);
    border: 1px solid var(--rule-strong);
    box-shadow: 6px 6px 0 var(--paper-4);
  }
  .showcase-viz { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }

  body { font-size: 16px; }

  .brand-logo { height: 34px; }

  section { padding: var(--space-5) 0; }
  .hero { padding: var(--space-5) 0; }

  .display-xl { font-size: clamp(40px, 11vw, 64px); line-height: 1.02; }
  .display-lg { font-size: clamp(34px, 9vw, 56px); }
  .display-md { font-size: clamp(28px, 7vw, 44px); }
  .lede { font-size: 17px; }

  .drop-cap::first-letter { font-size: 4em; }

  .section-head h2 { font-size: clamp(28px, 8vw, 44px); }

  .hero-trust { gap: 10px; font-size: 10.5px; }
  .hero-trust span { gap: 6px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { justify-content: center; }
  .hero-ctas .link-arrow { text-align: center; justify-content: center; }

  .pullquote { padding: var(--space-4) var(--space-3); font-size: 21px; }
  .pullquote::before { font-size: 44px; }

  .serve-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }

  .price-card { padding: var(--space-4); }
  .price-card .amount { font-size: 52px; }

  .feature { padding: var(--space-4); min-height: 0; }
  .before-after > div { padding: var(--space-4); }

  .profile-chip { font-size: 15px; padding: 9px 14px; }

  .faq-item summary { padding: var(--space-3) 0; }
  .faq-item summary h3 { font-size: 19px; }

  .final-cta { padding: var(--space-6) 0; }
  .final-cta h2 { font-size: clamp(34px, 10vw, 62px); margin: 16px auto var(--space-4); }
  .final-cta .lede { font-size: 16px; }

  /* Drop external box-shadow on dashboard for narrower screens */
  .dashboard { box-shadow: 6px 6px 0 var(--paper-4); }
}

@media (max-width: 380px) {
  .display-xl { font-size: 36px; }
  .display-xl br { display: none; }
  .section-head h2 { font-size: 26px; }
}
