@import url("/theme.css");

:root {
  --font: "Geist", "Anuphan", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --space-0: 0;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* Room the floating nav takes: its 16px offset plus 64px for the bar. */
  --nav-clear: calc(var(--space-200) + var(--space-700));
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-clear) + var(--space-300));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.nav-locked {
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  text-wrap: balance;
}
p,
li,
dd {
  text-wrap: pretty;
}
img {
  max-width: 100%;
}
a {
  color: var(--ink);
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 300ms var(--ease);
}
a:hover {
  color: var(--coral);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
[hidden] {
  display: none !important;
}

/* ---------- Text styles (skill B1) ----------
   Sizes and line heights are Tailwind's scale. One Thai exception: Heading 1
   to Heading 3 use a 1.3 line height instead of 1 / 40px, because Thai stacks
   vowels and tone marks above and below the line and they collide at 1.0. */
.heading-1 {
  font-size: 3.75rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.heading-2 {
  font-size: 3rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.heading-3,
.doc h1,
.not-found h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.heading-4 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
}
.heading-5,
.doc h2,
.nav-menu a:not(.button) {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
}
.heading-6,
.brand {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.title-1 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
}
.title-2,
.faq-list summary {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}
.title-3 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}
.title-4,
.nav-links a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.title-5 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}
.body-1 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}
.body-2 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}
.body-3,
.doc p,
.doc li {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}
.body-4 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.body-5 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.body-6 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}
.caption-1 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.caption-2,
.site-footer,
.doc .doc-updated {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}
.caption-3,
.badge {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}
.caption-4 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}
.caption-5,
.footer-about {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}
/* Button type styles live on the button classes. */
.button {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}
.button-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.button-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.button-xsm {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

/* Thai has no spaces inside a phrase; this keeps a short one on one line. */
.phrase {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: var(--space-200);
  left: var(--space-200);
  z-index: 100;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 500ms var(--ease);
}
.skip-link:hover {
  color: var(--on-primary);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-300);
}
.wrap-wide {
  max-width: 1120px;
}
.wrap-narrow {
  max-width: 880px;
}
.wrap-text {
  max-width: 760px;
}
.section {
  padding-block: var(--space-900);
}
.section-subtle {
  background: var(--surface-subtle);
}
.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-600);
  text-align: center;
}
.section-head p {
  margin-top: var(--space-200);
  color: var(--ink-secondary);
}

/* Icons: Phosphor regular, from the <symbol> sprite at the top of each page. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* ---------- Buttons (skill B9 states) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  padding: var(--space-75) var(--space-100);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-primary);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 300ms var(--ease),
    border-color 300ms var(--ease),
    color 300ms var(--ease),
    transform 500ms var(--ease);
}
.button:hover {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: var(--on-primary);
  transform: translateY(-1px);
}
.button:active {
  transform: scale(0.98);
}
.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}
.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
}
.button-light {
  border-color: #fff;
  background: #fff;
  color: #202020;
}
.button-light:hover {
  border-color: #f1ebf4;
  background: #f1ebf4;
  color: #202020;
}
.button-lg {
  padding: var(--space-100) var(--space-300);
}
.button-lg .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.button-sm .icon {
  width: 1rem;
  height: 1rem;
}
.button:disabled,
.button[aria-disabled="true"] {
  border-color: var(--line);
  background: var(--line);
  color: var(--ink-muted);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  padding-block: var(--space-75);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.text-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 500ms var(--ease);
}
.text-link:hover .icon {
  transform: translateX(var(--space-50));
}

/* ---------- Cards, badges, skeleton ---------- */
.card {
  min-width: 0;
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}
.benefit,
.platform {
  transition: border-color 300ms var(--ease);
}
.benefit-example,
.platform > .icon,
.use-cases img {
  transition:
    transform 500ms var(--ease),
    border-color 300ms var(--ease);
}
@media (hover: hover) {
  .benefit:hover,
  .platform:hover {
    border-color: var(--line-strong);
  }
  .benefit:hover .benefit-example {
    border-color: var(--line-strong);
    transform: translateY(calc(-1 * var(--space-25)));
  }
  .platform:hover > .icon,
  .assurance:hover .assurance-icon {
    transform: translateY(calc(-1 * var(--space-50)));
  }
  .use-cases li:hover img {
    transform: translateY(calc(-1 * var(--space-50))) rotate(-3deg);
  }
  .use-cases li:nth-child(even):hover img {
    transform: translateY(calc(-1 * var(--space-50))) rotate(3deg);
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lilac-wash);
  color: var(--on-lilac);
  white-space: nowrap;
}
.badge-success {
  background: var(--success-wash);
  color: var(--success);
}
.skeleton {
  display: block;
  min-height: 1rem;
  border-radius: var(--radius-md);
  background: var(--line);
  animation: skeleton-pulse 1.6s var(--ease) infinite alternate;
}
@keyframes skeleton-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.45;
  }
}

