/*
  Murmur: AI voice assistant landing page (Screenery template)
  World: a dark room at night with one living light. Near-black ink-teal ground, a tide-teal orb, a warm amber voice colour.
  Instrument Serif italics carry the voice; Space Grotesk carries everything that is read or operated.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Components: buttons, icons, segmented radios, stepper, chips, ticks, fields, toast
   4. Header
   5. Stage: orb (WebGL canvas, CSS fallback with states), orb tools, hero
   6. Demo: questions, offline alert, console, transcript
   7. How it works timeline
   8. Meeting notes document
   9. Integrations
  10. Privacy: lifespans and rules
  11. Pricing
  12. Waitlist form
  13. Footer
  14. Motion
  15. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --ink: #071216;        /* ground: ink with a drop of teal */
  --ink-1: #0b1a1f;      /* raised surfaces */
  --ink-2: #10242a;      /* wells, inputs */
  --line: #1d363d;       /* hairlines */
  --line-2: #2c4d55;     /* stronger rules, input borders */
  --paper: #e7eee9;      /* primary text */
  --mute: #a3b8b4;       /* secondary text, 8:1 on ink */
  --faint: #839c98;      /* tertiary text, 5.8:1 on ink */
  --tide: #5fd0c0;       /* the orb's light: listening, links, focus */
  --tide-deep: #1f6f69;
  --tide-wash: color-mix(in oklab, var(--tide) 12%, var(--ink));
  --ember: #f0a55b;      /* the voice: speaking, primary action */
  --ember-hi: #f6bd80;
  --ember-ink: #1c1005;  /* text on amber */
  --ember-wash: color-mix(in oklab, var(--ember) 12%, var(--ink));
  --rust: #f08a70;       /* errors and offline */
  --rust-wash: color-mix(in oklab, var(--rust) 12%, var(--ink));

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --t-h2: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --t-h1: clamp(3rem, 1.8rem + 4.6vw, 5.75rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --wrap: 1240px;

  /* Shape and depth */
  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;
  --r-pill: 999px;
  --shadow: 0 18px 40px -18px rgb(0 0 0 / 0.7), 0 2px 6px -2px rgb(0 0 0 / 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* exponential ease-out */
  --header-h: 64px;

  color-scheme: dark;
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--t-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  scrollbar-color: var(--line-2) var(--ink);
  accent-color: var(--tide);
  caret-color: var(--ember);
}
::selection { background: var(--ember); color: var(--ember-ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 12px; border: 3px solid var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.02; }
em { font-style: italic; color: var(--tide); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--tide); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.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 { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ember); color: var(--ember-ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-1); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s-4); }
.skip:hover { color: var(--ember-ink); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.tnum, time, output, .line__t, .ts, .due, .plan__num, .plan__total { font-variant-numeric: tabular-nums; }

/* ---------- 3. Components ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: 500 var(--t-sm)/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0 var(--s-4); font-size: var(--t-xs); }
.btn--amber { background: var(--ember); color: var(--ember-ink); box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.8); }
.btn--amber:hover { background: var(--ember-hi); color: var(--ember-ink); box-shadow: 0 12px 26px -10px rgb(0 0 0 / 0.85); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--tide); color: var(--paper); background: var(--tide-wash); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Segmented radio groups (orb states, billing) */
.seg, .bill {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.seg button, .bill button {
  min-height: 40px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--mute); font-size: var(--t-xs); font-weight: 500; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.seg button:hover, .bill button:hover { color: var(--paper); }
.seg button[aria-checked="true"], .bill button[aria-checked="true"] { background: var(--ink-2); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--paper); border-radius: var(--r-pill); cursor: pointer; }
.stepper button:hover { background: var(--tide-wash); }
.stepper button:disabled { color: var(--line-2); cursor: not-allowed; background: none; }
.stepper output { min-width: 2.5ch; text-align: center; font-weight: 600; }

/* Tick boxes (action items, consent) */
.tick { display: inline-flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; position: relative; }
.tick input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.tick__box {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.tick__box .ic { width: 16px; height: 16px; stroke-width: 2; }
.tick input:checked + .tick__box { background: var(--tide); border-color: var(--tide); color: var(--ink); }
.tick input:focus-visible + .tick__box { outline: 2px solid var(--ember); outline-offset: 3px; }
.tick:hover .tick__box { border-color: var(--tide); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--mute); font-size: var(--t-sm);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover span { border-color: var(--tide); color: var(--paper); }
.chip input:checked + span { background: var(--tide-wash); border-color: var(--tide); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: var(--s-5); z-index: 60;
  transform: translate(-50%, 160%); opacity: 0;
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font-size: var(--t-sm); font-weight: 500; box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  pointer-events: none; max-width: calc(100% - 2rem);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in oklab, var(--ink) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.top__in { height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; gap: var(--s-5); }
.mark { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--paper); text-decoration: none; font: italic 400 1.75rem/1 var(--serif); }
.mark svg { width: 28px; height: 28px; }
.mark__ring { fill: none; stroke: var(--tide); stroke-width: 1.5; }
.mark__core { fill: var(--ember); }
.mark:hover { color: var(--paper); }
.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a { color: var(--mute); text-decoration: none; font-size: var(--t-sm); padding: var(--s-2) 0; }
.nav a:hover { color: var(--paper); }
.status {
  display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--mute);
  padding: 0 var(--s-3); height: 32px; border-radius: var(--r-pill); border: 1px solid var(--line);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tide); outline: 3px solid color-mix(in oklab, var(--tide) 25%, transparent); }
