/* VoiceTaw landing page
   Direction: an Apple-style product page. System type (SF on Apple devices),
   quiet surfaces, one brand violet, and a phone you can actually press.
   Motion tokens follow Emil Kowalski's curves; every loop pauses off-screen. */

:root {
  --bg: #FBFAFE;
  --bg-2: #F3F1FA;
  --surface: #FFFFFF;
  --surface-2: #ECE9F7;
  --ink: #17142E;
  --ink-2: #56526D;
  --line: #E4E0F0;
  --line-strong: #D3CDE8;

  --accent: #6D54FE;          /* brand accent: strokes, icons */
  --accent-text: #5237F0;     /* accent as text, 6.6:1 on white */
  --accent-fill: #6D54FE;     /* solid fill behind white text, 4.8:1 */
  --accent-fill-hover: #5B43EE;
  --accent-soft: #ECE8FF;
  --grad: linear-gradient(135deg, #7C62FF 0%, #3424BA 100%);
  --grad-deep: linear-gradient(150deg, #5B43EE 0%, #3424BA 100%); /* white text stays above 6:1 */

  --live: #E5484D;
  --ok: #0F7A50;   --ok-bg: #E1F4EB;
  --fail: #B42A30; --fail-bg: #FBE5E6;
  --pending: #8A4B00; --pending-bg: #FBEBD6;
  --focus: #5237F0;

  --shadow-1: 0 1px 2px rgba(23, 20, 46, .05), 0 8px 24px -12px rgba(23, 20, 46, .14);
  --shadow-device: 0 50px 80px -40px rgba(40, 24, 140, .45), 0 20px 30px -20px rgba(23, 20, 46, .35);

  /* Inside the phone mockups */
  --app-bg: #F6F5FB;
  --app-card: #FFFFFF;
  --app-ink: #17142E;
  --app-ink-2: #5E5A78;
  --app-line: #E6E3F2;

  /* Type: the platform font first (SF Pro on Apple devices) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion (curves from the design-engineering skill, not hand-rolled) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: var(--ease-out);   /* upgraded to a real spring below where linear() exists */
  --spring-dur: 300ms;
  --dur-press: 160ms;
  --dur-fast: 150ms;
  --dur-ui: 200ms;
  --dur-move: 250ms;

  --radius-lg: 24px;
  --radius-md: 16px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

/* Spring { duration: 0.5, bounce: 0.2 } (damping ratio 0.8), sampled into linear(). */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.052, 0.17, 0.316, 0.463, 0.597, 0.712, 0.804, 0.875, 0.927, 0.963, 0.987, 1.002, 1.011, 1.014, 1.015, 1.014, 1.012, 1.01, 1.008, 1.006, 1.004, 1.003, 1.002, 1);
    --spring-dur: 670ms;
  }
}
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0C1A;
    --bg-2: #14121F;
    --surface: #1A1729;
    --surface-2: #24203A;
    --ink: #F2F0FA;
    --ink-2: #ADA8C6;
    --line: #2A2640;
    --line-strong: #3A3556;

    --accent: #8F7BFF;
    --accent-text: #A897FF;
    --accent-soft: #272153;
    --ok: #5BD3A4;   --ok-bg: rgba(91, 211, 164, .13);
    --fail: #FF8A8F; --fail-bg: rgba(255, 138, 143, .13);
    --pending: #F3B562; --pending-bg: rgba(243, 181, 98, .13);
    --focus: #B5A8FF;

    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 30px -16px rgba(0, 0, 0, .7);
    --shadow-device: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(143, 123, 255, .14);

    --app-bg: #0B0A14;
    --app-card: #1A1830;
    --app-ink: #F2F0FA;
    --app-ink-2: #A6A1C2;
    --app-line: #2B2845;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;   /* 17px, the iOS body size */
  line-height: 1.5;
  letter-spacing: -.003em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
