/* ============ Tokens ============ */
:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --ink: #16181d;
  --ink-2: #3b4150;
  --muted: #666d7c;
  --line: #e8e4db;
  --violet: #5b4cff;
  --violet-deep: #4636e6;
  --violet-soft: #ebe8ff;
  --peach: #ff7a59;
  --peach-soft: #ffe7de;
  --mint: #22c08f;
  --mint-soft: #dcf7ec;
  --sky: #3aa9ff;
  --sky-soft: #e0f0ff;
  --lemon: #f5b731;
  --lemon-soft: #fff1cc;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(22,24,29,.04), 0 12px 40px rgba(22,24,29,.07);
  --shadow-lg: 0 2px 4px rgba(22,24,29,.05), 0 30px 80px rgba(60,50,120,.14);
  --font: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
kbd { font-family: inherit; font-weight: 700; font-size: .85em; padding: 1px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: inset 0 -1.5px 0 var(--line); }
svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
strong, b { font-weight: 700; }

/* ============ Background blobs ============ */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
.b1 { width: 620px; height: 620px; left: -160px; top: -200px; background: #e3ddff; }
.b2 { width: 520px; height: 520px; right: -120px; top: 120px; background: #ffe2d6; animation-delay: -8s; }
.b3 { width: 460px; height: 460px; left: 40%; top: 55vh; background: #dff6ee; animation-delay: -15s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.08); } }

/* ============ Layout helpers ============ */
.site-header, main > .section, .hero, .apps, .closing, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--violet); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.nowrap { white-space: nowrap; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.28rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.grad { background: linear-gradient(95deg, var(--violet) 0%, #8b6cff 45%, var(--peach) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; }
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(22,24,29,.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(22,24,29,.22); background: #000; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:focus-visible, nav a:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 14px; z-index: 50;
  height: 64px; margin-top: 14px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(22,24,29,.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--violet), #8b6cff); color: #fff; box-shadow: 0 4px 12px rgba(91,76,255,.35); }
.brand-mark svg { width: 1.05rem; height: 1.05rem; }
nav { display: flex; gap: 6px; }
nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; font-weight: 600; transition: background .2s, color .2s; }
nav a:hover { background: var(--surface-2); color: var(--ink); }

/* ============ Hero ============ */
.hero { padding: 90px 0 70px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(40px, 6vw, 90px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 700; box-shadow: var(--shadow); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--mint-soft); } 50% { box-shadow: 0 0 0 7px rgba(34,192,143,.12); } }
.hero h1 { margin: 22px 0 24px; }
.lede { max-width: 560px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.apple { width: 1.1rem !important; height: 1.1rem !important; margin-top: -3px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.hero-note strong { color: var(--ink); }

/* Hero demo */
.hero-demo { position: relative; }
.mac-window { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg); transition: transform .6s var(--ease); }
.hero-demo:hover .mac-window { transform: rotate(0deg); }
.mac-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafaf8; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e5e3dc; }
.mac-bar i:nth-child(1) { background: #ff5f57; } .mac-bar i:nth-child(2) { background: #febc2e; } .mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar span { margin-left: auto; margin-right: auto; }
.chat { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 330px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 18px; font-size: .96rem; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 6px; }
.compose { margin-top: auto; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.compose.active { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.compose-text { min-height: 72px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.compose-text.raw { color: var(--muted); }
.compose-text .fill { color: #b9b4c9; text-decoration: line-through; text-decoration-color: var(--peach); }
.compose-text .fix { background: var(--mint-soft); border-radius: 5px; padding: 0 3px; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--violet); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }
.compose-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; animation: popin .35s var(--ease) both; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.t-peach { background: var(--peach-soft); color: #c2492a; }
.tag.t-mint { background: var(--mint-soft); color: #158a65; }
.tag.t-violet { background: var(--violet-soft); color: var(--violet-deep); }
.tag.t-sky { background: var(--sky-soft); color: #1b74c4; }
@keyframes popin { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

.hud { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(22,24,29,.92); color: #fff; box-shadow: 0 18px 40px rgba(22,24,29,.25); backdrop-filter: blur(10px); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.hud kbd { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); box-shadow: inset 0 -1.5px 0 rgba(255,255,255,.18); color: #fff; padding: 3px 9px; }
.hud-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.hud-wave i { width: 3px; height: 4px; border-radius: 3px; background: #fff; opacity: .5; transition: height .2s; }
.hud.listening .hud-wave i { animation: wave .9s ease-in-out infinite; opacity: 1; background: #b9b0ff; }
.hud.listening .hud-wave i:nth-child(2n) { animation-delay: -.3s; } .hud.listening .hud-wave i:nth-child(3n) { animation-delay: -.6s; } .hud.listening .hud-wave i:nth-child(5n) { animation-delay: -.15s; }
@keyframes wave { 0%,100% { height: 4px; } 50% { height: 20px; } }
.hud.thinking .hud-wave i { animation: think 1.2s ease-in-out infinite; background: var(--peach); opacity: 1; }
.hud.thinking .hud-wave i:nth-child(n) { animation-delay: calc(var(--i, 0) * .08s); }
@keyframes think { 0%,100% { height: 4px; } 50% { height: 10px; } }
.hud-state { color: rgba(255,255,255,.85); }

/* ============ Apps marquee ============ */
.apps { padding: 70px 0 20px; text-align: center; }
.apps-label { margin-bottom: 18px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .95rem; box-shadow: 0 2px 6px rgba(22,24,29,.04); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Race diagram ============ */
.race { display: grid; grid-template-columns: .9fr 1.4fr .95fr; gap: 20px; align-items: stretch; padding: 24px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.race-input, .race-output { padding: 22px; border-radius: 20px; background: var(--surface-2); display: flex; flex-direction: column; }
.race-mic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; margin-bottom: 18px; }
.race-label { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.race-said { font-size: 1.12rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.race-wave { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-end; gap: 5px; height: 60px; }
.race-wave i { flex: 1; height: 8px; border-radius: 4px; background: var(--violet); opacity: .35; }
.race.live .race-wave i { animation: wave2 1s ease-in-out infinite; opacity: .9; }
.race.live .race-wave i:nth-child(2n) { animation-delay: -.25s; } .race.live .race-wave i:nth-child(3n) { animation-delay: -.5s; } .race.live .race-wave i:nth-child(4n+1) { animation-delay: -.7s; }
@keyframes wave2 { 0%,100% { height: 8px; } 50% { height: 36px; } }

.race-lanes { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.lane { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, opacity .4s; }
.lane-head { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 800; }
.lane-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lane-c, var(--violet)); }
.lane[data-lane="0"] { --lane-c: var(--sky); } .lane[data-lane="1"] { --lane-c: var(--violet); } .lane[data-lane="2"] { --lane-c: var(--mint); }
.lane-time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; font-size: .82rem; }
.lane-bar { height: 6px; margin: 12px 0; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.lane-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lane-c); transition: width .1s linear; }
.lane-out { min-height: 1.5em; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.lane-out .diff { background: var(--peach-soft); color: #b2401f; border-radius: 4px; padding: 0 3px; }
.lane.done { border-color: var(--lane-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lane-c) 15%, transparent); }
.lane.slow { opacity: .5; }
.lane.slow .lane-time { color: var(--peach); }
.lane.slow .lane-time::after { content: " · skipped"; }

.race-output { background: linear-gradient(160deg, #f5f3ff, #fff2ec); border: 1px solid #ece7ff; }
.race-result { min-height: 3.2em; font-size: 1.12rem; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.race-result .hl { border-radius: 5px; padding: 0 4px; }
.race-result .hl-dict { background: var(--mint-soft); color: #127a5a; }
.race-result .hl-screen { background: var(--sky-soft); color: #1567b0; }
.race-notes { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.race-notes li { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: var(--ink-2); font-weight: 600; animation: popin .4s var(--ease) both; }
.race-notes li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--c, var(--violet)); }

.lineup { margin-top: 28px; padding: 28px 30px 30px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.lineup-head { display: grid; grid-template-columns: 1fr minmax(260px, .7fr); align-items: end; gap: 24px; margin-bottom: 20px; }
.lineup-head .eyebrow { margin-bottom: 8px; }
.lineup-head h3 { font-size: 1.35rem; }
.lineup-updated { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.lineup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lineup-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.lineup-card:hover { border-color: var(--c); transform: translateY(-2px); }
.lineup-dot { grid-row: 1 / span 3; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.lineup-provider { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lineup-model { font-style: normal; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.lineup-role { grid-column: 2; color: var(--muted); font-size: .82rem; font-weight: 600; }

.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 30px 30px 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-deep); font-weight: 800; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* ============ Bento ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22,24,29,.03); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.card-copy { display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; }
.c-violet { background: var(--violet-soft); color: var(--violet-deep); }
.c-peach { background: var(--peach-soft); color: #d0522f; }
.c-sky { background: var(--sky-soft); color: #1b74c4; }
.c-mint { background: var(--mint-soft); color: #158a65; }
.c-lemon { background: var(--lemon-soft); color: #b3800e; }

.card-full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 36px; }
.upgrades { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--surface-2); }
.up-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 700; animation: popin .5s var(--ease) both; }
.up-row:nth-child(2) { animation-delay: .12s; } .up-row:nth-child(3) { animation-delay: .24s; } .up-row:nth-child(4) { animation-delay: .36s; }
.up-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.up-name { min-width: 96px; }
.up-ver { padding: 2px 8px; border-radius: 6px; background: var(--violet-soft); color: var(--violet-deep); font-size: .78rem; }
.up-ver.old { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.up-arrow { color: var(--muted); }
.up-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--mint-soft); color: #158a65; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.up-tag.muted { background: var(--surface-2); color: var(--muted); }
.up-row.new { border-style: dashed; }
.up-row.new .up-tag { background: var(--peach-soft); color: #c2492a; }

/* vote illustration */
.vote { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--surface-2); font-size: .92rem; }
.vote-row, .vote-final { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.vote-src { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: .74rem; font-weight: 800; color: var(--muted); }
.vote-src.z { background: var(--ink); color: #fff; }
.vote-text { color: var(--ink-2); }
.vote-text .miss { color: #b2401f; background: var(--peach-soft); border-radius: 4px; padding: 0 3px; text-decoration: line-through; text-decoration-color: rgba(178,64,31,.5); }
.vote-final { margin-top: 6px; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.vote-text .win { background: var(--mint-soft); color: #127a5a; border-radius: 4px; padding: 0 3px; }
.vote-row { animation: popin .5s var(--ease) both; }
.vote-row:nth-child(2) { animation-delay: .15s; } .vote-row:nth-child(3) { animation-delay: .3s; } .vote-final { animation: popin .5s var(--ease) .55s both; }

/* latency */
.latency { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface-2); }
.lat-group { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.lat-label { font-size: .8rem; font-weight: 800; color: var(--muted); }
.lat-group.z .lat-label { color: var(--violet-deep); }
.lat-bars { display: flex; flex-direction: column; gap: 5px; }
.lat-bars span { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; }
.lat-bars span::before { content: attr(data-p); font-size: .66rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.lat-bars i { display: block; height: 9px; width: var(--w); border-radius: 5px; background: #d6d2ca; transform-origin: left; animation: grow 1.2s var(--ease) both; }
.lat-bars span:nth-child(2) i { animation-delay: .15s; } .lat-bars span:nth-child(3) i { animation-delay: .3s; }
.lat-group.z .lat-bars i { background: linear-gradient(90deg, var(--violet), #8b6cff); }
@keyframes grow { from { transform: scaleX(0); } }
.lat-note { margin-top: -4px; font-size: .72rem !important; color: var(--muted) !important; }

/* screen context */
.screen-ctx { margin-top: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.sc-window { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .74rem; color: var(--muted); line-height: 1.4; }
.sc-window b { color: var(--ink); background: var(--sky-soft); border-radius: 3px; padding: 0 3px; }
.sc-arrow { color: var(--muted); font-weight: 800; }
.sc-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-hints span { padding: 4px 9px; border-radius: 999px; background: var(--sky-soft); color: #1567b0; font-size: .72rem; font-weight: 800; animation: popin .5s var(--ease) both; }
.sc-hints span:nth-child(2) { animation-delay: .1s; } .sc-hints span:nth-child(3) { animation-delay: .2s; } .sc-hints span:nth-child(4) { animation-delay: .3s; } .sc-hints span:nth-child(5) { animation-delay: .4s; }

/* dictionary */
.dict { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.dict li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; font-weight: 700; }
.dict li em { font-style: normal; font-size: .74rem; font-weight: 700; color: var(--muted); }
.dict-add { background: transparent !important; border: 1.5px dashed var(--line); color: var(--mint); justify-content: center !important; }

/* cleanup */
.cleanup { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cu-raw, .cu-clean { padding: 12px 14px; border-radius: 12px; font-size: .9rem !important; line-height: 1.5 !important; }
.cu-raw { background: var(--surface-2); color: var(--muted) !important; }
.cu-raw s { color: #c0bcc9; text-decoration-color: var(--peach); }
.cu-clean { background: var(--lemon-soft); color: #7a5606 !important; font-weight: 700; }

/* ============ Privacy ============ */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.priv-card { padding: 34px; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.priv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.priv-card h3 { margin: 18px 0 16px; font-size: 1.4rem; }
.priv-card ul { display: grid; gap: 12px; }
.priv-card li { position: relative; padding-left: 32px; color: var(--muted); line-height: 1.6; font-size: .98rem; }
.priv-card li strong { color: var(--ink); }
.priv-card li::before { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 900; }
.priv-never li::before { content: "✕"; background: var(--mint-soft); color: #158a65; }
.priv-store li::before { content: "✓"; background: var(--violet-soft); color: var(--violet-deep); }
.priv-never { background: linear-gradient(160deg, #fff, #f3fbf7); }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.pricing-copy h2 { margin-bottom: 20px; }
.pricing-copy > p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 560px; }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-soft); color: #158a65; font-size: .78rem; font-weight: 900; }
.price-card { padding: 38px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
.price-card::before { content: ""; position: absolute; inset: -1px; border-radius: 31px; padding: 1px; background: linear-gradient(135deg, var(--violet), var(--peach)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.price-name { font-weight: 800; letter-spacing: -.01em; }
.badge { padding: 6px 11px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font-size: .74rem; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-size: 4.6rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.price span { color: var(--muted); font-weight: 600; }
.price-sub { margin: 14px 0 26px; color: var(--muted); font-size: .92rem; }
.price-fine { margin-top: 14px; text-align: center; color: var(--muted); font-size: .8rem; }

.pricing-page { padding-top: 72px; }

/* ============ FAQ ============ */
.faq .section-head { margin-bottom: 36px; }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
details { border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 0 24px; transition: box-shadow .3s; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-weight: 700; transition: transform .3s var(--ease), background .3s; }
details[open] summary::after { transform: rotate(45deg); background: var(--violet-soft); color: var(--violet-deep); }
details p { padding: 0 0 22px; color: var(--muted); line-height: 1.65; max-width: 680px; }

/* ============ Closing ============ */
.closing { margin: 20px auto 40px; }
.closing-inner { position: relative; overflow: hidden; padding: 80px 40px; text-align: center; border-radius: 34px; background: var(--ink); color: #fff; }
.closing-inner::before, .closing-inner::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(80px); opacity: .55; }
.closing-inner::before { left: -140px; top: -200px; background: var(--violet); }
.closing-inner::after { right: -160px; bottom: -260px; background: var(--peach); }
.closing-inner > * { position: relative; }
.closing h2 { margin-bottom: 14px; }
.closing p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 30px; }
.closing .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.closing .btn-primary:hover { background: #fff; }

footer { padding: 30px 0 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font-size: .88rem; }
footer p:last-child { text-align: right; }
.price-fine a, details p a { color: var(--violet-deep); font-weight: 700; }
.footer-mail { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-mail:hover, .price-fine a:hover, details p a:hover { text-decoration: underline; }

/* ============ Legal pages ============ */
.legal { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 90px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 6px 0 10px; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 10px; margin-top: 10px; }
.legal a { color: var(--violet-deep); font-weight: 700; }
.legal a:hover { text-decoration: underline; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }

/* ============ Account page ============ */
.account { width: min(1000px, calc(100% - 48px)); margin-inline: auto; padding: 56px 0 90px; }
.acct-center { display: grid; place-items: center; min-height: 60vh; }
.acct-muted { color: var(--muted); line-height: 1.6; }
.acct-fine { margin-top: 18px; text-align: center; color: var(--muted); font-size: .9rem; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--violet-deep); cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.auth-error { margin-top: 4px; padding: 10px 14px; border-radius: 12px; background: var(--peach-soft); color: #b2401f; font-size: .9rem; font-weight: 600; }

/* Step indicator */
.steps-mini { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; flex-wrap: wrap; }
.steps-mini li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.steps-mini li + li::before { content: ""; width: 16px; height: 1.5px; background: var(--line); margin-right: 8px; }
.steps-mini li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 800; }
.steps-mini li.is-current { color: var(--ink); }
.steps-mini li.is-current span { background: var(--violet); color: #fff; }
.steps-mini li.is-done { color: var(--ink-2); }
.steps-mini li.is-done span { background: var(--mint-soft); color: #158a65; }

/* Sign in / create account */
.auth-card { width: min(440px, 100%); padding: 34px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.025em; margin-bottom: 8px; }
.auth-card > .acct-muted { font-size: .95rem; margin-bottom: 22px; }
.social-row { display: grid; gap: 10px; }
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn-social:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-social:disabled { opacity: .55; cursor: default; }
.btn-social.is-apple { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-social.is-apple:hover:not(:disabled) { background: #000; }
.social-note { margin-top: 10px; color: var(--muted); font-size: .84rem; }
.or-rule { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
#auth-form .btn { margin-top: 6px; }

/* Signed-in header */
.acct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.acct-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 6px; }
.acct-head .acct-muted { font-size: .95rem; }

/* Next-step banner */
.next-step { padding: 26px 28px; margin-bottom: 16px; border-radius: 24px; background: linear-gradient(150deg, #f4f1ff, #fff1ea); border: 1px solid #ece7ff; }
.next-step-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.next-step h2 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 6px; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acct-card { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(22,24,29,.03); }
.acct-card-wide { margin-top: 16px; }
.acct-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.acct-card-head h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.acct-count { color: var(--muted); font-size: .82rem; font-weight: 700; }
.acct-big { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }

.sub-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.linkish.subtle { color: var(--muted); font-weight: 700; font-size: .9rem; }
.linkish.subtle:hover { color: var(--peach); }
.linkish:disabled { opacity: .5; cursor: default; text-decoration: none; }

.status-pill { padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.status-pill.tone-ok { background: var(--mint-soft); color: #158a65; }
.status-pill.tone-warn { background: var(--lemon-soft); color: #b3800e; }
.status-pill.tone-off { background: var(--surface-2); color: var(--muted); }

/* Dictionary */
.dict-add { display: flex; gap: 10px; margin: 16px 0 14px; }
.dict-add input { flex: 1; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; }
.dict-add input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.dict-add .btn { min-height: 46px; padding: 0 22px; }
.dict-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dict-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--surface-2); font-size: .92rem; font-weight: 700; }
.dict-remove { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(22,24,29,.07); color: var(--ink-2); font-size: 1rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.dict-remove:hover:not(:disabled) { background: var(--peach); color: #fff; }
.dict-remove:disabled { opacity: .4; cursor: default; }

@media (max-width: 720px) {
  .account { width: min(100% - 28px, 680px); padding-top: 36px; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-head { flex-direction: column; }
  .next-step-body { flex-direction: column; align-items: flex-start; }
  .acct-actions .btn { width: 100%; }
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .card.reveal:nth-child(2) { transition-delay: .08s; } .bento .card.reveal:nth-child(3) { transition-delay: .16s; } .bento .card.reveal:nth-child(4) { transition-delay: .08s; } .bento .card.reveal:nth-child(5) { transition-delay: .16s; } .bento .card.reveal:nth-child(6) { transition-delay: .24s; }
.steps .step { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s; }
.steps.in .step { opacity: 1; transform: none; }
.steps.in .step:nth-child(2) { transition-delay: .12s; } .steps.in .step:nth-child(3) { transition-delay: .24s; }

/* ============ Responsive ============ */
@media (max-width: 1040px) {
  nav { gap: 0; }
  nav a { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; gap: 70px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .mac-window { transform: none; }
  .race { grid-template-columns: 1fr; }
  .race-wave { height: 44px; padding-top: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-wide, .card-full { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lineup-head { grid-template-columns: 1fr; gap: 10px; }
  .lineup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header, main > .section, .hero, .apps, .closing, footer { width: min(100% - 28px, 680px); }
  nav { display: none; }
  .section { padding: 70px 0; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .hero-actions .btn { width: 100%; }
  .hud { font-size: .8rem; gap: 10px; padding: 8px 12px 8px 10px; }
  .chat { min-height: 300px; padding: 18px 14px 14px; }
  .price-card { padding: 28px 22px; }
  .price strong { font-size: 3.8rem; }
  .closing-inner { padding: 60px 24px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p:last-child { text-align: center; }
  .screen-ctx { grid-template-columns: 1fr; }
  .up-name { min-width: 0; }
  .up-row { flex-wrap: wrap; }
  .sc-arrow { transform: rotate(90deg); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .steps .step { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track span:nth-child(n+17) { display: none; }
}