.is-offline .status { color: var(--rust); border-color: color-mix(in oklab, var(--rust) 40%, var(--line)); }
.is-offline .status__dot { background: var(--rust); outline-color: color-mix(in oklab, var(--rust) 25%, transparent); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: none; place-items: center; cursor: pointer; }

/* ---------- 5. Stage ---------- */
.stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(100%, 1440px); margin-inline: auto;
  overflow-x: clip; /* the light may spill, the page may not scroll sideways */
}
/* The one light source spills onto the ground behind the orb */
.stage::before {
  content: ""; position: absolute; inset: -10% 40% 30% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tide) 14%, transparent), transparent 70%);
}
.stage__orb {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-5);
  padding: var(--s-5) var(--gutter);
}
.stage__flow { padding: 0 var(--gutter) var(--s-9) var(--s-5); }

/* Orb */
.orb {
  --halo: var(--tide);
  --level: 0;
  position: relative; width: min(100%, 62vh, 600px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.orb__halo {
  position: absolute; inset: -12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--halo) 28%, transparent), color-mix(in oklab, var(--halo) 6%, transparent) 55%, transparent 75%);
  transition: background 1.2s var(--ease);
}
.orb[data-state="speaking"] { --halo: var(--ember); }
.orb[data-state="thinking"] { --halo: color-mix(in oklab, var(--tide) 70%, var(--ember)); }
.is-offline .orb { --halo: #50615f; }
.orb__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl .orb__gl { opacity: 1; }
.gl .orb__css { opacity: 0; visibility: hidden; }

/* CSS orb: radial gradients, rings for listening, a conic sweep for thinking, amber for speaking */
.orb__css {
  position: absolute; inset: 21%; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgb(255 255 255 / 0.55), transparent 16%),
    radial-gradient(circle at 62% 70%, color-mix(in oklab, var(--ember) 40%, transparent), transparent 42%),
    radial-gradient(circle at 50% 50%, #8ee6d9 0%, var(--tide) 30%, var(--tide-deep) 62%, #0b2a2e 82%, #06181b 100%);
  box-shadow: 0 0 60px -6px color-mix(in oklab, var(--tide) 55%, transparent), inset 0 0 40px rgb(255 255 255 / 0.08);
  transform: scale(calc(1 + var(--level) * 0.08));
  transition: transform 0.12s linear, filter 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.orb__css::after { /* thinking sweep */
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 60%, rgb(255 255 255 / 0.35) 75%, transparent 90%);
  mix-blend-mode: soft-light; transition: opacity 0.6s var(--ease);
}
.orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--tide) 60%, transparent); opacity: 0; }
.orb[data-state="thinking"] .orb__css::after { opacity: 1; }
.orb[data-state="listening"] .orb__ring { opacity: 0.6; }
.orb[data-state="listening"] .orb__ring:nth-child(2) { inset: -10%; opacity: 0.35; }
.orb[data-state="listening"] .orb__ring:nth-child(3) { inset: -20%; opacity: 0.18; }
.orb[data-state="speaking"] .orb__css {
  background:
    radial-gradient(circle at 36% 30%, rgb(255 255 255 / 0.55), transparent 16%),
    radial-gradient(circle at 50% 50%, #ffe0b8 0%, var(--ember) 32%, #a8602a 64%, #3b1f0c 86%, #1a0e06 100%);
  box-shadow: 0 0 70px -4px color-mix(in oklab, var(--ember) 60%, transparent), inset 0 0 40px rgb(255 255 255 / 0.1);
}
.is-offline .orb__css { filter: grayscale(0.85) brightness(0.6); box-shadow: none; }

.orb__caption {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: var(--s-2); white-space: nowrap;
  font-size: var(--t-xs); color: var(--mute);
}
.orb__state { font: italic 400 1.35rem/1 var(--serif); color: var(--paper); }

html:not(.js) .orb-tools { visibility: hidden; }
.orb-tools { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); max-width: 100%; }
.mic { display: flex; align-items: center; gap: var(--s-3); }
.mic__meter { width: 72px; height: 6px; border-radius: 6px; background: var(--ink-2); overflow: hidden; opacity: 0; transition: opacity 0.4s var(--ease); }
.mic__meter span { display: block; height: 100%; width: 100%; background: var(--tide); transform-origin: left; transform: scaleX(0); }
.mic.is-live .mic__meter { opacity: 1; }
.mic.is-live .btn { border-color: var(--tide); background: var(--tide-wash); }
.mic__msg { font-size: var(--t-xs); color: var(--faint); text-align: center; max-width: 44ch; min-height: 2.6em; }
.mic__msg.is-error { color: var(--rust); }

