/* Chatta website, v3 (bolder, scroll-driven)
   Sage palette. Headings: Manrope 800. Body and UI: Inter. Labels and tags: JetBrains Mono.
   Colors are semantic tokens. Light values are the default; the dark, Sage-only values (handoff 2a)
   apply when <html data-theme="dark">. The demo section is always dark. */

@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  /* Palette constants */
  --sage: #2F7F79;
  --sage-dark: #1F4E4A;
  --mist: #E4F1EE;
  --cloud: #F6FAF9;
  --wave: #9FD0C6;
  --dot: #5DBFA6;

  /* Always-dark (demo section, and the dark theme) */
  --ground: #141C25;
  --panel: #1A252F;
  --dk-line: #26333F;
  --dk-line-2: #2E3D4A;
  --dk-line-3: #3A4B58;
  --dk-body: #B5C4CC;
  --dk-mute: #8A99A6;

  --font-head: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-btn: 10px;
  --r-bubble: 12px;
  --r-card: 18px;
  --gutter: clamp(20px, 5vw, 56px);
  --pill-h: 60px;
  --header-h: 84px;
}

/* Light (default) */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --page: #FFFFFF;
  --band: #F6FAF9;
  --surface: #FFFFFF;
  --card: #F6FAF9;
  --border: #DCE9E6;
  --hairline: #E6EDF0;
  --outline: #C9D6DC;
  --text: #1F2A37;
  --text-2: #5B6B7A;
  --text-3: #5B6B7A;
  --accent: #2F7F79;
  --accent-text: #2F7F79;
  --accent-hover: #1F4E4A;
  --soft: #E4F1EE;
  --soft-fg: #2F7F79;
  --tag-bg: #FFFFFF;
  --tag-fg: #5B6B7A;
  --tag-border: #DCE9E6;
  --bub-c-bg: #FFFFFF;
  --bub-c-border: #E3ECEA;
  --bub-m-bg: #E4F1EE;
  --bub-m-border: transparent;
  --bub-m-label: #1F4E4A;
  --grid: rgba(47, 127, 121, .12);
  --glow: rgba(159, 208, 198, .5);
  --header-bg: rgba(255, 255, 255, .8);
  --header-border: #E6EDF0;
  --shadow-pill: 0 8px 28px rgba(31, 42, 55, .07);
  --shadow-pill-up: 0 12px 34px rgba(31, 42, 55, .12);
  --shadow-card: 0 40px 70px -40px rgba(31, 42, 55, .35);
  --shadow-hover: 0 24px 44px -26px rgba(31, 42, 55, .28);
  --rail-line: #DDE8E5;
  --tile-bg: #FFFFFF;
}

/* Dark, Sage only (handoff 2a) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #141C25;
  --band: #1A252F;
  --surface: #141C25;
  --card: #1A252F;
  --border: #26333F;
  --hairline: #26333F;
  --outline: #3A4B58;
  --text: #F6FAF9;
  --text-2: #B5C4CC;
  --text-3: #8A99A6;
  --accent: #2F7F79;
  --accent-text: #5DBFA6;
  --accent-hover: #3A948D;
  --soft: #1F4E4A;
  --soft-fg: #9FD0C6;
  --tag-bg: #141C25;
  --tag-fg: #B5C4CC;
  --tag-border: #2E3D4A;
  --bub-c-bg: transparent;
  --bub-c-border: #2E3D4A;
  --bub-m-bg: #1F4E4A;
  --bub-m-border: #2F7F79;
  --bub-m-label: #9FD0C6;
  --grid: rgba(159, 208, 198, .08);
  --glow: rgba(31, 78, 74, .85);
  --header-bg: rgba(26, 37, 47, .78);
  --header-border: #26333F;
  --shadow-pill: 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-pill-up: 0 12px 34px rgba(0, 0, 0, .5);
  --shadow-card: 0 40px 70px -40px rgba(0, 0, 0, .7);
  --shadow-hover: 0 24px 44px -26px rgba(0, 0, 0, .7);
  --rail-line: #26333F;
  --tile-bg: #1A252F;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:root[data-theme="dark"] a:hover { color: var(--wave); }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}
h1, h2 { text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(42px, 6.8vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--page); padding: 10px 14px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 12px; color: var(--page); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  border-radius: var(--r-btn); padding: 11px 18px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--outline); color: var(--text); padding: 10px 18px; }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-lg.btn-ghost { padding: 14px 26px; }
.btn-block { width: 100%; padding: 13px 18px; }
.btn-primary.btn-lg:hover { box-shadow: 0 10px 28px -10px rgba(47, 127, 121, .7); transform: translateY(-1px); }

/* Mono labels */
.mono {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
}
.tag {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1.2; color: var(--tag-fg);
  background: var(--tag-bg); border: 1px solid var(--tag-border); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--text-3); }
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--accent-text); }