/* ---------- Floating nav (skill B7) ----------
   The outer element is fixed and transparent so the full height menu panel
   inside it is sized to the viewport; the bar itself floats and blurs. */
.site-nav {
  position: fixed;
  top: var(--space-200);
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: var(--space-200);
  pointer-events: none;
}
.nav-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-300);
  max-width: 100%;
  padding: var(--space-75) var(--space-75) var(--space-75) var(--space-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 87%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 24px rgb(32 20 38 / 0.06);
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  display: block;
}
.brand-period {
  color: var(--coral);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-50);
}
/* Inner radius = bar radius 16 − 8px gap (skill B3). */
.nav-links a {
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-lg);
  color: var(--ink-secondary);
  text-decoration: none;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.nav-links a:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}
.nav-links a[aria-current="page"] {
  background: var(--surface-subtle);
  color: var(--ink);
}
.nav-cta {
  margin-left: auto;
}
.nav-toggle {
  position: relative;
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 500ms var(--ease);
}
.nav-toggle:active {
  transform: scale(0.98);
}
.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--space-200);
  height: var(--space-25);
  margin: -1px 0 0 calc(var(--space-75) * -1);
  border-radius: var(--radius-full);
  background: currentColor;
  transition: transform 500ms var(--ease);
}
.nav-toggle span:first-child {
  transform: translateY(-4px);
}
.nav-toggle span:last-child {
  transform: translateY(4px);
}
.site-nav.is-open .nav-toggle span:first-child {
  transform: rotate(45deg);
}
.site-nav.is-open .nav-toggle span:last-child {
  transform: rotate(-45deg);
}
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-50);
  padding: calc(var(--nav-clear) + var(--space-400)) var(--space-300) var(--space-400);
  overflow-y: auto;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 500ms var(--ease);
}
.site-nav.is-open .nav-menu {
  opacity: 1;
}
.nav-menu a {
  padding: var(--space-100) 0;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(var(--space-300));
  transition:
    opacity 500ms var(--ease),
    transform 500ms var(--ease);
  transition-delay: var(--stagger, 0ms);
}
.nav-menu a[aria-current="page"] {
  color: var(--coral);
}
.nav-menu .button {
  margin-top: var(--space-300);
  padding: var(--space-100) var(--space-300);
  color: var(--on-primary);
}
.site-nav.is-open .nav-menu a {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-clear) + var(--space-900)) var(--space-300) var(--space-600);
  text-align: center;
}
.hero-title {
  /* Gradient on the heading text only (skill B5). The block padding keeps
     Thai marks above and below the line inside the clipped background. */
  width: fit-content;
  max-width: 680px;
  margin-inline: auto;
  padding-block: var(--space-75);
  background: linear-gradient(90deg, var(--ink), var(--ink-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  max-width: 680px;
  margin: var(--space-200) auto 0;
  color: var(--ink-secondary);
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-500);
}
.hero-note {
  margin-top: var(--space-200);
  color: var(--ink-muted);
  text-wrap: balance;
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-300);
  padding: 0;
  list-style: none;
}
.benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
  padding: var(--space-400);
}
.benefit > p {
  margin-bottom: var(--space-300);
  color: var(--ink-secondary);
}
.benefit-example {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
  margin-top: auto;
  padding: var(--space-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
}
.example-label {
  color: var(--ink-secondary);
}
.example-said {
  color: var(--ink-secondary);
}
.example-said s {
  color: var(--ink-muted);
  text-decoration-color: var(--coral);
}
.example-result {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--ink);
}
.example-result .icon {
  width: 1rem;
  height: 1rem;
  color: var(--coral);
}
.lang-en {
  color: var(--coral);
}
.benefit-example .lang-en {
  margin-inline: -2px;
  padding: 1px var(--space-50);
  border-radius: var(--radius-sm);
  background: linear-gradient(var(--coral-wash), var(--coral-wash)) no-repeat 0 0 / 100% 100%;
  color: var(--coral-deep);
}
.word-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
  padding: 0;
  list-style: none;
}
.word-chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-50);
  padding: var(--space-50) var(--space-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
}
.word-chips .word-chip-add {
  border-color: var(--line-strong);
  border-style: dashed;
  background: none;
  color: var(--ink-secondary);
}
.word-chips .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.learn-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-75) var(--space-100);
}
.learn-example s {
  color: var(--ink-muted);
}
.learn-example .icon {
  width: 1rem;
  height: 1rem;
  color: var(--ink-muted);
}
.learn-example strong {
  margin-right: auto;
  font-weight: 600;
}

/* ---------- Speed: a plain HTML bar chart and two figures ----------
   Every bar shares one 0–3 second scale. The fill and the scale both span
   the row minus --speed-label, the room kept for the value at the bar end,
   so a bar's tip lines up with its tick. */