/* Hero copy */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-5);
  padding: var(--s-8) 0;
}
.hero__title { font-size: var(--t-h1); max-width: 11ch; }
.hero__title em { color: var(--ember); }
.hero__lede { font-size: var(--t-lg); color: var(--mute); max-width: 36ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6); margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero__facts div { display: grid; gap: 2px; }
.hero__facts dt { font-size: var(--t-xs); color: var(--faint); }
.hero__facts dd { margin: 0; font-size: var(--t-sm); color: var(--paper); }

/* ---------- 6. Demo ---------- */
.demo {
  display: grid; gap: var(--s-5);
  padding: var(--s-6); border-radius: var(--r-3);
  background: var(--ink-1); border: 1px solid var(--line); box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.demo:focus { outline: none; }
.demo__head { display: grid; gap: var(--s-2); }
.demo__title { font: 400 var(--t-xl)/1.1 var(--serif); }
.demo__sub { color: var(--mute); font-size: var(--t-sm); max-width: 52ch; }

.qs { display: grid; gap: var(--s-2); }
.q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); text-align: left;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-2);
  color: var(--paper); font-size: var(--t-base); cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.q .ic { color: var(--tide); }
.q:hover { border-color: var(--tide); }
.q[aria-pressed="true"] { border-color: var(--ember); background: var(--ember-wash); }
.q[aria-pressed="true"] .ic { color: var(--ember); }
.q:disabled { cursor: not-allowed; color: var(--faint); border-color: var(--line); background: var(--ink-1); }
.q:disabled .ic { color: var(--faint); }

