/* AirTypes homepage.
   Kanit at full volume, steel gradient type on #0C0C0C, one light chapter, amber only on CTAs and the live halo.
   Default CSS is the final visible state; home.js sets initial states before animating. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0C0C0C;
  --ink: #D7E2EA;
  --ink-2: rgba(215, 226, 234, .7);
  --ink-3: rgba(215, 226, 234, .62);
  --line: rgba(215, 226, 234, .14);
  --line-strong: rgba(215, 226, 234, .3);
  --paper: #F2F1EC;
  --paper-ink: #0C0C0C;
  --paper-ink-2: rgba(12, 12, 12, .72);
  --paper-line: rgba(12, 12, 12, .15);
  --amber: #FFB224;
  --amber-ink: #1A1206;
  --steel-a: #646973;
  --steel-b: #BBCCD7;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font: 'Kanit', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
  --gutter: 20px;
  --chapter-r: 40px;
  --overlap: 40px;
}
@media (min-width: 640px) { :root { --gutter: 32px; --chapter-r: 50px; --overlap: 48px; } }
@media (min-width: 768px) { :root { --gutter: 40px; --chapter-r: 60px; --overlap: 56px; } }

/* ---------- Base ---------- */
/* Lenis (smooth scrolling, home.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* No overflow: hidden on .lenis-stopped: it removes the scrollbar, which shifts the whole page sideways, and it
   blocks the keyboard. A stopped Lenis already holds the wheel, which is all the hero story needs. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.page { background: var(--bg); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 178, 36, .3); color: #fff; }

.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 {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 500; transition: top .2s var(--ease-out);
}
.skip:focus { top: 16px; }

/* The steel gradient used for every giant heading. */
.hero-heading {
  background: linear-gradient(180deg, var(--steel-a) 0%, var(--steel-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.pill {
  --py: 12px; --px: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--py) var(--px);
  border-radius: 999px;
  font-family: var(--font); font-weight: 500; font-size: .75rem; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--amber-ink);
  background: linear-gradient(123deg, #C67A06 0%, #E2920A 28%, #FFB224 62%, #FFD58A 100%);
  box-shadow: 0 4px 4px rgba(226, 146, 10, .25), inset 4px 4px 12px rgba(255, 228, 176, .9);
  outline: 2px solid rgba(255, 247, 232, .92);
  outline-offset: -3px;
  transition: transform .25s var(--ease-out), filter .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
@media (min-width: 640px) { .pill { --py: 14px; --px: 40px; font-size: .875rem; } }
@media (min-width: 768px) { .pill { --py: 16px; --px: 48px; font-size: 1rem; } }
.pill:hover { filter: brightness(1.06); transform: translateY(-1px); }
/* A slow sheen crosses the button on hover (under the label, over the gradient). */
.pill { position: relative; overflow: hidden; isolation: isolate; }
.pill::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 250, 240, .85) 46%, rgba(255, 250, 240, .85) 50%, transparent 68%);
  transform: translateX(-130%);
}
.pill:hover::after { transform: translateX(130%); transition: transform .9s var(--ease-out); }
.pill:active { transform: scale(.97); }
.pill:focus-visible {
  outline: 2px solid rgba(255, 247, 232, .92); outline-offset: -3px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--amber);
}
.pill.pill--sm { --py: 10px; --px: 22px; font-size: .75rem; }

.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 26px;
  border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .75rem; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .25s var(--ease-out);
}
@media (min-width: 768px) { .ghost { font-size: .85rem; padding: 12px 30px; } }
.ghost:hover { background-color: rgba(215, 226, 234, .1); }
.ghost.ghost--sm { padding: 10px 22px; font-size: .75rem; }

