/* Verzael website. Color roles mirror the app's Theme (vox-docs/docs/design/colors.md).
   Radius system: interactive controls are full pills, surfaces are 20px, keycaps are 12px.
   The page follows the system Appearance until the day ends: pricing onward is always night. */

:root {
  --page: #faf9f7;
  --canvas: #faf9f7;
  --surface: #ffffff;
  --ink: #1f2937;
  --ink-2: #636d82;
  --line: rgba(31, 41, 55, 0.12);
  --accent: #d07205;
  --blue: #1e63d6;
  --purple: #7c3aed;
  --green: #147e3c;
  --red: #d42424;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-rim: rgba(255, 255, 255, 0.65);
  --shade: 31, 41, 55;
  --btn: #1f2937;
  --on-btn: #ffffff;
  --art: url("assets/img/day.webp");

  --night: #10162a;
  --night-2: #1a2238;
  --night-ink: #f3f4f6;
  --night-ink-2: #a0a8bc;
  --amber: #f59e0b;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --bar: 44px;

  /* Key material: shared by the 3D keyboard and every small keycap, so they are one design. */
  --key-top: #ffffff;
  --key-bot: #f4f5f7;
  --key-edge: #c4c8cf;
  --key-ink: #4b5563;
  --key-mod: #1f2937;
  --key-drop: rgba(31, 41, 55, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #10162a;
    --canvas: #10162a;
    --surface: #1a2238;
    --ink: #f3f4f6;
    --ink-2: #a0a8bc;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #f59e0b;
    --blue: #6aa8ff;
    --purple: #c39bff;
    --green: #4ade80;
    --red: #ff6b6b;
    --glass: rgba(11, 16, 32, 0.6);
    --glass-rim: rgba(255, 255, 255, 0.1);
    --shade: 0, 0, 0;
    --btn: #f3f4f6;
    --on-btn: #10162a;
    --art: url("assets/img/night.webp");
    --key-top: #2b3350;
    --key-bot: #252c46;
    --key-edge: #0d1222;
    --key-ink: #a0a8bc;
    --key-mod: #f3f4f6;
    --key-drop: rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
/* overflow-x on html too: on body alone it propagates to the viewport (as hidden, still scrollable) and body stops clipping */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.03em; }
h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; font-weight: 300; font-stretch: 92%; word-spacing: 0.04em; }
h2 strong, h1 strong { font-weight: 700; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 44ch; }
kbd {
  font: 600 0.8em/1 var(--mono);
  letter-spacing: 0.04em;
  padding: 0.38em 0.62em;
  border-radius: 999px;
  background: rgba(var(--shade), 0.1);
  color: inherit;
  white-space: nowrap;
}
/* A key combo: one cap per key (see keycaps() in site.js). */
kbd.combo { display: inline-flex; align-items: center; gap: 0.3em; padding: 0 0 0.14em !important; background: none !important; border-radius: 0; font-size: 1em; letter-spacing: 0; vertical-align: middle; }
.cap {
  display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 0.34em;
  background: linear-gradient(180deg, var(--key-top), var(--key-bot)); color: var(--key-mod);
  box-shadow: 0 0.12em 0 var(--key-edge), 0 0.2em 0.32em -0.12em var(--key-drop);
}
.cap b { font: 600 0.72em/1 var(--body); }
.cap i { display: block; font-size: 0.82em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 56px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--body); white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: scale(0.98); }
/* Downloads closed 2026-10-14 (not released yet): the buttons stay, but aren't links. */
.btn[aria-disabled="true"] { cursor: default; opacity: 0.6; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13.5px; gap: 7px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--btn); color: var(--on-btn); box-shadow: 0 10px 24px -12px rgba(var(--shade), 0.55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(var(--shade), 0.6); }
.btn-ghost {
  color: var(--ink); background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn-ghost:hover { transform: translateY(-1px); }
.btn-ghost .dim { color: var(--ink-2); font-weight: 500; font-family: var(--mono); font-size: 13px; }

/* ---------- menu bar + notch ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 clamp(12px, 2vw, 22px);
  color: var(--ink);
  transition: color 0.5s;
}
/* The blur lives on a pseudo-element: a backdrop-filter on .menubar itself would make it a
   backdrop root, and the notch card inside it could then only blur the menu bar, not the page. */
.menubar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--canvas) 62%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 0.5px 0 var(--line);
  transition: background-color 0.5s;
}
.menubar > .btn { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 26px; height: 26px; border-radius: 7px; flex: none; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, 0.12); }
/* Brand and links share column 1 and lay out together, so the links follow the name at any length. */
.menubar .lead { grid-column: 1; display: flex; align-items: center; gap: 24px; min-width: 0; }
.menu { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.menu a { color: var(--ink-2); transition: color 0.2s; }
.menu a:hover { color: var(--ink); }

.notch { grid-column: 2; position: relative; width: 190px; height: var(--bar); align-self: start; }
.notch::before { /* the hardware notch stays drawn above the card, as on a real MacBook */
  content: ""; position: absolute; inset: 0; z-index: 2; background: #000; border-radius: 0 0 14px 14px; pointer-events: none;
}
.notch::after { /* the resting nub's glyph, like the real one inside the notch */
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 12px; margin: -6px 0 0 -8px;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)) 0 50% / 2px 5px no-repeat,
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)) 4.5px 50% / 2px 12px no-repeat,
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)) 9px 50% / 2px 8px no-repeat,
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)) 13.5px 50% / 2px 4px no-repeat;
  z-index: 3; transition: opacity 0.2s;
}
.notch-hit { position: absolute; inset: 0; z-index: 4; border-radius: 0 0 14px 14px; }
.notch-card {
  position: absolute; top: 0; left: 50%; width: 420px; margin-left: -210px; z-index: 1;
  padding: 58px 16px 16px; color: var(--ink);
  background: #000;
  border-radius: 0 0 22px 22px;
  clip-path: inset(0 115px calc(100% - var(--bar)) 115px round 0 0 14px 14px);
  transition: clip-path 0.5s var(--spring), background-color 0.35s, box-shadow 0.35s;
  pointer-events: none;
}
.notch.open .notch-card {
  clip-path: inset(0 0 0 0 round 0 0 22px 22px);
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 30px 60px -24px rgba(var(--shade), 0.5), 0 0 0 0.5px rgba(var(--shade), 0.18);
  pointer-events: auto;
}
.notch.open .notch-hit { pointer-events: none; }
.notch.open::after { opacity: 0; }
.notch-card > div { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s, transform 0.4s var(--ease); }
.notch.open .notch-card > div { opacity: 1; transform: none; transition-delay: 0.12s; }
.nc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.nc-head-row { justify-content: space-between; color: var(--ink); }
.nc-close { font-size: 18px; color: var(--ink-2); display: grid; }
.nc-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; margin-bottom: 8px; border-radius: 10px; background: rgba(var(--shade), 0.06);
  font-size: 14px; font-weight: 600; transition: background-color 0.2s;
}
.nc-row > span { display: inline-flex; align-items: center; gap: 9px; }
.nc-row > span > i { font-size: 17px; }
.nc-row:hover { background: rgba(var(--shade), 0.11); }
.nc-row kbd { font-size: 11.5px; background: rgba(var(--shade), 0.12); }
.nc-foot { font-size: 12.5px; color: var(--ink-2); padding: 4px 4px 0; }
.nc-caps li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); margin-bottom: 7px; }
.nc-caps li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--shade), 0.45); margin-top: 8px; }
.nc-caps .nc-foot { margin-top: 10px; }
.nc-caps .nc-foot kbd { font-size: 11px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh; display: grid; align-items: center;
  padding: calc(var(--bar) + 40px) var(--gutter) 160px; overflow: hidden; isolation: isolate;
}
.hero-art {
  position: absolute; inset: -6% 0 0; z-index: -1;
  background: var(--art) center 68% / cover no-repeat;
}
.hero-art::after { /* keeps the headline side calm on narrow screens */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--canvas) 55%, transparent) 0%, transparent 55%);
}
.hero-inner { max-width: 1280px; width: 100%; margin: 0 auto; }
.hero-title {
  font-size: clamp(46px, 8.4vw, 124px); line-height: 0.98; font-weight: 300; font-stretch: 90%;
  letter-spacing: -0.035em; word-spacing: 0.05em; padding-bottom: 0.08em;
}
.ht-line { display: block; }
.hero-sub { margin-top: 26px; max-width: 30ch; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--ink-2); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* dictation state of the headline: words arrive like a paste */
.js .hero-title.pending { opacity: 0; animation: failsafe 0.01s 3.5s forwards; }
@keyframes failsafe { to { opacity: 1; } }
.caret { display: inline-block; width: 0.055em; height: 0.78em; margin-left: 0.08em; vertical-align: -0.04em; background: var(--accent); border-radius: 2px; animation: blink 1.05s steps(1) 4 forwards; }
@keyframes blink { 50% { opacity: 0; } 100% { opacity: 0; } }
.hero-title .w { display: inline-block; }

