/* The palette is the app's own (web/src/index.css in alan-astro): neutral
   graphite with no blue cast, white as the accent, and saturated colour kept
   for status. Night mode is the app's red palette, token for token. */
:root {
  color-scheme: dark;
  --base-950: 9 9 10;
  --base-900: 15 15 16;
  --base-850: 22 22 23;
  --base-800: 27 27 29;
  --base-750: 36 36 38;
  --base-700: 46 46 49;
  --base-600: 61 61 65;
  --fg-50: 250 250 251;
  --fg-100: 244 244 245;
  --fg-200: 228 228 231;
  --fg-300: 212 212 216;
  --fg-400: 161 161 170;
  --fg-500: 113 113 122;
  --accent: 244 244 245;
  --accent-ink: 9 9 10;
  --good: 52 211 153;
  --warn: 251 146 60;
  --ra: 125 211 252;
  --dec: 244 114 182;
  --star: 255 255 255;
  --glow: 150 170 255;
  --img-filter: none;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme='night'] {
  --base-950: 0 0 0;
  --base-900: 6 2 2;
  --base-850: 13 4 4;
  --base-800: 18 6 5;
  --base-750: 33 10 9;
  --base-700: 48 15 13;
  --base-600: 74 23 19;
  --fg-50: 255 148 120;
  --fg-100: 255 138 110;
  --fg-200: 244 118 92;
  --fg-300: 224 98 76;
  --fg-400: 192 78 60;
  --fg-500: 158 62 48;
  --accent: 255 74 48;
  --accent-ink: 0 0 0;
  --good: 226 96 74;
  --warn: 255 128 84;
  --ra: 255 138 112;
  --dec: 173 64 50;
  --star: 255 90 60;
  --glow: 255 60 30;
  --img-filter: url(#redden);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: rgb(var(--base-950));
  color: rgb(var(--fg-300));
  font: 400 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s, color .5s;
}
img { max-width: 100%; height: auto; display: block; filter: var(--img-filter); transition: filter .5s; }
/* The comparison slider shows both palettes side by side, so its images must
   stay as captured whatever theme the page is in. */
.compare img { filter: none; }
a { color: inherit; text-decoration: none; }
code { font: 500 .9em var(--mono); color: rgb(var(--fg-100)); background: rgb(var(--base-800)); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3 { color: rgb(var(--fg-50)); margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(24px, calc((100% - 1200px) / 2 + 24px));
  padding-top: max(18px, env(safe-area-inset-top));
  transition: background-color .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgb(var(--base-950) / .78);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgb(var(--base-750) / .8);
}
.brand { display: flex; align-items: center; gap: 10px; color: rgb(var(--fg-50)); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; }
.links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.links > a:not(.btn) { color: rgb(var(--fg-300)); transition: color .2s; }
.links > a:not(.btn):hover { color: rgb(var(--fg-50)); }
.links .btn-sm svg { width: 17px; height: 17px; }
/* A link inside running text: the email address. */
a.inline { color: rgb(var(--fg-100)); text-decoration: underline; text-decoration-color: rgb(var(--fg-500)); text-underline-offset: 3px; overflow-wrap: anywhere; }
a.inline:hover { color: rgb(var(--fg-50)); text-decoration-color: rgb(var(--fg-200)); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  background: rgb(var(--accent)); color: rgb(var(--accent-ink));
  font: 600 15.5px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(var(--accent) / .35), 0 10px 40px -10px rgb(var(--accent) / .6);
  transition: transform .2s var(--ease), box-shadow .25s, background-color .5s;
  overflow: hidden;
}
/* A sheen that crosses the primary button on hover. */
.btn:not(.btn-ghost)::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent);
  transition: transform .7s var(--ease);
}
.btn:not(.btn-ghost):hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(var(--accent) / .5), 0 16px 48px -10px rgb(var(--accent) / .75); }
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn .stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-ghost { background: rgb(var(--fg-50) / .06); color: rgb(var(--fg-50)); border-color: rgb(var(--fg-50) / .16); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgb(var(--fg-50) / .32); background: rgb(var(--fg-50) / .1); box-shadow: none; }
.btn-block { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: 150px 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%;
  opacity: .5; transform: scale(1.12);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.12) translate(0, 0); } to { transform: scale(1.22) translate(-2.5%, 1.5%); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgb(var(--base-950) / .85), transparent 70%),
    linear-gradient(180deg, rgb(var(--base-950) / .55) 0%, rgb(var(--base-950) / .2) 40%, rgb(var(--base-950) / .75) 75%, rgb(var(--base-950)) 100%);
}
#sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; max-width: 1000px; }
.hero-copy .lede { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--fg-300));
}
.pill { padding: 8px 14px 8px 12px; border-radius: 999px; background: rgb(var(--fg-50) / .06); border: 1px solid rgb(var(--fg-50) / .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--good)); box-shadow: 0 0 12px rgb(var(--good)); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(44px, 8.2vw, 104px); line-height: .96; font-weight: 750; letter-spacing: -0.045em; }
.grad {
  background: linear-gradient(100deg, rgb(var(--fg-50)) 20%, rgb(var(--fg-400)) 50%, rgb(var(--fg-50)) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.lede { max-width: 600px; margin: 28px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: rgb(var(--fg-300)); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 34px; font-size: 13px; color: rgb(var(--fg-400)); }
.platforms span { display: inline-flex; align-items: center; gap: 7px; }
.platforms svg { width: 15px; height: 15px; fill: currentColor; }
.credit { margin: 26px 0 0; max-width: 560px; font: 500 12px/1.5 var(--mono); color: rgb(var(--fg-500)); letter-spacing: .01em; }

/* The device cluster: a laptop, a tablet and a landscape phone, the way the
   app is actually used — one server at the mount, any screen in hand. */
.devices { position: relative; margin: 80px auto 0; max-width: 1120px; height: clamp(300px, 48vw, 600px); perspective: 2000px; }
.laptop { position: absolute; left: 50%; top: 0; width: 76%; transform: translateX(-50%) rotateX(8deg); transform-origin: 50% 100%; }
.laptop .screen { border-radius: 14px 14px 0 0; padding: 1.4% 1.4% 0; background: linear-gradient(#2a2a2d, #151517); border: 1px solid #3a3a3e; border-bottom: 0; box-shadow: 0 -20px 120px -20px rgb(var(--glow) / .35), 0 40px 90px -30px #000; }
.laptop .screen img { border-radius: 6px 6px 0 0; }
.laptop .base { height: 16px; margin: 0 -7%; border-radius: 0 0 18px 18px; background: linear-gradient(#3b3b3f, #1c1c1f 70%); box-shadow: 0 30px 60px -20px #000; position: relative; }
.laptop .base::before { content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #151517; }
.tablet { position: absolute; left: 0; bottom: 4%; width: 34%; border-radius: 22px; padding: 2.2%; background: #111113; border: 1px solid #3a3a3e; box-shadow: 0 40px 80px -20px #000, inset 0 0 0 2px #1d1d20; transform: rotate(-4deg); }
.tablet img, .phone img { border-radius: 10px; }
.phone { position: absolute; right: 0; bottom: 10%; width: 32%; border-radius: 24px; padding: 1.6% 3%; background: #0e0e10; border: 1px solid #3a3a3e; box-shadow: 0 40px 80px -20px #000, inset 0 0 0 2px #1d1d20; transform: rotate(3deg); }
.devices .float-a { animation: floatA 9s ease-in-out infinite; }
.devices .float-b { animation: floatB 11s ease-in-out infinite; }
@keyframes floatA { 50% { translate: 0 -12px; } }
@keyframes floatB { 50% { translate: 0 10px; } }

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid rgb(var(--base-750)); background: rgb(var(--base-900) / .6); margin-top: 40px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font: 500 15px var(--mono); color: rgb(var(--fg-400)); white-space: nowrap; letter-spacing: .02em; }
.marquee span::after { content: '✦'; color: rgb(var(--fg-600, var(--fg-500))); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 96px; }
.stat { padding: 28px 26px; border-radius: 20px; background: linear-gradient(180deg, rgb(var(--base-850)), rgb(var(--base-900))); border: 1px solid rgb(var(--base-750)); }
.stat b { display: block; font: 700 clamp(30px, 3.6vw, 44px)/1 Inter, sans-serif; color: rgb(var(--fg-50)); letter-spacing: -0.04em; }
.stat b small { font-size: .5em; font-weight: 600; color: rgb(var(--fg-400)); margin-left: 3px; letter-spacing: 0; }
.stat > span { display: block; margin-top: 12px; font-size: 14px; color: rgb(var(--fg-400)); line-height: 1.45; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-top: 160px; }
.kicker { font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--fg-400)); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: rgb(var(--fg-500)); }
.h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; font-weight: 720; letter-spacing: -0.04em; max-width: 900px; }
.h2 em { font-style: normal; color: rgb(var(--fg-500)); }
.sub { max-width: 640px; color: rgb(var(--fg-400)); font-size: 18px; margin: 22px 0 0; }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .kicker::after { content: ''; width: 28px; height: 1px; background: rgb(var(--fg-500)); }
.center .h2, .center .sub { margin-left: auto; margin-right: auto; }

/* ── Guider spotlight ─────────────────────────────────────────────────── */
.spot { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 64px; }
.spot.flip .spot-copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.checks b { display: block; color: rgb(var(--fg-50)); font-weight: 600; font-size: 16px; }
.checks p { margin: 3px 0 0; font-size: 15px; color: rgb(var(--fg-400)); }
.tick { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgb(var(--good) / .12); border: 1px solid rgb(var(--good) / .35); color: rgb(var(--good)); }
.tick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgb(var(--base-700)); background: rgb(var(--base-900)); box-shadow: 0 1px 0 0 rgb(var(--fg-50) / .06) inset, 0 50px 100px -40px #000, 0 0 0 1px rgb(0 0 0 / .4); }
.glow-wrap { position: relative; }
.glow-wrap::before { content: ''; position: absolute; inset: 10% 5%; z-index: -1; background: radial-gradient(closest-side, rgb(var(--glow) / .28), transparent); filter: blur(40px); }
.callout {
  position: absolute; padding: 12px 16px; border-radius: 14px;
  background: rgb(var(--base-900) / .88); border: 1px solid rgb(var(--base-600)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -12px #000; font-size: 13px; color: rgb(var(--fg-400)); line-height: 1.35;
}
.callout b { display: block; font: 700 22px/1.1 var(--mono); color: rgb(var(--fg-50)); letter-spacing: -0.02em; margin-bottom: 3px; }
.callout.c1 { left: -28px; bottom: 16%; }
.callout.c2 { right: -20px; top: 10%; }

/* Focal-length ladder: how small the target a guider has to hit gets. */
.ladder { margin-top: 32px; padding: 22px; border-radius: 16px; background: rgb(var(--base-900)); border: 1px solid rgb(var(--base-750)); }
.ladder-row { display: grid; grid-template-columns: 78px 1fr 64px; align-items: center; gap: 14px; font: 500 13px var(--mono); color: rgb(var(--fg-400)); }
.ladder-row + .ladder-row { margin-top: 12px; }
.ladder-bar { height: 8px; border-radius: 99px; background: rgb(var(--base-750)); overflow: hidden; }
.ladder-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgb(var(--fg-500)), rgb(var(--fg-50))); width: 0; transition: width 1.4s var(--ease); }
.in .ladder-bar i { width: var(--w); }
.ladder-row span:last-child { text-align: right; color: rgb(var(--fg-100)); }
.ladder p { margin: 16px 0 0; font-size: 13px; color: rgb(var(--fg-500)); }

/* ── Anywhere ─────────────────────────────────────────────────────────── */
.anywhere { margin-top: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.hub { position: relative; width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; text-align: center; }
.hub::before, .hub::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(var(--fg-50) / .16); animation: ring 3.6s ease-out infinite; }
.hub::after { animation-delay: 1.8s; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hub-core { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgb(var(--base-700)), rgb(var(--base-900))); border: 1px solid rgb(var(--base-600)); box-shadow: 0 0 80px -10px rgb(var(--glow) / .35); }
.hub-core .mark { width: 46px; height: 46px; color: rgb(var(--fg-50)); }
.hub-core small { display: block; margin-top: 8px; font: 500 11px var(--mono); color: rgb(var(--fg-400)); letter-spacing: .1em; text-transform: uppercase; }
.tiles { display: grid; gap: 12px; }
.tile { text-align: left; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgb(var(--base-900)); border: 1px solid rgb(var(--base-750)); transition: border-color .25s, transform .25s var(--ease); }
.tile:hover { border-color: rgb(var(--base-600)); transform: translateX(var(--nudge, 4px)); }
.tiles.left .tile { --nudge: -4px; flex-direction: row-reverse; text-align: right; }
.tile svg { width: 26px; height: 26px; flex: none; fill: rgb(var(--fg-100)); }
.tile svg.line { fill: none; stroke: rgb(var(--fg-100)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile b { display: block; color: rgb(var(--fg-50)); font-weight: 600; font-size: 15px; }
.tile span { font-size: 13px; color: rgb(var(--fg-500)); }

/* ── Tour (tabbed screens) ────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 48px auto 0; padding: 6px; border-radius: 16px; background: rgb(var(--base-900)); border: 1px solid rgb(var(--base-750)); width: fit-content; }
.tab { border: 0; background: transparent; color: rgb(var(--fg-400)); font: 600 14.5px Inter, sans-serif; padding: 11px 20px; border-radius: 11px; cursor: pointer; transition: all .25s; }
.tab:hover { color: rgb(var(--fg-50)); }
.tab[aria-selected='true'] { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); }
.stage { position: relative; margin-top: 28px; }
.stage .frame { aspect-ratio: 16 / 10; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.02); transition: opacity .6s, transform .9s var(--ease); }
.stage img.on { opacity: 1; transform: none; }
.caption { margin: 22px auto 0; max-width: 720px; text-align: center; color: rgb(var(--fg-400)); font-size: 16.5px; min-height: 3.2em; transition: opacity .3s; }
.caption b { color: rgb(var(--fg-50)); font-weight: 600; }
.progress { height: 2px; margin: 18px auto 0; max-width: 240px; border-radius: 2px; background: rgb(var(--base-750)); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: rgb(var(--fg-200)); }
.progress i.run { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* ── Night timeline ───────────────────────────────────────────────────── */
.night { margin-top: 64px; position: relative; padding: 36px 32px 32px; border-radius: 24px; border: 1px solid rgb(var(--base-750)); background: linear-gradient(180deg, rgb(var(--base-900)), rgb(var(--base-950))); overflow: hidden; }
.night svg.curve { width: 100%; height: 130px; display: block; overflow: visible; }
.night .path { fill: none; stroke: rgb(var(--fg-300)); stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.6s var(--ease); }
.night .area { fill: url(#dark); opacity: 0; transition: opacity 1.6s .8s; }
.night.in .path { stroke-dashoffset: 0; }
.night.in .area { opacity: 1; }
.night .horizon { stroke: rgb(var(--base-600)); stroke-dasharray: 4 6; }
.night .lbl { font: 500 11px var(--mono); fill: rgb(var(--fg-500)); }
.steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 22px; }
.step { position: relative; padding: 16px 14px; border-radius: 14px; background: rgb(var(--base-850) / .7); border: 1px solid rgb(var(--base-750)); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .25s; transition-delay: calc(var(--i) * 110ms + .6s); }
.night.in .step { opacity: 1; transform: none; }
.step:hover { border-color: rgb(var(--base-600)); }
.step time { display: block; font: 500 11.5px var(--mono); color: rgb(var(--fg-500)); }
.step b { display: block; margin-top: 6px; font-size: 14px; color: rgb(var(--fg-50)); font-weight: 600; line-height: 1.25; }
.step span { display: block; margin-top: 4px; font-size: 12px; color: rgb(var(--fg-500)); line-height: 1.4; }

/* ── Bento grid ───────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 64px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px; border-radius: 22px;
  background: rgb(var(--base-900)); border: 1px solid rgb(var(--base-750));
  box-shadow: 0 1px 0 0 rgb(var(--fg-50) / .05) inset;
  transition: border-color .25s, transform .3s var(--ease);
}
/* A soft light that follows the pointer across a card. */
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgb(var(--fg-50) / .07), transparent 45%); }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgb(var(--base-600)); }
.card h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; color: rgb(var(--fg-400)); }
.card .num { font: 700 40px/1 Inter, sans-serif; letter-spacing: -0.04em; color: rgb(var(--fg-50)); margin-bottom: 12px; }
.card .num small { font-size: 16px; color: rgb(var(--fg-500)); font-weight: 600; letter-spacing: 0; }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: rgb(var(--base-800)); border: 1px solid rgb(var(--base-700)); color: rgb(var(--fg-100)); }
.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.card.media { padding: 0; display: grid; grid-template-rows: auto 1fr; }
.card.media .body { padding: 26px 28px 28px; }
.card.media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: top left; border-bottom: 1px solid rgb(var(--base-750)); }
/* A screenshot whose bottom matters (the autofocus result line) is shown whole. */
.card.media img.full { aspect-ratio: auto; }

/* ── Compare (day / night) ────────────────────────────────────────────── */
.compare { --pos: 50%; position: relative; margin-top: 56px; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid rgb(var(--base-700)); cursor: ew-resize; user-select: none; touch-action: pan-y; box-shadow: 0 50px 100px -40px #000; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .night-img { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgb(255 80 50 / .8); }
.compare .knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #0f0f10; border: 2px solid #fff; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px #000; }
.compare .knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare .tag { position: absolute; top: 18px; padding: 7px 12px; border-radius: 99px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; background: rgb(0 0 0 / .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.compare .tag.l { left: 18px; color: #f4f4f5; }
.compare .tag.r { right: 18px; color: #ff6a4d; }
.night-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.night-facts div { padding: 20px 22px; border-radius: 16px; background: rgb(var(--base-900)); border: 1px solid rgb(var(--base-750)); font-size: 14.5px; color: rgb(var(--fg-400)); }
.night-facts b { display: block; color: rgb(var(--fg-50)); margin-bottom: 4px; }

/* ── Hardware ─────────────────────────────────────────────────────────── */
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips.center-chips { justify-content: center; }
.chips li { padding: 11px 18px; border-radius: 999px; background: rgb(var(--base-850)); border: 1px solid rgb(var(--base-700)); color: rgb(var(--fg-200)); font-size: 14.5px; transition: all .2s; }
.chips li:hover { border-color: rgb(var(--fg-500)); color: rgb(var(--fg-50)); transform: translateY(-2px); }
.chips li.strong { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); border-color: transparent; font-weight: 600; }

/* ── Download ─────────────────────────────────────────────────────────── */
.download { position: relative; margin-top: 160px; padding: 96px 0 104px; overflow: hidden; isolation: isolate; border-block: 1px solid rgb(var(--base-750)); }
.download::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('assets/hero.jpg') center 45% / cover; opacity: .22; filter: var(--img-filter) blur(2px); }
.download::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 0%, transparent, rgb(var(--base-950)) 80%), linear-gradient(rgb(var(--base-950) / .3), rgb(var(--base-950))); }
.dl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 56px; align-items: stretch; }
.dl-main { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: rgb(var(--base-900) / .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dl-main > p { margin: 0; }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-head h3 { font-size: 24px; margin: 0; }
.os { width: 34px; height: 34px; fill: rgb(var(--fg-100)); flex: none; }
.meta { margin: 3px 0 0 !important; font: 500 12.5px var(--mono) !important; color: rgb(var(--fg-500)) !important; }
.stores { display: flex; flex-direction: column; gap: 16px; }
.store { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: rgb(var(--base-900) / .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.store-body { flex: 1; min-width: 0; }
.store h3 { margin: 0; font-size: 17px; }
.badge {
  display: flex; flex-direction: column; justify-content: center; flex: none;
  min-width: 156px; height: 54px; padding: 0 18px; border-radius: 12px;
  background: #000; border: 1px solid rgb(var(--fg-500)); color: rgb(var(--fg-50));
  transition: border-color .2s, transform .2s var(--ease);
}
.badge small { font-size: 10.5px; color: rgb(var(--fg-400)); line-height: 1.2; }
.badge b { font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a.badge[href]:hover { border-color: rgb(var(--fg-200)); transform: translateY(-2px); }
.badge.soon { opacity: .55; cursor: default; border-style: dashed; }
/* The Windows card's button until there is a build to download. */
.btn.soon { background: transparent; color: rgb(var(--fg-300)); border: 1px dashed rgb(var(--fg-500)); box-shadow: none; cursor: default; }
.btn.soon::after { display: none; }
.btn.soon:hover { transform: none; box-shadow: none; }
.fine { margin: 4px 4px 0; font-size: 13.5px; color: rgb(var(--fg-500)); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { padding-top: 56px; padding-bottom: max(56px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; font-size: 14px; color: rgb(var(--fg-500)); }
.footer p { margin: 0; }
.brand.small .mark { width: 22px; height: 22px; }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .spot, .dl { grid-template-columns: 1fr; gap: 40px; }
  .spot.flip .spot-copy { order: 0; }
  .callout.c1 { left: 12px; } .callout.c2 { right: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .anywhere { grid-template-columns: 1fr; justify-items: center; }
  .anywhere .tiles { width: 100%; max-width: 480px; }
  .tiles.left .tile { flex-direction: row; text-align: left; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
  .night-facts { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .links > a:not(.btn) { display: none; }
  .hero { padding-top: 116px; }
  .cta .btn { flex: 1 1 100%; }
  .devices { margin-top: 56px; }
  .laptop { width: 92%; }
  .tablet { width: 44%; bottom: -2%; }
  .phone { width: 48%; bottom: 0; }
  .section { padding-top: 112px; }
  .stats { gap: 10px; padding-top: 72px; }
  .stat { padding: 20px 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .night { padding: 24px 16px 18px; }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .callout { display: none; }
  .tab { padding: 10px 14px; font-size: 13.5px; }
  .store { flex-wrap: wrap; }
  .badge { width: 100%; }
  .dl-main { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .step { opacity: 1 !important; transform: none !important; }
  .night .path { stroke-dashoffset: 0; } .night .area { opacity: 1; }
  .ladder-bar i { width: var(--w); }
}

/* Fills the plate-solving and Windows cards, which otherwise end in air. */
.mini { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgb(var(--base-850)); border: 1px solid rgb(var(--base-750)); font: 500 12.5px var(--mono); color: rgb(var(--fg-300)); }
.mini li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--good)); box-shadow: 0 0 8px rgb(var(--good)); flex: none; }
.dl-main .mini { margin-top: auto; }
.quote { margin: 120px auto 0; max-width: 980px; text-align: center; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.2; font-weight: 650; letter-spacing: -0.03em; color: rgb(var(--fg-50)); text-wrap: balance; }
.quote em { font-style: normal; color: rgb(var(--fg-500)); }
