/* ==========================================================================
   Authlie — design system
   One accent (the brand cyan). Graphite + paper. Grotesk + mono.
   ========================================================================== */

:root {
  --graphite: #0a0b0c;
  --graphite-2: #101214;
  --graphite-3: #16191c;
  --paper: #f3f2f2;
  --paper-2: #eae8e6;
  --ink: #201e1d;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1480px;
  --nav-h: 64px;
  --r: 14px;
}

/* Theme tokens are scoped, so any block can flip theme (e.g. a dark console on a light section). */
.dark {
  --bg: var(--graphite);
  --surface: var(--graphite-2);
  --surface-2: var(--graphite-3);
  --fg: #f3f2f2;
  --mute: rgba(243, 242, 242, 0.62);
  --faint: rgba(243, 242, 242, 0.54);
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.2);
  --a: #6fd1e8;
  --a-text: #6fd1e8;
  --a-ink: #04222b;
  --err: #ff8f86;
  --grid: rgba(255, 255, 255, 0.05);
}
.light {
  --bg: var(--paper);
  --surface: #fff;
  --surface-2: var(--paper-2);
  --fg: var(--ink);
  --mute: #5d5956;
  --faint: #76716e;
  --line: rgba(32, 30, 29, 0.14);
  --line-2: rgba(32, 30, 29, 0.28);
  --a: #0088b0;
  --a-text: #00698b;
  --a-ink: #fff;
  --err: #b42318;
  --grid: rgba(32, 30, 29, 0.05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--graphite);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: #f3f2f2;
  background: var(--graphite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-weight: 500;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.h2 {
  font-weight: 500;
  font-size: clamp(2rem, 6.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 18ch;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--mute); max-width: 44ch; letter-spacing: -0.01em; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--a-text);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 0 var(--a); animation: dotpulse 2.4s var(--ease-io) infinite; }
.micro { font-size: 0.875rem; color: var(--faint); }
.acc { color: var(--a); }
.dimmed { color: var(--faint); }
code { font-size: 0.88em; }
.lede code, .feat code, .step code, .qa code { background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 0.12em 0.4em; border-radius: 5px; color: var(--fg); }

.mask { display: block; overflow: hidden; padding: 0 0.1em 0.14em 0; margin: 0 -0.1em -0.14em 0; }
.blk { display: block; }
.mask > span { display: inline-block; will-change: transform; }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(56px, 7vw, 104px); background: var(--bg); color: var(--fg); isolation: isolate; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 52px); justify-items: start; }