.offline {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-3); align-items: start;
  padding: var(--s-4); border-radius: var(--r-2);
  background: var(--rust-wash); border: 1px solid color-mix(in oklab, var(--rust) 45%, var(--line));
}
.offline > .ic { color: var(--rust); margin-top: 2px; }
.offline__title { font-weight: 600; color: var(--paper); }
.offline__text { color: var(--mute); font-size: var(--t-sm); }
.offline .btn { grid-column: 2; justify-self: start; }
.offline[hidden] { display: none; }
.offline.is-busy .btn .ic { animation: spin 0.9s linear infinite; }

.console { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-4); }
.console__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 44px; }
.phases { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); font-size: var(--t-xs); color: var(--faint); }
.phases li { display: inline-flex; align-items: center; gap: 6px; }
.phases li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color 0.3s var(--ease); }
.phases li.is-now { color: var(--paper); }
.phases li.is-now::before { background: var(--tide); outline: 3px solid color-mix(in oklab, var(--tide) 25%, transparent); }
.phases li[data-phase="speaking"].is-now::before { background: var(--ember); outline-color: color-mix(in oklab, var(--ember) 25%, transparent); }
.phases li.is-done { color: var(--mute); }
.phases li.is-done::before { background: var(--tide-deep); }
.wave { width: 120px; height: 32px; margin-left: auto; }
.console__stop[hidden] { display: none; }

.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); min-height: 9.5rem; }
.line { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: var(--s-3); row-gap: 2px; }
.line__t { grid-row: span 3; font-size: var(--t-xs); color: var(--faint); padding-top: 3px; }
.line__who { font-size: var(--t-xs); color: var(--mute); font-weight: 500; }
.line__say { font-size: var(--t-base); max-width: 60ch; }
.line--murmur .line__who { color: var(--ember); }
.line--murmur .line__say { font: 400 1.4rem/1.35 var(--serif); }
.line__src { font-size: var(--t-xs); color: var(--faint); padding-top: var(--s-1); }
.line.is-typing .line__say::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: blink 1s steps(2) infinite; }
.line--note .line__say { color: var(--mute); font-size: var(--t-sm); font-style: italic; }

/* ---------- Section scaffolding ---------- */
section:not(.stage) { padding: var(--s-9) 0; position: relative; }
.sect-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: 60ch; }
.sect-head h2 { font-size: var(--t-h2); }
.sect-head p { color: var(--mute); font-size: var(--t-lg); line-height: 1.5; max-width: 52ch; }
.sect-head--side { margin-bottom: 0; align-self: start; }
.sect-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5) var(--s-7); }
.sect-head--row > div { display: grid; gap: var(--s-4); }