code { font-family: var(--mono); font-size: .88em; background: var(--accent-soft); color: var(--ink); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, .brand, .btn { font-family: var(--font-display); }
button, summary, label[for] { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; 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: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: .7em 1em; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 50px; padding: 0 1.4em;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-quiet { color: var(--accent-text); padding: 0 .9em; }
.btn-quiet svg { width: 1.05em; height: 1.05em; transition: transform var(--dur-ui) var(--ease-out); }
.btn-light { background: #fff; color: #2A1D9E; }
.btn-small { min-height: 44px; padding: 0 1.05em; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-fill-hover); }
  .btn-quiet:hover { background: var(--accent-soft); }
  .btn-quiet:hover svg { transform: translateX(2px); }
  .btn-light:hover { background: #F1EEFF; }
}

/* ---------- Header: a translucent layer; the edge only shows once content scrolls under it ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--line); opacity: 0; transition: opacity var(--dur-ui) ease;
}
.site-header[data-scrolled]::after { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .85em; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--ink); background: var(--surface-2); } }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.lang-toggle button {
  position: relative; min-width: 44px; height: 36px; padding: 0 .6em; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: .875rem; letter-spacing: .01em;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.lang-toggle button::after { content: ""; position: absolute; inset: -4px 0; } /* 44px tall hit area */
.lang-toggle button:active { transform: scale(.97); }
.lang-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 20, 46, .16); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
  .header-actions { gap: 8px; }
  .btn-small { padding: 0 .9em; font-size: .9rem; }
}

/* ---------- Type ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 44rem; }
.section-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.06; letter-spacing: -.028em; font-weight: 700; text-wrap: balance;
}
.section-lede { margin-top: 18px; max-width: 36em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.sub-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title {
  font-size: clamp(2.75rem, 1.3rem + 4.6vw, 5rem);
  line-height: 1.02; letter-spacing: -.038em; font-weight: 700;
  text-wrap: balance;
}
.hero-lede { margin-top: 24px; max-width: 32em; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: .9375rem; color: var(--ink-2); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
}
@media (max-width: 520px) {
  .hero-ctas .btn-primary { flex: 1 1 100%; }
  .hero-ctas .btn-quiet { margin-left: -.9em; }
}

/* ---------- Device (shared by both mockups) ---------- */
.device {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 300 / 620;
  font-size: calc(var(--w) / 22);
  padding: .45em;
  border-radius: 3.1em;
  background: linear-gradient(145deg, #34303F, #131119 42%, #26222F);
  box-shadow: var(--shadow-device), inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .35);
}
.device::before, .device::after { content: ""; position: absolute; width: .22em; border-radius: .2em; background: #26222F; }
.device::before { right: -.2em; top: 25%; height: 11%; }           /* side button */
.device::after { left: -.2em; top: 19%; height: 5%; box-shadow: 0 2.6em 0 #26222F, 0 5em 0 #26222F; } /* action + volume */
.screen { position: relative; height: 100%; border-radius: 2.65em; overflow: hidden; }
.home-indicator { position: absolute; left: 50%; bottom: .55em; width: 8.4em; height: .3em; margin-left: -4.2em; border-radius: 1em; background: currentColor; opacity: .55; }

.island {
  position: absolute; z-index: 3; left: 50%; top: .75em;
  width: 12.4em; height: 2.15em; margin-left: -6.2em;
  display: flex; align-items: center; justify-content: space-between; padding: 0 .9em;
  border-radius: 1.1em; background: #000; color: #fff;
  font-size: 1em; font-weight: 600; font-variant-numeric: tabular-nums;
  clip-path: inset(0 3em round 1.1em);  /* resting island; expands for the Live Activity */
  transition: clip-path var(--dur-ui) var(--ease-out);
}
.island-l { display: inline-flex; align-items: center; gap: .4em; font-size: .8em; }
.island-l, .island-r { opacity: 0; transition: opacity 100ms ease; }

.rec-dot { display: inline-block; flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--live); }

.wave { display: flex; align-items: center; justify-content: center; gap: .22em; }
.wave i { display: block; width: .24em; height: 100%; border-radius: 1em; background: currentColor; transform: scaleY(.18); }
.wave-sm { height: 1em; gap: .16em; color: #B9ACFF; }
.wave-sm i { width: .18em; }

@keyframes bar { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes pulse { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.32); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero demo ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 22px; justify-self: center; }
.demo-cap { max-width: 19rem; text-align: center; font-size: .9375rem; color: var(--ink-2); text-wrap: balance; }

.app-screen { display: flex; flex-direction: column; background: var(--app-bg); color: var(--app-ink); }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 1.2em 1.75em 0; font-size: .78em; font-weight: 600; }
.sb-icons { display: flex; gap: .3em; align-items: flex-end; }
.sb-icons i { display: block; width: .3em; background: currentColor; border-radius: 1px; }
.sb-icons i:nth-child(1) { height: .5em; } .sb-icons i:nth-child(2) { height: .72em; } .sb-icons i:nth-child(3) { width: 1.5em; height: .72em; border-radius: .22em; }
.app-title { margin: 1.9em 0 0; padding: 0 .8em; font-family: var(--font-display); font-size: 1.9em; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }

.rec-area { display: flex; flex-direction: column; align-items: center; margin-top: 1.4em; }
.rec-state { display: grid; justify-items: center; height: 1.4em; font-size: .85em; font-weight: 600; color: var(--app-ink-2); }
.rec-state > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .4em; transition: opacity var(--dur-fast) ease; }
.rec-state-live { opacity: 0; color: var(--app-ink); }
.rec-timer { font-variant-numeric: tabular-nums; }