.speed {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: var(--space-600);
}
.speed-chart {
  --speed-label: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
}
.speed-chart-title {
  color: var(--ink);
}
.speed-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  margin: 0;
}
.speed-bar dt {
  color: var(--ink-secondary);
}
.speed-bar dd {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  margin: var(--space-50) 0 0;
}
.speed-fill {
  display: block;
  flex-shrink: 0;
  width: calc((100% - var(--speed-label)) * var(--share));
  height: var(--space-300);
  border-radius: var(--radius-sm);
  background: var(--coral);
  opacity: 0.55;
}
.speed-bar-lead .speed-fill {
  opacity: 1;
}
.speed-value {
  color: var(--ink-secondary);
  white-space: nowrap;
}
.speed-bar-lead .speed-value {
  color: var(--ink);
}
.speed-scale {
  position: relative;
  width: calc(100% - var(--speed-label));
  height: var(--space-400);
  border-top: 1px solid var(--line-strong);
  color: var(--ink-muted);
}
/* Each tick is a short line above its number. */
.speed-scale span {
  position: absolute;
  top: 0;
  left: calc(var(--at) * 100%);
  padding-top: var(--space-75);
  white-space: nowrap;
  transform: translateX(-50%);
}
.speed-scale span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--space-50);
  background: var(--line-strong);
}
.speed-scale span:first-child {
  transform: none;
}
.speed-scale span:first-child::before {
  left: 0;
}
/* "3 วินาที" centres the digit on its tick, not the whole label. */
.speed-scale span:last-child {
  transform: translateX(-0.3em);
}
.speed-scale span:last-child::before {
  left: 0.3em;
}
.speed-source {
  color: var(--ink-muted);
}
.speed-facts {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}
.speed-facts li {
  padding-block: var(--space-300);
}
.speed-facts li + li {
  border-top: 1px solid var(--line);
}
.speed-figure {
  /* Room for Anuphan's stacked marks above the digits. */
  padding-block: var(--space-25);
  font-variant-numeric: tabular-nums;
}
.speed-facts .body-3 {
  margin-top: var(--space-75);
  color: var(--ink-secondary);
}

/* ---------- Tagline reveal (skill B11) ---------- */
.tagline-section {
  padding-block: var(--space-300) var(--space-900);
}
/* A plum panel like the closing one, so the page has one block of colour
   halfway down. Always plum, in light and dark, so its text is always white. */
.tagline-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-400);
  padding: var(--space-900) var(--space-400);
  border-radius: var(--radius-3xl);
  background: var(--plum);
  color: #fff;
}
.tagline {
  max-width: 680px;
  text-align: center;
}
.tagline-line {
  display: block;
}
.tagline .word-accent {
  color: var(--voice-coral);
}
/* The logo's three bars. landing.js sets --tagline-progress (0 to 1) while
   the words light up; without it the bars stand at full height. */
.tagline-bars {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  height: var(--space-600);
}
.tagline-bars i {
  width: var(--space-100);
  border-radius: var(--radius-full);
  transform: scaleY(calc(0.3 + 0.7 * var(--tagline-progress, 1)));
  transition: transform 500ms var(--ease);
}
.tagline-bars i:nth-child(1) {
  height: 50%;
  background: var(--voice-coral);
}
.tagline-bars i:nth-child(2) {
  height: 100%;
  background: var(--voice-lilac);
  transition-delay: 60ms;
}
.tagline-bars i:nth-child(3) {
  height: 62%;
  background: var(--voice-sky);
  transition-delay: 120ms;
}
/* Words start muted only once tagline.js has armed the section, so the line
   is fully visible without JavaScript or with reduced motion. */
.tagline-armed .tagline .word {
  opacity: 0.3;
  transition: opacity 500ms var(--ease);
}
.tagline-armed .tagline .word.is-lit {
  opacity: 1;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-400);
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-100);
  border-radius: var(--radius-full);
  background: var(--coral-wash);
  color: var(--coral-deep);
  font-variant-numeric: tabular-nums;
}
/* A hairline from each number to the next, on the one-row layout only. */
.step {
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: calc(var(--space-100) - var(--space-400));
  left: calc(2.5rem + var(--space-100));
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}
.step p {
  color: var(--ink-secondary);
}

/* ---------- Everyday use: one row on desktop, three above two on phones ---------- */
.use-cases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 160px));
  justify-content: center;
  gap: var(--space-300) var(--space-400);
  padding: 0;
  list-style: none;
  text-align: center;
}
.use-cases img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.use-cases span {
  display: block;
  margin-top: var(--space-75);
}
.use-note {
  margin-top: var(--space-500);
  color: var(--ink-muted);
  text-align: center;
  text-wrap: balance;
}