/* Scroll progress: top bar on small screens, side rail on large ones */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--page-p, 0));
  background: linear-gradient(90deg, var(--accent), var(--dot));
}
.rail { display: none; }
.rail-track { position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--rail-line); }
.rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--rail-p, 0) * 100%); border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--dot)); box-shadow: 0 0 14px rgba(93, 191, 166, .55);
}
.rail-head {
  position: absolute; left: -4px; top: calc(var(--rail-p, 0) * 100%); width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 4px rgba(93, 191, 166, .22), 0 0 16px rgba(93, 191, 166, .8);
}
.rail-list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail-list li { position: absolute; left: 0; top: calc(var(--r) * 100%); transform: translateY(-50%); }
.rail-list a { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: var(--text-3); }
.rail-list a:hover { color: var(--accent-text); }
.rail .dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--rail-line); background: var(--page);
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.rail li.is-reached .dot { border-color: var(--accent-text); background: var(--accent-text); }
.rail li.is-active .dot { transform: scale(1.35); }
.rail li.is-active a { color: var(--accent-text); }
.rail .lbl { font-size: 11px; opacity: .85; transition: opacity .2s ease, color .2s ease; }
.rail li.is-active .lbl { opacity: 1; }

/* Header: floating glass pill */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; margin-bottom: calc(-1 * (var(--pill-h) + 12px)); pointer-events: none; }
.pill {
  pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--pill-h); padding: 0 10px 0 22px;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--header-border); border-radius: 999px;
  box-shadow: var(--shadow-pill); transition: box-shadow .3s ease;
}
.site-header.is-scrolled .pill { box-shadow: var(--shadow-pill-up); }
.brand img { height: 32px; width: auto; }
.pill .btn { border-radius: 999px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--text-2); }
.site-nav a:not(.btn):hover { color: var(--accent-text); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--outline); border-radius: 999px;
  width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--text); cursor: pointer;
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--pill-h) + 12px + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 120px); }
.hero::before {
  content: ""; position: absolute; z-index: -2; top: -140px; right: -140px; width: 820px; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
  transform: translate3d(0, calc(var(--sy, 0) * .12px), 0);
}
.hero-bg {
  position: absolute; inset: -90px 0 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 70% 40%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 90% at 70% 40%, #000 12%, transparent 72%);
  transform: translate3d(0, calc(var(--sy, 0) * .2px), 0);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow { color: var(--text-3); }
.eyebrow .sep { color: var(--wave); margin: 0 4px; }
.eyebrow .here { color: var(--accent-text); }
.hl { color: var(--accent-text); }
.w { display: inline-block; animation: rise .9s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 480px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.trust { font-size: 13px; color: var(--text-2); }

@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }

/* Call card */
.call-card {
  position: relative; margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.45;
  box-shadow: var(--shadow-card);
  transform: translate3d(0, calc(var(--sy, 0) * -.05px), 0);
}
.call-card::before, .call-card::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--accent-text); pointer-events: none; }
.call-card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-card); }
.call-card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-card); }
.call-head { display: flex; align-items: center; gap: 8px; color: var(--text-3); margin-bottom: 4px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); animation: pulse 2.4s ease-in-out infinite; }
.wave { flex: 1; height: 2px; background: var(--wave); border-radius: 2px; opacity: .8; }
.msg { max-width: 84%; border-radius: var(--r-bubble); padding: 11px 14px; opacity: 0; transform: translateY(8px); animation: msg-in .55s ease forwards; animation-delay: var(--d, 0s); }
.msg-caller { align-self: flex-start; background: var(--bub-c-bg); border: 1px solid var(--bub-c-border); }
.msg-maya { align-self: flex-end; background: var(--bub-m-bg); border: 1px solid var(--bub-m-border); }
.msg-label { display: block; font-size: 12px; font-weight: 600; color: var(--bub-m-label); margin-bottom: 2px; }
.route { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border); display: flex; align-items: center; color: var(--text-3); font-size: 11px; }
.route li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.route li + li { flex: 1; }
.route li + li::before { content: ""; flex: 1; min-width: 12px; margin-left: 6px; border-top: 2px dotted var(--wave); }
.node { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 3px var(--soft); flex: none; }
.route li:last-child .node { background: var(--dot); }
.call-card figcaption { font-size: 12px; color: var(--text-2); margin-top: 6px; }