/* ---------- the live pill (mirrors MiniHUDView's bottom placement) ---------- */
.hud { position: fixed; z-index: 40; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px); display: grid; place-items: center; pointer-events: none; }
.hud > * { grid-area: 1 / 1; }
.pill {
  height: 52px; width: 64px; border-radius: 18px; overflow: hidden;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 20px 40px -18px rgba(var(--shade), 0.5), 0 0 0 0.5px rgba(var(--shade), 0.22), inset 0 1px 0 var(--glass-rim);
  opacity: 0; transform: translateY(18px) scale(0.92);
  transition: width 0.5s var(--spring), opacity 0.3s, transform 0.5s var(--spring);
}
.pill.on { opacity: 1; transform: none; }
.pill-in { width: max-content; height: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; white-space: nowrap; font-size: 15px; font-weight: 600; }
.pill-icon { font-size: 19px; color: var(--hue, var(--ink)); }
.bars { display: none; align-items: center; gap: 3px; height: 18px; }
.bars i { display: block; width: 3px; height: 5px; border-radius: 2px; background: var(--hue); }
.pill[data-state="listening"] .bars { display: inline-flex; }
.pill[data-state="listening"] .bars i { animation: level 0.9s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-duration: 0.62s !important; }
.bars i:nth-child(3) { animation-duration: 0.48s !important; }
.bars i:nth-child(4) { animation-duration: 0.7s !important; }
.bars i:nth-child(5) { animation-duration: 0.83s !important; }
@keyframes level { from { height: 4px; } to { height: 17px; } }
.pill-cap {
  display: none; max-width: min(360px, 60vw); overflow: hidden; justify-content: flex-end; margin-left: -6px;
  color: var(--ink-2); font-weight: 450;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px); mask-image: linear-gradient(90deg, transparent, #000 22px);
}
.pill-cap-in { flex: none; min-width: 100%; padding-left: 16px; }
.pill[data-state="listening"] .pill-cap { display: flex; }
.pill[data-state="listening"] .pill-label:empty { display: none; }
.pill[data-state="done"] .pill-icon { color: var(--green); }
.replay {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px;
  border-radius: 13px; background: var(--glass); color: var(--ink-2); font-size: 13px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 0.5px rgba(var(--shade), 0.2), 0 10px 24px -14px rgba(var(--shade), 0.45);
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease), color 0.2s;
}
.replay kbd { font-size: 11px; }
body.in-hero .replay.on { opacity: 1; transform: none; }
.replay:hover { color: var(--ink); }