/* ---------- Platforms ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-300);
  padding: 0;
  list-style: none;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-75);
}
.platform > .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: var(--space-200);
  color: var(--ink);
}
.platform-soon > .icon {
  color: var(--ink-muted);
}
.platform-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-75);
}
.platform p {
  color: var(--ink-secondary);
}
.platform .text-link {
  margin-top: auto;
  padding-top: var(--space-200);
}
.platform-available {
  border-color: var(--line-strong);
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-300);
}
/* Subgrid lines up the title, price, term, features and action rows of both cards. */
.plan {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: var(--space-400);
}
.plan-current {
  border: 2px solid var(--ink);
  padding: calc(var(--space-400) - 1px);
}
.plan-title {
  display: flex;
  align-items: center;
  gap: var(--space-75);
}
.plan-price {
  align-self: end;
  margin-top: var(--space-200);
  font-variant-numeric: tabular-nums;
}
.plan-pending {
  color: var(--ink-secondary);
}
.plan-term {
  margin-top: var(--space-50);
  color: var(--ink-secondary);
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  margin: var(--space-400) 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-100);
}
.plan-features .icon {
  margin-top: var(--space-25);
  color: var(--success);
}
.plan-upcoming .plan-features {
  color: var(--ink-secondary);
}
.plan-upcoming .plan-features .icon {
  color: var(--ink-muted);
}
.plan .button,
.plan-status {
  align-self: end;
  width: 100%;
}
.plan-actions {
  display: grid;
  align-self: end;
  gap: var(--space-75);
}
.plan-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-75) var(--space-100);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-secondary);
}
.plans-note {
  margin-top: var(--space-400);
  color: var(--ink-secondary);
  text-align: center;
}

/* ---------- Privacy ---------- */
.assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-400);
  padding: 0;
  list-style: none;
}
.assurance {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
}
.assurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-100);
  border-radius: var(--radius-xl);
  background: var(--coral-wash);
  color: var(--ink);
  transition: transform 500ms var(--ease);
}
.assurance:nth-child(2) .assurance-icon {
  background: var(--lilac-wash);
}
.assurance:nth-child(3) .assurance-icon {
  background: var(--sky-wash);
}
.assurance-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.assurance p {
  color: var(--ink-secondary);
}
.section-link {
  margin-top: var(--space-500);
  text-align: center;
}

/* ---------- People: users' words and the makers ---------- */
.voice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-400);
  padding: 0;
  list-style: none;
}
.voice {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}
.voice-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  object-fit: cover;
}
.voice-quote {
  margin: var(--space-75) 0 0;
  color: var(--ink);
}
.voice-who {
  display: flex;
  flex-direction: column;
  color: var(--ink-secondary);
}
.voice-name,
.maker-name {
  color: var(--ink);
  font-weight: 500;
}
.maker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-400);
  max-width: 880px;
  margin: 0 auto var(--space-600);
  padding: 0;
  list-style: none;
}
.maker {
  display: flex;
  align-items: flex-start;
  gap: var(--space-300);
}
.maker-photo {
  flex: none;
  width: 7.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  object-fit: cover;
}
.maker-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-50);
  min-width: 0;
  color: var(--ink-secondary);
}
.maker-copy .body-3 {
  margin-top: var(--space-75);
}
.makers-contact {
  color: var(--ink-secondary);
  text-align: center;
}
.makers-contact a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 0.2em;
}

/* Draft only (/?draft=people): where a real photo or a real person's words go. */
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  padding: var(--space-200);
  border: 1.5px dashed var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  text-align: center;
}
.photo-slot .icon {
  width: 2rem;
  height: 2rem;
}
.draft-text {
  color: var(--ink-secondary);
}
.draft-banner {
  position: fixed;
  z-index: 60;
  right: var(--space-200);
  bottom: var(--space-200);
  left: var(--space-200);
  max-width: 680px;
  margin-inline: auto;
  padding: var(--space-100) var(--space-200);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}
.faq-list details + details {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  position: relative;
  padding: var(--space-300) var(--space-700) var(--space-300) var(--space-300);
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius-2xl);
  touch-action: manipulation;
  transition: color 300ms var(--ease);
}
.faq-list summary:hover {
  color: var(--coral);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
/* A plus drawn from two bars; the vertical one turns flat when open. */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-300);
  width: var(--space-200);
  height: var(--space-25);
  margin-top: -1px;
  border-radius: var(--radius-full);
  background: var(--ink-muted);
  transition: transform 500ms var(--ease);
}
.faq-list summary::after {
  transform: rotate(90deg);
}
.faq-list details[open] summary::after {
  transform: rotate(0deg);
}
.faq-list details p {
  padding: 0 var(--space-700) var(--space-300) var(--space-300);
  color: var(--ink-secondary);
}

/* ---------- Further reading: a quiet list of article links ----------
   Sits on the FAQ's white, so it takes no top padding of its own. */