@keyframes msg-in { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(93, 191, 166, .5); } 50% { box-shadow: 0 0 0 6px rgba(93, 191, 166, 0); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.band { background: var(--band); border-block: 1px solid var(--hairline); padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 6vw, 64px); max-width: 720px; }
.section-head > p:not(.kicker) { color: var(--text-2); font-size: 18px; }

/* Values */
.values { border-top: 1px solid var(--hairline); padding: clamp(56px, 8vw, 96px) 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.value { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.value h3 { font-size: 22px; }
.value p { color: var(--text-2); font-size: 16px; }
.value .meta { width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--text-3); }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; background: var(--soft); color: var(--soft-fg); margin-bottom: 6px;
}

/* Two-up panels */
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(28px, 4vw, 44px); }
.panel h3 { font-size: 24px; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%235DBFA6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
:root[data-theme="light"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%232F7F79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Steps: a line that fills as the section scrolls into view */
.steps {
  --gap: clamp(24px, 4vw, 56px);
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
}
.steps::before, .steps::after { content: ""; position: absolute; z-index: 0; left: 32px; top: 31px; pointer-events: none; }
.steps::before { width: var(--span, 0px); height: 0; border-top: 2px dotted var(--wave); }
.steps::after {
  width: calc(var(--span, 0px) * var(--p, 0)); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--dot)); box-shadow: 0 0 14px rgba(93, 191, 166, .7);
}
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.step-top { display: flex; align-items: center; margin-bottom: 12px; }
.tile {
  position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; color: var(--accent-text);
  background: var(--tile-bg); border: 1px solid var(--border); border-radius: 14px;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.tile::before, .tile::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--accent-text); pointer-events: none; }
.tile::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.tile::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.step.is-lit .tile { background: var(--soft); border-color: var(--wave); box-shadow: 0 0 0 5px rgba(93, 191, 166, .16), 0 10px 26px -10px rgba(93, 191, 166, .6); }
.step-label { color: var(--accent-text); }
.step h3 { font-size: 22px; }
.step p { color: var(--text-2); font-size: 16px; }

/* Industry cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--wave); box-shadow: var(--shadow-hover); }
.card p { color: var(--text-2); font-size: 16px; }
.card-top { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
.band .tag { background: var(--band); }
:root[data-theme="dark"] .band .tag { background: var(--tag-bg); }

/* Split layout: copy beside a visual */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.split-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split-copy > p:not(.kicker):not(.assure) { color: var(--text-2); font-size: 18px; max-width: 540px; }
.split-copy .ticks { margin-top: 4px; }
.assure { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); padding-top: 6px; }
.assure::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px var(--soft); }
.band .tile { background: var(--surface); }