.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
/* faint paper grain on dark surfaces (static, tiny) */
.dark.sec::after, .hero::after, .story__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons / links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 0.97rem; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--fg); color: var(--bg);
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.2s;
  will-change: transform;
}
.btn .arr { display: inline-block; transition: transform 0.35s var(--ease); font-style: normal; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }
.btn:hover { background: var(--a); color: var(--a-ink); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn--accent { background: var(--a); color: var(--a-ink); }
.btn--accent:hover { background: var(--fg); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { min-height: 64px; padding: 0 34px; font-size: 1.15rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link { position: relative; display: inline-block; color: var(--mute); font-size: 0.92rem; transition: color 0.2s; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.link:hover { color: var(--fg); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link--lg { font-size: 1.1rem; color: var(--fg); }

.endpoint { display: inline-flex; gap: 8px; align-items: center; font: 400 0.82rem/1 var(--mono); color: var(--mute); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.endpoint .m, .m { color: var(--a-text); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: 12px var(--gutter) 0; pointer-events: none; color: var(--fg); }
.nav__bar {
  pointer-events: auto; margin-inline: auto; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 6px 0 0; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  transition: max-width 0.6s var(--ease), padding 0.6s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s, height 0.4s var(--ease);
}
.nav.is-scrolled .nav__bar {
  max-width: 880px; height: 54px; padding: 0 6px 0 18px;
  background: rgba(14, 15, 17, 0.72); border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.03em; color: #f3f2f2; }
.brand__mark { width: 26px; height: 26px; color: #f3f2f2; --a: #6fd1e8; }
.nav__links { display: none; gap: 4px; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; color: rgba(243, 242, 242, 0.66); transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav__cta { display: none; align-items: center; gap: 6px; }
.nav__login { padding: 8px 14px; font-size: 0.92rem; color: rgba(243, 242, 242, 0.66); transition: color 0.2s; }
.nav__login:hover { color: #fff; }
.nav .btn { background: #f3f2f2; color: #0a0b0c; }
.nav .btn:hover { background: #6fd1e8; color: #04222b; }

.nav__toggle { pointer-events: auto; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(14, 15, 17, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #f3f2f2; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.nav.is-scrolled .nav__toggle { border-color: transparent; background: transparent; }

.menu { pointer-events: auto; margin: 10px auto 0; max-width: 880px; padding: 10px; display: grid; border-radius: 22px; background: rgba(14, 15, 17, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: menuin 0.4s var(--ease); }
.menu a:not(.btn) { padding: 15px 14px; font-size: 1.1rem; letter-spacing: -0.02em; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #f3f2f2; }
.menu__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
.menu .btn { background: #f3f2f2; color: #0a0b0c; }
.menu .btn--ghost { background: transparent; color: #f3f2f2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__toggle, .menu { display: none !important; }
  .nav__bar { padding-left: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 24px) 0 40px; background: var(--bg); color: var(--fg); overflow: clip; isolation: isolate; }
.hero__inner { display: grid; gap: 56px; align-items: center; }
.hero__copy { display: grid; gap: 20px; justify-items: start; }
.hero .display { margin-top: 6px; }
.hero__lede { max-width: 34ch; }
.hero__bill { font-size: 1.05rem; color: var(--fg); letter-spacing: -0.01em; }
.hero__bill b { font-weight: 500; color: var(--a); }
.hero__bill { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.hero__bill span { font-size: 0.8em; color: var(--mute); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .hero .display { font-size: clamp(2.4rem, 3.7vw, 3.4rem); }
  .hero .mask > span { white-space: nowrap; }
  .hero__inner { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); }
}

/* Hero photo slideshow — slow crossfade + drift, darkened so the copy stays the hero */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--graphite); }
.hm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); filter: saturate(0.85) contrast(1.05); transition: opacity 1.8s var(--ease-io), transform 9s linear; will-change: opacity, transform; }
.hm.is-on { opacity: 1; transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10, 11, 12, 0.7) 0%, transparent 22%, transparent 62%, var(--graphite) 100%),
  linear-gradient(90deg, rgba(10, 11, 12, 0.94) 0%, rgba(10, 11, 12, 0.82) 38%, rgba(10, 11, 12, 0.5) 68%, rgba(10, 11, 12, 0.62) 100%),
  radial-gradient(ellipse 60% 70% at 80% 45%, color-mix(in srgb, #6fd1e8 14%, transparent), transparent 70%); }
@media (max-width: 899px) { .hero__media::after { background: linear-gradient(180deg, rgba(10, 11, 12, 0.78) 0%, rgba(10, 11, 12, 0.8) 45%, rgba(10, 11, 12, 0.9) 75%, var(--graphite) 100%); } }
.hero .grid-bg { opacity: 0.55; }

/* Hero call simulation */
.call { position: relative; width: 100%; max-width: 520px; justify-self: end; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 18px; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.call__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 400 0.78rem/1 var(--mono); color: var(--mute); }
.call__top .endpoint { border: 0; background: none; padding: 0; font-size: inherit; }
.call__status { color: var(--a-text); white-space: nowrap; }
.call__stage { position: relative; height: clamp(250px, 34vw, 310px); }
.cs { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; text-align: center; padding: 0 8px; }
.call[data-state="num"] .cs--num,
.call[data-state="ring"] .cs--ring,
.call[data-state="voice"] .cs--voice,
.call[data-state="ok"] .cs--ok { opacity: 1; transform: none; }
.label { font: 400 0.8rem/1.4 var(--mono); color: var(--faint); letter-spacing: 0.02em; }
.num { font: 500 clamp(1.45rem, 5.2vw, 2.15rem)/1 var(--mono); letter-spacing: -0.03em; color: var(--fg); white-space: nowrap; }
.caret { display: inline-block; width: 0.5ch; height: 1em; margin-left: 4px; vertical-align: -0.12em; background: var(--a); animation: blink 1s steps(1) infinite; }

.rings { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--a); opacity: 0; }
.rings__ph { position: relative; width: 38px; height: 38px; color: var(--a); }
.call[data-state="ring"] .rings i, .stage.is-ringing .rings i { animation: ring 1.8s var(--ease-io) infinite; }
.rings i:nth-child(2) { animation-delay: 0.45s !important; }
.rings i:nth-child(3) { animation-delay: 0.9s !important; }
.call[data-state="ring"] .rings__ph, .stage.is-ringing .rings__ph { animation: vibrate 0.9s linear infinite; }

.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 64px; }
.wave i { display: block; width: 3px; height: 100%; border-radius: 3px; background: var(--a); transform: scaleY(0.12); transform-origin: center; opacity: 0.9; }
.call[data-state="voice"] .wave i, .stage.is-speaking .wave i { animation: wave 1s var(--ease-io) infinite; }
.wave i:nth-child(3n) { animation-delay: -0.2s !important; }
.wave i:nth-child(3n+1) { animation-delay: -0.55s !important; animation-duration: 0.85s !important; }
.wave i:nth-child(4n) { animation-delay: -0.35s !important; animation-duration: 1.2s !important; }
.wave i:nth-child(5n+2) { animation-delay: -0.75s !important; }

.digits { display: flex; gap: 8px; }
.digits b { display: grid; place-items: center; width: clamp(34px, 9vw, 44px); height: clamp(44px, 11.5vw, 56px); border: 1px solid var(--line-2); border-radius: 9px; background: color-mix(in srgb, var(--fg) 4%, transparent); font: 500 clamp(1.2rem, 4.6vw, 1.6rem)/1 var(--mono); color: var(--a); opacity: 0.25; transform: translateY(6px) scale(0.94); transition: opacity 0.15s, transform 0.2s var(--ease), border-color 0.2s; }
.digits b.on { opacity: 1; transform: none; border-color: var(--a); animation: keypress 0.32s var(--ease); }

.check { width: 76px; height: 76px; }
.check circle { stroke: var(--a); stroke-width: 1.8; stroke-dasharray: 151; stroke-dashoffset: 151; }
.check path { stroke: var(--a); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.call[data-state="ok"] .check circle, .stage.is-ok .check circle, .done .check circle { animation: draw 0.7s var(--ease) forwards; }
.call[data-state="ok"] .check path, .stage.is-ok .check path, .done .check path { animation: draw 0.5s 0.35s var(--ease) forwards; }
.call[data-state="ok"] .check, .stage.is-ok .check, .done .check { animation: confirm 0.7s 0.55s var(--ease); }
.resp { font: 400 1.05rem/1 var(--mono); color: var(--mute); }
.resp .t, .t { color: var(--a); font-weight: 500; }
.call[data-state="ok"] .resp .t, .stage.is-ok .t, .done .resp .t { animation: truepop 0.9s 0.9s var(--ease) both; display: inline-block; }

.call__ticks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 0.7rem/1 var(--mono); color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.call__ticks li { position: relative; padding-top: 12px; transition: color 0.3s; }
.call__ticks li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.call__ticks li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--a); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.call[data-state="num"] .call__ticks li:nth-child(-n+1),
.call[data-state="ring"] .call__ticks li:nth-child(-n+2),
.call[data-state="voice"] .call__ticks li:nth-child(-n+3),
.call[data-state="ok"] .call__ticks li { color: var(--fg); }
.call[data-state="num"] .call__ticks li:nth-child(-n+1)::after,
.call[data-state="ring"] .call__ticks li:nth-child(-n+2)::after,
.call[data-state="voice"] .call__ticks li:nth-child(-n+3)::after,
.call[data-state="ok"] .call__ticks li::after { transform: scaleX(1); }

/* ==========================================================================
   02 LIVE DEMO — full-screen "call your own phone"
   One stage variable (#console[data-stage]) drives the phone, halo and rail.
   ========================================================================== */
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }

.tryit { position: relative; border-top: 1px solid var(--line); min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 40px) 0 32px; background: var(--bg); color: var(--fg); overflow: clip; isolation: isolate; }
.tryit::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.tryit__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 72% 50%, color-mix(in srgb, var(--a) 10%, transparent), transparent 70%), linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 64px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 85%, transparent); transition: opacity 0.8s; }

.tryit__grid { position: relative; display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
.tryit__copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.tryit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tryit__pill { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.1em; color: var(--a-text); white-space: nowrap; transition: color 0.3s, border-color 0.3s; }
#console[data-fail] .tryit__pill { color: var(--err); border-color: color-mix(in srgb, var(--err) 50%, transparent); }
.tryit__title { font-weight: 500; font-size: clamp(3rem, 12vw, 7.6rem); line-height: 0.9; letter-spacing: -0.055em; }
.tryit__copy .lede { max-width: 40ch; }
.tryit__panels { width: 100%; max-width: 600px; display: grid; min-height: 132px; align-items: start; margin-top: 6px; }

/* request: one pill-shaped dial bar */
.flabel { display: block; margin-bottom: 12px; font: 400 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.dial { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: 22px; background: color-mix(in srgb, var(--fg) 4%, transparent); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.dial:focus-within { border-color: var(--a); background: color-mix(in srgb, var(--a) 6%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--a) 14%, transparent); }
.dial__cc { display: grid; place-items: center; height: 48px; padding: 0 14px; border-radius: 16px; background: color-mix(in srgb, var(--fg) 7%, transparent); font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; color: var(--mute); }
.dial__field { width: 100%; min-width: 0; height: 52px; padding: 0 10px; border: 0; background: none; color: var(--fg); font: 500 clamp(1.1rem, 2.4vw, 1.35rem)/1 var(--mono); letter-spacing: -0.02em; }
.dial__field:focus { outline: none; }
.dial__field::placeholder { color: var(--faint); }
.dial__btn { grid-column: 1 / -1; min-height: 54px; border-radius: 16px; }
@media (min-width: 560px) { .dial { grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 999px; } .dial__btn { grid-column: auto; border-radius: 999px; } .dial__cc { border-radius: 999px; } }

.frow { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .frow { flex-direction: row; align-items: stretch; } .frow .btn { flex: none; } }
.frow .btn { min-height: 60px; }
.err { margin-top: 14px; font-size: 0.9rem; color: var(--err); }
.panel { animation: panelin 0.6s var(--ease); width: 100%; }

.status { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a); animation: dotpulse 1.6s var(--ease-io) infinite; }
#console[data-fail] .pulse { background: var(--err); animation: none; }
.verify .link { margin-top: 22px; }

.otp { position: relative; flex: 1; min-width: 0; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: text; z-index: 1; }
.otp__slots { display: flex; gap: 8px; height: 100%; pointer-events: none; }
.slot { flex: 1; max-width: 62px; min-height: 60px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--fg) 4%, transparent); font: 500 1.6rem/1 var(--mono); color: var(--fg); transition: border-color 0.2s, background 0.2s; }
.slot.pop span { display: inline-block; animation: keypress 0.34s var(--ease); }
.otp:focus-within .slot.cur { border-color: var(--a); background: color-mix(in srgb, var(--a) 8%, transparent); }
.otp:focus-within .slot.cur::after { content: ""; width: 2px; height: 1.4rem; background: var(--a); animation: blink 1s steps(1) infinite; }
.otp.shake { animation: shake 0.45s var(--ease); }
.otp.shake .slot { border-color: var(--err); }

.done__t { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-bottom: 16px; }
.done__s { margin: 14px 0 20px; color: var(--mute); font-size: 0.95rem; }
.done .resp .t { animation: truepop 0.9s 0.4s var(--ease) both; display: inline-block; }

/* API log — quiet terminal strip */
.log { width: 100%; max-width: 600px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 0.76rem/1.65 var(--mono); color: var(--mute); min-height: 74px; }
.log__h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.log li { overflow-wrap: anywhere; animation: logline 0.5s var(--ease); }
.log li .m, .log li .ok { color: var(--a); }
.log li .bad { color: var(--err); }
.log li.dim { color: var(--faint); animation: none; }
#console:not([data-stage="0"]) .log__h .sig { animation: dotpulse 1.4s infinite; }

/* ---------- Device + halo ---------- */
.tryit__device { position: relative; display: grid; place-items: center; min-height: clamp(520px, 74vh, 760px); }
.halo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.halo i { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; border: 1px solid var(--line); transition: border-color 0.6s; }
.halo i:nth-child(1) { --d: 380px; }
.halo i:nth-child(2) { --d: 560px; border-style: dashed; border-color: color-mix(in srgb, var(--fg) 7%, transparent); }
.halo i:nth-child(3) { --d: 760px; }
.halo i:nth-child(4) { --d: 980px; opacity: 0.6; }
.halo i:nth-child(5) { --d: 1220px; opacity: 0.35; }
.halo i:nth-child(2) { animation: spin 60s linear infinite; }
#console[data-stage="1"] .halo i, #console[data-stage="2"] .halo i { border-color: color-mix(in srgb, var(--a) 40%, transparent); border-style: solid; animation: halo 2.6s var(--ease-io) infinite; }
#console[data-stage="1"] .halo i:nth-child(2), #console[data-stage="2"] .halo i:nth-child(2) { animation-delay: 0.35s; }
#console[data-stage="1"] .halo i:nth-child(3), #console[data-stage="2"] .halo i:nth-child(3) { animation-delay: 0.7s; }
#console[data-stage="1"] .halo i:nth-child(4), #console[data-stage="2"] .halo i:nth-child(4) { animation-delay: 1.05s; }
#console[data-stage="1"] .halo i:nth-child(5), #console[data-stage="2"] .halo i:nth-child(5) { animation-delay: 1.4s; }
#console[data-stage="3"] .halo i { border-color: color-mix(in srgb, var(--a) 22%, transparent); }
#console[data-stage="5"] .halo i:nth-child(1) { border-color: var(--a); animation: okwave 1.4s var(--ease) both; }
#console[data-fail] .halo i { border-color: color-mix(in srgb, var(--err) 25%, transparent) !important; animation: none !important; }

.handset { position: relative; z-index: 1; width: clamp(230px, 62vw, 280px); aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 52px; background: linear-gradient(160deg, #26292d, #0b0c0e 40%, #17191c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 120px -30px color-mix(in srgb, var(--a) 22%, transparent); transition: box-shadow 0.8s; }
#console[data-stage="1"] .handset, #console[data-stage="2"] .handset { animation: buzz 1.6s linear infinite; }
#console[data-stage="5"] .handset { box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 50%, transparent), 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 160px -20px color-mix(in srgb, var(--a) 45%, transparent); }
.handset__screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: radial-gradient(ellipse 120% 60% at 50% 0%, color-mix(in srgb, var(--a) 16%, transparent), transparent 60%), linear-gradient(180deg, #121518, #07080a); color: #f3f2f2; }
#console[data-fail] .handset__screen { background: radial-gradient(ellipse 120% 60% at 50% 0%, color-mix(in srgb, var(--err) 14%, transparent), transparent 60%), linear-gradient(180deg, #121518, #07080a); }

.hs__bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 26px; font: 600 0.82rem/1 var(--sans); }
.hs__island { position: absolute; left: 50%; top: 11px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.hs__sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.hs__sig i { width: 3px; border-radius: 1px; background: #f3f2f2; }
.hs__sig i:nth-child(1) { height: 4px; } .hs__sig i:nth-child(2) { height: 6px; } .hs__sig i:nth-child(3) { height: 8px; } .hs__sig i:nth-child(4) { height: 10px; }

.scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 70px 22px 34px; text-align: center; opacity: 0; transform: scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
#console[data-stage="0"] .scr--lock, #console:not([data-stage="0"]) .scr--call { opacity: 1; transform: none; }

/* lock screen */
.scr__date { font: 500 0.82rem/1 var(--sans); color: rgba(243, 242, 242, 0.7); }
.scr__clock { margin-top: 6px; font-weight: 500; font-size: clamp(4rem, 19vw, 5.4rem); line-height: 1; letter-spacing: -0.05em; }
.scr__note { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); text-align: left; font-size: 0.78rem; animation: notein 4s var(--ease) infinite; }
.scr__note b { display: block; font-weight: 600; }
.scr__note small { display: block; color: rgba(243, 242, 242, 0.65); font-size: 0.74rem; }
.scr__note-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #6fd1e8; color: #04222b; }
.scr__note-ic svg { width: 18px; height: 18px; }

/* call screen */
.scr__kind { font: 500 0.8rem/1.3 var(--mono); letter-spacing: 0.02em; color: #6fd1e8; min-height: 1.3em; }
#console[data-fail] .scr__kind { color: var(--err); }
.avatar { position: relative; display: grid; place-items: center; width: 104px; height: 104px; margin: 22px 0 18px; }
.avatar__ic { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(160deg, #8fe0f2, #4bb8d3); color: #04222b; box-shadow: 0 14px 40px -12px rgba(111, 209, 232, 0.6); transition: opacity 0.4s, transform 0.5s var(--ease); }
.avatar__ic svg { width: 46px; height: 46px; }
.avatar__rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #6fd1e8; opacity: 0; }
#console[data-stage="1"] .avatar__rings i, #console[data-stage="2"] .avatar__rings i { animation: ring 1.8s var(--ease-io) infinite; }
.avatar__rings i:nth-child(2) { animation-delay: 0.45s !important; }
.avatar__rings i:nth-child(3) { animation-delay: 0.9s !important; }
.avatar__ok { position: absolute; z-index: 2; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); opacity: 0; }
#console[data-stage="5"] .avatar__ic { opacity: 0; transform: scale(0.7); }
#console[data-stage="5"] .avatar__ok { opacity: 1; animation: confirm 0.7s 0.55s var(--ease); }
#console[data-stage="5"] .avatar__ok circle { animation: draw 0.7s var(--ease) forwards; }
#console[data-stage="5"] .avatar__ok path { animation: draw 0.5s 0.35s var(--ease) forwards; }
#console[data-fail] .avatar__ic { background: rgba(255, 255, 255, 0.1); color: var(--err); box-shadow: none; }
.scr__name { font-weight: 500; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1.1; }
.scr__num { margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 0.86rem/1 var(--mono); color: rgba(243, 242, 242, 0.62); }

.scr__voice, .scr__keys { position: absolute; left: 22px; right: 22px; top: 56%; display: grid; justify-items: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
#console[data-stage="3"] .scr__voice, #console[data-stage="4"] .scr__keys { opacity: 1; transform: none; }
.vw { display: flex; align-items: center; justify-content: center; gap: 3px; height: 46px; }
.vw i { width: 3px; height: 100%; border-radius: 3px; background: #6fd1e8; transform: scaleY(0.14); }
#console[data-stage="3"] .vw i { animation: wave 0.95s var(--ease-io) infinite; }
.vw i:nth-child(2n) { animation-delay: -0.3s !important; }
.vw i:nth-child(3n) { animation-delay: -0.6s !important; animation-duration: 0.8s !important; }
.vw i:nth-child(5n+1) { animation-delay: -0.15s !important; animation-duration: 1.15s !important; }
.scr__ar { font-size: 1.05rem; font-weight: 500; }
.scr__en { font: 400 0.74rem/1.3 var(--mono); color: rgba(243, 242, 242, 0.55); }
.scr__keys p { font-size: 0.86rem; color: rgba(243, 242, 242, 0.75); }
.kp { display: flex; gap: 6px; }
.kp i { width: 26px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); }
#console[data-stage="4"] .kp i { animation: kp 2.4s var(--ease-io) infinite; }
.kp i:nth-child(2) { animation-delay: 0.15s !important; } .kp i:nth-child(3) { animation-delay: 0.3s !important; } .kp i:nth-child(4) { animation-delay: 0.45s !important; } .kp i:nth-child(5) { animation-delay: 0.6s !important; } .kp i:nth-child(6) { animation-delay: 0.75s !important; }

.scr__actions { position: absolute; left: 0; right: 0; bottom: 38px; display: flex; justify-content: center; gap: 64px; transition: opacity 0.4s, transform 0.5s var(--ease); }
.act { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; }
.act svg { width: 26px; height: 26px; }
.act--no { background: #ff5b4f; }
.act--yes { background: #34c759; }
#console[data-stage="1"] .act--yes, #console[data-stage="2"] .act--yes { animation: accept 1.4s var(--ease-io) infinite; }
#console[data-stage="3"] .scr__actions { gap: 0; }
#console[data-stage="3"] .act--yes { width: 0; opacity: 0; margin: 0; }
#console[data-stage="3"] .act--yes, .act { transition: width 0.4s var(--ease), opacity 0.3s; }
#console[data-stage="4"] .scr__actions, #console[data-stage="5"] .scr__actions, #console[data-fail] .scr__actions { opacity: 0; transform: translateY(16px); }

/* ---------- Progress rail ---------- */
.rail { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding-top: 4px; }
.rail li { position: relative; min-width: 0; padding-top: 16px; font: 400 0.7rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); transition: color 0.4s; }
.rail li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.rail li i { position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--a); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease), background 0.3s, opacity 0.3s; }
.rail li em { display: block; margin-bottom: 6px; font-style: normal; color: inherit; opacity: 0.7; }
.rail li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail li.is-done { color: var(--mute); }
.rail li.is-done i { transform: scaleX(1); opacity: 0.5; }
.rail li.is-now { color: var(--a-text); }
.rail li.is-now i { transform: scaleX(1); }
.rail li.is-now em { opacity: 1; }
.rail li.is-fail { color: var(--err); }
.rail li.is-fail i { background: var(--err); transform: scaleX(1); }
@media (max-width: 719px) {
  .rail li span { display: none; }
  .rail li.is-now span, .rail li.is-fail span { display: block; position: absolute; left: 0; top: 34px; overflow: visible; }
  .rail { padding-bottom: 20px; }
}

/* Layout: stacked on small screens (copy → phone → rail), two columns from 1000px */
.tryit__device { min-height: 0; padding-block: 24px; }
.tryit__device .halo i:nth-child(n+4) { display: none; }
@media (min-width: 1000px) {
  .tryit__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(40px, 6vw, 120px); row-gap: clamp(28px, 5vh, 56px); }
  .tryit__device { order: 0; min-height: clamp(560px, 76vh, 780px); padding: 0; }
  .tryit__device .halo i:nth-child(n+4) { display: block; }
  .rail { grid-column: 1 / -1; }
  .handset { width: clamp(270px, 21vw, 318px); }
}
@media (max-width: 999px) { .tryit__device { min-height: 0; } .halo i:nth-child(3) { --d: 640px; } }

@keyframes halo { 0% { transform: scale(0.92); opacity: 0.9; } 70% { opacity: 0.25; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes okwave { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes buzz { 0%, 18%, 100% { transform: translate(0) rotate(0); } 3% { transform: translate(-2px, 0) rotate(-1.2deg); } 6% { transform: translate(2px, 0) rotate(1.2deg); } 9% { transform: translate(-2px, 0) rotate(-1deg); } 12% { transform: translate(2px, 0) rotate(1deg); } 15% { transform: translate(-1px, 0) rotate(0); } }
@keyframes accept { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); transform: translateY(0); } 50% { box-shadow: 0 0 0 14px rgba(52, 199, 89, 0); transform: translateY(-4px); } }
@keyframes notein { 0%, 8% { opacity: 0; transform: translateY(12px); } 16%, 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes kp { 0%, 100% { border-color: rgba(255, 255, 255, 0.18); } 20% { border-color: #6fd1e8; background: rgba(111, 209, 232, 0.12); } 40% { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); } }

/* ==========================================================================
   03 STORY
   ========================================================================== */
.story { position: relative; background: var(--bg); color: var(--fg); }
.story__sticky { position: relative; background: var(--bg); isolation: isolate; padding-block: clamp(64px, 8vw, 88px) 32px; }
.story__inner { display: grid; gap: 28px; }
.story__head { display: grid; gap: 18px; justify-items: start; }
.story__grid { display: grid; gap: 0; }

/* default (flow) layout: sticky stage on top, steps scroll beneath */
.story__stagewrap { position: sticky; top: calc(var(--nav-h) + 6px); z-index: 3; padding: 10px 0 22px; background: linear-gradient(var(--bg) 82%, transparent); }
.steps { display: grid; gap: 0; padding-bottom: 12vh; }
.step { display: grid; align-content: start; gap: 10px; justify-items: start; min-height: 40vh; padding: 24px 0 6vh; border-top: 1px solid var(--line); opacity: 0.4; transition: opacity 0.5s; }
.step.is-active { opacity: 1; }
.step__n { font: 500 0.8rem/1 var(--mono); color: var(--a-text); letter-spacing: 0.1em; }
.step__t { font-weight: 500; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase; }
.step__d { color: var(--mute); max-width: 34ch; font-size: 1.05rem; }
.story__prog { display: none; }

/* stage */
.stage { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; align-items: center; min-height: clamp(220px, 40vh, 320px); }
.stage__code { position: relative; z-index: 2; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); overflow: hidden; min-width: 0; }
.codebar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 400 0.7rem/1 var(--mono); color: var(--faint); }
.code { display: none; margin: 0; padding: 14px 14px 16px; font: 400 clamp(0.72rem, 2.3vw, 0.8rem)/1.7 var(--mono); color: var(--mute); overflow: hidden; }
.stage[data-scene="0"] .code[data-for="0"], .stage[data-scene="1"] .code[data-for="1"], .stage[data-scene="2"] .code[data-for="2"], .stage[data-scene="3"] .code[data-for="3"] { display: block; }
.ln { display: block; opacity: 0; transform: translateY(5px); transition: opacity 0.35s, transform 0.45s var(--ease); white-space: pre-wrap; overflow-wrap: anywhere; }
.ln.on { opacity: 1; transform: none; }
.ln.c2.dim { opacity: 0.35; }
.code .k { color: var(--fg); }
.code .s { color: var(--a); }
.code .d { color: var(--faint); }
.code .cm { color: var(--faint); font-style: italic; }
.code .t { color: var(--a); font-weight: 500; }
.code .res { margin-top: 6px; }

.stage__link { position: relative; z-index: 1; height: 2px; width: 100%; align-self: center; margin-inline: -1px; }
.link__line { position: absolute; inset: 0; background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 40%, transparent)); transform: scaleX(0); transform-origin: left; }
.link__dot { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 5px color-mix(in srgb, var(--a) 22%, transparent); opacity: 0; }
.stage__link { display: none; }

.phone { position: relative; z-index: 2; justify-self: center; width: clamp(128px, 36vw, 210px); aspect-ratio: 9 / 17; border: 1px solid var(--line-2); border-radius: clamp(20px, 5vw, 32px); padding: 7px; background: var(--surface); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.phone::before { content: ""; position: absolute; z-index: 3; top: 12px; left: 50%; width: 30%; height: 5px; margin-left: -15%; border-radius: 4px; background: var(--line-2); }
.phone__screen { position: relative; height: 100%; border-radius: clamp(14px, 4vw, 25px); overflow: hidden; background: var(--bg); }
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 28px 8px 12px; opacity: 0; transform: scale(0.97); transition: opacity 0.45s, transform 0.55s var(--ease); }
.ph .label { font-size: clamp(0.66rem, 1.5vw, 0.72rem); }
.ph--idle b { font: 500 clamp(0.72rem, 1.9vw, 1rem)/1.2 var(--mono); color: var(--fg); letter-spacing: -0.02em; }
.stage[data-scene="0"] .ph--idle, .stage[data-scene="1"] .ph--ring, .stage[data-scene="2"] .ph--voice, .stage[data-scene="3"] .ph--verify { opacity: 1; transform: none; }
.stage[data-scene="1"] .rings { width: clamp(64px, 14vw, 92px); height: clamp(64px, 14vw, 92px); }
.rings { width: clamp(64px, 14vw, 92px); height: clamp(64px, 14vw, 92px); }
.stage .rings__ph { width: 30px; height: 30px; }
.stage .wave { height: 44px; gap: 3px; }
.stage .wave i { width: 2.5px; }
.stage .digits { gap: 4px; }
.stage .digits b { width: clamp(15px, 4vw, 24px); height: clamp(22px, 5.5vw, 34px); font-size: clamp(0.7rem, 2vw, 1.05rem); border-radius: 6px; }
.stage .digits--in b { color: var(--fg); }
.ph--verify { gap: 16px; }
.okmark { display: grid; justify-items: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.stage.is-ok .okmark { opacity: 1; transform: none; }
.stage.is-ok .digits--in { opacity: 0.55; }
.stage .check { width: clamp(36px, 8vw, 56px); height: clamp(36px, 8vw, 56px); }
.stage .ph--voice .label { max-width: 14ch; }

/* pinned (desktop) layout — toggled by JS via matchMedia */
.story.is-pinned .story__sticky { min-height: 100vh; padding-block: calc(var(--nav-h) + 24px) 40px; display: grid; align-items: center; }
.story.is-pinned .story__inner { gap: clamp(20px, 4vh, 48px); }
.story.is-pinned .story__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.story.is-pinned .story__stagewrap { position: relative; top: 0; order: 2; padding: 0; background: none; }
.story.is-pinned .steps { order: 1; display: grid; grid-template-areas: "s"; padding: 0; min-height: 300px; align-items: center; }
.story.is-pinned .step { grid-area: s; min-height: 0; padding: 0; border: 0; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.story.is-pinned .step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story.is-pinned .step.is-past { transform: translateY(-24px); }
.story.is-pinned .step__t { font-size: clamp(3.4rem, 8vw, 8.5rem); }
.story.is-pinned .step__d { font-size: 1.2rem; }
.story.is-pinned .stage { grid-template-columns: 1fr 64px 188px; min-height: min(52vh, 440px); }
.story.is-pinned .stage__link { display: block; }
.story.is-pinned .code { font-size: clamp(0.78rem, 1.05vw, 0.95rem); padding: 18px 18px 20px; }
.story.is-pinned .phone { width: 188px; aspect-ratio: 9 / 16; }
.story.is-pinned .story__prog { display: block; position: relative; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.story.is-pinned .story__prog i { position: absolute; inset: 0; background: var(--a); transform: scaleX(var(--prog, 0)); transform-origin: left; }
@media (min-width: 1280px) { .story.is-pinned .stage { grid-template-columns: 1fr 96px 220px; } .story.is-pinned .phone { width: 220px; } .story.is-pinned .stage .digits b { width: 26px; height: 36px; } }

/* tablet / mid flow layout: put stage beside nothing, keep sticky */
@media (min-width: 640px) { .stage { grid-template-columns: 1.5fr 56px 200px; } .stage__link { display: block; } .phone { width: 200px; } }

/* ==========================================================================
   04 +20
   ========================================================================== */
.plus { overflow: clip; }
.plus__stage { position: relative; display: grid; gap: 36px; }
.plus__big { position: relative; font-weight: 600; font-size: clamp(9rem, 44vw, 38rem); line-height: 0.78; letter-spacing: -0.07em; text-align: center; user-select: none; padding-block: 0.06em; }
.plus__out { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.plus__fill { position: absolute; inset: 0; padding-block: inherit; color: var(--a); }
.has-motion .plus__fill { clip-path: inset(0 0 100% 0); will-change: clip-path; }
.has-motion.no-gsap .plus__fill { clip-path: none; }
.feats { display: grid; gap: 0; }
.feat { position: relative; display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.feat__n { font: 500 0.75rem/1 var(--mono); color: var(--a-text); letter-spacing: 0.1em; }
.feat h3 { font-weight: 500; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.1; }
.feat p { color: var(--mute); font-size: 0.98rem; max-width: 30ch; }
@media (min-width: 900px) {
  .plus__stage { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto; align-items: center; column-gap: 24px; row-gap: 0; min-height: clamp(440px, 42vw, 640px); }
  .plus__big { grid-column: 4 / 10; grid-row: 1 / 4; font-size: clamp(11rem, 19vw, 22rem); z-index: 0; align-self: center; }
  .feats { display: contents; }
  .feat { z-index: 1; border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .feat:nth-child(1) { grid-column: 1 / 4;  grid-row: 1; align-self: start; }
  .feat:nth-child(2) { grid-column: 10 / 13; grid-row: 1; align-self: start; margin-top: 64px; }
  .feat:nth-child(3) { grid-column: 1 / 4;  grid-row: 2; align-self: center; margin-left: 32px; }
  .feat:nth-child(4) { grid-column: 10 / 13; grid-row: 2; align-self: center; margin-right: 32px; }
  .feat:nth-child(5) { grid-column: 1 / 4;  grid-row: 3; align-self: end; }
  .feat:nth-child(6) { grid-column: 10 / 13; grid-row: 3; align-self: end; margin-bottom: 64px; }
}

/* ==========================================================================
   05 API
   ========================================================================== */
.api__grid { display: grid; gap: 20px; }
.api__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.api__nav button { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--mute); transition: border-color 0.25s, background 0.25s, color 0.25s; }
.api__nav button:hover { border-color: var(--line-2); color: var(--fg); }
.api__nav button small { grid-column: 1 / -1; font-size: 0.82rem; color: var(--faint); display: none; }
.tab__m { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: var(--a-text); }
.tab__p { font: 400 0.82rem/1.2 var(--mono); overflow-wrap: anywhere; }
.api__nav button[aria-selected="true"] { color: var(--fg); border-color: var(--a); background: color-mix(in srgb, var(--a) 8%, transparent); }
.editor { min-width: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.8); }
.editor__bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 400 0.75rem/1 var(--mono); color: var(--faint); }
.editor__file { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 0.75rem/1 var(--mono); color: var(--mute); transition: color 0.2s, border-color 0.2s, background 0.2s; min-width: 78px; text-align: center; }
.copy:hover { color: var(--fg); border-color: var(--fg); }
.copy.is-copied { color: var(--a); border-color: var(--a); }
.editor__code, .editor__res pre { margin: 0; padding: 20px 20px; font: 400 clamp(0.78rem, 2.3vw, 0.88rem)/1.8 var(--mono); color: var(--fg); overflow-x: auto; white-space: pre; scrollbar-width: thin; }
.editor__code { min-height: 150px; }
.editor__res { border-top: 1px dashed var(--line-2); background: color-mix(in srgb, var(--a) 3%, transparent); }
.editor__reshead { display: flex; align-items: center; gap: 10px; padding: 12px 20px 0; font: 400 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.sig { width: 7px; height: 7px; border-radius: 50%; background: var(--a); }
.editor.is-busy .sig { animation: dotpulse 0.6s infinite; }
.editor__res pre { padding-top: 10px; min-height: 80px; }
.tk-k { color: #f3f2f2; } .tk-s { color: var(--a); } .tk-n { color: #e9c58b; } .tk-f { color: var(--faint); } .tk-m { color: var(--a); font-weight: 500; } .tk-c { color: var(--faint); font-style: italic; } .tk-u { color: #f3f2f2; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; } .tk-t { color: var(--a); font-weight: 500; } .tk-x { color: var(--err); }
.tk-line { display: block; }
.editor__code .tk-line, .editor__res .tk-line { opacity: 0; transform: translateX(-6px); }
.editor.is-in .tk-line { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.editor.is-in .editor__res .tk-line { transition-delay: calc(var(--i) * 70ms + 120ms); }
.editor.is-in .tk-t { animation: truepop 0.9s 0.5s var(--ease) both; display: inline-block; }
@media (min-width: 900px) {
  .api__grid { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
  .api__nav { grid-template-columns: 1fr; }
  .api__nav button small { display: block; }
  .api__nav button { padding: 18px 18px 16px; }
  .editor__code { min-height: 200px; padding: 28px; }
  .editor__res pre { padding: 12px 28px 28px; }
  .editor__reshead { padding: 16px 28px 0; }
}

/* ==========================================================================
   06 DASHBOARD
   ========================================================================== */
.app { max-width: 1120px; margin-inline: auto; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface-2); overflow: hidden; box-shadow: 0 60px 120px -60px rgba(32, 30, 29, 0.5), 0 2px 0 rgba(255, 255, 255, 0.6) inset; }
.app__chrome { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font: 400 0.75rem/1 var(--mono); color: var(--faint); }
.app__chrome .dots i { background: var(--line-2); }
.app__url { flex: 1; text-align: center; }
.app__sample { padding: 5px 9px; border: 1px dashed var(--line-2); border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.app__body { display: grid; gap: 14px; padding: clamp(12px, 2.5vw, 22px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.card__l { font: 400 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.app__side { display: grid; gap: 14px; grid-template-columns: 1fr; align-content: start; }
.bal__v { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 16px; font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bal__v small { font: 400 0.9rem var(--mono); color: var(--faint); letter-spacing: 0; }
.bal.is-tick .bal__v span { animation: tick 0.6s var(--ease); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 500 0.72rem/1 var(--mono); border: 1px solid var(--line-2); color: var(--fg); }
.chip--btn { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: 18px; }
.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--a) 28%, transparent); height: var(--h); transform-origin: bottom; }
.bars i:last-child { background: var(--a); }
.reqs__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-text); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); animation: dotpulse 1.6s infinite; }
.thead, .row { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 0.7fr; gap: 10px; align-items: center; }
.thead { padding: 0 4px 10px; border-bottom: 1px solid var(--line); font: 400 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.r { text-align: right; }
#reqs-list { min-height: 5 * 52px; overflow: hidden; }
.row { padding: 14px 4px; border-bottom: 1px solid var(--line); font: 400 0.78rem/1 var(--mono); color: var(--mute); }
.row .id { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .num { font: inherit; letter-spacing: 0; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.is-new { animation: rowin 0.7s var(--ease); }
.row .amt { text-align: right; font-variant-numeric: tabular-nums; }
.row .amt.on { color: var(--a-text); }
.st { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.7rem; white-space: nowrap; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st[data-s="calling"] { color: var(--faint); }
.st[data-s="calling"]::before { animation: dotpulse 1s infinite; }
.st[data-s="delivered"] { color: var(--a-text); border-color: var(--a); background: color-mix(in srgb, var(--a) 9%, transparent); }
.st[data-s="no_answer"], .st[data-s="failed"] { color: var(--mute); }
@media (min-width: 900px) {
  .app__body { grid-template-columns: 300px minmax(0, 1fr); }
  .row { font-size: 0.85rem; }
}
@media (max-width: 520px) {
  .thead, .row { grid-template-columns: 1fr 0.95fr 0.8fr; }
  .thead span:nth-child(2), .row .num { display: none; }
}

/* ==========================================================================
   07 PAY
   ========================================================================== */
.pay { padding-bottom: clamp(24px, 4vw, 48px); }
.pay .display { font-size: clamp(2.5rem, 12.5vw, 11.5rem); margin: 20px 0 clamp(28px, 4vw, 56px); line-height: 0.9; letter-spacing: -0.042em; }
.ledger { border-top: 1px solid var(--line-2); max-width: 980px; }
.lrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lrow__e { font-size: clamp(1.2rem, 3.4vw, 2rem); letter-spacing: -0.035em; font-weight: 500; }
.lrow__line { height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 9px); transform-origin: left; }
.lrow__a { font: 400 clamp(0.9rem, 2.2vw, 1.15rem)/1 var(--mono); color: var(--faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.lrow__a b { font-weight: 500; color: var(--mute); font-size: 1.4em; }
.lrow--ok .lrow__e { color: var(--a); }
.lrow--ok .lrow__line { background: var(--a); }
.lrow--ok .lrow__a { color: var(--a); font-weight: 500; }
.lrow--ok { padding-block: 20px; }
.pay__note { margin-top: 22px; }

/* ==========================================================================
   08 PRICING
   ========================================================================== */
.price { padding-top: clamp(32px, 5vw, 64px); }
.trial { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); padding: 24px clamp(20px, 3vw, 32px); border: 1px solid var(--a); border-radius: 18px; background: color-mix(in srgb, var(--a) 7%, transparent); display: grid; gap: 8px; }
.trial__k { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--a); }
.trial__t { font-size: clamp(1.25rem, 3.4vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; font-weight: 500; }
.trial__s { color: var(--mute); font-size: 0.95rem; }
.axis { display: flex; justify-content: space-between; margin-bottom: 14px; font: 400 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.stairs { display: flex; align-items: flex-end; gap: 0; border-bottom: 1px solid var(--line-2); min-height: 330px; }
.stair { position: relative; flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 380px; }
.stair__bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); background: linear-gradient(180deg, color-mix(in srgb, var(--a) 14%, transparent), transparent 90%); transform-origin: bottom; }
.stair:not(.stair--best) .stair__bar { background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 8%, transparent), transparent 90%); }
.stair--best .stair__bar { border-top: 2px solid var(--a); border-left-color: var(--a); }
.stair__txt { position: relative; display: grid; gap: 6px; padding: 0 clamp(8px, 2vw, 22px) 18px; align-content: end; height: var(--h); }
.stair__r { font: 400 0.68rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.stair__p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.stair__p b { font-weight: 500; font-size: clamp(2rem, 7.4vw, 5.6rem); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.stair--best .stair__p b { color: var(--a); }
.stair__p span { font: 400 0.75rem var(--mono); color: var(--faint); }
.stair small { color: var(--mute); font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 719px) {
  .stair { height: 300px; } .stairs { min-height: 300px; }
  .stair__txt { padding-inline: 8px; } .stair small { display: none; }
  .stair__r { font-size: 0.72rem; letter-spacing: 0.02em; }
  .stair__r .pfx { display: none; }
  .axis { font-size: 0.66rem; gap: 12px; }
}
.fine { display: grid; gap: 0; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.fine__terms { display: grid; }
.fine__terms > div { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fine dt { font: 400 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.fine dd { font-size: 1rem; color: var(--mute); }
.fine dd b { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.04em; color: var(--fg); }
.fine small { margin-left: 6px; color: var(--faint); }
.fine__note { padding: 22px 0; color: var(--mute); font-size: 0.92rem; max-width: 56ch; }
.fine__note a { color: var(--a); text-decoration: underline; text-underline-offset: 3px; }
.price__cta { margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 900px) { .fine { grid-template-columns: 1.4fr 1.6fr; gap: 40px; border-bottom: 1px solid var(--line); } .fine__terms { grid-template-columns: 1fr 1fr; gap: 40px; } .fine__terms > div { border-bottom: 0; } }

/* ==========================================================================
   09 FAQ
   ========================================================================== */
.faq__grid { display: grid; gap: 32px; }
.faq .sec-head { margin-bottom: 0; }
.acc-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; text-align: left; font-size: clamp(1.1rem, 2.6vw, 1.5rem); letter-spacing: -0.03em; font-weight: 500; line-height: 1.2; transition: color 0.2s; }
.qa button:hover { color: var(--a-text); }
.qa button i { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s; }
.qa button i::before, .qa button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform 0.5s var(--ease); }
.qa button i::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] i { transform: rotate(180deg); background: var(--fg); border-color: var(--fg); color: var(--bg); }
.qa button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 60px 26px 0; color: var(--mute); max-width: 60ch; font-size: 1.02rem; }
.js .qa:not(.is-open) .qa__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.55s var(--ease), visibility 0s 0.55s; }
.js .qa.is-open .qa__a { transition: grid-template-rows 0.55s var(--ease), visibility 0s; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 120px); align-items: start; } .faq .sec-head { position: sticky; top: 110px; } }

/* ==========================================================================
   10 CTA + FOOTER
   ========================================================================== */
.cta { padding-block: clamp(64px, 9vw, 130px); overflow: clip; }
.cta__inner { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: start; }
.cta .display { font-size: clamp(2.8rem, 13.5vw, 13rem); line-height: 0.88; letter-spacing: -0.042em; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }
.foot { padding: 36px 0 28px; background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.foot__top { display: grid; gap: 24px; align-items: center; padding-bottom: 32px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.95rem; color: var(--mute); }
.foot a:not(.brand) { transition: color 0.2s; }
.foot a:not(.brand):hover { color: var(--fg); }
.foot__tel { font-size: 0.95rem; font-weight: 500; }
.foot__bot { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--faint); }
.foot__bot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 900px) {
  .foot__top { grid-template-columns: auto 1fr auto; gap: 48px; }
  .foot__nav { justify-content: center; }
  .foot__bot { grid-template-columns: 1fr auto; align-items: center; }
}

/* ==========================================================================
   Motion initial states (only when motion is enabled and JS runs)
   ========================================================================== */
.has-motion [data-reveal]:not(.hero *) { opacity: 0; transform: translateY(26px); }
.has-motion .mask > span { transform: translateY(108%); }
/* Hero intro is CSS-only so the first paint (LCP) never waits on JavaScript */
.has-motion .hero .mask > span { transform: none; animation: maskup 1.3s var(--ease) backwards; }
.has-motion .hero .mask:nth-child(1) > span { animation-delay: 0.05s; }
.has-motion .hero .mask:nth-child(2) > span { animation-delay: 0.17s; }
.has-motion .hero .mask:nth-child(3) > span { animation-delay: 0.29s; }
.has-motion .hero [data-reveal] { animation: rise 1.1s var(--ease) backwards; }
.has-motion .hero .hero__lede { animation-delay: 0.45s; }
.has-motion .hero .hero__bill { animation-delay: 0.55s; }
.has-motion .hero .hero__ctas { animation-delay: 0.65s; }
.has-motion .hero .micro { animation-delay: 0.75s; }
.has-motion .hero .call { animation-delay: 0.35s; }
.has-motion .nav { animation: navin 0.9s 0.1s var(--ease) backwards; }
.has-motion .lrow { opacity: 0; transform: translateY(18px); }
.has-motion .lrow__line { transform: scaleX(0); }
.has-motion .stair__bar { transform: scaleY(0); }
.has-motion .stair__txt > * { opacity: 0; transform: translateY(12px); }
.has-motion .feat[data-reveal] { transform: translateY(26px); }
.has-motion .bars i { transform: scaleY(0); }
.has-motion.no-gsap [data-reveal], .has-motion.no-gsap .nav, .has-motion.no-gsap .lrow, .has-motion.no-gsap .stair__txt > *, .has-motion.no-gsap .feat { opacity: 1; transform: none; }
.has-motion.no-gsap .mask > span, .has-motion.no-gsap .lrow__line, .has-motion.no-gsap .stair__bar, .has-motion.no-gsap .bars i { transform: none; }

/* ---------- Keyframes ---------- */
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ring { 0% { transform: scale(0.55); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes vibrate { 0%, 100% { transform: translate(0) rotate(0); } 10% { transform: translate(-1.5px, 0) rotate(-7deg); } 20% { transform: translate(1.5px, 0) rotate(7deg); } 30% { transform: translate(-1.5px, 0) rotate(-7deg); } 40% { transform: translate(1.5px, 0) rotate(7deg); } 50% { transform: translate(0) rotate(0); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.14); } 50% { transform: scaleY(1); } }
@keyframes keypress { 0% { transform: translateY(-7px) scale(1.12); } 55% { transform: translateY(2px) scale(0.97); } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes confirm { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes truepop { 0% { transform: scale(1); text-shadow: 0 0 0 transparent; } 35% { transform: scale(1.28); text-shadow: 0 0 22px color-mix(in srgb, var(--a) 70%, transparent); } 100% { transform: scale(1); text-shadow: 0 0 0 transparent; } }
@keyframes maskup { from { transform: translateY(108%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes navin { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes panelin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes logline { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes rowin { from { opacity: 0; transform: translateY(-14px); background: color-mix(in srgb, var(--a) 14%, transparent); } to { opacity: 1; transform: none; background: transparent; } }
@keyframes tick { 0% { transform: translateY(-6px); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
@keyframes menuin { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion: keep states, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .plus__fill { clip-path: none; }
  .check circle, .check path { stroke-dashoffset: 0; }
  .wave i, .vw i { transform: scaleY(0.5); }
  .hm { transform: none; }
  .scr__note { opacity: 1; transform: none; }
}