.reading {
  padding-bottom: var(--space-700);
}
.reading-list {
  margin-top: var(--space-200);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.reading-list li {
  border-bottom: 1px solid var(--line);
}
.reading-list a {
  display: block;
  padding-block: var(--space-200);
  text-decoration: none;
}
.reading-more {
  margin-top: var(--space-200);
}

/* ---------- Closing panel ----------
   One deep plum panel. flow-gl.js fills it edge to edge with slow ribbons of
   light and keeps the side under the copy dark (--flow-calm: left on wide
   screens, top on narrow ones). Until the canvas has drawn, and whenever
   WebGL or motion is off, the still voice banner shows as a cover image. */
.download {
  padding-block: var(--space-300) var(--space-900);
}
.download-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: var(--space-800) var(--space-700);
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background-color: var(--plum);
  background-image: image-set(
    url("/assets/voice-banner-small.webp") 1x,
    url("/assets/voice-banner.webp") 2x
  );
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}
.download-canvas {
  --flow-calm: left;
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--plum);
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.download-canvas.is-ready {
  opacity: 1;
}
.download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-300);
  max-width: 480px;
}
.download-copy h2 {
  color: #fff;
}
.download-copy .button {
  margin-top: var(--space-200);
}
.download-note {
  color: var(--lilac);
}
.download-panel :focus-visible {
  outline-color: #fff;
}

/* ---------- Try it: hands-on demo ---------- */
.try-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
}
.try-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-50);
  margin-bottom: var(--space-300);
  padding: var(--space-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
}
.try-tab {
  padding: var(--space-75) var(--space-200);
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--ink-secondary);
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease),
    transform 500ms var(--ease);
}
.try-tab:hover {
  color: var(--ink);
}
.try-tab:active {
  transform: scale(0.98);
}
.try-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(32 20 38 / 0.08);
}
.try-tab:focus-visible {
  border-radius: var(--radius-full);
}
.try-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: 0 16px 48px rgb(32 20 38 / 0.06);
}
.try-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-100) var(--space-200);
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}
.try-lights {
  position: absolute;
  left: var(--space-200);
  display: flex;
  gap: var(--space-75);
}
.try-lights span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--line-strong);
}
.try-title {
  color: var(--ink-secondary);
}
.try-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  min-height: 248px;
  padding: var(--space-300);
}
.try-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-75);
  color: var(--ink-secondary);
}
.try-bubble {
  max-width: 85%;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
  color: var(--ink);
}
.try-meta {
  display: flex;
  gap: var(--space-100);
  width: 100%;
  padding-bottom: var(--space-75);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.try-meta-key {
  min-width: 3rem;
  color: var(--ink-muted);
}
.try-note-title {
  color: var(--ink);
}
.try-field {
  margin-top: auto;
  padding: var(--space-200);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
/* Typed text, an invisible copy of the full sentence that holds the height,
   and the placeholder share one grid cell. */
.try-text {
  display: grid;
  color: var(--ink);
}
.try-text > span {
  grid-area: 1 / 1;
}
.try-ghost {
  visibility: hidden;
}
.try-placeholder {
  display: none;
  padding-left: var(--space-50);
  color: var(--ink-muted);
}
.try-demo.is-live[data-state="idle"] .try-placeholder {
  display: block;
}
.try-caret {
  display: inline-block;
  width: 2px;
  height: 1.25rem;
  margin-left: 1px;
  vertical-align: -0.25rem;
  border-radius: var(--radius-full);
  background: var(--coral);
  animation: try-caret 1.1s steps(1, end) infinite;
}
@keyframes try-caret {
  50% {
    opacity: 0;
  }
}
.try-done {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  color: var(--ink-secondary);
  transition: opacity 500ms var(--ease);
}
.try-done .icon {
  width: 1rem;
  height: 1rem;
  color: var(--success);
}
.try-demo.is-live:not([data-state="done"]) .try-done {
  opacity: 0;
}
.try-heard {
  display: flex;
  align-items: baseline;
  gap: var(--space-100);
  width: 100%;
  margin-top: var(--space-300);
  padding-inline: var(--space-50);
  color: var(--ink-muted);
}
.try-heard-label {
  flex-shrink: 0;
  padding: var(--space-25) var(--space-75);
  border-radius: var(--radius-full);
  background: var(--lilac-wash);
  color: var(--on-lilac);
}
.try-heard-text {
  display: grid;
  min-width: 0;
}
.try-heard-text > span {
  grid-area: 1 / 1;
}
.try-heard-hint {
  display: none;
}
.try-demo.is-live[data-state="idle"] .try-heard-hint {
  display: block;
}
.try-demo.is-live .try-word {
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.try-demo.is-live .try-word.is-on {
  opacity: 1;
}
.try-cut,
.try-fix {
  text-decoration-color: transparent;
  transition:
    text-decoration-color 500ms var(--ease),
    color 500ms var(--ease);
}
.try-demo:not(.is-live) .try-cut,
.try-demo[data-state="processing"] .try-cut,
.try-demo[data-state="typing"] .try-cut,
.try-demo[data-state="done"] .try-cut {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--coral);
}
.try-demo:not(.is-live) .try-fix,
.try-demo[data-state="processing"] .try-fix,
.try-demo[data-state="typing"] .try-fix,
.try-demo[data-state="done"] .try-fix {
  text-decoration: underline dotted;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}
.try-control {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-400);
}
.try-wave {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 440px);
  height: 112px;
  transform: translateX(-50%);
  pointer-events: none;
}
.try-orb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-200);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
}
.try-orb:disabled {
  cursor: default;
}
.try-orb:focus-visible {
  outline: none;
}
.try-orb:focus-visible .try-orb-shell {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
/* The orb: a still circle in the artwork's colours, under the live canvas. */
.try-orb-shell {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
  border-radius: var(--radius-full);
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.55), transparent 22%),
    radial-gradient(circle at 70% 72%, #7c9cf0, transparent 46%),
    radial-gradient(circle at 30% 70%, #e8745a, transparent 52%),
    radial-gradient(circle at 60% 35%, #e27a94, #b79ad6 70%);
  box-shadow: 0 12px 32px rgb(32 20 38 / 0.18);
  transition: transform 500ms var(--ease);
}
.try-orb-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.try-orb-canvas.is-ready {
  opacity: 1;
}
.try-demo.is-live[data-state="idle"] .try-orb-shell,
.try-demo.is-live[data-state="done"] .try-orb-shell {
  animation: try-breathe 3.6s var(--ease) infinite alternate;
}
@keyframes try-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}
.try-orb:hover .try-orb-shell {
  transform: scale(1.03);
}
.try-orb:active .try-orb-shell,
.try-demo[data-state="listening"] .try-orb-shell {
  transform: scale(1.1);
}
.try-orb-label {
  color: var(--ink);
}
.try-orb:disabled .try-orb-label {
  color: var(--ink-muted);
}
.try-note {
  margin-top: var(--space-75);
  color: var(--ink-muted);
}
.try-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
/* Wide screens: the window on the left, the orb and what it heard beside it,
   so the whole demo fits one screen. */
@media (min-width: 1024px) {
  .try-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto;
    column-gap: var(--space-600);
    align-items: center;
    max-width: 1000px;
  }
  .try-tabs {
    grid-column: 1;
    justify-self: center;
  }
  .try-window {
    grid-column: 1;
    grid-row: 2;
  }
  .try-side {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: var(--space-300);
  }
  .try-side .try-heard {
    flex-direction: column;
    align-items: center;
    gap: var(--space-75);
    min-height: 6rem;
    margin-top: 0;
    text-align: center;
  }
  .try-side .try-control {
    margin-top: 0;
  }
  .try-side .try-note {
    margin-top: calc(var(--space-200) * -1);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-secondary);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-75) var(--space-400);
  padding-block: var(--space-400) var(--space-500);
}
.footer-brand {
  margin-right: auto;
}
.footer-brand strong {
  color: var(--ink);
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-50) var(--space-300);
}
.footer-links a {
  display: inline-block;
  padding-block: var(--space-100);
  color: var(--ink-secondary);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
}
.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
}
.footer-about {
  flex-basis: 100%;
  max-width: 68ch;
  margin-top: var(--space-75);
  color: var(--ink-muted);
}