/* ---------- 7. How it works ---------- */
.how { border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl {
  display: grid; grid-template-columns: 9rem 8rem minmax(0, 1fr); gap: var(--s-6); align-items: start;
  padding: var(--s-6) 0; border-top: 1px solid var(--line);
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__time { font-size: var(--t-sm); color: var(--ember); padding-top: 0.55rem; }
.tl__glyph { width: 8rem; height: auto; fill: none; stroke: var(--tide); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 0.3rem; }
.tl__glyph circle { fill: var(--ink); }
.tl__body { display: grid; gap: var(--s-3); max-width: 62ch; }
.tl__body h3 { font: 400 var(--t-xl)/1.1 var(--serif); }
.tl__body p { color: var(--mute); }

/* ---------- 8. Meeting notes ---------- */
.notes { background: linear-gradient(var(--ink), var(--ink-1) 30%, var(--ink-1) 70%, var(--ink)); }
.notes__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: var(--s-8); align-items: start; }
.notes .sect-head--side { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.notes__tip { font-size: var(--t-sm) !important; color: var(--faint) !important; }

.doc {
  background: var(--paper); color: #13262b; border-radius: var(--r-3);
  padding: clamp(1.25rem, 0.5rem + 3vw, 3rem); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.05);
  display: grid; gap: var(--s-6);
  --doc-mute: #3f5a5e;
  --doc-line: #c9d6d1;
  --doc-accent: #1a5f59;
}
.doc ::selection { background: var(--tide); color: var(--ink); }
.doc__head { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3) var(--s-4); align-items: start; padding-bottom: var(--s-5); border-bottom: 1px solid var(--doc-line); }
.doc__head h3 { font: 400 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1 var(--serif); grid-column: 1; }
.doc__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--t-sm); color: var(--doc-mute); }
.doc__copy { grid-column: 2; grid-row: 1 / span 2; color: #13262b; border-color: var(--doc-line); }
.doc__copy:hover { color: #13262b; background: #dce7e3; border-color: var(--doc-accent); }
.people { grid-column: 1 / -1; list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; }
.people li + li { margin-left: -6px; }
.av {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: oklch(0.82 0.07 var(--h)); color: oklch(0.28 0.06 var(--h));
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 0 0 2px var(--paper);
}
.av--s { width: 24px; height: 24px; font-size: 0.58rem; box-shadow: none; }

.doc__sec { display: grid; gap: var(--s-3); }
.doc__sec h4 { font: 600 var(--t-xs)/1.2 var(--sans); color: var(--doc-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.doc__sec > p { max-width: 65ch; }
.doc__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.doc__count { font-size: var(--t-sm); color: var(--doc-mute); }

.decisions, .actions { list-style: none; margin: 0; padding: 0; display: grid; }
.decisions li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--doc-line); }
.decisions li p { font: 400 1.3rem/1.3 var(--serif); }
.actions li {
  display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 5.5rem auto; gap: var(--s-3); align-items: center;
  padding: var(--s-3) 0; border-top: 1px solid var(--doc-line);
}
.actions .tick__box { border-color: #8aa29e; }
.actions .tick input:checked + .tick__box { background: var(--doc-accent); border-color: var(--doc-accent); color: var(--paper); }
.actions .tick input:checked ~ .tick__text { color: var(--doc-mute); text-decoration: line-through; text-decoration-color: #8aa29e; }
.owner { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); }
.due { font-size: var(--t-sm); color: var(--doc-mute); }
.ts {
  min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--doc-line);
  background: transparent; color: var(--doc-accent); font-size: var(--t-xs); font-weight: 600; cursor: pointer;
  position: relative;
}
.ts::before { content: ""; position: absolute; inset: -6px -2px; } /* 44px touch target */
.ts:hover { border-color: var(--doc-accent); }
.ts[aria-pressed="true"] { background: var(--doc-accent); color: var(--paper); border-color: var(--doc-accent); }

.excerpt { margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-2); background: #dbe6e2; display: grid; gap: var(--s-2); }
.excerpt__t { font-size: var(--t-xs); font-weight: 600; color: var(--doc-accent); }
.excerpt blockquote { margin: 0; }
.excerpt p { font-size: var(--t-sm); max-width: 70ch; }

/* ---------- 9. Integrations ---------- */
.int { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.int__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.int__grid button {
  display: grid; justify-items: start; align-content: start; gap: 2px; min-height: 8.5rem; padding: var(--s-5);
  background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; transition: background-color 0.3s var(--ease);
}
.int__grid button:hover { background: var(--ink-1); }
.int__grid button[aria-checked="true"] { background: var(--tide-wash); }
.glyph { width: 40px; height: 40px; fill: none; stroke: var(--tide); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-4); }
.int__grid button[aria-checked="true"] .glyph { stroke: var(--ember); }
.int__name { font-weight: 500; }
.int__kind { font-size: var(--t-xs); color: var(--faint); }
.int__detail { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); border-radius: var(--r-3); background: var(--ink-1); border: 1px solid var(--line); }
.int__big { width: 64px; height: 64px; fill: none; stroke: var(--ember); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-2); }
.int__detail h3 { font: 400 var(--t-xl)/1.1 var(--serif); }
.int__detail > p { color: var(--mute); }
.int__detail h4 { font-size: var(--t-xs); color: var(--faint); margin-top: var(--s-3); }
.int__detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.int__detail li { display: flex; gap: var(--s-3); align-items: baseline; font-size: var(--t-sm); }
.int__detail li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tide); transform: translateY(-2px); }

