/* Hey Maxx marketing site
   Direction: editorial and calm. Warm paper, navy ink, teal used only for action.
   Hero carries a soft glow + dot grid; surfaces have a fine clay grain; cards have soft clay depth.
   Max appears in the hero and sign-up. Timeline and bullet lists animate on scroll.
   Patients' own words are set in a serif italic; everything else is one sans. */

:root {
  /* primitives */
  --navy-900: #0d1b2e;
  --navy-800: #002c5d;
  --teal-700: #00727e;
  --teal-800: #005a63;
  --teal-600: #00707a;
  --teal-100: #d7efed;
  --paper: #f6f4ef;
  --paper-2: #edeae2;
  --white: #ffffff;
  --gray-600: #5a5f68;
  --gray-500: #6b707a;
  --rule: #dcd7cb;
  --red-700: #b42318;
  --red-50: #fdf0ee;
  --amber-800: #8a4b00;
  --amber-50: #fbf1e1;
  --green-800: #1d5b2e;
  --green-50: #e8f3ea;

  /* semantic */
  --bg: var(--paper);
  --bg-tint: var(--paper-2);
  --surface: var(--white);
  --ink: var(--navy-900);
  --ink-2: var(--gray-600);
  --ink-3: var(--gray-500);
  --action: var(--teal-700);
  --action-hover: var(--teal-800);
  --accent-text: var(--teal-600);
  --danger: var(--red-700);
  --focus: #1e66f5;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --clay: inset 0 2px 0 rgba(255,255,255,.95), inset 10px 12px 24px rgba(255,255,255,.7), inset -10px -14px 28px rgba(13,27,46,.05), 0 28px 56px -30px rgba(13,27,46,.3), 0 6px 16px -8px rgba(13,27,46,.08);

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: 20px;
  --section: clamp(64px, 9vw, 120px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--grain), var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- type ---------- */
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.lede-sm { font-size: 1.1rem; color: var(--ink-2); max-width: 32em; margin-top: 20px; }
.fineprint { font-size: .875rem; color: var(--ink-3); line-height: 1.5; }
.fineprint a { color: var(--ink); font-weight: 600; }
.kicker { font-size: .875rem; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-link { padding: 0 4px; color: var(--ink); }
.btn-link svg { transition: transform .15s var(--ease); }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover svg { transform: translateX(3px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1b12; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px auto; border: 0; background: none; border-radius: var(--r); color: var(--ink-2); cursor: pointer; font-size: 18px; }
.btn-icon:hover { background: var(--bg); color: var(--ink); }
.link-quiet { font-weight: 500; font-size: .95rem; text-decoration: none; padding: 10px 4px; }
.link-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; flex: none; }
.nav nav { margin-left: 16px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 10px 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); }
.nav-links a:hover { color: var(--ink); }
.nav-login { display: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r); cursor: pointer; font-size: 20px; }