/* ---------- Scroll reveals (skill B7) ----------
   landing.js adds .reveal-pending, so content is never hidden without
   JavaScript or when reduced motion is preferred. */
.reveal-pending {
  opacity: 0;
  transform: translateY(var(--space-400));
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}
/* A revealed card keeps its hover transition. */
.card.reveal-pending {
  transition:
    opacity 700ms var(--ease) var(--reveal-delay, 0ms),
    transform 700ms var(--ease) var(--reveal-delay, 0ms),
    border-color 300ms var(--ease);
}

/* ---------- Examples that play once as they are revealed ----------
   Each starts from its unfinished state only under .reveal-pending and plays
   to the finished state with .is-visible, so without JavaScript or under
   reduced motion the finished example is simply there. --play is when a
   piece starts, counted from its card's own reveal. Only opacity, transform,
   colour and background-size change, so nothing moves the layout. */
.reveal-pending {
  --play: calc(var(--reveal-delay, 0ms) + 350ms);
}

/* Thai with English: the English words are marked one after the other. */
.reveal-pending .benefit-example .lang-en {
  background-size: 0 100%;
  transition: background-size 600ms var(--ease) var(--play);
}
.reveal-pending .benefit-example .lang-en ~ .lang-en {
  transition-delay: calc(var(--play) + 350ms);
}
.reveal-pending.is-visible .benefit-example .lang-en {
  background-size: 100% 100%;
}