/* ---------- 10. Privacy ---------- */
.privacy { border-top: 1px solid var(--line); }
.life { margin: 0 0 var(--s-8); display: grid; gap: var(--s-3); --name: 7rem; --val: 17rem; }
.life figcaption { font-size: var(--t-sm); color: var(--mute); margin-bottom: var(--s-3); }
.life__scale { position: relative; height: 1.4em; margin-left: calc(var(--name) + var(--s-4)); margin-right: calc(var(--val) + var(--s-4)); font-size: var(--t-xs); color: var(--faint); }
.life__scale span { position: absolute; left: calc(var(--at) * 100%); transform: translateX(-50%); white-space: nowrap; }
.life__scale span:first-child { transform: none; }
.life__scale span:last-child { transform: translateX(-100%); }
.life__row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) var(--val); gap: var(--s-4); align-items: center; }
.life__name { font-weight: 500; }
.life__bar { position: relative; height: 10px; border-radius: 10px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.life__bar span { position: absolute; inset: 0 auto 0 0; width: calc(var(--to) * 100%); border-radius: 10px; background: linear-gradient(90deg, var(--tide), color-mix(in oklab, var(--tide) 60%, var(--ink))); }
.life__row--open .life__bar span { background: linear-gradient(90deg, var(--tide), var(--ember)); }
.life__val { font-size: var(--t-sm); color: var(--mute); }

.rules { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.rules div { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line-2); }
.rules dt { font: italic 400 1.6rem/1.1 var(--serif); color: var(--paper); }
.rules dd { margin: 0; color: var(--mute); font-size: var(--t-sm); max-width: 44ch; }

/* ---------- 11. Pricing ---------- */
.pricing { border-top: 1px solid var(--line); }
.pricing__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-4); }
.bill__save { color: var(--ember); margin-left: 4px; }
.seats { display: flex; align-items: center; gap: var(--s-3); }
.seats__label { font-size: var(--t-sm); color: var(--mute); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6);
  border-radius: var(--r-3); border: 1px solid var(--line); background: var(--ink);
}
.plan h3 { font: italic 400 2.2rem/1 var(--serif); }
.plan__for { color: var(--mute); font-size: var(--t-sm); min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; padding-top: var(--s-2); }
.plan__num { font: 400 3.6rem/1 var(--serif); }
.plan__per { color: var(--mute); font-size: var(--t-sm); }
.plan__total { font-size: var(--t-sm); color: var(--paper); min-height: 3em; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.plan__total b { color: var(--ember); font-weight: 500; }
.plan ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); font-size: var(--t-sm); flex: 1; }
.plan li { display: flex; gap: var(--s-3); align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 10px; height: 5px; border-left: 1.5px solid var(--tide); border-bottom: 1.5px solid var(--tide); transform: rotate(-45deg) translateY(-3px); }
.plan .btn { align-self: stretch; }
.plan--lit {
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--ember) 14%, var(--ink-1)), var(--ink-1) 70%);
  border-color: color-mix(in oklab, var(--ember) 45%, var(--line));
  box-shadow: var(--shadow);
}
.pricing__note { margin-top: var(--s-5); font-size: var(--t-xs); color: var(--faint); }