@media (max-width: 960px) {
  .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .nav nav { position: absolute; inset: 68px 0 auto 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--rule); display: none; }
  .site-header.open nav { display: block; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav-links a { padding: 14px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-login { display: block; }
}
.nav-cta .btn-sm { white-space: nowrap; }
@media (max-width: 440px) { .nav-cta .btn-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.hero-copy h1 { max-width: 11ch; }
.hero-copy .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.hero-copy .fineprint { margin-top: 24px; }

/* the conversation panel */
.convo { position: relative; z-index: 1; background: #fff; border-radius: 24px; box-shadow: var(--clay); overflow: hidden; }
.convo-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.convo-head img { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-100); }
.convo-head p { font-size: .95rem; }
.convo-head p span { color: var(--ink-3); margin-left: 6px; }
.scenarios { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.scenarios::-webkit-scrollbar { display: none; }
.scenario { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: .9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.scenario:hover { border-color: var(--ink-3); color: var(--ink); }
.scenario[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.convo-body { display: flex; flex-direction: column; gap: 18px; padding: 24px 24px 28px; height: 470px; overflow-y: auto; scrollbar-width: thin; }
.js .convo-body.awaiting > * { display: none; }
@media (max-width: 600px) { .convo-body { height: min(58vh, 340px); padding: 20px 18px 24px; gap: 14px; } .say.user { font-size: 1.15rem; } .say { max-width: 100%; } }

.say { max-width: 92%; }
.say.user { align-self: flex-end; text-align: right; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink); }
.say.max { align-self: flex-start; font-size: 1rem; line-height: 1.55; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--teal-100); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 8px 0 8px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.fade-in { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.outcome { border-radius: var(--r); padding: 16px 18px; background: var(--bg); border: 1px solid var(--rule); }
.outcome-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.outcome-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.outcome.low .outcome-tag { color: var(--green-800); }
.outcome.moderate .outcome-tag { color: var(--amber-800); }
.outcome.urgent { background: var(--red-50); border-color: #f1c4bd; }
.outcome.urgent .outcome-tag { color: var(--danger); }
.outcome-title { font-weight: 600; font-size: 1.1rem; margin: 6px 0 4px; }
.outcome-body { font-size: .95rem; color: var(--ink-2); }
.outcome ul { margin-top: 10px; font-size: .95rem; color: var(--ink-2); }
.outcome li { padding-left: 16px; position: relative; }
.outcome li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }
.outcome .row { margin-top: 14px; }
.outcome .btn { min-height: 44px; font-size: .95rem; }

/* ---------- facts strip ---------- */
.facts { border-block: 1px solid var(--rule); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 24px 24px 24px 0; display: grid; gap: 2px; align-content: start; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts b { font-weight: 600; }
.facts span { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li + li { padding: 20px 16px 20px 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li, .facts li:nth-child(even) { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--grain), var(--bg-tint); }
.section-ink { background: var(--navy-900); color: #e9edf3; }
.section-ink h2, .section-ink h3 { color: #fff; }
.head-split { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.head-split p { font-size: 1.1rem; color: var(--ink-2); max-width: 30em; }
.section-ink .head-split p { color: #b8c2d0; }
@media (min-width: 900px) { .head-split { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; } }
.h2-solo { max-width: 16ch; margin-bottom: clamp(40px, 5vw, 64px); }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } .split-top { align-items: start; } }

/* three ways */
.ways { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.ways li { padding: 28px 0; display: grid; gap: 12px; align-content: start; }
@media (min-width: 900px) { .ways li { padding: 28px 32px 8px 0; } .ways li + li { padding-left: 32px; border-left: 1px solid var(--rule); } }
@media (max-width: 899px) { .ways li + li { border-top: 1px solid var(--rule); } }
.num { font-size: .875rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ways h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.ways p { color: var(--ink-2); }
.good-for { font-size: .95rem; padding-top: 12px; border-top: 1px dashed var(--rule); }
.good-for b { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* story timeline */
.story { display: grid; gap: 48px; }
@media (min-width: 900px) { .story { grid-template-columns: 5fr 7fr; gap: 80px; } .story-head { position: sticky; top: 108px; align-self: start; } }
.story-head p:not(.fineprint) { margin-top: 20px; font-size: 1.1rem; color: var(--ink-2); max-width: 28em; }
.story-head .fineprint { margin-top: 16px; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { font-size: .9rem; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline p { color: var(--ink-2); margin-top: 4px; }
.timeline .quote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* receipt */
.receipt { background: var(--grain), var(--surface); border-radius: 24px; box-shadow: var(--clay); padding: 30px 30px 24px; }
.receipt-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.receipt dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.receipt dt { color: var(--ink-3); }
.receipt dd { font-weight: 500; }
.receipt .fineprint { margin-top: 16px; }
@media (max-width: 480px) { .receipt { padding: 22px 20px 20px; } .receipt dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* limits */
.limits { display: grid; gap: 40px; }
@media (min-width: 900px) { .limits { grid-template-columns: 1fr 1fr; gap: 64px; } }
.limits h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb0c4; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.1rem; color: #fff; }
.ticks svg { margin-top: 5px; font-size: 18px; color: #6fd3cf; }
.ticks.no svg { color: #f0a199; }
.sos { display: flex; gap: 14px; align-items: flex-start; margin-top: 56px; padding: 20px 22px; border-radius: var(--r); background: #2a1716; border: 1px solid #5c2a25; }
.sos svg { font-size: 22px; color: #f0a199; margin-top: 2px; }
.sos p { color: #f6dcd8; }
.sos b { color: #fff; }
.sos a { color: #fff; font-weight: 700; }

/* partners */
.partners { display: grid; gap: 56px; }
@media (min-width: 900px) { .partners { grid-template-columns: 1fr 1fr; gap: 0; } .partners article + article { padding-left: 56px; border-left: 1px solid var(--rule); } .partners article:first-child { padding-right: 56px; } }
.partners h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; max-width: 20ch; }
.dash { margin-top: 24px; }
.dash li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.dash li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }
.dash b { color: var(--ink); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 28px; }

/* faq */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 16px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center/12px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 12px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { padding: 0 32px 20px 0; color: var(--ink-2); max-width: 40em; }

/* contact */
.soon { margin-top: 28px; display: inline-block; font-size: .9rem; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border: 1px dashed var(--ink-3); border-radius: 999px; }
.lead { display: grid; gap: 18px; background: var(--grain), var(--surface); border-radius: 24px; box-shadow: var(--clay); padding: clamp(20px, 3vw, 32px); }
.two { display: grid; gap: 18px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #a8a293; border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; transition: border-color .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.err { display: none; font-size: .875rem; color: var(--danger); font-weight: 500; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.lead .btn-primary { justify-self: start; min-width: 140px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-sm); font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-50); color: var(--green-800); }
.form-status.info { background: var(--amber-50); color: var(--amber-800); }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-left: auto; }
.foot-links a { font-size: .95rem; color: var(--ink-2); text-decoration: none; display: inline-block; padding: 12px 0; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-note { width: 100%; font-size: .875rem; color: var(--ink-3); padding-top: 16px; border-top: 1px solid var(--rule); }
.foot-note a { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .foot-links { margin-left: 0; width: 100%; } .site-footer { padding-bottom: 104px; } }

/* mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(246, 244, 239, .96); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .25s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
}

/* ---------- hero glow + dot grid ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -14%; top: -30%; background: radial-gradient(circle, #a6e3db 0%, transparent 65%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: -12%; top: -12%; background: radial-gradient(circle, #bfd5f5 0%, transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: 32%; bottom: -26%; background: radial-gradient(circle, #f7d6bd 0%, transparent 65%); opacity: .45; animation-duration: 26s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4%, 6%, 0) scale(1.12); } }
.grid-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; background-image: radial-gradient(rgba(13,27,46,.22) 1px, transparent 1.3px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%); }

/* ---------- Max ---------- */
.convo-wrap { position: relative; padding-top: 170px; }
.max-hero { position: absolute; z-index: 0; top: -40px; right: 4%; width: 280px; height: auto; filter: drop-shadow(0 18px 22px rgba(13,27,46,.2)); animation: max-bob 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes max-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@media (max-width: 600px) { .convo-wrap { padding-top: 130px; } .max-hero { width: 190px; top: -24px; right: 0; } }
.max-cta { width: min(280px, 70%); height: auto; margin-top: 28px; filter: drop-shadow(0 22px 24px rgba(13,27,46,.2)); }
@media (max-width: 899px) { .max-cta { width: 190px; margin: 20px auto 0; } }

/* ---------- timeline: progress line + steps light up on scroll ---------- */
.timeline { position: relative; padding-left: 36px; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--rule); }
.timeline::after { background: linear-gradient(var(--teal-700), var(--navy-800)); transform-origin: top; transform: scaleY(var(--p)); }
.timeline li { position: relative; padding: 18px 20px; margin-bottom: 12px; border-top: 0; border-radius: 20px; background: rgba(255,255,255,.45); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-tint); border: 2px solid #c3bcae; transition: all .3s var(--ease); }
.timeline li.on { background: #fff; box-shadow: var(--clay); }
.timeline li.on::before { background: var(--teal-700); border-color: #fff; box-shadow: 0 0 0 4px rgba(0,114,126,.18); }
@media (max-width: 520px) { .timeline li { padding: 16px; } }

/* ---------- bullet points slide in on scroll ---------- */
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .08s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .16s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .24s; }
.js .stagger.in > *:nth-child(5) { transition-delay: .32s; }
.js .stagger.in > *:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .js .stagger > * { opacity: 1; transform: none; } }