/* Struck words: the line is drawn across, then the result arrives. */
.reveal-pending .benefit-example s {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0 1px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background-size 450ms var(--ease) var(--play),
    color 450ms var(--ease) var(--play);
}
.reveal-pending .example-said s {
  background-image: linear-gradient(var(--coral), var(--coral));
}
.reveal-pending .example-said s ~ s {
  transition-delay: calc(var(--play) + 450ms);
}
.reveal-pending.is-visible .benefit-example s {
  background-size: 100% 1px;
  color: var(--ink-muted);
}
.reveal-pending .example-result,
.reveal-pending .learn-example > .icon,
.reveal-pending .learn-example strong {
  opacity: 0;
  transform: translateX(calc(-1 * var(--space-75)));
  transition:
    opacity 500ms var(--ease) calc(var(--play) + 1000ms),
    transform 500ms var(--ease) calc(var(--play) + 1000ms);
}
.reveal-pending .learn-example > .icon {
  transition-delay: calc(var(--play) + 400ms);
}
.reveal-pending .learn-example strong {
  transition-delay: calc(var(--play) + 550ms);
}
.reveal-pending.is-visible .example-result,
.reveal-pending.is-visible .learn-example > .icon,
.reveal-pending.is-visible .learn-example strong {
  opacity: 1;
  transform: none;
}

/* Word list chips and the "remember" badge pop in. */
.reveal-pending .word-chips li,
.reveal-pending .learn-example .badge {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 400ms var(--ease) var(--play),
    transform 400ms var(--ease) var(--play);
}
.reveal-pending .word-chips li:nth-child(2) {
  transition-delay: calc(var(--play) + 120ms);
}
.reveal-pending .word-chips li:nth-child(3) {
  transition-delay: calc(var(--play) + 240ms);
}
.reveal-pending .word-chips li:nth-child(4) {
  transition-delay: calc(var(--play) + 360ms);
}
.reveal-pending .learn-example .badge {
  transition-delay: calc(var(--play) + 950ms);
}
.reveal-pending.is-visible .word-chips li,
.reveal-pending.is-visible .learn-example .badge {
  opacity: 1;
  transform: none;
}

/* Speed chart: each bar grows to its measured length, then its value shows. */
.reveal-pending .speed-fill {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease) var(--play);
}
.reveal-pending .speed-value {
  opacity: 0;
  transition: opacity 400ms var(--ease) calc(var(--play) + 600ms);
}
.reveal-pending .speed-bar:nth-child(2) .speed-fill {
  transition-delay: calc(var(--play) + 150ms);
}
.reveal-pending .speed-bar:nth-child(2) .speed-value {
  transition-delay: calc(var(--play) + 750ms);
}
.reveal-pending .speed-bar:nth-child(3) .speed-fill {
  transition-delay: calc(var(--play) + 300ms);
}
.reveal-pending .speed-bar:nth-child(3) .speed-value {
  transition-delay: calc(var(--play) + 900ms);
}
.reveal-pending.is-visible .speed-fill {
  transform: none;
}
.reveal-pending.is-visible .speed-value {
  opacity: 1;
}

/* Steps: the hairline runs on to the next number. */
.step.reveal-pending::after {
  transform: scaleX(0);
  transition: transform 700ms var(--ease) var(--play);
}
.step.reveal-pending.is-visible::after {
  transform: none;
}

/* Everyday use: the paper pieces land one by one. */
.use-cases.reveal-pending li {
  opacity: 0;
  transform: translateY(var(--space-200)) rotate(-5deg);
  transition:
    opacity 600ms var(--ease) calc(var(--i, 0) * 90ms),
    transform 600ms var(--ease) calc(var(--i, 0) * 90ms);
}
.use-cases.reveal-pending li:nth-child(even) {
  transform: translateY(var(--space-200)) rotate(5deg);
}
.use-cases li:nth-child(2) {
  --i: 1;
}
.use-cases li:nth-child(3) {
  --i: 2;
}
.use-cases li:nth-child(4) {
  --i: 3;
}
.use-cases li:nth-child(5) {
  --i: 4;
}
.use-cases.reveal-pending.is-visible li {
  opacity: 1;
  transform: none;
}

