/* Keynod landing page. No build step. Fonts: Geist and Geist Mono (SIL OFL, see ../fonts/OFL.txt). */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Monochrome: black, white and greys only. Contrast comes from weight, size and spacing. */
  --bg: #0a0a0a;
  --bg-2: #101010;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --line-3: rgba(255, 255, 255, 0.28);
  --text: #ededed;
  --white: #fafafa;
  --muted: #a3a3a3;
  --dim: #8a8a8a;
  --grey-1: #d4d4d4;
  --grey-2: #bdbdbd;
  --radius: 16px;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
a:hover { color: var(--white); text-decoration-color: var(--white); }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.9em; color: var(--white); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); padding: 0.08em 0.36em; border-radius: 6px; }
pre code { background: none; box-shadow: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: #0a0a0a; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.dim { color: var(--dim); }
.ok { color: var(--white); font-weight: 700; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  color: #0a0a0a;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 8px 30px -12px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { color: #0a0a0a; background: #ffffff; transform: translateY(-1px); box-shadow: 0 0 0 1px #ffffff, 0 12px 40px -10px rgba(255, 255, 255, 0.45); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; gap: 8px; }
.term-link {
  font-family: var(--mono); font-size: 14px; color: var(--grey-1); text-decoration: none;
  padding: 6px 2px; white-space: nowrap;
}
.term-link:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--line-3); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand-group { display: inline-flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-weight: 650; font-size: 18px; letter-spacing: -0.02em; }
.brand-by { font-family: var(--mono); font-size: 12px; color: var(--dim); text-decoration: none; padding: 8px 2px; }
.brand-by:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 420px) { .brand-by { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 900px; pointer-events: none;
  background:
    radial-gradient(620px 460px at 66% 48%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(460px 300px at 12% 18%, rgba(255, 255, 255, 0.03), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--grey-1);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  margin-bottom: 26px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.js .badge .dot { animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: .35; box-shadow: 0 0 0 rgba(255, 255, 255, 0); } }
.hero h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 650; letter-spacing: -0.04em; color: var(--muted); }
.lede { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; }
.hero .cta-row { margin-top: 34px; }
.hero-note { margin-top: 26px; font-size: 14.5px; color: var(--dim); max-width: 36em; }

.doodle-wrap { position: relative; display: inline-block; white-space: nowrap; color: var(--white); }
.doodle { position: absolute; pointer-events: none; overflow: visible; }
.doodle path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.doodle-underline { left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; }
.doodle-underline path { stroke: var(--white); stroke-width: 4; stroke-dasharray: 340; stroke-dashoffset: 0; }
.doodle-circle { left: -6%; top: -18%; width: 112%; height: 140%; }
.doodle-circle path { stroke: var(--grey-2); stroke-width: 2.2; opacity: .7; stroke-dasharray: 760; stroke-dashoffset: 0; }
.oss .doodle-wrap { color: var(--text); }

/* load-in: headline sharpens from blur, sub-copy blurs in */
.js .sharpen { animation: sharpen 1.1s cubic-bezier(.2,.7,.2,1) both; }
.js .blur-in { animation: blurIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.js .lede.blur-in { animation-delay: .25s; }
.js .cta-row.blur-in { animation-delay: .4s; }
.js .hero-note.blur-in { animation-delay: .55s; }
.js .doodle-underline path { stroke-dashoffset: 340; animation: draw 1s .9s ease-out forwards; }
.js .doodle-circle.drawn path { animation: draw 1.4s ease-out forwards; }
.js .doodle-circle path { stroke-dashoffset: 760; }
@keyframes sharpen { from { filter: blur(14px); opacity: 0; transform: translateY(8px) scale(.985); } to { filter: blur(0); opacity: 1; transform: none; } }
@keyframes blurIn { from { filter: blur(8px); opacity: 0; transform: translateY(10px); } to { filter: blur(0); opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero stage ---------- */
.stage { position: relative; container-type: inline-size; padding: 0 0 22% 0; }
.mac {
  position: relative; width: 100%;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), 0 0 90px -30px rgba(255,255,255,.12);
}
.mac-bar, .term-bar {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--line);
}
.lights { display: inline-flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.lights i:nth-child(2) { background: #2e2e2e; }
.lights i:nth-child(3) { background: #262626; }
.mac-title { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 0 auto; transform: translateX(-20px); }
.remote-chip {
  position: absolute; right: 12px; top: 9px;
  font-family: var(--mono); font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  color: var(--white); border: 1px solid var(--line-3); background: rgba(255,255,255,.06);
  opacity: 0; transition: opacity .4s ease;
}
.stage.remote .remote-chip { opacity: 1; }
.mac-body {
  font-family: var(--mono); font-size: max(10.5px, 1.8cqw); line-height: 1.65;
  padding: 16px 18px 20px; min-height: max(300px, 50cqw); color: var(--grey-1);
}
.cc-head { color: var(--muted); margin-bottom: 12px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; display: inline-block; }
.cc-star { color: var(--white); }
.ln { white-space: pre-wrap; word-break: break-word; min-height: 1.65em; }
.ln + .ln { margin-top: 5px; }
.ln.out { margin-top: 1px; color: var(--muted); padding-left: 1.4em; text-indent: -1.4em; }
.ln.user { color: var(--text); background: rgba(255,255,255,.04); border-radius: 6px; padding: 2px 8px; margin-left: -8px; margin-right: -8px; }
.gt { color: var(--dim); }
.bul { color: var(--text); }
.bul.tool { color: var(--white); }
.bul { font-weight: 700; }
.ln b { color: var(--text); font-weight: 650; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -0.18em; background: var(--white); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.spin { color: var(--white); display: inline-block; text-indent: 0; width: 1ch; text-align: center; }
.js .spin { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.concealed {
  display: inline-block; white-space: nowrap;
  color: #0a0a0a; background: var(--white);
  padding: 0 .35em; border-radius: 5px; font-weight: 600;
}
.concealed.pop { animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Touch ID dialog */
.touchid {
  position: absolute; left: 50%; top: 50%; width: max(230px, 46cqw);
  transform: translate(-50%, -46%) scale(.94); opacity: 0; pointer-events: none;
  background: rgba(34, 34, 34, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.7);
  padding: 4.2cqw 3.6cqw 2.6cqw; text-align: center; font-family: var(--sans);
  font-size: max(10px, 1.55cqw); line-height: 1.4; color: var(--text);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.2,.3,1);
}
.no-js .touchid, .touchid.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.no-js .touchid { display: none; }
.ti-icon img { width: max(38px, 8cqw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.ti-title { font-weight: 700; margin-top: 1.4cqw; font-size: 1.08em; }
.ti-text { margin-top: .8cqw; color: var(--grey-1); }
.ti-print { position: relative; height: max(36px, 7cqw); margin: 2cqw auto 0; width: max(36px, 7cqw); color: var(--grey-2); }
.ti-print svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.6,.4,1); }
.fp-ok { color: var(--white); opacity: 0; transform: scale(.5); }
.touchid.scan .fp { animation: fpPulse .9s ease-in-out infinite; }
.touchid.ok .fp { opacity: 0; }
.touchid.ok .fp-ok { opacity: 1; transform: scale(1); }
@keyframes fpPulse { 50% { color: #ffffff; filter: drop-shadow(0 0 8px rgba(255,255,255,.75)); transform: scale(1.06); } }
.ti-hint { margin-top: 1.2cqw; color: var(--muted); font-size: .92em; }
.ti-btns { display: flex; gap: 1.2cqw; margin-top: 2cqw; }
.ti-btns span { flex: 1; padding: .55em 0; border-radius: 7px; background: rgba(255,255,255,.1); font-size: .95em; }

/* iPhone */
.phone {
  position: absolute; right: -2%; bottom: 0; width: 22%; aspect-ratio: 9 / 19;
  border-radius: 13% / 6.2%; padding: 2.4%;
  background: linear-gradient(145deg, #3a3a3a, #141414);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(4deg); z-index: 3;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 11% / 5.2%; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #3a3a3a 0%, #161616 60%, #0a0a0a 100%);
  font-size: max(7px, 1.3cqw); line-height: 1.35;
}
.island { position: absolute; top: 2.4%; left: 50%; width: 34%; height: 4.2%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.ph-time { text-align: center; font-weight: 600; font-size: 3.2em; letter-spacing: -0.02em; margin-top: 22%; color: var(--white); line-height: 1.1; }
.ph-date { text-align: center; color: var(--grey-1); font-size: .95em; }
.ph-card {
  position: absolute; left: 5%; right: 5%; top: 36%;
  background: rgba(30, 30, 30, .92); border: 1px solid rgba(255,255,255,.12); border-radius: 1.4em;
  padding: 1em; opacity: .0; transform: translateY(14px) scale(.96);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.2,.3,1);
}
.ph-card.show { opacity: 1; transform: none; }
.ph-app { display: flex; align-items: center; gap: .5em; font-weight: 600; color: var(--white); }
.ph-app img { width: 1.5em; height: 1.5em; border-radius: .35em; }
.ph-app .dim { margin-left: auto; font-weight: 400; }
.ph-q { margin-top: .6em; color: var(--grey-1); }
.ph-face { display: grid; place-items: center; height: 4.2em; color: var(--dim); transition: color .3s ease; }
.ph-face svg { width: 3.2em; height: 3.2em; }
.ph-card.scan .ph-face { color: var(--grey-2); animation: fpPulse .9s ease-in-out infinite; }
.ph-card.ok .ph-face { color: var(--white); }
.ph-btns { display: flex; gap: .5em; }
.phone .ph-btns { flex-direction: column-reverse; gap: .4em; }
.phone .ph-q { font-size: .95em; }
.phone .ph-face { height: 3.4em; }
.ph-btns span { flex: 1; text-align: center; padding: .55em .2em; border-radius: .8em; font-weight: 600; white-space: nowrap; }
.ph-btns .deny { background: rgba(255, 255, 255, .06); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); flex: .6; }
.ph-btns .allow { background: var(--white); color: #0a0a0a; }
.ph-card.ok .ph-btns .allow { background: #ffffff; color: #0a0a0a; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

/* Mascot */
.bot { position: absolute; left: -5%; bottom: -1%; width: 24%; z-index: 4; overflow: visible; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); }
.bot-head, .bot-body { transform-box: view-box; transform-origin: 516px 560px; }
.bot .eye { transform-box: fill-box; transform-origin: center; }
.eyes-look { transition: transform .45s cubic-bezier(.3,1.3,.4,1); }
.eyes-idle, .eyes-happy, .cheeks, .bot-arcs { transition: opacity .3s ease; }
.eyes-idle { opacity: 0; }
.js .stage:not(.happy) .eyes-idle { opacity: 1; }
.js .stage:not(.happy) .eyes-happy { opacity: 0; }
.js .stage:not(.happy) .cheeks { opacity: .55; }
.js .bot-arcs { opacity: 0; }
.no-js .bot-arcs { opacity: .6; }
.js .bot { animation: bob 3.2s ease-in-out infinite; }
.js .bot .eye { animation: blink 4.6s infinite; }
.stage.look-right .eyes-look { transform: translate(14px, 4px); }
.stage.look-up .eyes-look { transform: translate(12px, -10px); }
.stage.nod .bot-head { animation: nod 1s cubic-bezier(.4,0,.3,1); }
.stage.nod .bot-body { animation: squash 1s cubic-bezier(.4,0,.3,1); }
.stage.nod .bot-arcs { animation: arcs 1.3s ease-out; }
@keyframes bob { 50% { transform: translateY(-1.4%); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes nod {
  0% { transform: none; }
  22% { transform: rotate(-3deg) translateY(10px); }
  42% { transform: rotate(2deg) translateY(-6px); }
  62% { transform: rotate(-2deg) translateY(8px); }
  82% { transform: rotate(1deg) translateY(-2px); }
  100% { transform: none; }
}
@keyframes squash { 22%, 62% { transform: scale(1.03, .97); } 42% { transform: scale(.99, 1.01); } }
@keyframes arcs { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 28px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; padding: 4px 0; }
.js .marquee-track { animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap;
  padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.02);
  transition: border-color .2s ease, background .2s ease;
}
.marquee-track li:hover { border-style: solid; border-color: var(--line-3); background: rgba(255,255,255,.05); }
.marquee-track b { font-weight: 600; font-size: 15px; }
.marquee-track span { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--dim); margin-bottom: 14px; }
.eyebrow-warm { color: var(--grey-1); }
.h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 650; max-width: 20em; }
.h2 code { font-size: .86em; padding: 0 .2em; background: none; box-shadow: none; color: var(--muted); }
.h2-sm { font-size: clamp(26px, 3vw, 36px); }
.h3 { font-size: 24px; font-weight: 600; }
.section-lede { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 40em; }
.js .reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Demo terminal ---------- */
.demo { padding-top: 96px; }
.term-backdrop {
  position: relative; margin-top: 44px; padding: clamp(18px, 4vw, 56px);
  border-radius: 28px; perspective: 1800px;
  background:
    radial-gradient(60% 70% at 18% 20%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(50% 60% at 86% 90%, rgba(255, 255, 255, .04), transparent 70%),
    #0d0d0d;
  border: 1px solid var(--line);
}
.term {
  border-radius: 14px; overflow: hidden; background: rgba(10, 10, 10, .96);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.5);
}
.js .term.reveal { opacity: 0; transform: rotateX(14deg) translateY(30px) scale(.96); filter: none; transform-origin: 50% 100%; transition: opacity .9s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .term.reveal.in { opacity: 1; transform: rotateX(4deg); }
.js .term.reveal.in:hover, .js .term.reveal.in:focus-within { transform: rotateX(0deg); }
.term-bar { height: auto; min-height: 48px; padding: 6px 12px; gap: 14px; }
.term-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.term-tabs::-webkit-scrollbar { display: none; }
.term-tab {
  flex: none; background: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--mono); font-size: 13px; color: var(--dim); padding: 7px 12px; border-radius: 8px;
}
.term-tab:hover { color: var(--text); }
.term-tab[aria-selected="true"] { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--line-2); }
.term-tab[aria-selected="true"]::before { content: "● "; color: var(--white); }
.term-ctrl { display: flex; gap: 6px; flex: none; }
.ctrl-btn {
  font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--muted);
}
.ctrl-btn:hover { color: var(--text); background: rgba(255,255,255,.09); }
.term-body { height: 400px; overflow-y: auto; padding: 20px 22px 26px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--grey-1); scroll-behavior: smooth; }
.term-out .ln + .ln { margin-top: 2px; }
.term-out .ln.out { padding-left: 0; text-indent: 0; }
.pr { color: var(--white); font-weight: 700; }
.c { color: var(--dim); }
.warn { color: var(--white); font-weight: 600; }
.term-out .ln.warn::before { content: "! "; font-weight: 700; }
.term-out .ln.out:not(.warn):not(.note) { color: var(--muted); }
.term-out .ln.note { color: var(--dim); font-style: italic; }

/* inline widgets in the terminal */
.w { margin: 12px 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s ease, transform .4s cubic-bezier(.2,1.2,.3,1); }
.w.show { opacity: 1; transform: none; }
.w-touch {
  display: grid; grid-template-columns: 40px 1fr 36px; gap: 14px; align-items: center;
  max-width: 560px; padding: 14px 16px; border-radius: 12px;
  background: rgba(30, 30, 30, .95); border: 1px solid rgba(255,255,255,.14);
}
.w-touch img { width: 40px; height: 40px; }
.w-touch p { color: var(--grey-1); min-width: 0; overflow-wrap: anywhere; }
.w-touch p b { display: block; color: #fff; }
.w-touch .ti-print { width: 34px; height: 34px; margin: 0; }
.w-touch.scan .fp { animation: fpPulse .9s ease-in-out infinite; }
.w-touch.ok .fp { opacity: 0; }
.w-touch.ok .fp-ok { opacity: 1; transform: scale(1); }
.w-card {
  width: min(360px, 100%); padding: 14px; border-radius: 12px;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
}
.w-card .kc-top { display: flex; gap: 10px; }
.w-card .kc-key { color: var(--white); flex: none; margin-top: 2px; }
.w-card b { color: #fff; font-size: 13.5px; }
.w-card .kc-sub { color: var(--muted); font-size: 12.5px; }
.w-card .kc-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.w-card .kc-btns span { font-size: 12.5px; padding: 4px 10px; border-radius: 7px; background: rgba(255,255,255,.08); color: #eee; transition: transform .15s ease, box-shadow .2s ease; }
.w-card .kc-btns .p { background: var(--white); color: #0a0a0a; font-weight: 600; }
.w-card.press .kc-btns .p { transform: scale(.94); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.w-card.saved .kc-sub { color: var(--white); font-weight: 600; }
.w-phone {
  margin-left: auto; width: min(330px, 100%); padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #242424, #181818); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.7);
}
.w-phone .ph-app img { width: 18px; height: 18px; border-radius: 4px; }
.w-phone .ph-q { font-size: 13.5px; }
.w-phone .ph-q code { font-size: 12.5px; }
.w-phone .ph-btns { margin-top: 10px; font-size: 13px; }
.w-phone.ok .ph-btns .allow { background: #ffffff; color: #0a0a0a; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.w-phone .ph-opts { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; }
.w-phone .ph-opts span { padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.07); }
.w-phone .ph-reply { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.3); color: var(--text); font-size: 13px; min-height: 2.3em; }
.w-phone.ok .ph-reply { border: 1px solid var(--line-3); }

/* ---------- Install box ---------- */
.install { margin-top: 36px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.install-head { display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.install-title { font-weight: 600; }
.install-tabs { display: flex; gap: 4px; }
.itab { background: none; border: 1px solid transparent; padding: 6px 12px; border-radius: 8px; color: var(--dim); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.itab[aria-selected="true"] { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--line-2); }
.copy-btn {
  margin-left: auto; cursor: pointer; font-family: var(--mono); font-size: 13px;
  padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text);
  transition: background .2s ease, border-color .2s ease;
}
.copy-btn:hover { background: rgba(255,255,255,.1); border-color: var(--line-3); }
.copy-btn.done { border-color: var(--white); background: var(--white); color: #0a0a0a; }
.code { margin: 0; padding: 20px 22px; overflow-x: auto; font-size: 14px; line-height: 1.75; color: var(--text); }
.install-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.faq summary:hover::after, .faq details[open] summary::after { color: var(--white); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 44em; }

/* ---------- Final + footer ---------- */
.final { padding: 80px 0 110px; }
.final-inner { display: flex; align-items: center; gap: 48px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: radial-gradient(70% 120% at 0% 100%, rgba(255,255,255,.07), transparent 60%), radial-gradient(60% 100% at 100% 0%, rgba(255,255,255,.04), transparent 60%), var(--bg-2); border: 1px solid var(--line-2); }
.final-bot { width: 170px; height: auto; flex: none; }
.final .cta-row { margin-top: 28px; }
@media (max-width: 700px) { .final-inner { flex-direction: column; text-align: center; } .final .cta-row { justify-content: center; } .final .section-lede { margin-inline: auto; } .final-bot { width: 120px; } }
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--text); }
.foot-small { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* ---------- Page background: faint grid that drifts slowly ---------- */
.bg-grid {
  position: fixed; inset: -48px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 80%);
}

/* ---------- Tap targets and shared bits ---------- */
.btn { min-height: 48px; justify-content: center; }
.btn-sm { min-height: 44px; }
.hero .lede { max-width: 24em; color: var(--grey-1); }
.definition { margin-top: 28px; font-size: 14.5px; color: var(--dim); max-width: 34em; }
.definition b { color: var(--text); font-weight: 600; }
.js .definition.blur-in { animation-delay: .55s; }

/* cursor-follow light and hover lift on cards (position set by site.js) */
.glow { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .35s ease; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 60%);
}
.glow:hover { border-color: var(--line-3); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .95); }
.glow:hover::before { opacity: 1; }
.js .glow.reveal { transition-property: opacity, filter, transform, border-color, box-shadow; transition-duration: .8s, .8s, .8s, .3s, .35s; transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s; }
.js .glow.reveal.in { transition-duration: .8s, .8s, .35s, .3s, .35s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
.js .glow.reveal.in:hover, .no-js .glow:hover { transform: translateY(-4px); }

/* ---------- Problem: keys flying off ---------- */
.leak { margin-top: 44px; display: grid; gap: 16px; max-width: 880px; }
.lane { display: grid; grid-template-columns: 112px 1fr 128px; align-items: center; gap: 12px; }
.node {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2);
  color: var(--grey-1); font-size: 13px; line-height: 1.25; text-align: center;
}
.node.dst { border-style: dashed; color: var(--muted); }
.node.dst::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--white); border-radius: inherit; opacity: 0; }
.hit {
  position: absolute; top: -9px; right: -9px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--white); color: #0a0a0a;
  font: 800 13px/1 var(--mono); font-style: normal;
}
.track { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 12px); }
.mover { position: absolute; left: 0; right: 0; top: -15px; height: 32px; transform: translateX(50%); }
.keychip {
  position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%);
  font: 600 12px/1 var(--mono); white-space: nowrap; color: #0a0a0a; background: var(--white);
  padding: 6px 9px; border-radius: 7px; box-shadow: 0 6px 20px -6px rgba(255, 255, 255, .35);
}
.problem .section-lede { margin-top: 36px; }

/* ---------- Solution: three steps ---------- */
.flow { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flow-step {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 12px;
  padding: 16px 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.flow-step::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--white); border-radius: inherit; opacity: 0; pointer-events: none; }
.flow-step + .flow-step > .flow-n::before {
  content: "→"; position: absolute; left: -11px; top: 88px; transform: translateX(-50%);
  font: 600 16px/1 var(--mono); color: var(--dim);
}
.flow-art {
  grid-column: 1 / -1; position: relative; height: 160px; overflow: hidden;
  display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(80% 90% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%), #0d0d0d;
}
.flow-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font: 700 14px/1 var(--mono); color: #0a0a0a; background: var(--white); }
.flow-step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.flow-step h3 code { font-size: .8em; }
.flow-step:nth-child(2) { --d: .12s; }
.flow-step:nth-child(3) { --d: .24s; }

.art-store { display: flex; flex-direction: column; gap: 14px; }
.mini-card { display: block; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .13); border-radius: 10px; padding: 9px 11px; font-size: 12px; color: var(--text); }
.mini-btns { display: flex; gap: 5px; margin-top: 7px; }
.mini-btns i { font-style: normal; font-size: 10.5px; background: rgba(255, 255, 255, .08); padding: 3px 7px; border-radius: 5px; color: var(--muted); }
.mini-btns .p { background: var(--white); color: #0a0a0a; font-weight: 600; }
.vault { position: relative; display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line-3); color: var(--white); }
.drop { position: absolute; left: 50%; top: -18px; margin-left: -18px; font: 600 10px/1 var(--mono); background: var(--white); color: #0a0a0a; padding: 3px 5px; border-radius: 4px; opacity: 0; }

.mini-term { display: grid; gap: 10px; width: calc(100% - 28px); padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0a0a; font: 12.5px/1.4 var(--mono); color: var(--grey-1); }
.mt-line { position: relative; overflow: hidden; white-space: nowrap; }
.mt-cover { position: absolute; inset: 0 -2px; background: #0a0a0a; transform: translateX(101%); }
.mt-wait { display: flex; gap: 5px; align-items: center; color: var(--dim); }
.mt-wait i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.art-nod { display: flex; align-items: center; justify-content: center; gap: 18px; }
.nod-bot { display: block; width: 46px; transform-origin: 50% 100%; }
.nod-bot img { display: block; width: 46px; height: auto; }
.art-nod .nod-col { display: grid; gap: 10px; justify-items: center; }
.nod-print { position: relative; display: block; width: 40px; height: 40px; color: var(--grey-2); }
.nod-print svg { position: absolute; inset: 0; }
.nod-print .fp { opacity: 0; }
.nod-print .fp-ok { color: var(--white); opacity: 1; transform: none; }
.nod-out { font-size: 11.5px; background: none; box-shadow: none; padding: 0; color: var(--muted); white-space: nowrap; }

/* key formats marquee */
.formats { margin-top: 72px; padding: 30px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.formats-title { color: var(--muted); font-size: 17px; }
.formats-title .count { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.formats .marquee { margin-top: 20px; }

/* ---------- What it replaces ---------- */
.swap { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.swap-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.swap-card:nth-child(2) { --d: .12s; }
.swap-card:nth-child(3) { --d: .24s; }
.swap-from { font: 13px/1.3 var(--mono); color: var(--dim); }
.swap-flip { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; perspective: 700px; }
.swap-old { position: relative; display: inline-block; }
.swap-old code { background: none; box-shadow: none; padding: 0; font-size: 17px; color: var(--muted); }
.strike-line { position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--white); transform-origin: 0 50%; }
.swap-new code { display: inline-block; background: var(--white); color: #0a0a0a; box-shadow: none; font-size: 17px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }

.grid-wrap { margin-top: 40px; max-width: 780px; }
.checks { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.checks th, .checks td { padding: 13px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.checks tbody tr:last-child th, .checks tbody tr:last-child td { border-bottom: 0; }
.checks thead th { font: 600 13px/1.2 var(--mono); color: var(--muted); }
.checks thead th:first-child { width: 42%; }
.checks abbr { text-decoration: none; }
.checks tbody th { text-align: left; padding-left: 18px; font-weight: 500; font-size: 15px; color: var(--text); }
.checks .k { background: rgba(255, 255, 255, .05); }
.checks thead .k { color: var(--white); font-weight: 700; }
.checks tbody tr { transition: background .2s ease; }
.checks tbody tr:hover { background: rgba(255, 255, 255, .025); }
.checks td::before { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 13px/1 var(--sans); }
.checks td.y::before { content: "✓"; content: "✓" / ""; border: 1.5px solid var(--white); color: var(--white); }
.checks td.k.y::before { background: var(--white); color: #0a0a0a; }
.checks td.n::before { content: "✗"; content: "✗" / ""; color: var(--dim); }
.checks td.na::before { content: "—"; content: "—" / ""; color: var(--dim); font-weight: 400; }
.table-note { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* ---------- Open source tiles ---------- */
.tiles { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 190px;
  padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2);
}
.tile:nth-child(2) { --d: .08s; }
.tile:nth-child(3) { --d: .16s; }
.tile:nth-child(4) { --d: .24s; }
.tile-icon { color: var(--white); }
.tile-n { font-size: clamp(48px, 6vw, 72px); font-weight: 650; letter-spacing: -0.05em; line-height: .9; color: var(--white); font-variant-numeric: tabular-nums; }
.tile b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.oss-line { margin-top: 30px; color: var(--muted); font-size: 16px; }
.oss-line a { display: inline-block; padding: 10px 0; }

/* ---------- FAQ headings inside summary ---------- */
.faq summary h3 { display: inline; font: inherit; letter-spacing: -0.01em; }
.faq summary { min-height: 44px; }
.faq details p { max-width: 46em; }

/* ---------- Install box tweaks ---------- */
.install-title { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.itab, .copy-btn, .term-tab, .ctrl-btn { min-height: 46px; }
.brand { min-height: 44px; }
.code-wrap { white-space: pre-wrap; word-break: break-word; }
.foot-links a { display: inline-block; padding: 12px 2px; }

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .bg-grid { animation: gridDrift 24s linear infinite; }
  @keyframes gridDrift { to { transform: translate(48px, 48px); } }

  /* problem lanes */
  .js .leak .mover { transform: translateX(0); }
  .js .leak .keychip, .js .leak .hit { opacity: 0; }
  .js .leak.playing .mover { animation: leakMove 3.6s cubic-bezier(.5,0,.3,1) infinite; }
  .js .leak.playing .keychip { animation: leakFade 3.6s linear infinite; }
  .js .leak.playing .hit { animation: hitPop 3.6s ease-out infinite; }
  .js .leak.playing .dst::after { animation: dstFlash 3.6s ease-out infinite; }
  .js .leak.playing .lane:nth-child(2) * { animation-delay: .6s; }
  .js .leak.playing .lane:nth-child(3) * { animation-delay: 1.2s; }
  @keyframes leakMove { 0%, 8% { transform: translateX(0); } 70%, 100% { transform: translateX(100%); } }
  @keyframes leakFade { 0% { opacity: 0; } 10%, 66% { opacity: 1; } 74%, 100% { opacity: 0; } }
  @keyframes hitPop { 0%, 68% { opacity: 0; transform: scale(.3); } 74% { opacity: 1; transform: scale(1.25); } 80%, 94% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
  @keyframes dstFlash { 0%, 68% { opacity: 0; } 72% { opacity: .9; } 100% { opacity: 0; } }

  /* solution: one 6 s cycle, each step lights up in turn */
  .js .flow.playing .flow-step::after { animation: stepOn 6s ease infinite; }
  .js .flow.playing .flow-step:nth-child(2)::after { animation-delay: 2s; }
  .js .flow.playing .flow-step:nth-child(3)::after { animation-delay: 4s; }
  @keyframes stepOn { 0% { opacity: 0; } 4%, 30% { opacity: .55; } 36%, 100% { opacity: 0; } }

  .js .flow.playing .mini-btns .p { animation: press 6s ease infinite; }
  .js .flow.playing .drop { animation: dropKey 6s cubic-bezier(.5,0,.5,1) infinite; }
  .js .flow.playing .vault { animation: bump 6s ease infinite; }
  @keyframes press { 0%, 8% { transform: none; } 11% { transform: scale(.88); } 15%, 100% { transform: none; } }
  @keyframes dropKey { 0%, 13% { opacity: 0; transform: translateY(-34px); } 16% { opacity: 1; transform: translateY(-34px); } 24% { opacity: 1; transform: translateY(14px) scale(.8); } 27%, 100% { opacity: 0; transform: translateY(14px) scale(.6); } }
  @keyframes bump { 0%, 24% { transform: none; } 27% { transform: scale(1.14); } 31%, 100% { transform: none; } }

  .js .flow.playing .mt-cover { animation: typeCover 6s infinite; }
  .js .flow.playing .mt-wait i { animation: waitDot 6s infinite; }
  .js .flow.playing .mt-wait i:nth-child(2) { animation-name: waitDot2; }
  .js .flow.playing .mt-wait i:nth-child(3) { animation-name: waitDot3; }
  @keyframes typeCover { 0%, 34% { transform: translateX(0); animation-timing-function: steps(22, end); } 52%, 100% { transform: translateX(101%); } }
  @keyframes waitDot { 0%, 52% { opacity: .25; } 56% { opacity: 1; } 60%, 62% { opacity: .25; } 64% { opacity: 1; } 68%, 100% { opacity: .25; } }
  @keyframes waitDot2 { 0%, 54% { opacity: .25; } 58% { opacity: 1; } 62%, 64% { opacity: .25; } 66% { opacity: 1; } 70%, 100% { opacity: .25; } }
  @keyframes waitDot3 { 0%, 56% { opacity: .25; } 60% { opacity: 1; } 64%, 100% { opacity: .25; } }

  .js .flow.playing .nod-print .fp { animation: fpShow 6s ease infinite; }
  .js .flow.playing .nod-print .fp-ok { animation: okShow 6s cubic-bezier(.2,1.6,.4,1) infinite; }
  .js .flow.playing .nod-bot { animation: miniNod 6s cubic-bezier(.4,0,.3,1) infinite; }
  .js .flow.playing .nod-out .concealed { display: inline-block; animation: concealPop 6s cubic-bezier(.2,1.6,.4,1) infinite; }
  @keyframes fpShow { 0%, 66% { opacity: .5; transform: none; } 70% { opacity: 1; transform: scale(1.08); } 74% { opacity: .7; transform: none; } 78% { opacity: 1; transform: scale(1.08); } 81%, 100% { opacity: 0; transform: scale(.8); } }
  @keyframes okShow { 0%, 80% { opacity: 0; transform: scale(.5); } 84%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
  @keyframes miniNod { 0%, 82% { transform: none; } 85% { transform: rotate(-7deg) translateY(3px); } 88% { transform: rotate(4deg) translateY(-2px); } 91% { transform: rotate(-4deg) translateY(2px); } 94%, 100% { transform: none; } }
  @keyframes concealPop { 0%, 86% { opacity: 0; transform: scale(.5); } 90%, 98% { opacity: 1; transform: none; } 100% { opacity: 0; } }

  /* replaces: strike through, then flip to the Keynod way */
  .js .swap .swap-flip { display: grid; }
  .js .swap .swap-old, .js .swap .swap-new { grid-area: 1 / 1; align-self: center; justify-self: start; backface-visibility: hidden; }
  .js .swap .strike-line { transform: scaleX(0); }
  .js .swap .swap-new { opacity: 0; transform: rotateX(-90deg); }
  .js .swap.playing .strike-line { animation: strike .5s cubic-bezier(.6,0,.3,1) forwards; animation-delay: calc(.5s + var(--i, 0) * .35s); }
  .js .swap.playing .swap-old { animation: flipOut .45s cubic-bezier(.5,0,.8,.4) forwards; animation-delay: calc(1.4s + var(--i, 0) * .35s); }
  .js .swap.playing .swap-new { animation: flipIn .55s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: calc(1.8s + var(--i, 0) * .35s); }
  .swap-card:nth-child(2) { --i: 1; }
  .swap-card:nth-child(3) { --i: 2; }
  @keyframes strike { to { transform: scaleX(1); } }
  @keyframes flipOut { to { opacity: 0; transform: rotateX(90deg); } }
  @keyframes flipIn { from { opacity: 0; transform: rotateX(-90deg); } to { opacity: 1; transform: none; } }

  /* check grid: marks pop in row by row */
  .js .grid-wrap.reveal .checks td::before { transform: scale(0); transition: transform .45s cubic-bezier(.2,1.6,.4,1); }
  .js .grid-wrap.reveal.in .checks td::before { transform: none; }
  .checks tbody tr:nth-child(2) td::before { transition-delay: .07s; }
  .checks tbody tr:nth-child(3) td::before { transition-delay: .14s; }
  .checks tbody tr:nth-child(4) td::before { transition-delay: .21s; }
  .checks tbody tr:nth-child(5) td::before { transition-delay: .28s; }
  .checks tbody tr:nth-child(6) td::before { transition-delay: .35s; }

  .tile:hover .tile-icon { transform: translateY(-3px) rotate(-4deg); }
  .tile-icon { transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
}

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-step + .flow-step > .flow-n::before { content: "↓"; left: 50%; top: -22px; }
  .swap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .lane { grid-template-columns: 82px 1fr 94px; gap: 8px; }
  .node { font-size: 12px; padding: 12px 4px; }
  .keychip { font-size: 11px; padding: 5px 7px; }
  .checks th, .checks td { padding: 12px 2px; }
  .checks thead th { font-size: 11.5px; }
  .checks tbody th { font-size: 14px; padding-left: 12px; }
  .checks thead th:first-child { width: 40%; }
  .tile { min-height: 160px; padding: 18px; gap: 18px; }
  .tile b { font-size: 16px; }
  .code { white-space: pre-wrap; word-break: break-word; }
  .formats { margin-top: 56px; }
  .term-tabs { flex-wrap: wrap; overflow: visible; }
  .term-tab { flex: 1 1 calc(50% - 4px); padding: 7px 6px; font-size: 12px; }
  .w-touch .ti-print { width: 28px; height: 28px; }
  .w-touch { grid-template-columns: 32px 1fr 28px; }
}

/* ---------- Responsive hero ---------- */
@media (max-width: 1060px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stage { max-width: 720px; margin-inline: auto; width: 100%; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .phone { display: none; }
  .mac { width: 100%; }
  .hero { padding-bottom: 56px; }
  .stage { padding-bottom: 20%; }
  .bot { width: 27%; left: -3%; bottom: 0; }
  .mac-body { min-height: 290px; padding: 12px 12px 16px; }
  .touchid { width: 80cqw; padding: 18px 14px 12px; font-size: 11px; }
  .touchid .ti-icon img { width: 40px; }
  .touchid .ti-title { margin-top: 6px; }
  .touchid .ti-text { margin-top: 4px; }
  .touchid .ti-print { width: 34px; height: 34px; margin-top: 8px; }
  .touchid .ti-hint { margin-top: 6px; }
  .touchid .ti-btns { margin-top: 10px; gap: 8px; }
  .mac-title { font-size: 11px; transform: none; }
  .remote-chip { display: none; }
  .term-body { height: 400px; font-size: 12.5px; padding: 14px 14px 20px; }
  .term-bar { flex-wrap: wrap; }
  .term-bar > .lights { display: none; }
  .term-tabs { order: 2; flex-basis: 100%; }
  .term-ctrl { margin-left: auto; }
  .code { font-size: 12.5px; padding: 16px; }
  .w-touch { grid-template-columns: 32px minmax(0, 1fr) 30px; gap: 10px; padding: 12px 16px 12px 12px; font-size: 13px; }
  .w-touch img { width: 32px; height: 32px; }
}

/* ---------- Reduced motion: no loops, no typing ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .term.reveal { opacity: 1; transform: none; filter: none; }
  .js .doodle-underline path, .js .doodle-circle path { stroke-dashoffset: 0; }
  .js .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