/* ---------- a day with Verzael ---------- */
.day { position: relative; height: 100dvh; overflow: hidden; color: #1f2937; background: #f4e6db; }
.sky, .sky-layer { position: absolute; inset: 0; }
.sky-day { background: url("assets/img/day.webp") center 70% / cover no-repeat; }
.sky-dusk { background: linear-gradient(180deg, rgba(120, 90, 200, 0.28), rgba(255, 128, 76, 0.42) 78%); opacity: 0; }
.sky-night { background: url("assets/img/night.webp") center 70% / cover no-repeat; opacity: 0; }
.track { position: relative; display: flex; height: 100%; width: max-content; will-change: transform; }
.panel {
  flex: 0 0 100vw; height: 100%;
  display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.7fr; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: calc(var(--bar) + 40px) var(--gutter) 120px;
}
.panel-intro { flex-basis: 78vw; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-left: max(var(--gutter), 8vw); }
.day-title { font-size: clamp(48px, 7.6vw, 116px); line-height: 0.96; font-stretch: 90%; letter-spacing: -0.035em; word-spacing: 0.05em; }
.panel-intro .lede { color: #4b5563; font-size: clamp(18px, 1.6vw, 22px); max-width: 36ch; }
.panel-copy { max-width: 400px; }
.clock { font: 300 clamp(56px, 6vw, 88px)/0.9 var(--display); font-stretch: 85%; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.clock span { font: 500 0.22em/1 var(--mono); letter-spacing: 0.04em; vertical-align: 0.3em; margin-left: 0.2em; opacity: 0.7; }
.mode { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.mode kbd { font-size: 12px; background: rgba(31, 41, 55, 0.1); }
.mode .tag { font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(31, 41, 55, 0.1); }
.panel[data-mode="dictate"] .mode-name { color: #1e63d6; }
.panel[data-mode="professional"] .mode-name { color: #147e3c; }
.panel[data-mode="agent"] .mode-name { color: #7c3aed; }
.panel[data-mode="notes"] .mode-name { color: #b91c1c; }
.panel h3 { margin-top: 14px; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.06; font-weight: 650; font-stretch: 92%; }
.panel-copy > p:last-child { margin-top: 14px; color: #4b5563; font-size: 17px; max-width: 36ch; }
.panel[data-tone="dark"] { color: #f3f4f6; }
.panel[data-tone="dark"] .panel-copy > p:last-child { color: #c3c9d8; }
.panel[data-tone="dark"] .mode kbd, .panel[data-tone="dark"] .mode .tag { background: rgba(255, 255, 255, 0.14); }
.panel[data-tone="dark"][data-mode="agent"] .mode-name { color: #c39bff; }
.screen {
  margin: 0; justify-self: center; width: min(100%, calc((100dvh - 250px) * 1.6 + 20px));
  padding: 10px; border-radius: 22px; background: #0c0d12;
  box-shadow: 0 50px 90px -40px rgba(31, 20, 40, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.screen video { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; background: #e9dfd8; object-fit: cover; }
.dayline { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 30px; color: rgba(31, 41, 55, 0.7); transition: color 0.4s; }
.day.is-night .dayline { color: rgba(243, 244, 246, 0.72); }
.dayline-rule { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: currentColor; opacity: 0.35; }
.dayline-ticks { position: absolute; left: 0; right: 0; top: 16px; display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: 0.04em; }
.dayline-dot {
  position: absolute; top: 0; left: 0; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%;
  background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
  transition: background-color 0.5s, box-shadow 0.5s;
}
.day.is-night .dayline-dot { background: #e5e7ef; box-shadow: 0 0 0 4px rgba(229, 231, 239, 0.2); }

/* ---------- keys ---------- */
.keys {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  max-width: 1360px; margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--gutter);
}
.keys-copy .lede { margin-top: 22px; }
.modes { margin-top: 40px; display: grid; gap: 10px; }
.modes li {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px;
  cursor: default; transition: background-color 0.25s;
}
.modes li:hover, .modes li.lit { background: rgba(var(--shade), 0.06); }
.modes kbd { justify-self: start; font-size: 14px; color: var(--hue); background: color-mix(in srgb, var(--hue) 14%, transparent); }
.modes div > b { display: block; font-size: 17px; }
.modes div > span { display: block; color: var(--ink-2); font-size: 15.5px; }
.kb-stage { perspective: 1600px; display: grid; justify-items: center; gap: 26px; }
.kb {
  --k: clamp(44px, 5.2vw, 70px);
  display: grid; gap: calc(var(--k) * 0.12); padding: calc(var(--k) * 0.28); border-radius: calc(var(--k) * 0.4);
  background: linear-gradient(160deg, #eceef1, #d9dce2);
  box-shadow: 0 60px 90px -50px rgba(31, 41, 55, 0.55), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  transform: rotateX(22deg) rotateZ(-5deg);
  transform-style: preserve-3d;
}
.kb-row { display: flex; gap: calc(var(--k) * 0.12); }
.k {
  position: relative; flex: none; width: var(--k); height: var(--k); border-radius: calc(var(--k) * 0.17);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--key-top), var(--key-bot)); color: var(--key-ink);
  font: 500 calc(var(--k) * 0.3)/1 var(--body);
  box-shadow: 0 calc(var(--k) * 0.05) 0 var(--key-edge), 0 calc(var(--k) * 0.09) calc(var(--k) * 0.14) -4px var(--key-drop);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s, color 0.2s;
}
.k small { font: 500 calc(var(--k) * 0.14)/1 var(--body); margin-top: 5px; opacity: 0.75; }
.k.w13 { width: calc(var(--k) * 1.3); } .k.w15 { width: calc(var(--k) * 1.5); } .k.w18 { width: calc(var(--k) * 1.8); }
.k.w23 { width: calc(var(--k) * 2.3); } .k.w30 { width: calc(var(--k) * 3); }
.k[data-k="shift"], .k[data-k="control"] { color: var(--key-mod); }
.k i { display: block; }
.k.hot[data-k="z"], .k.hot[data-k="x"], .k.hot[data-k="c"] { color: var(--hue); font-weight: 700; }
.k.down {
  transform: translateY(calc(var(--k) * 0.045));
  box-shadow: 0 1px 0 #c4c8cf, 0 2px 6px -3px rgba(31, 41, 55, 0.35), 0 0 0 3px color-mix(in srgb, var(--hue, #d07205) 45%, transparent);
  background: color-mix(in srgb, var(--hue, #d07205) 12%, #fff);
}
.kb-hint { font-size: 14px; color: var(--ink-2); min-height: 1.6em; }
.kb-hint kbd { font-size: 12px; }
@media (prefers-color-scheme: dark) {
  .kb { background: linear-gradient(160deg, #232b42, #161c2f); box-shadow: 0 60px 90px -50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .k.down { background: color-mix(in srgb, var(--hue, #f59e0b) 22%, #252c46); box-shadow: 0 1px 0 #0d1222, 0 0 0 3px color-mix(in srgb, var(--hue, #f59e0b) 55%, transparent); }
}

/* ---------- languages ---------- */
.langs { position: relative; max-width: 1360px; margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(96px, 12vw, 160px); }
.langs-art { position: absolute; right: -4vw; top: -40px; width: min(62vw, 820px); height: auto; opacity: 0.9; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.langs h2 { position: relative; max-width: 12ch; }
.phrase-stage { position: relative; margin-top: clamp(40px, 6vw, 80px); min-height: calc(2 * 1.12 * clamp(32px, 5vw, 72px) + 48px); }
.phrase-lang { font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.phrase { margin-top: 18px; font: 500 clamp(32px, 5vw, 72px)/1.12 var(--display); font-stretch: 92%; letter-spacing: -0.035em; max-width: 22ch; }
.phrase .w { display: inline-block; white-space: pre; }
.langs-facts { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px 56px; }
.langs-facts p { display: flex; gap: 14px; color: var(--ink-2); }
.langs-facts b { color: var(--ink); font-weight: 600; }
.langs-facts i { flex: none; font-size: 24px; color: var(--accent); margin-top: 1px; }

/* ---------- ask marquee ---------- */
.ask { padding: 0 0 clamp(96px, 12vw, 160px); }
.ask h2 { padding: 0 var(--gutter); max-width: 1360px; margin: 0 auto clamp(36px, 4vw, 56px); }
.marquee { display: grid; gap: 14px; 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); }
.mq-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.say {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; white-space: nowrap;
}
.say i { font-size: 20px; color: var(--accent); }

/* ---------- trust ---------- */
.trust {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: start;
  max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
}
.trust-lead { position: sticky; top: calc(var(--bar) + 40px); }
.trust-lead img { width: min(280px, 60%); height: auto; margin: 0 0 28px -12px; }
.trust-list { display: grid; gap: clamp(36px, 4vw, 56px); padding-top: 12px; }
.trust-item { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.trust-item i { grid-row: span 2; font-size: 28px; color: var(--accent); }
.trust-item h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.1; }
.trust-item p { margin-top: 10px; color: var(--ink-2); max-width: 48ch; }

/* ---------- night ---------- */
.night {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2); --line: rgba(255, 255, 255, 0.12); --accent: var(--amber);
  --shade: 0, 0, 0; --btn: #f3f4f6; --on-btn: #10162a; --surface: var(--night-2);
  color: var(--ink); background: var(--night); position: relative;
}
.night { padding-top: 200px; }
.night::before { /* the one deliberate theme switch: the sun goes down */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 280px; pointer-events: none;
  background: linear-gradient(180deg, var(--page), #3a2f52 50%, var(--night));
}
.pricing { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 9vw, 130px) var(--gutter) 0; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.pricing-head h2 { max-width: 14ch; }
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); }
.billing button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.billing button[aria-checked="true"] { background: #f3f4f6; color: #10162a; }
.early {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 14px 18px; border-radius: 20px; background: rgba(245, 158, 11, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
  font-size: 15px; color: var(--ink);
}
.early[hidden] { display: none; }
.early-tag { font: 600 12px/1 var(--mono); letter-spacing: 0.04em; padding: 6px 10px; border-radius: 999px; background: var(--amber); color: #1f1300; }
.early b { margin-left: auto; font: 600 14px/1 var(--mono); color: var(--amber); }
.save { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: rgba(245, 158, 11, 0.16); color: var(--amber); vertical-align: 0.35em; margin-left: 6px; letter-spacing: 0.02em; }
.save[hidden] { display: none; }
.was { color: var(--ink-2); font: 500 22px/1 var(--display); text-decoration-thickness: 1.5px; align-self: center; }
.was[hidden] { display: none; }
.cta-note { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }
.plans { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 32px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.plan-for { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.price .amt { font: 600 52px/1 var(--display); font-stretch: 88%; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--ink-2); font-size: 15px; }
.bill { margin-top: 8px; color: var(--ink-2); font-size: 14px; min-height: 1.5em; }
.plan .btn { margin-top: 24px; width: 100%; }
.btn-outline { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); color: var(--ink); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); }
.plan ul { margin-top: 22px; display: grid; gap: 11px; font-size: 15.5px; }
.plan li { display: flex; gap: 11px; }
.plan li::before { content: "\e182"; font-family: "Phosphor"; color: var(--amber); font-size: 17px; line-height: 1.4; }
.plan-best { background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.04) 45%); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.45), 0 40px 80px -40px rgba(245, 158, 11, 0.35); }
.plan-badge { position: absolute; top: -13px; left: 28px; font: 600 12px/1 var(--mono); padding: 7px 11px; border-radius: 999px; background: var(--amber); color: #1f1300; }
.fine { margin-top: 24px; color: var(--ink-2); font-size: 14px; max-width: 70ch; }

.faq {
  display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 110px);
  max-width: 1280px; margin: 0 auto; padding: clamp(110px, 12vw, 170px) var(--gutter);
}
.faq h2 { position: sticky; top: calc(var(--bar) + 40px); align-self: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0;
  font: 500 clamp(19px, 1.7vw, 23px)/1.3 var(--display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\e3d4"; font-family: "Phosphor"; font-size: 20px; color: var(--ink-2); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-2); max-width: 60ch; }

.last { position: relative; min-height: 88dvh; display: grid; align-items: end; padding: 0 var(--gutter) clamp(72px, 10vw, 130px); overflow: hidden; isolation: isolate; }
.last-art { position: absolute; inset: 0; z-index: -1; background: url("assets/img/night.webp") center 60% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.last-pen { position: absolute; right: 6vw; top: 18%; width: min(46vw, 620px); height: auto; z-index: -1; opacity: 0.95; }
.last-copy { max-width: 1280px; width: 100%; margin: 0 auto; }
.last h2 { font-size: clamp(48px, 8vw, 120px); font-stretch: 90%; letter-spacing: -0.035em; word-spacing: 0.05em; line-height: 0.98; max-width: 10ch; }
.last-icon { display: block; width: clamp(88px, 9vw, 128px); height: auto; margin: 0 0 clamp(20px, 3vw, 32px) calc(clamp(88px, 9vw, 128px) * -0.098); } /* the icon canvas has Apple's ~10% padding; pull it so the tile lines up with the headline */
.last .lede { margin-top: 22px; color: #c3c9d8; }
.last .btn { margin-top: 34px; }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  max-width: 1280px; margin: 0 auto; padding: 32px var(--gutter) 44px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px;
}
.footer .brand { color: var(--ink); }
.footer nav { display: flex; gap: 24px; }
.footer nav a:hover { color: var(--ink); }

/* nav over the night */
body.at-night .menubar, body.day-dark .menubar { --canvas: #10162a; --ink: #f3f4f6; --ink-2: #a0a8bc; --line: rgba(255, 255, 255, 0.12); --btn: #f3f4f6; --on-btn: #10162a; --glass: rgba(11, 16, 32, 0.6); --shade: 0, 0, 0; color: #f3f4f6; }

/* ---------- film ---------- */
.film { width: min(1120px, 94vw); padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.film::backdrop { background: rgba(6, 9, 20, 0.74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; }
.film-close { position: absolute; top: -48px; right: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 18px; }

/* ---------- reveals (JS adds .rv, GSAP clears it) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
}
@media (max-width: 899px) {
  :root { --bar: 48px; }
  .notch { display: none; }
  .menubar { grid-template-columns: 1fr auto; }
  .hide-sm { display: none; }
  .hero { padding-bottom: 150px; align-items: end; }
  .hero-art { background-position: 30% 100%; }
  .hero-art::after { background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--canvas) 70%, transparent) 75%); }

  .day { height: auto; background: linear-gradient(180deg, #f6e7dc 0%, #efdce0 45%, #8a6f97 68%, #2a2748 82%, #10162a 100%); }
  .sky, .dayline { display: none; }
  .track { flex-direction: column; width: auto; height: auto; }
  .panel, .panel-intro { flex: none; width: auto; height: auto; grid-template-columns: 1fr; gap: 28px; padding: 64px var(--gutter); }
  .panel-intro { padding-top: 96px; padding-bottom: 16px; }
  .screen { width: 100%; }
  .panel-copy { max-width: none; }

  .keys, .trust, .faq { grid-template-columns: 1fr; }
  .kb-stage { order: -1; overflow: hidden; padding: 20px 0; }
  .kb { --k: clamp(34px, 10.4vw, 58px); transform: rotateX(18deg) rotateZ(-3deg); }
  .trust-lead, .faq h2 { position: static; }
  .langs-art { width: 90vw; top: 0; opacity: 0.55; }
  .langs-facts { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-best { order: -1; }
  .last-pen { top: 8%; width: 70vw; right: -6vw; opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .mq-track { animation: none !important; flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq-track [aria-hidden="true"] { display: none; }
  .js .rv { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pill, .replay, .btn-ghost, .notch.open .notch-card, .menubar::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--canvas); }
}

/* keycap contexts */
.nc-row kbd.combo, .replay kbd.combo, .nc-foot kbd.combo, .kb-hint kbd.combo { font-size: 13px; }
.mode kbd.combo { font-size: 15px; }
.modes kbd.combo { font-size: 21px; }
.modes .cap:nth-last-child(2) b { color: var(--hue); font-weight: 700; } /* the letter; the last child is the screen-reader text */
.panel { --key-top: #ffffff; --key-bot: #f4f5f7; --key-edge: #c4c8cf; --key-mod: #1f2937; --key-drop: rgba(31, 41, 55, 0.35); }
.panel[data-tone="dark"] { --key-top: #2b3350; --key-bot: #252c46; --key-edge: #0d1222; --key-mod: #f3f4f6; --key-drop: rgba(0, 0, 0, 0.6); }