/* ---------- Plain pages: /privacy, /terms and 404 ---------- */
.doc {
  padding-block: calc(var(--nav-clear) + var(--space-700)) var(--space-900);
}
.doc-updated {
  margin-top: var(--space-75);
  color: var(--ink-secondary);
}
.doc-draft {
  margin-top: var(--space-300);
  padding: var(--space-200) var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--coral-wash);
  color: var(--ink);
}
.doc .doc-draft {
  margin-top: var(--space-300);
}
.doc-draft strong {
  color: var(--coral-deep);
  font-weight: 600;
}
.doc-draft + p {
  margin-top: var(--space-300);
}
.doc h2 {
  margin-top: var(--space-600);
}
.doc p,
.doc ul {
  margin-top: var(--space-100);
}
.doc ul {
  padding-left: var(--space-300);
}
.doc li + li {
  margin-top: var(--space-75);
}
.doc strong {
  font-weight: 600;
}
.doc a {
  color: var(--ink);
  font-weight: 500;
}
.doc a:hover {
  color: var(--coral);
}
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-100);
  min-height: 70vh;
  padding: calc(var(--nav-clear) + var(--space-700)) var(--space-300) var(--space-700);
  text-align: center;
}
.not-found p {
  color: var(--ink-secondary);
}
.not-found .button {
  margin-top: var(--space-300);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .heading-1 {
    font-size: 3rem;
  }
  .heading-2 {
    font-size: 2.25rem;
  }
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* The copy moves to the top of the closing panel; the light lies below. */
  .download-panel {
    align-items: flex-start;
    min-height: 560px;
    padding: var(--space-700) var(--space-500);
    background-position: 70% bottom;
    background-size: auto 46%;
  }
  .download-canvas {
    --flow-calm: top;
  }
}
/* Six links and the download button just before the bar turns into the menu
   button: tighter link padding and bar gaps keep it on one line. */
@media (min-width: 760px) and (max-width: 899px) {
  .nav-bar {
    gap: var(--space-200);
  }
  .nav-links a {
    padding-inline: var(--space-75);
  }
}
@media (max-width: 759px) {
  .button, .text-link, .try-tab, .nav-toggle, .site-nav .brand, .footer-links a {
    min-height: 44px;
  }
  .voice-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-600);
  }
  .voice-photo {
    width: 7.5rem;
  }
  .maker-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .maker-photo {
    width: 5.5rem;
  }
  .nav-toggle {
    width: 44px;
  }
  .footer-links {
    gap: 0 var(--space-200);
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
  }
  .speed {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-300);
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-bar {
    gap: var(--space-100);
  }
  .section {
    padding-block: var(--space-800);
  }
  .tagline-section {
    padding-block: var(--space-200) var(--space-800);
  }
  .tagline-panel {
    padding: var(--space-800) var(--space-300);
  }
  .step:not(:last-child)::after {
    content: none;
  }
  .hero {
    padding-top: calc(var(--nav-clear) + var(--space-700));
  }
  .benefits,
  .steps,
  .assurances,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    row-gap: var(--space-300);
  }
  .plan {
    display: flex;
    flex-direction: column;
  }
  .plan > * {
    align-self: stretch;
  }
  .plan .button,
  .plan-status {
    margin-top: auto;
  }
  .benefit {
    padding: var(--space-300);
  }
  .use-cases {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-300) var(--space-100);
    max-width: 380px;
    margin-inline: auto;
  }
  .use-cases li {
    grid-column: span 2;
  }
  .use-cases li:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .download-panel {
    min-height: 540px;
    padding: var(--space-500) var(--space-300);
  }
  .try-body {
    min-height: 200px;
    padding: var(--space-200);
  }
  .try-tab {
    padding-inline: var(--space-100);
  }
  .try-heard {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-75);
  }
  .faq-list summary {
    padding: var(--space-200) var(--space-600) var(--space-200) var(--space-200);
  }
  .faq-list summary::before,
  .faq-list summary::after {
    right: var(--space-200);
  }
  .faq-list details p {
    padding: 0 var(--space-200) var(--space-200);
  }
  .footer-brand {
    width: 100%;
  }
}
@media (max-width: 479px) {
  .heading-1,
  .heading-2 {
    font-size: 2.25rem;
  }
  .heading-3,
  .doc h1,
  .not-found h1 {
    font-size: 1.875rem;
  }
  .platforms {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-200);
  }
  /* Coming platforms become compact rows: icon, then name and status. */
  .platform-soon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-200);
    row-gap: var(--space-50);
    padding: var(--space-200) var(--space-300);
  }
  .platform-soon > .icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
}
@media (max-width: 379px) {
  .wrap,
  .hero {
    padding-inline: var(--space-200);
  }
  .site-nav {
    padding-inline: var(--space-100);
  }
  .heading-1,
  .heading-2 {
    font-size: 1.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  /* Movement becomes a plain fade. */
  .reveal-pending,
  .reveal-pending.is-visible {
    opacity: 1;
    transform: none;
  }
  .nav-menu a {
    transform: none;
  }
  .button:hover,
  .text-link:hover .icon,
  .benefit:hover .benefit-example,
  .platform:hover > .icon,
  .assurance:hover .assurance-icon,
  .use-cases li:hover img {
    transform: none;
  }
  .reveal-pending *,
  .reveal-pending *::after,
  .reveal-pending::after {
    transition: none;
  }
  .try-orb .try-orb-shell,
  .try-demo[data-state] .try-orb-shell {
    transform: none;
  }
}
@media print {
  .site-nav {
    display: none;
  }
  .reveal-pending,
  .tagline-armed .tagline .word {
    opacity: 1;
    transform: none;
  }
}