.rec-wrap { position: relative; display: grid; place-items: center; width: 11em; height: 11em; margin-top: .4em; }
.rec-pulse { position: absolute; inset: .8em; border-radius: 50%; background: color-mix(in srgb, var(--accent) 34%, transparent); opacity: 0; }
.rec-btn {
  position: relative; display: grid; place-items: center;
  width: 9.4em; height: 9.4em; padding: 0; border: 0; border-radius: 50%;
  background: var(--grad); color: #fff;
  box-shadow: 0 1.1em 2em -.9em rgba(52, 36, 186, .75), inset 0 .12em .25em rgba(255, 255, 255, .35);
  transition: transform var(--dur-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.rec-btn:active { transform: scale(.97); }
.rec-btn:focus-visible { outline-offset: 5px; border-radius: 50%; }
.rec-mic, .rec-stop { grid-area: 1 / 1; transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out); }
.rec-mic { width: 3.4em; height: 3.4em; }
.rec-stop { width: 2.9em; height: 2.9em; border-radius: .6em; background: #fff; opacity: 0; transform: scale(.9); filter: blur(2px); }

.wave-app { width: 100%; height: 2.2em; margin-top: .7em; color: var(--accent); opacity: .35; transition: opacity var(--dur-ui) ease; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; margin-top: .9em; padding: 0 .8em; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: .35em;
  height: 2.35em; padding: 0 .85em 0 .6em; border: 0; border-radius: 999px;
  font-size: .8em; font-weight: 600;
  background: var(--app-card); color: var(--app-ink-2); box-shadow: inset 0 0 0 1px var(--app-line);
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.chip::after { content: ""; position: absolute; inset: -1em -.15em; } /* 44px touch target */
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent-fill); color: #fff; box-shadow: none; }
.chip-mark { display: grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip-mark svg { width: .95em; height: .95em; opacity: 0; transform: scale(.9); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.chip[aria-pressed="true"] .chip-mark { box-shadow: none; }
.chip[aria-pressed="true"] .chip-mark svg { opacity: 1; transform: none; }

.note {
  margin: auto .9em 1.9em; padding: .85em .95em .7em;
  border-radius: 1.2em; background: var(--app-card); box-shadow: inset 0 0 0 1px var(--app-line);
  min-height: 9.4em;
}
.note-text { min-height: 2.7em; font-size: .95em; font-weight: 600; line-height: 1.38; letter-spacing: -.01em; }
.word { display: inline-block; }
.word.trig { padding: 0 .22em; margin-left: -.22em; border-radius: .3em; transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease; }
.word.trig.is-trigger { background: var(--accent-fill); color: #fff; }
.note-text[data-live] .word { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), filter 240ms var(--ease-out), background-color var(--dur-ui) ease, color var(--dur-ui) ease; }
@starting-style {
  .note-text[data-live] .word { opacity: 0; transform: translateY(.3em); filter: blur(2px); }
}
.note-rule { min-height: 1.35em; margin-top: .3em; font-size: .72em; color: var(--app-ink-2); transition: opacity var(--dur-ui) ease; }
.note-rule:empty { opacity: 0; }
.deliveries { margin-top: .45em; }
.delivery { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .45em 0 .2em; border-top: 1px solid var(--app-line); font-size: .78em; font-weight: 600; }
.deliveries[data-live] .delivery { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
@starting-style {
  .deliveries[data-live] .delivery { opacity: 0; transform: translateY(.35em); }
}
.delivery-status { display: inline-flex; align-items: center; gap: .3em; color: var(--ok); transition: color var(--dur-ui) ease; }
.delivery-status svg { width: 1.1em; height: 1.1em; }
.delivery[data-status="sending"] .delivery-status { color: var(--app-ink-2); }
.delivery[data-status="sending"] svg { display: none; }
.spinner { display: none; width: .95em; height: .95em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.delivery[data-status="sending"] .spinner { display: block; animation: spin 700ms linear infinite; }

/* Recording state */
.demo[data-phase="recording"] .island { clip-path: inset(0 0 round 1.1em); transition: clip-path var(--spring-dur) var(--spring); }
.demo[data-phase="recording"] .island-l,
.demo[data-phase="recording"] .island-r { opacity: 1; transition: opacity var(--dur-fast) ease 120ms; }
.demo[data-phase="recording"] .rec-dot { animation: blink 1.4s ease-in-out infinite; }
.demo[data-phase="recording"] .rec-state-idle { opacity: 0; }
.demo[data-phase="recording"] .rec-state-live { opacity: 1; }
.demo[data-phase="recording"] .rec-mic { opacity: 0; transform: scale(.9); filter: blur(2px); }
.demo[data-phase="recording"] .rec-stop { opacity: 1; transform: none; filter: none; }
.demo[data-phase="recording"] .rec-pulse { animation: pulse 1.8s var(--ease-out) infinite; }
.demo[data-phase="recording"] .wave-app { opacity: 1; }
.demo[data-phase="recording"] .wave i { animation: bar 1.05s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: .85s; }
.wave i:nth-child(3n+1) { animation-duration: 1.25s; }
.wave i:nth-child(4n) { animation-delay: -.4s; }
.wave i:nth-child(5n) { animation-delay: -.7s; }
.wave i:nth-child(7n) { animation-delay: -.2s; }

@media (min-width: 1200px) { .demo .device { --w: 320px; } }
@media (min-width: 961px) and (max-width: 1120px) { .demo .device { --w: 280px; } }
@media (max-width: 960px) { .demo { margin-top: 16px; } }
@media (max-width: 400px) { .demo .device { --w: min(290px, 78vw); } }

/* ---------- How it works: an editorial list, heading pinned beside it ---------- */
.how { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 104px; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 16px; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { grid-row: span 2; padding-top: .35em; font-family: var(--mono); font-size: .875rem; font-weight: 600; color: var(--accent-text); letter-spacing: .02em; }
.step h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.022em; font-weight: 650; }
.step p { margin-top: 8px; max-width: 34em; color: var(--ink-2); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
}

/* ---------- Destinations ---------- */
.dest { background: var(--bg-2); }
.dest-table { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.dest-row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.dest-name { display: flex; align-items: center; gap: 12px; font-size: 1.3125rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 650; }
.dest-name svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.dest-desc { color: var(--ink-2); max-width: 28em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: .28em .7em; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; font-weight: 500; }
.tags .tags-more { background: transparent; box-shadow: none; color: var(--ink-2); padding-left: .2em; }
@media (max-width: 900px) {
  .dest-row { grid-template-columns: 1fr; gap: 8px; }
  .dest-row .tags { margin-top: 8px; }
}

.format { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: clamp(64px, 8vw, 104px); }
.format-copy p { margin-top: 12px; max-width: 30em; color: var(--ink-2); }

/* Segmented control: an accent copy of the labels, clipped to the active segment.
   Text and fill change together because it is one element being revealed. */
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { min-height: 44px; padding: 0 1.25em; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 1rem; }
.seg-active {
  position: absolute; inset: 4px; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 999px; background: var(--accent-fill); color: #fff; font-weight: 600; font-size: 1rem;
  pointer-events: none;
  transition: clip-path var(--dur-move) var(--ease-in-out);
}
.seg-active > span { display: grid; place-items: center; padding: 0 1.25em; white-space: nowrap; }
.seg-active[data-active="0"] { clip-path: inset(0 66.667% 0 0 round 999px); }
.seg-active[data-active="1"] { clip-path: inset(0 33.333% 0 33.333% round 999px); }
.seg-active[data-active="2"] { clip-path: inset(0 0 0 66.667% round 999px); }

.payload { display: grid; gap: 12px; padding: clamp(18px, 2.5vw, 28px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.payload-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-bottom: 4px; }
.payload-dest { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 1.0625rem; }
.payload-dest svg { width: 20px; height: 20px; color: var(--accent); }
.payload-what { font-size: .9375rem; color: var(--ink-2); }
.payload-part { position: relative; border-radius: var(--radius-md); background: var(--bg-2); padding: 16px 18px; }
.payload-part > :not(.part-off) { transition: opacity var(--dur-ui) ease; }
.payload-text { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.payload-text svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.payload-audio { display: flex; align-items: center; gap: 14px; }
.file-glyph { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--grad); color: #fff; }
.file-glyph svg { width: 22px; height: 22px; }
.file-meta { display: grid; gap: 6px; min-width: 0; flex: 1; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.file-bars i { display: block; width: 3px; height: 45%; border-radius: 2px; background: color-mix(in srgb, var(--accent) 65%, transparent); }
.file-bars i:nth-child(odd) { height: 70%; } .file-bars i:nth-child(3n) { height: 100%; } .file-bars i:nth-child(4n) { height: 30%; } .file-bars i:nth-child(5n+2) { height: 85%; }
.file-len { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.part-off {
  position: absolute; top: 10px; right: 12px;
  padding: .15em .6em; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .8125rem; font-weight: 600; color: var(--ink-2);
  opacity: 0; transition: opacity var(--dur-ui) ease;
}
.payload[data-show="text"] [data-part="audio"] > :not(.part-off),
.payload[data-show="audio"] [data-part="text"] > :not(.part-off) { opacity: .32; }
.payload[data-show="text"] [data-part="audio"] .part-off,
.payload[data-show="audio"] [data-part="text"] .part-off { opacity: 1; }
@media (max-width: 860px) { .format { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .seg button, .seg-active > span { padding: 0 .9em; } }

/* ---------- Routing ---------- */
.routes { display: grid; gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.route { display: grid; grid-template-columns: minmax(0, 1.15fr) 96px minmax(0, 1fr); align-items: center; }
.said {
  padding: 20px 24px; border-radius: 24px 24px 24px 6px;
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: clamp(1.1875rem, 1rem + .9vw, 1.5rem); line-height: 1.3; letter-spacing: -.018em; font-weight: 600;
}
.said::before { content: "«"; color: var(--ink-2); } .said::after { content: "»"; color: var(--ink-2); }
:root[lang="en"] .said::before { content: "\201C"; } :root[lang="en"] .said::after { content: "\201D"; }
.trigger { padding: .02em .3em .06em; border-radius: .3em; background: var(--accent-fill); color: #fff; }
.route-line { position: relative; height: 2px; margin: 0 14px; background: var(--accent); clip-path: inset(-8px -8px -8px 0); }
.route-line::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.route-to { display: grid; gap: 10px; }
.route-rule { color: var(--ink-2); font-size: 1rem; }
.route-dests { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-on { display: inline-flex; align-items: center; gap: .35em; padding: .4em .95em .4em .75em; border-radius: 999px; background: var(--accent-fill); color: #fff; font-weight: 600; font-size: 1rem; }
.tag-on svg { width: 1em; height: 1em; }
.aside { margin-top: 40px; max-width: 42em; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink-2); }
.aside a { font-weight: 600; white-space: nowrap; }

/* Arrows draw once when the examples scroll in (explanatory, marketing-only). */
/* Only examples confirmed off-screen at load are hidden (data-pending), so content never depends on the observer firing. */
.routes[data-reveal] .route-line { transition: clip-path 520ms var(--ease-in-out); }
.routes[data-reveal] .route-to { transition: opacity 300ms var(--ease-out) 380ms, transform 300ms var(--ease-out) 380ms; }
.routes[data-reveal] .route:nth-child(2) .route-line { transition-delay: 120ms; }
.routes[data-reveal] .route:nth-child(2) .route-to { transition-delay: 500ms; }
.routes[data-pending] .route-line { clip-path: inset(-8px 100% -8px 0); }
.routes[data-pending] .route-to { opacity: 0; transform: translateX(-6px); }

@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; }
  .route-line { width: 2px; height: 32px; margin: 0 0 0 30px; clip-path: inset(0 -8px -8px -8px); }
  .route-line::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); }
  .routes[data-pending] .route-line { clip-path: inset(0 -8px 100% -8px); }
  .routes[data-pending] .route-to { transform: translateY(-6px); }
  .route-to { padding-top: 12px; }
  .said { padding: 16px 20px; }
}

/* ---------- History ---------- */
.history-section { background: var(--bg-2); }
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-reverse .split-head { order: 2; position: static; align-self: center; }
.history { order: 1; max-width: 34rem; width: 100%; padding: 22px clamp(18px, 3vw, 28px) 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.history-meta { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.history-note { margin-top: 6px; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.history-list { margin-top: 16px; }
.history-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.h-dest { font-weight: 600; }
.h-right { display: inline-flex; align-items: center; gap: 10px; }
.h-resend { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-weight: 600; font-size: .9375rem; }
.h-resend svg { width: 16px; height: 16px; }
.status { display: inline-flex; align-items: center; gap: .45em; padding: .22em .7em; border-radius: 999px; font-size: .875rem; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); background: var(--ok-bg); }
.status.fail { color: var(--fail); background: var(--fail-bg); }
.status.pending { color: var(--pending); background: var(--pending-bg); }
.history-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.history-actions > span { display: inline-flex; align-items: center; gap: 6px; padding: .4em .85em; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: .9375rem; }
.history-actions svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-head { order: 0; }
}

/* ---------- Privacy: the one inverted band ---------- */
.privacy { background: #14112A; color: #F2F0FA; }
@media (prefers-color-scheme: dark) { .privacy { background: #1B1736; } }
.privacy-title { max-width: 13em; font-size: clamp(2.25rem, 1.2rem + 4vw, 4.25rem); line-height: 1.03; letter-spacing: -.038em; font-weight: 700; text-wrap: balance; }
.privacy-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.privacy-points > div { padding: 24px 0 28px; border-top: 1px solid rgba(201, 190, 255, .22); }
.privacy-points dt { font-size: 1.25rem; font-weight: 650; letter-spacing: -.018em; font-family: var(--font-display); }
.privacy-points dd { margin-top: 6px; max-width: 30em; color: #C9C4E6; }
@media (max-width: 640px) { .privacy-points { grid-template-columns: 1fr; } }

/* ---------- Start anywhere ---------- */
.anywhere-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.lock-figure { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.device-lock { --w: 270px; }
.lock-cap { max-width: 20rem; text-align: center; font-size: .9375rem; color: var(--ink-2); text-wrap: pretty; }
.lock-cap strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1rem; }

.lock-screen { display: flex; flex-direction: column; align-items: center; padding: 0 .8em; color: #fff; background: linear-gradient(165deg, #6E57F7 0%, #4430CF 52%, #241883 100%); }
.island-compact { width: 8.2em; margin-left: -4.1em; padding: 0 .75em; clip-path: none; }
.island-compact .rec-dot { width: .6em; height: .6em; }
.island-compact .island-timer { font-size: .8em; }
.lock-top { display: flex; flex-direction: column; align-items: center; margin-top: 3.6em; }
.lock-glyph { width: 1.05em; height: 1.05em; opacity: .9; }
.lock-date { margin-top: .5em; font-size: .9em; font-weight: 600; opacity: .9; }
.lock-time { font-family: var(--font-display); font-size: 4.8em; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.live-activity { width: 100%; margin: auto 0 2.6em; padding: .85em .9em .7em; border-radius: 1.5em; background: rgba(10, 8, 30, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.la-row { display: flex; align-items: center; gap: .6em; }
.la-icon { width: 2.2em; height: 2.2em; border-radius: .55em; }
.la-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.la-label { display: inline-flex; align-items: center; gap: .35em; font-size: .8em; font-weight: 600; }
.la-app { font-size: .72em; opacity: .72; }
.la-timer { margin-left: auto; font-size: 1.4em; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.la-stop { display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--live); }
.la-stop span { width: .75em; height: .75em; border-radius: .15em; background: #fff; }
.wave-la { height: 1.5em; margin-top: .5em; color: #C9BEFF; }
.wave-la i { width: .2em; }
.lock-figure .rec-dot { animation: blink 1.4s ease-in-out infinite; }
.lock-figure .wave i { animation: bar 1.05s ease-in-out infinite; }
.lock-figure[data-paused] .rec-dot,
.lock-figure[data-paused] .wave i { animation-play-state: paused; }

.triggers { margin-top: 36px; border-top: 1px solid var(--line); }
.triggers li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.triggers svg { grid-row: span 2; width: 24px; height: 24px; margin-top: 1px; color: var(--accent); }
.triggers h3 { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.3; font-weight: 650; }
.triggers p { margin-top: 2px; color: var(--ink-2); }
@media (max-width: 860px) {
  .anywhere-grid { grid-template-columns: 1fr; }
  .lock-figure { order: 2; }
}
@media (max-width: 400px) { .device-lock { --w: min(260px, 72vw); } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 0; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); letter-spacing: -.015em;
  transition: color var(--dur-fast) ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover { color: var(--accent-text); } }
.faq-list summary svg { width: 22px; height: 22px; flex: none; color: var(--accent); transition: transform var(--dur-ui) var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 48px 24px 0; max-width: 40em; color: var(--ink-2); }
@supports selector(::details-content) {
  .faq-list details::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size var(--dur-ui) var(--ease-out), opacity var(--dur-ui) ease, content-visibility var(--dur-ui) allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 860px) { .faq-a { padding-right: 0; } }

/* ---------- Waitlist ---------- */
.waitlist { padding: var(--section) 0; }
.waitlist-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 6vw, 80px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--grad-deep); color: #fff;
}
.wl-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 28px -12px rgba(0, 0, 0, .55); }
.wl-title { margin-top: 28px; max-width: 14em; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem); line-height: 1.05; letter-spacing: -.032em; text-wrap: balance; }
.wl-lede { margin-top: 16px; max-width: 30em; color: rgba(255, 255, 255, .92); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); text-wrap: pretty; }
.wl-form { width: 100%; max-width: 500px; margin-top: 36px; text-align: left; }
.wl-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; }
.wl-row { display: flex; gap: 10px; }
.wl-row input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff;
  font: inherit; font-size: 1.0625rem;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.wl-row input::placeholder { color: rgba(255, 255, 255, .78); }
.wl-row input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-color: #fff; }
.wl-row input[aria-invalid="true"] { border-color: #FFD1D3; background: rgba(229, 72, 77, .24); }
.waitlist .btn:focus-visible { outline-color: #fff; }
.btn[disabled] { opacity: .8; cursor: progress; }
.btn[disabled]:active { transform: none; }
.wl-error { min-height: 1.5em; margin-top: 10px; font-size: 1rem; font-weight: 600; color: #FFE3E4; }
.wl-error:not(:empty)::before { content: "! "; font-weight: 800; }
.wl-privacy { margin-top: 4px; font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.wl-thanks {
  display: flex; align-items: center; gap: 14px; max-width: 500px; margin-top: 36px; padding: 18px 22px;
  border-radius: 20px; text-align: left; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
@starting-style { .wl-thanks { opacity: 0; transform: translateY(6px); } }
.wl-thanks:focus { outline: none; }
.wl-thanks:focus-visible { outline: 3px solid #fff; }
.wl-thanks svg { width: 36px; height: 36px; flex: none; padding: 7px; border-radius: 50%; background: #fff; color: #3424BA; }
.wl-thanks span { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 14px 28px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink); font-weight: 650; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-tag { font-weight: 400; color: var(--ink-2); }
.footer-links { display: flex; gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); }
.footer-legal { grid-column: 1 / -1; font-size: .875rem; max-width: 60em; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } .footer-links a { padding-left: 0; } }

/* ---------- Preferences ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .live-activity { background: #120E33; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header::after { opacity: 1; }
  :root { --ink-2: var(--ink); }
}

/* Reduced motion: fewer, gentler. Movement goes; opacity and colour changes that explain state stay. */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .chip:active, .rec-btn:active, .lang-toggle button:active { transform: none; }
  .btn-quiet:hover svg { transform: none; }
  .island, .demo[data-phase="recording"] .island { transition: none; }
  .rec-mic, .rec-stop, .demo[data-phase="recording"] .rec-mic { transform: none; filter: none; }
  .demo[data-phase="recording"] .rec-pulse { animation: none; opacity: .35; transform: scale(1.12); }
  .demo[data-phase="recording"] .rec-dot, .lock-figure .rec-dot { animation: none; }
  /* A still waveform instead of a moving one */
  .demo[data-phase="recording"] .wave i, .lock-figure .wave i { animation: none; transform: scaleY(.55); }
  .demo[data-phase="recording"] .wave i:nth-child(3n), .lock-figure .wave i:nth-child(3n) { transform: scaleY(.85); }
  .demo[data-phase="recording"] .wave i:nth-child(4n+1), .lock-figure .wave i:nth-child(4n+1) { transform: scaleY(.35); }
  .delivery[data-status="sending"] .spinner { animation: none; border-right-color: currentColor; opacity: .6; }
  .chip-mark svg { transform: none; }
  @starting-style {
    .note-text[data-live] .word { transform: none; filter: none; }
    .deliveries[data-live] .delivery { transform: none; }
    .wl-thanks { transform: none; }
  }
  .seg-active { transition: none; }
  .routes[data-reveal] .route-line, .routes[data-reveal] .route-to { transition: none; }
  .routes[data-pending] .route-line { clip-path: inset(-8px); }
  .routes[data-pending] .route-to { opacity: 1; transform: none; }
  .faq-list summary svg { transition: none; }
  .faq-list details::details-content { transition: opacity var(--dur-ui) ease, content-visibility var(--dur-ui) allow-discrete; }
}