/* Price ladder */
.ladder, .log, .board {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-card);
}
.ladder-head, .log-head { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); margin-bottom: 22px; }
.ladder-body { position: relative; display: flex; flex-direction: column; gap: 20px; padding-top: 26px; }
.ladder-floor { position: absolute; top: 0; bottom: -6px; left: 62%; border-left: 2px dashed var(--accent-text); }
.ladder-floor .mono { position: absolute; top: 0; left: 8px; font-size: 11px; color: var(--accent-text); white-space: nowrap; }
.ladder-row .lbl { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 11px; color: var(--text-3); }
.ladder-row .bar { display: block; height: 16px; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--dot)); }
.ladder-row.blocked .bar { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--border) 6px 8px); border: 1.5px dashed var(--outline); }
.ladder-note { margin-top: 24px; font-size: 14px; color: var(--text-2); }
.js .ladder .bar { width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k, 0) * 160ms + 250ms); }
.js .ladder.is-in .bar { width: var(--w); }

/* Control: points and call record */
.points { display: flex; flex-direction: column; gap: 26px; margin-top: 6px; }
.point { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.point .icon-chip { margin: 0; }
.point h3 { font-size: 20px; margin-bottom: 6px; }
.point p { color: var(--text-2); font-size: 16px; }
.log ol { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--border); font-size: 15px; color: var(--text-2); }
.log li:first-child { border-top: 0; padding-top: 0; }
.log .k { font-size: 11px; color: var(--text-3); }
.log .k.ok { color: var(--accent-text); }
.log li:last-child span:last-child { color: var(--text); font-weight: 500; }

/* Outcomes board */
.board { padding-block: 10px; }
.board-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "call quote booking money"; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px dashed var(--border); font-size: 15px; color: var(--text); }
.board-head { border-top: 0; padding: 14px 0 10px; color: var(--text-3); font-size: 11px; }
.board-head + .board-row { border-top: 1px solid var(--border); }
.c-call { grid-area: call; font-weight: 500; }
.c-quote { grid-area: quote; }
.c-booking { grid-area: booking; }
.c-money { grid-area: money; }
.chip {
  display: inline-flex; width: max-content; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.2; padding: 5px 10px; border-radius: 999px;
  color: var(--tag-fg); background: var(--tag-bg); border: 1px solid var(--tag-border);
}
.chip.ok { color: var(--accent-text); background: var(--soft); border-color: var(--wave); }
.chip.none { border-style: dashed; background: transparent; }
.money { display: block; height: 10px; width: var(--w, 40%); border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--dot)); }
.money.none { background: transparent; border: 1.5px dashed var(--outline); width: 38%; }
.js .board .money { width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .4s; }
.js .board.is-in .money { width: var(--w, 38%); }

/* Platform stack */
.stack { display: grid; gap: 14px; }
.stack-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.block {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px; min-height: 112px;
  padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--text);
}
.block.live { background: var(--soft); border-color: var(--wave); box-shadow: var(--shadow-card); }
.block.next { border-style: dashed; background: transparent; color: var(--text-3); font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.base { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text-3); text-align: center; font-size: 11px; }