/* ---------- Desktop note (phones only; landing/home/desktop-note): AirTypes installs on a computer ---------- */
.desk-note {
  display: grid; gap: 8px; width: 100%; max-width: 40rem; justify-self: stretch; text-align: left;
  padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: rgba(215, 226, 234, .04);
}
.desk-note[hidden] { display: none; }
.desk-note-t { font-weight: 500; font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.desk-note-d { font-weight: 300; line-height: 1.55; color: var(--ink-2); }
.desk-note-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
/* A <button> here: clear the UA button face and font so it reads like the anchor ghosts. */
.desk-note-row .ghost { background: transparent; font-family: var(--font); cursor: pointer; white-space: normal; text-align: center; line-height: 1.3; }
.desk-note-msg { font-family: var(--mono); font-size: .75rem; line-height: 1.4; color: var(--amber); overflow-wrap: anywhere; }

/* ---------- FadeIn (initial state is set only when JS runs and motion is allowed) ---------- */
.fade {
  opacity: 0;
  transform: translate3d(var(--fx, 0px), var(--fy, 30px), 0);
  transition:
    opacity var(--fdur, .7s) var(--ease) var(--fdelay, 0s),
    transform var(--fdur, .7s) var(--ease) var(--fdelay, 0s);
}
.fade.is-in { opacity: 1; transform: none; }

/* ---------- Mini bar ---------- */
.minibar {
  position: fixed; z-index: 40; top: 12px; left: 50%;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  transform: translate(-50%, -150%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.minibar.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
/* The pill's glass, separate from its items so home.js can widen it while the items fly in. */
.minibar-shell {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(12, 12, 12, .78); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.minibar-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-right: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.minibar-brand .mark { width: 20px; height: auto; }
.minibar-links { display: none; }
@media (min-width: 768px) {
  .minibar-links { display: flex; }
  .minibar-links a {
    white-space: nowrap;
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
    transition: color .2s;
  }
  .minibar-links a:hover, .minibar-links a[aria-current="page"] { color: var(--ink); }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  overflow-x: clip;
}
.hero-nav {
  position: relative; z-index: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 18px var(--gutter) 0;
  font-size: .875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
}
@media (min-width: 768px) { .hero-nav { padding-top: 26px; font-size: 1.125rem; } }
@media (min-width: 1024px) { .hero-nav { font-size: 1.4rem; } }
.hero-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; transition: opacity .2s var(--ease); }
.hero-nav a:not(.pill):hover { opacity: .7; }
.hero-links { display: flex; align-items: center; gap: clamp(14px, 4.4vw, 72px); }
.hero-nav .pill { letter-spacing: .1em; }
.brand { text-transform: none; letter-spacing: -.015em; font-weight: 600; }
.brand .mark { width: 1.05em; height: auto; }
.nav-end { display: flex; align-items: center; gap: 10px; }
/* Account button (landing/home/account): person icon signed out, photo or initial signed in. */
.acct {
  flex: none; width: 40px; height: 40px; min-height: 40px !important; padding: 0 !important; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: uppercase;
  transition: border-color .2s, opacity .2s;
}
.acct:hover { border-color: var(--ink); }
.acct img { width: 100%; height: 100%; object-fit: cover; }
.minibar .acct { width: 36px; height: 36px; min-height: 36px !important; margin-right: 2px; }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }

.hero-title { position: relative; z-index: 1; margin-top: 28px; padding: 0 var(--gutter); overflow: hidden; container-type: inline-size; }
@media (min-width: 640px) { .hero-title { margin-top: 12px; } }
@media (min-width: 768px) { .hero-title { margin-top: -6px; } }
.hero-h1 {
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.018em; line-height: .9;
  white-space: nowrap; text-align: center;
  font-size: 12.2vw;
  font-size: 14.3cqw; /* what home.js's fit lands on for Kanit 900, so the first paint already matches */
  padding: .02em 0 .06em;
}
.fit-line { display: inline-block; }
@media (max-width: 639px) {
  .hero-h1 { white-space: normal; font-size: 25vw; line-height: .86; }
  .hero-h1 .fit-line { display: block; }
}

.stage { position: relative; width: 100%; height: 100%; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s var(--ease); }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .7s var(--ease); }
.stage.is-live .stage-canvas { opacity: 1; }
.stage.is-live .poster { opacity: 0; }
/* First visit (html.intro, set before first paint): the headline is there from the first frame, dim and
   out of focus, and holds there until its font is in (html.intro-title), so the swap from the fallback font
   happens unseen and the entrance plays once. Never hidden, so it is painted, and measured as the largest
   paint, when people first see it. Then the nav, the copy, the buttons and the demo follow
   (html.intro-go, hero.blade.php). Without .intro (repeat visit, reduced motion, no JS, crawlers) the
   hero is simply there. The gradient sits on the moving spans, because background-clip text on a
   parent does not follow transformed children in every browser. */
.intro .hero-h1 { background: none; }
.intro .hero-h1 .rise-i {
  display: inline-block;
  background: linear-gradient(180deg, var(--steel-a) 0%, var(--steel-b) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .3; filter: blur(10px); transform: translate3d(0, 8%, 0);
}
.intro.intro-title .hero-h1 .rise-i { animation: at-focus 1.1s var(--ease-out) var(--d, 0s) both; }
.intro .hero-nav, .intro .hero-sub, .intro .hero-cta, .intro .hd { opacity: 0; }
/* The line is the page's largest paint (the headline's gradient fill doesn't count), so it starts
   faint rather than invisible and is measured when it really appears. */
.intro .hero-line { opacity: .25; }
/* Keyframes, not transitions: a class change while the page is still loading may not start a transition. */
.intro.intro-go .hero-nav { animation: at-drop .8s var(--ease-out) .45s both; }
.intro.intro-go .hero-line { animation: at-up-soft .8s var(--ease-out) .55s both; }
.intro.intro-go .hero-sub { animation: at-up .8s var(--ease-out) .62s both; }
.intro.intro-go .hero-cta { animation: at-up .8s var(--ease-out) .7s both; }
.intro.intro-go .hd { animation: at-up .9s var(--ease-out) .8s both; }
@keyframes at-focus { from { opacity: .3; filter: blur(10px); transform: translate3d(0, 8%, 0); } to { opacity: 1; filter: none; transform: none; } }
@keyframes at-up { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes at-up-soft { from { opacity: .25; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes at-drop { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }

/* What AirTypes does, in words on the left and shown on the right; one column under 1024px. */
.hero-main {
  position: relative; z-index: 2; flex: 1;
  display: grid; gap: 44px; align-content: start;
  padding: 28px var(--gutter) 56px;
}
@media (min-width: 1024px) {
  .hero-main {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 6vw, 112px); align-items: center; align-content: center;
    padding-top: 8px; padding-bottom: 44px;
  }
}
/* Very wide screens: keep the copy and the demo within reach of each other. */
@media (min-width: 1600px) { .hero-main { width: 100%; max-width: 1560px; margin-inline: auto; } }
.hero-copy { display: grid; gap: 18px; justify-items: start; max-width: 36rem; }
/* The page's largest paint, and the sentence that has to land: plain case, not a caption. */
.hero-line { font-weight: 400; font-size: clamp(1.5rem, 2.55vw, 2.4rem); line-height: 1.14; letter-spacing: -.012em; text-wrap: balance; }
.hero-sub { max-width: 31rem; font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: grid; gap: 6px; justify-items: start; margin-top: 10px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
/* Slimmer, so both sit on one line beside the demo from about 1180px up. */
.hero-btns .pill { --px: 24px; }
.hero-btns .ghost { padding-inline: 22px; }
/* Where it works: a bubble per place, its mark first. Quiet glass, never amber (that is for the buttons). */
.hero-ways { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.hw {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px 0 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(180deg, rgba(215, 226, 234, .06), rgba(215, 226, 234, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.hw:hover { border-color: var(--line-strong); background-color: rgba(215, 226, 234, .06); transform: translateY(-1px); }
.hw:active { transform: scale(.97); }
.hw-ico {
  flex: none; width: 24px; height: 24px; padding: 5.5px; box-sizing: border-box; border-radius: 50%;
  background: rgba(215, 226, 234, .1); color: var(--ink);
}
.hw--soon { color: var(--ink-2); }
.hw--soon .hw-ico { color: var(--ink-2); background: rgba(215, 226, 234, .06); }
.hw-soon { margin-left: 1px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 999px; font-size: .58rem; color: var(--ink-3); }
.hero-note { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hero-note:first-of-type { color: var(--ink); }
.hero-note a { text-decoration: none; transition: color .2s var(--ease); }
.hero-note a:hover { color: var(--ink); }

/* Hero demo: the three places AirTypes works, one panel each, all stacked in one cell so switching
   never moves the page. The tabs are radio buttons, so they work without JS; home.js adds the playback
   (data-phase: listening, polishing, typing). Without a phase a panel shows the finished state. */
.hd { min-width: 0; width: 100%; max-width: 660px; }
@media (min-width: 1024px) { .hd { justify-self: end; } }
.hd-tabs { display: flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.hd-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.hd-tab:hover { color: var(--ink); }
.hd-tab-short { display: none; }
@media (max-width: 479px) {
  .hd-tab { padding: 0 13px; }
  .hd-tab-full { display: none; }
  .hd-tab-short { display: inline; }
}
#hd-prompt:checked ~ .hd-tabs [data-way="prompt"],
#hd-message:checked ~ .hd-tabs [data-way="message"],
#hd-own:checked ~ .hd-tabs [data-way="own"] { background: linear-gradient(180deg, var(--steel-a), var(--steel-b)); color: var(--bg); }
#hd-prompt:focus-visible ~ .hd-tabs [data-way="prompt"],
#hd-message:focus-visible ~ .hd-tabs [data-way="message"],
#hd-own:focus-visible ~ .hd-tabs [data-way="own"] { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Pause / play: the demo moves on its own, so it can be stopped. Bars while playing, a triangle while paused. */
.hd-pause {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-left: 2px; border: 0; border-radius: 50%;
  background: none; color: var(--ink-2); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.hd-pause[hidden] { display: none; }
.hd-pause:hover { color: var(--ink); background-color: rgba(215, 226, 234, .08); }
.hd-pause span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hd-pause[aria-pressed="true"] span { width: 0; height: 0; margin-left: 3px; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.hd-stage { display: grid; margin-top: 20px; }
.hd-panel {
  grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; min-width: 0;
  visibility: hidden; opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(3px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), filter .18s var(--ease-out), visibility 0s .18s;
}
#hd-prompt:checked ~ .hd-stage [data-way="prompt"],
#hd-message:checked ~ .hd-stage [data-way="message"],
#hd-own:checked ~ .hd-stage [data-way="own"] {
  visibility: visible; opacity: 1; transform: none; filter: none;
  transition: opacity .32s var(--ease-out) .1s, transform .42s var(--ease-out) .1s, filter .32s var(--ease-out) .1s, visibility 0s;
}

/* What was said, exactly as it was said. While listening the words light up as they are heard. */
.hd-said { display: grid; gap: 2px 14px; align-content: start; min-height: 7.6em; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 560px) { .hd-said { grid-template-columns: 4.6rem minmax(0, 1fr); min-height: 4.8em; } }
.hd-k { font: 500 .68rem/2.1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.hd-words { font-style: italic; }
/* Kanit has no Devanagari: a slanted fallback font is harder to read than an upright one. */
.hd-words[lang="hi"], .hd-words[lang="bn"] { font-style: normal; }
.hd-words span { transition: opacity .3s var(--ease), color .3s var(--ease); }
.hd-panel[data-phase="listening"] .hd-words span { opacity: .3; }
.hd-panel[data-phase="listening"] .hd-words span.is-on { opacity: 1; color: var(--ink); }

/* The window it is typed into, with the pill hanging over its bottom edge. */
.hd-frame { position: relative; padding-bottom: 22px; }
.hd-frame .win { height: clamp(226px, 62vw, 248px); border-radius: 16px; border-color: var(--line-strong); box-shadow: 0 28px 70px rgba(0, 0, 0, .55); font-size: 14px; }
@media (min-width: 560px) { .hd-frame .win { height: 226px; } }
.hd-frame .win-body { padding: 16px 18px 36px; }
.hd-frame .w-typed { font-size: 15px; line-height: 1.5; }
.hd-pill {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12, 12, 12, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  font: 500 13px/1 var(--ui); color: var(--ink); white-space: nowrap;
}
.hd-sig { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.hd-sig > * { grid-area: 1 / 1; }
.hd-sig .mark { width: 15px; height: auto; }
.hd-dot { position: relative; display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.hd-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: rgba(255, 178, 36, .26); animation: hd-pulse 1.1s var(--ease) infinite alternate; }
.hd-spin { display: none; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: hd-spin .8s linear infinite; }
.hd-meter { display: none; align-items: center; gap: 3px; height: 18px; }
.hd-meter i { width: 3px; height: 100%; border-radius: 2px; background: var(--amber); animation: hd-bar .5s var(--ease) infinite alternate; }
.hd-meter i:nth-child(1) { animation-duration: .46s; } .hd-meter i:nth-child(2) { animation-duration: .62s; animation-delay: -.2s; }
.hd-meter i:nth-child(3) { animation-duration: .38s; animation-delay: -.1s; } .hd-meter i:nth-child(4) { animation-duration: .55s; animation-delay: -.3s; }
.hd-meter i:nth-child(5) { animation-duration: .7s; animation-delay: -.15s; }
.hd-panel[data-phase="listening"] .hd-pill .mark, .hd-panel[data-phase="polishing"] .hd-pill .mark { display: none; }
.hd-panel[data-phase="listening"] .hd-dot { display: block; }
.hd-panel[data-phase="listening"] .hd-meter { display: flex; }
.hd-panel[data-phase="polishing"] .hd-pill .hd-spin { display: block; }
/* The prompt box fills its window, wide enough to read the whole prompt. */
.hd-frame .w-prompt { align-items: stretch; }
.hd-frame .w-box { padding: 14px 46px 14px 16px; }
.hd-places { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hd-places a { transition: color .2s var(--ease); }
.hd-places a:hover { color: var(--ink); }
.hd-how { max-width: 38rem; min-height: 4.5em; font-weight: 300; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 560px) { .hd-how { min-height: 3em; } }

@keyframes hd-pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.15); opacity: .45; } }
@keyframes hd-spin { to { transform: rotate(360deg); } }
@keyframes hd-bar { from { transform: scaleY(.22); } to { transform: scaleY(1); } }
/* Short laptop screens: keep the whole demo above the fold. */
@media (min-width: 1024px) and (max-height: 800px) {
  .hd-frame .win { height: 204px; }
  .hd-said { min-height: 4.8em; }
  .hd-stage { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-panel { transform: none; filter: none; transition: opacity .2s linear, visibility 0s; }
  .hd-dot::after, .hd-meter i { animation: none; }
  .hd-spin { animation-duration: 2.4s; }
}

/* ---------- 1b. Voice to prompt: two real before and after pairs ---------- */
.vp-pairs { display: grid; gap: 20px; }
@media (min-width: 900px) { .vp-pairs { grid-template-columns: 1fr 1fr; gap: 28px; } }
.vp-pair { display: grid; gap: 12px; align-content: start; padding: 28px; border: 2px solid var(--line); border-radius: 32px; }
@media (min-width: 640px) { .vp-pair { padding: 36px 40px; border-radius: 40px; } }
.vp-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vp-k--out { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); }
.vp-said { font-weight: 300; font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
.vp-out { font-weight: 400; font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.35; letter-spacing: -.005em; color: var(--ink); }
.vp-k--on { color: var(--amber); }
.vp-fine { max-width: 62ch; margin: 22px auto 0; font-size: .92rem; line-height: 1.55; color: var(--ink-3); text-align: center; }
.vp-foot { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 40px; }
.vp-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vp-tool {
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 16px 8px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.vp-ico { flex: none; width: 18px; height: 18px; color: var(--ink); }
.blog-post-header .vp-tools { margin-top: 22px; }

/* ---------- 2. Marquee ---------- */
.marquee { padding: 72px 0 40px; }
@media (min-width: 768px) { .marquee { padding-top: 104px; } }
.mq-head { max-width: 1440px; margin: 0 auto 48px; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 18px; text-align: center; }
.mq-head .mq-sub { margin-inline: auto; text-wrap: balance; }
@media (min-width: 768px) { .mq-head { margin-bottom: 64px; } }
.mq-title {
  max-width: 15ch;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 4.75rem); line-height: .95; letter-spacing: -.01em;
}
.mq-sub { max-width: 34rem; color: var(--ink-2); font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; }
.mq-rows { display: flex; flex-direction: column; gap: 12px; }
.mq-row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.tile { flex: none; width: 420px; height: 270px; border-radius: 16px; overflow: hidden; }
.tile-inner { width: 420px; height: 270px; border-radius: 16px; }
@media (max-width: 639px) {
  .tile { width: 300px; height: 193px; }
  .tile-inner { transform: scale(.7143); transform-origin: 0 0; }
}

/* ---------- App windows (mini-scenes) ---------- */
.win {
  --wbg: #151619; --wbar: #1C1D21; --wink: #E4EBF0; --wdim: rgba(215, 226, 234, .56); --wline: rgba(255, 255, 255, .07);
  --wfield: rgba(255, 255, 255, .04);
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: var(--wbg); color: var(--wink);
  border: 1px solid var(--wline);
  font-family: var(--ui); font-size: 13px; line-height: 1.45; font-weight: 400;
  text-align: left;
}
.win--light { --wbg: #FBFAF7; --wbar: #ECEBE6; --wink: #1A1B1F; --wdim: rgba(26, 27, 31, .58); --wline: rgba(12, 12, 12, .09); --wfield: #FFFFFF; }
.win[data-app="vscode"] { --wbg: #1B1C20; --wbar: #222328; }
.win[data-app="terminal"] { --wbg: #0F1012; --wbar: #18191C; }
.win[data-app="discord"] { --wbg: #2A2B30; --wbar: #222327; }
.win[data-app="telegram"] { --wbg: #17202A; --wbar: #111921; }
.win[data-app="github"] { --wbg: #0F1318; --wbar: #161B22; }
.win[data-app="openai"] { --wbg: #202021; --wbar: #1A1A1B; }

.win-bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: var(--wbar); border-bottom: 1px solid var(--wline);
  font-size: 12px; color: var(--wink);
}
.win-dots { display: flex; gap: 5px; margin-right: 4px; }
.win-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--wdim); opacity: .4; }
.win-logo { display: grid; place-items: center; width: 16px; height: 16px; }
.win-logo svg { width: 14px; height: 14px; fill: currentColor; }
.win-glyph {
  display: block; width: 11px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) 2px 3px / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 6px / 5px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 9px / 4px 1.5px no-repeat;
}
.win-name { font-weight: 600; white-space: nowrap; }
.win-ctx { margin-left: auto; color: var(--wdim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58%; }
.win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; overflow: hidden; }
.w-typed { color: var(--wink); }
.caret {
  display: inline-block; width: 2px; height: 1.15em; margin-left: 2px;
  vertical-align: -.2em; background: currentColor;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* editor */
.w-code { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--wdim); counter-reset: ln; }
.w-code li { position: relative; padding-left: 26px; counter-increment: ln; white-space: pre-wrap; }
.w-code li::before { content: counter(ln); position: absolute; left: 0; top: 0; color: rgba(215, 226, 234, .26); }
.w-code .k { font-style: normal; color: #93AFC6; }
.w-code .f { font-style: normal; color: #E4EBF0; }
.w-code .w-typed { color: #CFE0BE; }
/* terminal */
.w-term { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--wdim); }
.w-term .p { font-style: normal; color: #93AFC6; }
.w-term .d { font-style: normal; color: rgba(215, 226, 234, .38); }
.w-term .w-typed { color: var(--wink); }
/* chat */
.w-chat { display: flex; flex-direction: column; gap: 10px; }
.w-msg { display: flex; gap: 10px; }
.w-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(215, 226, 234, .14); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.w-msg b { display: block; font-size: 12px; font-weight: 600; }
.w-msg p { color: var(--wdim); }
.w-composer { border: 1px solid var(--wline); border-radius: 10px; padding: 9px 12px; background: var(--wfield); }
.win--light .w-composer { border-color: rgba(12, 12, 12, .16); }
/* mail */
.win--mail .win-body, .win--doc .win-body, .win--note .win-body, .win--issue .win-body, .win--polished .win-body,
.win--editor .win-body, .win--term .win-body { justify-content: flex-start; }
.w-field { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--wline); font-size: 12px; }
.w-field span { min-width: 50px; color: var(--wdim); }
.w-mail .w-pre { margin-top: 10px; color: var(--wink); }
.w-mail .w-typed { margin-top: 8px; }
/* doc */
.win--doc { --wbg: #E6E7EA; }
.win--doc .win-body { padding: 12px 0 0; }
.w-page {
  width: 86%; flex: 1; margin: 0 auto; padding: 16px 20px;
  background: #FFFFFF; color: #1A1B1F;
  font-family: Georgia, 'Times New Roman', serif; font-size: 13px; line-height: 1.6;
  box-shadow: 0 1px 3px rgba(12, 12, 12, .14);
}
.w-page .w-title { font-family: var(--ui); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.w-page .w-pre { color: #5A5C62; margin-bottom: 6px; }
/* note */
.w-note .w-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.w-note li { position: relative; padding-left: 16px; margin-top: 4px; color: var(--wdim); }
.w-note li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.w-note li.w-typed { color: var(--wink); }
/* prompt */
.win--prompt .win-body { justify-content: center; }
.w-prompt { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.w-hello { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.w-box { position: relative; width: 100%; padding: 12px 46px 12px 14px; border-radius: 18px; background: #2F2F31; }
.w-send { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--wink); }
/* issue */
.w-issue .w-title { font-size: 15px; font-weight: 600; }
.w-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 9px; border: 1px solid var(--wline); border-radius: 999px; font-size: 11px; color: var(--wdim); }
.w-status i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--wdim); border-right-color: transparent; }
.w-issue .w-composer { margin-top: 14px; }
/* ticket */
.win--ticket .win-body { justify-content: flex-start; }
.w-ticket { display: flex; flex-direction: column; gap: 12px; }
.w-ticket .w-title { font-size: 15px; font-weight: 600; }
.w-who { margin-top: -8px; font-size: 11px; color: var(--wdim); }
.w-bubble { align-self: flex-start; max-width: 82%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: rgba(12, 12, 12, .06); }
/* polished */
.w-said { display: flex; gap: 8px; align-items: center; color: var(--wdim); font-style: italic; }
.w-wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; flex: none; }
.w-wave i { width: 2px; border-radius: 2px; background: currentColor; }
.w-wave i:nth-child(1) { height: 40%; } .w-wave i:nth-child(2) { height: 90%; } .w-wave i:nth-child(3) { height: 60%; }
.w-wave i:nth-child(4) { height: 100%; } .w-wave i:nth-child(5) { height: 45%; }
.w-route {
  align-self: flex-start; margin: 10px 0 12px; padding: 5px 10px;
  border: 1px dashed var(--wdim); border-radius: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--wdim);
}
.w-reply p + p { margin-top: 4px; }
.w-quote { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--wline); color: var(--wdim); font-size: 12px; }
.w-quote-who { margin-bottom: 4px; }

/* ---------- 3. Light chapter: how it works ---------- */
.chapter-light {
  position: relative; z-index: 1;
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--chapter-r) var(--chapter-r) 0 0;
  padding: 72px 20px calc(80px + var(--overlap));
}
@media (min-width: 640px) { .chapter-light { padding: 88px 32px calc(96px + var(--overlap)); } }
@media (min-width: 768px) { .chapter-light { padding: 104px 40px calc(112px + var(--overlap)); } }
.light-title {
  text-align: center; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 160px); line-height: .9; letter-spacing: -.035em;
}
.light-lead {
  max-width: 40rem; margin: 28px auto 56px; text-align: center;
  font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--paper-ink-2);
}
@media (min-width: 768px) { .light-lead { margin-bottom: 88px; } }
.steps { max-width: 64rem; margin: 0 auto; }
.step {
  display: flex; align-items: flex-start; gap: clamp(18px, 4.5vw, 64px);
  padding: 32px 0;
  border-top: 1px solid var(--paper-line);
}
.step:last-child { border-bottom: 1px solid var(--paper-line); }
@media (min-width: 640px) { .step { padding: 40px 0; } }
@media (min-width: 768px) { .step { padding: 48px 0; } }
.step-num {
  flex: none; min-width: 1.22em;
  font-weight: 900; font-size: clamp(3rem, 10vw, 140px); line-height: .8; letter-spacing: -.05em;
}
.step-copy { padding-top: clamp(2px, .6vw, 10px); }
.step h3 {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px;
  font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.05rem, 2.2vw, 2.1rem); line-height: 1.1; letter-spacing: .01em;
}
.step p { max-width: 42rem; font-weight: 300; font-size: clamp(.98rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--paper-ink-2); }
.keys { white-space: nowrap; }
kbd {
  display: inline-block;
  padding: .06em .45em;
  font-family: var(--mono); font-size: .8em; font-weight: 500; line-height: 1.35; color: var(--paper-ink);
  background: #FFFFFF;
  border: 1px solid rgba(12, 12, 12, .24); border-bottom-width: 3px; border-radius: 7px;
}
.js .step.fade.is-in kbd { animation: keypress .55s var(--ease-out) both; }
.js .step.fade.is-in kbd:nth-of-type(1) { animation-delay: .7s; }
.js .step.fade.is-in kbd:nth-of-type(2) { animation-delay: .78s; }
.js .step.fade.is-in kbd:nth-of-type(3) { animation-delay: .86s; }
@keyframes keypress {
  0%, 100% { transform: none; border-bottom-width: 3px; }
  35%, 70% { transform: translateY(2px); border-bottom-width: 1px; }
}
.tag {
  padding: .1em .45em; border-radius: 6px; white-space: nowrap;
  font-family: var(--mono); font-size: .8em; color: var(--paper-ink);
  background: rgba(12, 12, 12, .06); border: 1px solid rgba(12, 12, 12, .16);
}
.fillers s {
  position: relative; text-decoration: none;
  font-family: var(--mono); font-size: .86em; color: rgba(12, 12, 12, .72);
}
.fillers s::after {
  content: ''; position: absolute; left: -3px; right: -3px; top: 54%; height: 2px;
  background: var(--paper-ink); transform-origin: 0 50%;
}
.js .step.fade .fillers s::after { transform: scaleX(0); }
.js .step.fade.is-in .fillers s::after { transform: scaleX(1); transition: transform .45s var(--ease-out) calc(.7s + var(--k) * .18s); }
.mini-wave { display: inline-flex; align-items: center; gap: 3px; height: .9em; }
.mini-wave i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; animation: wave 1s var(--ease) infinite alternate; }
.mini-wave i:nth-child(2) { animation-delay: -.2s; } .mini-wave i:nth-child(3) { animation-delay: -.5s; }
.mini-wave i:nth-child(4) { animation-delay: -.1s; } .mini-wave i:nth-child(5) { animation-delay: -.7s; }
.mini-wave i:nth-child(6) { animation-delay: -.35s; } .mini-wave i:nth-child(7) { animation-delay: -.6s; }
@keyframes wave { to { height: 100%; } }
.caret--ink { color: var(--paper-ink); margin-left: 4px; }

/* ---------- 4. Where it fits: dark chapter with stacking cards ---------- */
.fits {
  position: relative; z-index: 2;
  margin-top: calc(var(--overlap) * -1);
  background: var(--bg);
  border-radius: var(--chapter-r) var(--chapter-r) 0 0;
  padding: 80px var(--gutter) 40px;
}
@media (min-width: 768px) { .fits { padding-top: 128px; } }
.fits-title {
  text-align: center; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 160px); line-height: .9; letter-spacing: -.02em;
  padding-bottom: .06em; margin-bottom: 24px;
}
.stack { max-width: 1280px; margin: 0 auto; }
.slot { position: sticky; top: 0; height: 85vh; padding-top: 88px; }
@media (min-width: 768px) { .slot { padding-top: 112px; } }
.slot:last-child { height: auto; } /* the last card only needs room to arrive, not to be covered */
.card {
  position: relative; top: calc(var(--i) * 28px);
  display: flex; flex-direction: column; gap: 18px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid rgba(215, 226, 234, .16);
  border-radius: 40px;
  transform-origin: 50% 0;
  will-change: transform;
}
/* Covered cards dim under the next one (home.js sets --dim); an overlay, so only opacity changes. */
.card::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; }
@media (min-width: 640px) { .card { padding: 24px; border-radius: 50px; } }
@media (min-width: 768px) { .card { padding: 32px; border-radius: 60px; gap: 24px; } }
.card-top { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; padding: 8px 8px 0; }
@media (min-width: 768px) { .card-top { grid-template-columns: auto 1fr auto; gap: 28px; padding: 4px 8px 0; } }
.card-num {
  font-weight: 900; font-size: clamp(3rem, 8vw, 120px); line-height: .8; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--steel-a), var(--steel-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.card-role { font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: .01em; }
.card-where { margin-top: 8px; font-family: var(--mono); font-size: .8rem; letter-spacing: .03em; color: var(--ink-2); }
.card-body { margin-top: 8px; max-width: 48ch; font-weight: 300; font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
.card-top .ghost { justify-self: start; }
@media (min-width: 768px) { .card-top .ghost { justify-self: end; } }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; height: 270px; }
.card-col { display: none; }
@media (min-width: 768px) {
  .card-grid { grid-template-columns: 2fr 3fr; height: min(40vh, 380px); min-height: 300px; }
  .card-col { display: grid; grid-template-rows: 2fr 3fr; gap: 12px; min-height: 0; }
}
.scene { min-height: 0; border-radius: 26px; overflow: hidden; }
@media (min-width: 768px) { .scene { border-radius: 34px; } }
.scene .win { border-radius: inherit; }
.scene .win-bar { padding-left: 20px; }

/* ---------- Shared band layout for the dark sections ---------- */
.band { max-width: 1440px; margin: 0 auto; padding: 72px var(--gutter); }
@media (min-width: 768px) { .band { padding: 88px var(--gutter); } }
/* Section titles sit centred on every screen (Sauvik, Nov 8, 2026), with their lead under them. */
.band-head { display: grid; justify-items: center; gap: 22px; margin-bottom: 48px; text-align: center; }
.band-head .lead { margin-inline: auto; text-wrap: balance; }
@media (min-width: 768px) { .band-head { margin-bottom: 64px; } }
.big-title {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 11.5vw, 176px); line-height: .88; letter-spacing: -.02em;
  padding-bottom: .16em; margin-bottom: -.12em;
}
/* Section headings ([data-rise], home.js): each word rises out of its own mask, left to right. */
.is-split .rise-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .03em .16em; margin: -.1em -.03em -.16em; }
.is-split .rise-i { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .9s var(--ease-out) var(--d, 0s); }
.is-split.is-in .rise-i { transform: none; }
.hero-heading.is-split { background: none; }
.hero-heading.is-split .rise-i {
  background: linear-gradient(180deg, var(--steel-a), var(--steel-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* The second heading size, for sections that support the story rather than carry it. */
.mid-title {
  max-width: 18ch;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 6.4vw, 96px); line-height: .92; letter-spacing: -.015em;
  padding-bottom: .1em; margin-bottom: -.06em;
}
.lead { max-width: 40rem; font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink-2); }

/* ---------- 5. Polished ---------- */
.agent { padding-top: 112px; }
@media (min-width: 768px) { .agent { padding-top: 128px; } }
.agent-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .agent-grid { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; } }
.route { border-top: 1px solid var(--line); }
.route li { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .route li { grid-template-columns: 170px 1fr; gap: 24px; } }
.route-k { padding-top: .55em; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.route-v { font-size: clamp(1.25rem, 2.3vw, 2.05rem); line-height: 1.22; letter-spacing: -.01em; font-weight: 400; }
.route-v--said { font-weight: 300; font-style: italic; color: var(--ink-2); }
.route-v--out { font-weight: 500; }
.agent-scene {
  height: 340px; border-radius: 28px;
  outline: 1px dashed var(--line-strong); outline-offset: 10px;
}
@media (min-width: 1024px) { .agent-scene { height: 330px; margin: 10px; } }
/* Wide screens: the window stays in view, centred under the nav, while the four steps scroll past it. */
@media (min-width: 1024px) { .polished-demo { position: sticky; top: max(104px, calc(50vh - 175px)); } }
.agent-scene .win { border-radius: inherit; }
/* Scroll story (home.js adds .is-story, wide screens only): the step nearest the middle of the screen is lit,
   and the part of the window it describes gets the amber ring of the live signal. Without JS all are lit. */
@media (min-width: 1024px) {
  .is-story .route li { opacity: .4; transition: opacity .35s var(--ease-out); }
  .is-story .route li.is-on { opacity: 1; }
  .is-story .w-said, .is-story .w-route, .is-story .w-reply { border-radius: 8px; outline: 2px solid transparent; outline-offset: 5px; transition: outline-color .3s var(--ease-out), opacity .3s var(--ease-out); }
  .is-story[data-step] .w-said, .is-story[data-step] .w-route, .is-story[data-step] .w-reply, .is-story[data-step] .w-quote { opacity: .38; }
  .is-story[data-step="0"] .w-said,
  .is-story[data-step="1"] .w-route,
  .is-story[data-step="2"] .w-reply,
  .is-story[data-step="3"] .w-reply { opacity: 1; outline-color: rgba(255, 178, 36, .75); }
  .is-story[data-step="0"] .w-wave i { animation: w-wave .9s var(--ease) infinite alternate; transform-origin: center; }
  .is-story[data-step="0"] .w-wave i:nth-child(2n) { animation-delay: -.45s; }
  .is-story[data-step="0"] .w-wave i:nth-child(3n) { animation-delay: -.2s; }
}
@keyframes w-wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .is-story .w-wave i { animation: none !important; } }
/* The Plain | Polished switch above both columns. It only works with JS, so it only shows with JS. */
.mode-row { display: none; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.js .mode-row { display: flex; }
.mode-hint { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mode-seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.mode-seg button {
  padding: 9px 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 .82rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.mode-seg button:hover { color: var(--ink); }
.mode-seg button[aria-pressed="true"] { background: linear-gradient(180deg, var(--steel-a), var(--steel-b)); color: var(--bg); }
.mode-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.langs { margin-top: 72px; }
.langs-h { margin: 0; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
.langs-note { margin-top: 16px; max-width: 46rem; font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-2); }
.lang-pick { margin-top: 28px; }
.lang-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 .9em 0 .55em;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(215, 226, 234, .03);
  font-weight: 500; font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .16s var(--ease-out);
}
.lang-chip:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .lang-chip:hover { border-color: var(--ink-2); background: rgba(215, 226, 234, .07); } }
.lang-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-flag { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(215, 226, 234, .22); }
.lang-flag--lg { width: 28px; height: 28px; }
.lang-chip-en { font-family: 'Geist Mono', ui-monospace, monospace; font-size: .6em; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lang-chip[aria-selected="true"] { background: linear-gradient(180deg, var(--steel-a), var(--steel-b)); border-color: transparent; color: var(--bg); }
.lang-chip[aria-selected="true"] .lang-chip-en { color: rgba(12, 12, 12, .62); }
.lang-chip[aria-selected="true"] .lang-flag { box-shadow: 0 0 0 1.5px rgba(12, 12, 12, .5); }
.lang-examples { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lang-example { padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(215, 226, 234, .03); }
.lang-example-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.lang-example-k { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lang-example-k--out { margin: 18px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.lang-example-said { margin: 0; font-weight: 300; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.lang-example-out { margin: 0; font-weight: 400; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }

/* Tabs (home.js adds .lang-pick--tabs). Every example sits in the same grid cell, so the card is as tall as
   the longest one and switching language never moves anything below it. The new one fades up over the old. */
.lang-pick--tabs .lang-examples { grid-template-columns: minmax(0, 1fr); margin-top: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 30px; background: rgba(215, 226, 234, .04); }
.lang-pick--tabs .lang-example {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; padding: 0; border: 0; border-radius: 0; background: none;
  opacity: 0; visibility: hidden; transform: translate3d(0, 6px, 0);
  transition: opacity .14s var(--ease-out), transform .14s var(--ease-out), visibility 0s linear .14s;
}
.lang-pick--tabs .lang-example.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease-out) .04s, transform .28s var(--ease-out) .04s, visibility 0s; }
.lang-pick--instant .lang-example, .lang-pick--instant .lang-example.is-on { transition: none; }
.lang-pick--tabs .lang-example-said { font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.lang-pick--tabs .lang-example-out { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; letter-spacing: -.005em; }
@media (prefers-reduced-motion: reduce) { .lang-pick--tabs .lang-example { transform: none; } }

/* Wide screens: heading, note and chips on the left, the example card filling the right. */
@media (min-width: 1100px) {
  .langs:has(.lang-pick--tabs) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 5vw, 72px); }
  .langs:has(.lang-pick--tabs) .lang-pick { display: contents; }
  .langs:has(.lang-pick--tabs) .langs-h { grid-column: 1; grid-row: 1; }
  .langs:has(.lang-pick--tabs) .langs-note { grid-column: 1; grid-row: 2; }
  .langs:has(.lang-pick--tabs) .lang-chips { grid-column: 1; grid-row: 3; align-content: start; margin-top: 28px; }
  .langs:has(.lang-pick--tabs) .lang-examples { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
}

/* Phones: one swipeable row of chips instead of seven rows of them. */
@media (max-width: 767px) {
  .lang-pick--tabs .lang-chips {
    position: relative; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px; scroll-padding-inline: 16px; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .lang-pick--tabs .lang-chips::-webkit-scrollbar { display: none; }
  .lang-pick--tabs .lang-chips li { flex: none; scroll-snap-align: start; }
}

/* ---------- 7. Privacy ---------- */
.privacy-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .privacy-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.stage--vault { width: 100%; height: auto; aspect-ratio: 16 / 10; }
/* Ledger rows wait dimmed until the scene reaches them, then stay lit (only when the motion layer runs). */
.ledger-row { transition: opacity .45s var(--ease-out); }
.has-steps .ledger-row { opacity: .45; }
.has-steps .ledger-row.is-on, .has-steps .ledger-row.is-done { opacity: 1; }
.has-steps .ledger-row.is-on dt::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 14px; vertical-align: middle; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px rgba(255, 178, 36, .7); }
.privacy-caption { min-height: 2.6em; }

/* Vault overlays: a step heading, the outbound meter, and labels pinned to the 3D objects. */
.stage--vault { overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 40% 60%, #131417 0%, var(--bg) 70%); }
.vault-hud { position: absolute; z-index: 2; top: clamp(14px, 2.4vw, 26px); left: clamp(16px, 2.6vw, 30px); right: 40%; pointer-events: none; }
.vault-step { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.vault-title { margin-top: 6px; font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.6rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.vault-meter {
  position: absolute; z-index: 2; right: clamp(14px, 2.4vw, 26px); bottom: clamp(12px, 2vw, 22px);
  display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(12, 12, 12, .7);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.vault-meter b { font-weight: 500; color: #34D58A; }
.is-out .vault-meter b { color: var(--amber); }
.anno {
  position: absolute; z-index: 1; left: 0; top: 0; transform: translate(-50%, 0);
  padding-top: 6px; white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--ink-2);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.stage.is-live .anno { opacity: 1; }
.anno--zone { transform: translate(0, 0); padding: 8px 0 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.anno--out { transform: translate(0, -100%); padding: 0 0 8px; color: var(--ink-3); }
.anno--packet { transform: translate(-50%, -100%); padding: 0 0 6px; white-space: nowrap; text-align: center; line-height: 1.35; color: var(--amber); }
.stage.is-live .anno--packet { opacity: 0; }
.stage.is-live.is-sending .anno--packet { opacity: 1; }
@media (max-width: 639px) {
  .stage--vault { aspect-ratio: 4 / 5; }
  .vault-hud { right: 16px; }
  .vault-title { font-size: 1rem; }
  .anno { font-size: .62rem; }
  .anno--zone { font-size: .64rem; }
  .vault-meter { left: 12px; right: 12px; justify-content: space-between; font-size: .62rem; }
}
.privacy-caption { margin-top: 14px; font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--ink-2); }
.ledger dl { border-top: 1px solid var(--line); }
.ledger-row { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .ledger-row { grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; } }
.ledger-row dt {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: .95; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--steel-a), var(--steel-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.ledger-row dd { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ledger-row--sent dd { max-width: 30ch; color: var(--ink-2); text-align: left; }
@media (min-width: 640px) { .ledger-row--sent dd { text-align: right; } }
.ledger-note { margin-top: 28px; max-width: 40rem; font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; color: var(--ink-2); }

/* ---------- 8. Pricing: Plain and Polished side by side ---------- */
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 44px); border: 1.5px solid var(--line-strong); border-radius: 36px; }
.plan-name { font-family: var(--mono); font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.plan-price {
  margin-top: 14px; white-space: nowrap;
  font-weight: 900; font-size: clamp(5.5rem, 13vw, 200px); line-height: .8; letter-spacing: -.03em;
  padding: .02em .04em .06em 0;
}
.price-cur { font-size: .42em; font-weight: 600; vertical-align: .95em; margin-right: .03em; letter-spacing: 0; }
/* Odometer (home.js): each digit is a 20-row column that turns once and lands as the card enters. */
.plan-price.has-odo { background: none; }
.odo { display: inline-block; height: .86em; overflow: hidden; vertical-align: bottom; }
.odo-col { display: block; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) calc(.25s + var(--d, 0s)); }
.plan-price.has-odo .price-cur,
.odo-col span {
  background: linear-gradient(180deg, var(--steel-a), var(--steel-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.odo-col span { display: block; height: .86em; line-height: .86; }
.plan.is-in .odo-col { transform: translate3d(0, calc(var(--to) * -.86em), 0); }
.plan-per { margin-top: 12px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400; color: var(--ink); }
.plan-second { margin-top: 6px; font-size: .95rem; font-weight: 300; color: var(--ink-2); line-height: 1.45; }
.plan-list { margin-top: 28px; border-top: 1px solid var(--line); }
.plan-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 300; font-size: 1rem; color: var(--ink-2); }
.plan-cta { margin-top: auto; padding-top: 36px; }
.plan-note { margin-top: auto; padding-top: 36px; font-weight: 300; color: var(--ink-2); }
.price-foot { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .price-foot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 56px; align-items: center; } }
.price-switch { padding: 22px clamp(20px, 2.6vw, 32px) 10px; border: 1px solid var(--line); border-radius: 30px; background: rgba(215, 226, 234, .04); }
.price-switch-h { margin: 0 0 6px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.price-switch ul { list-style: none; margin: 0; padding: 0; }
.price-switch li + li { border-top: 1px solid var(--line); }
.price-switch a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 10px 0; font-weight: 400; font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink); text-decoration: none; }
.price-switch a span { color: var(--ink-3); transition: transform .2s var(--ease-out), color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .price-switch a:hover span { transform: translateX(4px); color: var(--ink); } }
.price-switch a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.price-terms { margin: 0; max-width: 46rem; font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }
/* Credit calculator, under both plans: the live control gets the amber thumb; the track fills up to it. */
.price-calc { display: grid; margin-top: 24px; padding: 28px clamp(20px, 3.4vw, 44px); border-radius: 30px; background: rgba(215, 226, 234, .04); border: 1px solid var(--line); }
@media (min-width: 900px) {
  .price-calc { grid-template-columns: 1fr 1fr; grid-template-areas: "q a" "range a" "scale note"; column-gap: 56px; align-items: center; }
  .price-calc-q { grid-area: q; }
  .price-calc-range { grid-area: range; }
  .price-calc-scale { grid-area: scale; }
  .price-calc-a { grid-area: a; margin-top: 0 !important; align-self: end; }
  .price-calc-note { grid-area: note; align-self: start; }
}
.price-calc-q { display: block; font-size: 1.05rem; font-weight: 300; color: var(--ink-2); }
.price-calc-q output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 10px 0 0; background: none; cursor: pointer; }
.price-calc-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) 0 var(--fill, 0%), var(--line-strong) var(--fill, 0%) 100%); }
.price-calc-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
.price-calc-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.price-calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--amber); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--amber), 0 0 14px rgba(255, 178, 36, .45); }
.price-calc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--amber), 0 0 14px rgba(255, 178, 36, .45); }
.price-calc-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.price-calc-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.price-calc-a { margin-top: 18px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.price-calc-a strong { display: inline-block; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-calc-note { margin-top: 10px; font-size: .95rem; font-weight: 300; color: var(--ink-2); }
.price-calc-note p + p { margin-top: 6px; }

/* ---------- 9. Download ---------- */
.os-list { border-top: 1px solid var(--line); }
.os { border-bottom: 1px solid var(--line); }
.os-link { display: grid; gap: 14px; padding: 28px 0; align-items: center; }
@media (min-width: 900px) { .os-link { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 210px; gap: 32px; padding: 34px 0; } }
.os-name {
  font-weight: 900;
  font-size: clamp(3.25rem, 9vw, 9rem); line-height: .82; letter-spacing: -.018em;
  background: linear-gradient(180deg, var(--steel-a), var(--steel-b));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .04em;
  transition: transform .6s var(--ease-out);
}
/* The platform's mark before its name: steel like the name, outlined platforms (soon) dimmer. */
.os-head { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-width: 0; transition: transform .6s var(--ease-out); }
.os-ico { flex: none; width: clamp(36px, 4.6vw, 72px); height: clamp(36px, 4.6vw, 72px); color: var(--steel-b); }
/* With the mark beside it, the name steps down a size so "Windows" still fits its column. */
.os-head .os-name { font-size: clamp(3rem, 7vw, 7.25rem); }
.os--soon .os-ico { color: rgba(187, 204, 215, .45); }
.os--yours .os-ico { color: #E4EEF4; }
.os-link:hover .os-head { transform: translateX(14px); }
.os-link:hover .os-head .os-name { transform: none; }
.os--soon .os-name { background: none; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(187, 204, 215, .6); }
.os-link:hover .os-name { transform: translateX(14px); }
.os-detail { display: grid; gap: 6px; }
.os-note { font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.5; color: var(--ink); }
.os-req { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--ink-2); }
.os-yours { justify-self: start; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.os--yours .os-name { background: linear-gradient(180deg, #8A919B, #E4EEF4); -webkit-background-clip: text; background-clip: text; }
.os-cta { justify-self: start; }
/* Not a button: Chrome is not in the Web Store yet, so there is nothing to click. */
.os-cta--soon { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 900px) { .os-cta { justify-self: end; } }

/* ---------- 10. FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } .faq-side { position: sticky; top: 104px; align-self: start; } }
.faq-title { white-space: nowrap; }

/* FAQ portal: a tilting window onto the 3D object for the question you are reading. Wide screens only. */
.fp { display: none; }
@media (min-width: 1024px) {
  .fp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 40px; }
}
.fp-window {
  position: relative; aspect-ratio: 320 / 350; overflow: hidden;
  border-radius: 64px; border: 1px solid var(--line-strong);
  background: radial-gradient(90% 80% at 50% 45%, #17181c 0%, #0b0b0d 75%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  will-change: transform;
}
.fp-inner { position: absolute; inset: -6%; }
.fp-stage { position: absolute; inset: 0; }
.fp-stage[hidden] { display: none; }
.fp-stage[data-view="typed"] { inset: 0 14%; } /* the five keys need side room inside the rounded window */
.fp-head { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fp-n { color: var(--amber); }
.fp-word {
  margin-top: 12px; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 3.6vw, 4rem); line-height: .9; letter-spacing: -.02em;
  padding-bottom: .06em; white-space: nowrap; /* home.js shrinks a long word to fit, never breaks it */
}
.fp-facts { margin-top: 18px; border-top: 1px solid var(--line); }
.fp-fact { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fp-fact dt { padding-top: .2em; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fp-fact dd { font-weight: 400; font-size: .95rem; line-height: 1.35; color: var(--ink); }
/* Switching question: the window opens like a mask, the word rises out of a blur, the facts follow. */
.fp.is-switching .fp-window { animation: fp-mask .85s cubic-bezier(.16, 1, .3, 1) both; }
.fp.is-switching .fp-n { animation: fp-up .5s cubic-bezier(.22, 1, .36, 1) both; }
.fp.is-switching .fp-word { animation: fp-word 1s cubic-bezier(.16, 1, .3, 1) .05s both; }
.fp.is-switching .fp-fact { animation: fp-up .7s cubic-bezier(.22, 1, .36, 1) both; }
.fp.is-switching .fp-fact:nth-child(1) { animation-delay: .2s; }
.fp.is-switching .fp-fact:nth-child(2) { animation-delay: .32s; }
.fp.is-switching .fp-fact:nth-child(3) { animation-delay: .44s; }
@keyframes fp-mask { from { clip-path: inset(44% 38% round 64px); } to { clip-path: inset(0 round 64px); } }
@keyframes fp-word { from { opacity: 0; filter: blur(12px); transform: translateY(30px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fp-up { from { opacity: 0; filter: blur(6px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
.faq-help { margin-top: 22px; max-width: 26rem; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.faq-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: grid; grid-template-columns: 36px 1fr 24px; gap: 12px; align-items: start;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-q { color: #FFFFFF; }
.qa-n { padding-top: .35em; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.qa-q { font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.35; transition: color .2s; }
.qa-x { position: relative; width: 20px; height: 20px; margin-top: .25em; }
.qa-x::before, .qa-x::after { content: ''; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out); }
.qa-x::after { transform: rotate(90deg); }
.qa[open] .qa-x::after { transform: rotate(0deg); }
.qa-a { padding: 0 8px 26px 48px; max-width: 46rem; font-weight: 300; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }

/* ---------- 11. Footer ---------- */
.foot { padding: 96px var(--gutter) 28px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; max-width: 1440px; margin: 0 auto; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-col h3 { margin-bottom: 12px; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.foot-col a { display: block; padding: 9px 0; font-weight: 300; font-size: 1rem; line-height: 1.35; transition: color .2s; overflow-wrap: anywhere; }
.foot-col a:hover { color: #FFFFFF; }

/* Social band: hairline tiles. Hover fills the tile from below in ink, the arrow leaves and comes back,
   and each icon moves its own part (LinkedIn dot hops, Instagram lens focuses, YouTube play nudges). */
.foot-social {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  max-width: 1440px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.foot-social-k { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.socials { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 600px; max-width: 780px; }
.soc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 18px 12px 12px;
  border: 1px solid var(--line); border-radius: 20px;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), transform .5s var(--ease-out);
}
.soc::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translate3d(0, 101%, 0);
  transition: transform .55s var(--ease-out);
}
.soc:hover, .soc:focus-visible { color: var(--bg); border-color: var(--ink); transform: translate3d(0, -3px, 0); }
.soc:hover::before, .soc:focus-visible::before { transform: none; }
.soc:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.soc-ic {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(215, 226, 234, .06); transition: background .35s var(--ease-out);
}
.soc:hover .soc-ic, .soc:focus-visible .soc-ic { background: rgba(12, 12, 12, .08); }
.soc-ic svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.soc-ic svg * { transform-box: fill-box; transform-origin: center; }
.ig-dot { fill: currentColor; stroke: none; }
.soc-txt { display: grid; gap: 2px; min-width: 0; line-height: 1.2; }
.soc-name { font-weight: 500; font-size: 1.02rem; }
.soc-handle {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3); transition: color .35s var(--ease-out);
}
.soc:hover .soc-handle, .soc:focus-visible .soc-handle { color: rgba(12, 12, 12, .62); }
.soc-go { flex: none; display: grid; width: 16px; height: 16px; margin-left: auto; overflow: hidden; }
.soc-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.soc:hover .soc-go svg, .soc:focus-visible .soc-go svg { animation: soc-go .6s var(--ease-out); }
.soc--linkedin:hover .li-dot, .soc--linkedin:focus-visible .li-dot { animation: soc-hop .7s var(--ease-out); }
.soc--instagram:hover .ig-lens, .soc--instagram:focus-visible .ig-lens { animation: soc-focus .7s var(--ease-out); }
.soc--instagram:hover .ig-flash, .soc--instagram:focus-visible .ig-flash { animation: soc-flash .7s var(--ease-out); }
.soc--youtube:hover .yt-play, .soc--youtube:focus-visible .yt-play { animation: soc-play .8s var(--ease-out); }
@keyframes soc-go { 0% { transform: none; } 45% { transform: translate(120%, -120%); } 46% { transform: translate(-120%, 120%); } 100% { transform: none; } }
@keyframes soc-hop { 0%, 100% { transform: none; } 35% { transform: translateY(-3.5px); } 65% { transform: translateY(.6px); } }
@keyframes soc-focus { 0% { transform: scale(1); } 35% { transform: scale(.62); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes soc-flash { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.9); } }
@keyframes soc-play { 0%, 100% { transform: none; } 30% { transform: translateX(2.5px); } 55% { transform: translateX(-.8px); } 75% { transform: translateX(1px); } }

/* Entrance (home.js adds .fade/.is-in): tiles rise one after another, then their strokes draw in. */
.js .foot-social.fade .soc { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .foot-social.fade.is-in .soc { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--i) * .1s), transform .9s var(--ease-out) calc(var(--i) * .1s), color .35s var(--ease-out), border-color .35s var(--ease-out); }
.js .foot-social.fade.is-in .soc:hover, .js .foot-social.fade.is-in .soc:focus-visible { transform: translate3d(0, -3px, 0); transition: opacity .7s var(--ease), transform .5s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out); }
/* Strokes are picked by tag, not [pathLength]: Chrome misses the camelCase SVG attribute when .is-in lands. */
.js .foot-social.fade .soc-ic :is(path, rect, circle):not(.ig-dot) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .foot-social.fade.is-in .soc-ic :is(path, rect, circle):not(.ig-dot) { stroke-dashoffset: 0; animation: soc-draw 1.1s var(--ease-out) both; animation-delay: calc(.25s + var(--i) * .12s + var(--j, 0) * .14s); }
.js .foot-social.fade .ig-dot { transform: scale(0); }
.js .foot-social.fade.is-in .ig-dot { transform: none; animation: soc-pop .5s var(--ease-out) both; animation-delay: calc(.75s + var(--i) * .12s); }
@keyframes soc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes soc-pop { from { transform: scale(0); } to { transform: none; } }

@media (max-width: 1099px) {
  .foot-social { flex-direction: column; align-items: stretch; text-align: center; }
  .socials { flex-basis: auto; max-width: none; }
}
@media (max-width: 767px) { .socials { grid-template-columns: 1fr; } }
.soc { text-align: left; }

.foot-word {
  margin: 72px 0 6px; text-align: center; white-space: nowrap; user-select: none;
  font-weight: 900; font-size: 24vw; line-height: .78; letter-spacing: -.005em;
  padding: .04em .03em .26em;
}
.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  max-width: 1440px; margin: 0 auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-2);
}
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- Phones: one centred axis ----------
   Headings, intros, list rows and CTAs sit on the centre line. The FAQ questions stay left so long
   questions stay easy to scan. */
@media (max-width: 767px) {
  /* Hero: copy and buttons on the centre line; the demo keeps its own left-aligned reading order. */
  .hero-copy { justify-items: center; text-align: center; margin-inline: auto; }
  .hero-cta { justify-items: center; }
  .hero-btns, .hero-ways { justify-content: center; }
  .hd { margin-inline: auto; }
  .hd-tabs { margin-inline: auto; }
  .lead { margin-inline: auto; }


  .step { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .step h3 { justify-content: center; }
  .step p { margin-inline: auto; }

  .card-top { justify-items: center; text-align: center; }
  .card-top .ghost { justify-self: center; }
  .card-body { margin-inline: auto; }

  .route li { justify-items: center; text-align: center; }
  .route-k { padding-top: 0; }
  .langs { text-align: center; }
  .lang-chips { justify-content: center; }
  .langs-note { margin-inline: auto; }
  .lang-example { text-align: left; }
  .lang-pick--tabs .lang-example-head { justify-content: flex-start; }
  .plan { text-align: center; }
  .plan-cta { display: flex; justify-content: center; }
  .price-terms { text-align: center; margin-inline: auto; }
  .price-switch { text-align: left; }

  .privacy-caption, .ledger-note { text-align: center; margin-inline: auto; }
  .ledger-row { justify-items: center; text-align: center; }
  .ledger-row--sent dd { margin-inline: auto; text-align: center; }

  .os-link { justify-items: center; text-align: center; }
  .os-cta, .os-yours { justify-self: center; }
  .os-link:hover .os-name, .os-link:hover .os-head { transform: none; }
  .os-head { justify-content: center; }

  .faq-side { text-align: center; }
  .faq-help { margin-inline: auto; }

  .foot-col { text-align: center; }
  .foot-legal { flex-direction: column; justify-content: center; text-align: center; }
}

/* ---------- Reduced motion: final states, nothing loops ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .caret { animation: none; }
  .mini-wave i { animation: none; height: 70%; }
  /* home.js measures these synchronously after resizing them; even a .01ms transition makes it read the old size. */
  [data-fit], [data-fit] * { transition: none !important; }
}

/* ── Promo band (landing/partials/promo-band): the site-wide coupon, while it is live.
      Amber marks it as a live, timed offer; it goes with the coupon. ── */
.promo-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 20px; padding: 26px clamp(20px, 3.4vw, 40px); border-radius: 30px; border: 1.5px solid rgba(255, 178, 36, .55); background: rgba(215, 226, 234, .04); }
.promo-band[hidden] { display: none; }
.promo-kicker { margin: 0 0 8px; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.promo-title { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.promo-detail { margin: 10px 0 0; max-width: min(46ch, 100%); font-weight: 300; color: var(--ink-2); }
.promo-main, .promo-side { min-width: 0; }
.promo-side { display: grid; gap: 12px; justify-items: start; align-content: center; }
.promo-code { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 7px 7px 14px; border-radius: 999px; border: 1px dashed rgba(255, 178, 36, .6); font-weight: 300; color: var(--ink-2); }
.promo-code strong { font: 500 1rem var(--mono); letter-spacing: .08em; color: var(--amber); }
.promo-copy { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 400 .78rem Kanit, var(--ui); cursor: pointer; transition: transform .16s var(--ease-out), border-color .2s; }
.promo-copy:hover { border-color: var(--amber); }
.promo-copy:active { transform: scale(.97); }
.promo-ends { margin: 0; font: 400 .8rem/1.4 var(--mono); color: var(--ink-3); }
@media (min-width: 820px) {
  .promo-band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
  .promo-side { justify-items: end; text-align: right; }
}

/* ── Hero offer (landing/home/hero.blade.php): the live coupon, centred under the headline.
      A capsule whose amber edge travels around it, a live dot, the code, the offer and a countdown.
      Default state is the final one; html.intro brings it in with the copy. ── */
@property --ho-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hero-offer-wrap { position: relative; z-index: 3; display: flex; justify-content: center; padding: 6px var(--gutter) 0; }
.hero-offer {
  --ho-a: 0deg;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  max-width: 100%; padding: 8px 10px 8px 16px; border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(28, 24, 18, .96), rgba(16, 15, 13, .96)) padding-box,
    conic-gradient(from var(--ho-a), rgba(255, 178, 36, .18) 0deg, rgba(255, 178, 36, .95) 50deg, rgba(255, 178, 36, .18) 120deg, rgba(255, 178, 36, .18) 360deg) border-box;
  box-shadow: 0 10px 40px -18px rgba(255, 178, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: transform .25s var(--ease-out), box-shadow .3s var(--ease-out);
  animation: ho-orbit 6s linear infinite;
}
/* One light sweep across the capsule, every few seconds. */
.hero-offer::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 210, 122, .12) 50%, transparent 65%);
  transform: translateX(-110%); animation: ho-sweep 5.5s var(--ease-out) 1.6s infinite;
}
.hero-offer:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -18px rgba(255, 178, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hero-offer:active { transform: translateY(0) scale(.98); }
.hero-offer:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.ho-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.ho-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); animation: ho-ping 2.2s var(--ease-out) infinite; }
.ho-name { color: var(--amber); font-weight: 500; letter-spacing: .14em; }
.ho-code { padding: 3px 9px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-weight: 500; letter-spacing: .1em; }
.ho-text { font-family: Kanit, var(--ui); font-size: .95rem; letter-spacing: 0; text-transform: none; font-weight: 300; color: var(--ink-2); }
.ho-text strong { font-weight: 500; color: var(--ink); }
.ho-ends { display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.ho-ends-k { color: var(--ink-3); }
.ho-clock { display: inline-flex; gap: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ho-seg { display: inline-flex; align-items: baseline; gap: 1px; }
.ho-num { display: inline-block; min-width: 2ch; text-align: right; overflow: hidden; }
.ho-seg[data-k="d"] .ho-num { min-width: 0; }
.ho-num.is-tick { animation: ho-tick .32s var(--ease-out); }
.ho-unit { color: var(--ink-3); font-size: .62rem; }
.ho-arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 178, 36, .14); color: var(--amber); transition: transform .25s var(--ease-out), background-color .25s var(--ease-out); }
.hero-offer:hover .ho-arrow { transform: translateX(3px); background: rgba(255, 178, 36, .24); }
@keyframes ho-orbit { to { --ho-a: 360deg; } }
@keyframes ho-sweep { 0% { transform: translateX(-110%); } 35%, 100% { transform: translateX(110%); } }
@keyframes ho-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ho-tick { from { transform: translate3d(0, 55%, 0); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
/* First visit: it arrives with the line under the headline. */
.intro .hero-offer-wrap { opacity: 0; }
.intro.intro-go .hero-offer-wrap { animation: ho-in .9s var(--ease-out) .5s both; }
@keyframes ho-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* Phones: two rows, the offer itself on top. */
@media (max-width: 639px) {
  .hero-offer { border-radius: 22px; padding: 12px 14px; gap: 8px 10px; }
  .ho-text { flex-basis: 100%; text-align: center; order: -1; }
  .ho-ends { padding-left: 0; border-left: 0; }
}
@media (min-width: 1024px) { .hero-offer-wrap { padding-top: 2px; margin-bottom: -6px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-offer, .hero-offer::after, .ho-live::after, .ho-num.is-tick { animation: none; }
  .hero-offer { background: linear-gradient(180deg, rgba(28, 24, 18, .96), rgba(16, 15, 13, .96)) padding-box, linear-gradient(rgba(255, 178, 36, .6), rgba(255, 178, 36, .6)) border-box; }
}