/* ---------- 12. Waitlist ---------- */
.waitlist { border-top: 1px solid var(--line); overflow-x: clip; }
.waitlist::before {
  content: ""; position: absolute; inset: 20% 50% 0 -10%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--ember) 9%, transparent), transparent);
}
.waitlist__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); }
.waitlist__plan { font-size: var(--t-sm) !important; color: var(--paper) !important; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-2); justify-self: start; }
.waitlist__plan[hidden] { display: none; }
.form { padding: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem); border-radius: var(--r-3); background: var(--ink-1); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__body { display: grid; gap: var(--s-5); }
.form__body[hidden] { display: none; }
.field { display: grid; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--t-sm); font-weight: 500; padding: 0; margin-bottom: var(--s-2); }
.field label { margin-bottom: 0; }
.field input, .select select {
  width: 100%; min-height: 50px; padding: 0 var(--s-4);
  background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-2);
  font: inherit; font-size: var(--t-base);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder { color: var(--faint); }
.field input:hover, .select select:hover { border-color: color-mix(in oklab, var(--tide) 50%, var(--line-2)); }
.field input:focus-visible, .select select:focus-visible { outline: none; border-color: var(--tide); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tide) 30%, transparent); }
.field input[aria-invalid="true"], .select select[aria-invalid="true"] { border-color: var(--rust); }
.select { position: relative; }
.select select { appearance: none; padding-right: var(--s-7); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select option { background: var(--ink-1); color: var(--paper); }
.field__err { font-size: var(--t-xs); color: var(--rust); min-height: 0; }
.field__err:empty { display: none; }
.tick--form .tick__text { font-size: var(--t-sm); color: var(--mute); }
.form__alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-2); background: var(--rust-wash); border: 1px solid color-mix(in oklab, var(--rust) 45%, var(--line)); font-size: var(--t-sm); }
.form__alert .ic { color: var(--rust); }
.form__alert[hidden] { display: none; }
.form__submit { justify-self: start; min-width: 14rem; }
.form__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--ember-ink) 30%, transparent); border-top-color: var(--ember-ink); animation: spin 0.8s linear infinite; }
.form.is-loading .form__spin { display: inline-block; }
.form.is-loading .form__submit { cursor: progress; opacity: 0.85; }
.form__done { display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-4) 0; }
.form__done[hidden] { display: none; }
.form__done:focus { outline: none; }
.done__orb { width: 72px; height: 72px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done__orb circle { stroke: var(--tide); stroke-width: 1.5; fill: var(--tide-wash); }
.done__orb path { stroke: var(--ember); stroke-width: 2.5; }
.form__done h3 { font: 400 var(--t-h2)/1 var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.form__done p { color: var(--mute); max-width: 48ch; }
.form__ref { font-size: var(--t-sm); }
.form__ref span { color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 13. Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); background: var(--ink); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.foot__brand { display: grid; gap: var(--s-3); align-content: start; color: var(--mute); }
.foot__word { font: italic 400 clamp(3rem, 2rem + 4vw, 5.5rem)/0.9 var(--serif); color: var(--paper); }
.foot__addr { font-size: var(--t-sm); line-height: 1.7; }
.foot__col { display: grid; gap: var(--s-2); align-content: start; }
.foot__col h2 { font: 500 var(--t-sm)/1.4 var(--sans); color: var(--paper); margin-bottom: var(--s-2); }
.foot__col a { color: var(--mute); text-decoration: none; font-size: var(--t-sm); padding: var(--s-1) 0; }
.foot__col a:hover { color: var(--paper); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--faint); }

/* ---------- 14. Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.035); } }
@keyframes ripple { from { transform: scale(0.92); opacity: 0.7; } to { transform: scale(1.5); opacity: 0; } }
@keyframes sweep { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
  .orb[data-state="idle"] .orb__css { animation: breathe 5.5s ease-in-out infinite; }
  .orb[data-state="listening"] .orb__ring { animation: ripple 2.4s var(--ease) infinite; opacity: 1; inset: 0; }
  .orb[data-state="listening"] .orb__ring:nth-child(2) { animation-delay: 0.8s; inset: 0; opacity: 1; }
  .orb[data-state="listening"] .orb__ring:nth-child(3) { animation-delay: 1.6s; inset: 0; opacity: 1; }
  .orb[data-state="thinking"] .orb__css::after { animation: sweep 1.6s linear infinite; }

  /* Sections settle in as they arrive. Visible by default, only enhanced where scroll timelines exist. */
  @supports (animation-timeline: view()) {
    .tl, .plan, .rules div, .life__row {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes rise { from { opacity: 0.25; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .orb__css { transform: none !important; }
  .line.is-typing .line__say::after { display: none; }
}

/* ---------- 15. Narrow screens ---------- */
@media (max-width: 1180px) {
  .nav { gap: var(--s-4); }
  .status { display: none; }
}
@media (max-width: 1000px) {
  :root { --header-h: 60px; }
  .menu-btn { display: grid; }
  .top .btn--light { margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) 0; font-size: var(--t-lg); border-bottom: 1px solid var(--line); }
  .status { display: inline-flex; margin-left: auto; }
  .top .btn--light { margin-left: 0; }

  /* Stage becomes one column: hero, orb, demo */
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "orb" "demo"; }
  .stage::before { inset: 10% -30% 40% -30%; }
  .stage__flow { display: contents; }
  .hero { grid-area: hero; min-height: 0; padding: var(--s-7) var(--gutter) var(--s-4); }
  .stage__orb { grid-area: orb; position: relative; top: 0; height: auto; min-height: 0; padding: var(--s-4) var(--gutter) var(--s-5); }
  .orb { width: min(100%, 460px); }
  .demo { grid-area: demo; margin: 0 var(--gutter) var(--s-8); }

  .notes__grid, .waitlist__grid, .int { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .notes .sect-head--side { position: static; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .sect-head--row { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  section:not(.stage) { padding: var(--s-8) 0; }
  .sect-head { margin-bottom: var(--s-6); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .tl__time { padding: 0; }
  .tl__glyph { width: 7rem; }
  .actions li { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s-2); }
  .actions .tick { grid-column: 1 / -1; }
  .actions .owner { grid-column: 1; }
  .actions .due { grid-column: 1; grid-row: 3; }
  .actions .ts { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .doc__head { grid-template-columns: minmax(0, 1fr); }
  .doc__copy { grid-column: 1; grid-row: auto; justify-self: start; }
  .decisions li { flex-direction: column; gap: var(--s-2); }
  .int__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int__grid button { min-height: 0; padding: var(--s-4); }
  .glyph { margin-bottom: var(--s-2); }
  .life { --name: 5.5rem; }
  .life__scale { margin-right: 0; }
  .life__row { grid-template-columns: var(--name) minmax(0, 1fr); row-gap: var(--s-1); }
  .life__val { grid-column: 2; font-size: var(--t-xs); }
  .rules { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .top .btn--light { display: none; }
  .hero__title { font-size: clamp(2.7rem, 1.4rem + 7vw, 3.6rem); }
  .hero__lede { font-size: var(--t-base); }
  .hero__cta .btn { flex: 1 1 auto; }
  .seg button { padding: 0 var(--s-3); }
  .demo { padding: var(--s-5) var(--s-4); }
  .line { grid-template-columns: minmax(0, 1fr); }
  .line__t { grid-row: auto; padding: 0; }
  .line--murmur .line__say { font-size: 1.25rem; }
  .console__bar { flex-wrap: wrap; row-gap: var(--s-2); }
  .phases { gap: var(--s-3); }
  .console__stop { margin-left: auto; }
  .wave { order: 3; width: 100%; height: 24px; margin: 0; }
  .pricing__controls { justify-content: flex-start; }
  .bill { width: 100%; }
  .bill button { flex: 1; }
  .form__submit { justify-self: stretch; }
  .life__scale { display: none; }
  .bill button { padding: 0 var(--s-3); }
}
@media (max-width: 380px) {
  .seg { flex-wrap: wrap; justify-content: center; border-radius: var(--r-2); }
}