/* Demo (always dark, Sage only) */
.demo { position: relative; overflow: hidden; background: var(--ground); color: var(--dk-body); padding: clamp(80px, 11vw, 140px) 0; }
.demo::before {
  content: ""; position: absolute; top: -140px; left: -100px; width: 720px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, var(--sage-dark), transparent); opacity: .85;
}
.demo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 208, 198, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 208, 198, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 95% at 12% 18%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 95% at 12% 18%, #000 10%, transparent 72%);
}
.demo-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.demo-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.demo h2 { color: #F6FAF9; }
.eyebrow-dark { color: var(--dot); }
.lede-dark { color: var(--dk-body); font-size: 18px; max-width: 460px; }

.demo-form {
  background: var(--panel); border: 1px solid var(--dk-line); border-radius: 18px;
  padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-size: 14px; font-weight: 500; color: #E4F1EE; }
.optional { color: var(--dk-mute); font-weight: 400; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; color: #F6FAF9; background: var(--ground);
  border: 1px solid var(--dk-line-2); border-radius: var(--r-btn); padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238A99A6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.field select:invalid { color: var(--dk-mute); }
.field select option { color: #1F2A37; background: #fff; }
.field input:hover, .field select:hover { border-color: var(--dk-line-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(47, 127, 121, .35); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #E39A8F; }
.demo .btn-primary:hover { background: #3A948D; }
.demo .btn-primary:focus-visible, .demo a:focus-visible { outline-color: var(--dot); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.4em; font-size: 14px; color: var(--dk-body); }
.form-status[data-state="success"] { color: var(--wave); }
.form-status[data-state="error"] { color: #F0B4AB; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding-top: 48px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { font-size: 14px; color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { font-size: 14px; font-weight: 500; color: var(--text-2); }
.footer-nav a:hover { color: var(--accent-text); }
.footer-base { padding-block: 32px 40px; }
.footer-base p { font-size: 13px; color: var(--text-2); }

/* Scroll reveal (only with JS), staggered by --i */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .25s ease, border-color .25s ease, box-shadow .25s ease; transition-delay: calc(var(--i, 0) * 110ms), 0s, 0s, 0s; }

/* Rail on large screens */
@media (min-width: 900px) {
  .progress { display: none; }
  .rail { display: block; position: fixed; z-index: 40; left: 14px; top: 50%; transform: translateY(-50%); height: min(56vh, 440px); width: 24px; }
  .rail .lbl { display: none; }
}
@media (min-width: 1360px) {
  .rail { left: 32px; width: 130px; }
  .rail .lbl { display: inline; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .values-grid { grid-template-columns: minmax(0, 1fr); }
  .two-up { grid-template-columns: minmax(0, 1fr); }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .split-copy { order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding-left: 92px; min-height: 64px; }
  .step-top { position: absolute; left: 0; top: 0; margin: 0; }
  .steps::before, .steps::after { left: 31px; top: 32px; }
  .steps::before { width: 0; height: var(--span, 0px); border-top: 0; border-left: 2px dotted var(--wave); }
  .steps::after { width: 2px; height: calc(var(--span, 0px) * var(--p, 0)); background: linear-gradient(180deg, var(--accent), var(--dot)); }
}

@media (max-width: 760px) {
  :root { --pill-h: 56px; }
  .menu-toggle { display: inline-flex; }
  .pill { padding-left: 18px; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--page);
    border: 1px solid var(--header-border); border-radius: 20px; padding: 6px 18px 18px;
    box-shadow: var(--shadow-pill-up);
    flex-direction: column; align-items: stretch; gap: 0; display: none;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .site-nav .btn { margin-top: 14px; padding: 13px 18px; font-size: 15px; border-radius: var(--r-btn); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .board-head { display: none; }
  .board-head + .board-row { border-top: 0; }
  .board-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "call booking" "quote money"; row-gap: 12px; }
  .c-money { min-width: 90px; }
  .log li { grid-template-columns: 78px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w { animation: none; }
  .msg { opacity: 1; transform: none; animation: none; }
  .live-dot { animation: none; }
  .hero::before, .hero-bg, .call-card { transform: none; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
  .js .ladder .bar, .js .board .money { width: var(--w, 38%); transition: none; }
  .btn-primary.btn-lg:hover { transform: none; }
}

/* Legal pages (privacy, terms) and the note beside the demo form */
.legal { padding: calc(var(--pill-h) + 12px + clamp(40px, 7vw, 80px)) 0 clamp(64px, 9vw, 112px); }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5.4vw, 52px); margin: 14px 0 12px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-nav { display: flex; align-items: center; gap: 22px; }
.legal-nav a { font-size: 14px; font-weight: 500; color: var(--text-2); }
.legal-nav a:hover { color: var(--accent-text); }
.form-note { font-size: 13px; line-height: 1.5; color: var(--dk-mute); }
.form-note a { color: var(--dot); text-decoration: underline; text-underline-offset: 2px; }
