/* Concentrate website. One stylesheet, no build step, no web fonts: the Mac's own system font.
   Colours are tokens on :root; dark mode follows the system, and data-theme on <html> can force either.
   Motion: everything that moves stops under prefers-reduced-motion. */

:root {
  --bg: #f7f8fb;
  --bg-tint: #eef1f8;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --fg: #11141a;
  --muted: #555d6b;
  --faint: #868d99;
  --line: #e3e6ec;
  --accent: #3d63dd;
  --accent-strong: #2f51c4;
  --accent-soft: #e8edfc;
  --violet: #8b5cf6;
  --teal: #14a394;
  --on-accent: #ffffff;
  --glow-a: #d9e2fc;
  --glow-b: #ece2fb;
  --glow-c: #d7f3ee;
  --stage: linear-gradient(150deg, #e4eafc 0%, #efe7fb 55%, #e3f4f1 100%);
  --shadow: 0 1px 1px rgba(20, 25, 40, 0.04), 0 24px 48px -18px rgba(25, 35, 70, 0.3),
    0 8px 18px -10px rgba(25, 35, 70, 0.16);
  --shadow-soft: 0 1px 2px rgba(20, 25, 40, 0.04), 0 10px 30px -16px rgba(25, 35, 70, 0.18);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d11;
    --bg-tint: #11141a;
    --surface: #161920;
    --surface-2: #13161c;
    --fg: #eceef2;
    --muted: #a3aab5;
    --faint: #6f7682;
    --line: #252932;
    --accent: #7e9cff;
    --accent-strong: #9bb2ff;
    --accent-soft: rgba(126, 156, 255, 0.14);
    --violet: #a78bfa;
    --teal: #2dd4bf;
    --on-accent: #0b0d11;
    --glow-a: #17213d;
    --glow-b: #251b3a;
    --glow-c: #0f2a2a;
    --stage: linear-gradient(150deg, #151c31 0%, #1d1830 55%, #112423 100%);
    --shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 26px 50px -16px rgba(0, 0, 0, 0.75);
    --shadow-soft: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 12px 30px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0d11;
  --bg-tint: #11141a;
  --surface: #161920;
  --surface-2: #13161c;
  --fg: #eceef2;
  --muted: #a3aab5;
  --faint: #6f7682;
  --line: #252932;
  --accent: #7e9cff;
  --accent-strong: #9bb2ff;
  --accent-soft: rgba(126, 156, 255, 0.14);
  --violet: #a78bfa;
  --teal: #2dd4bf;
  --on-accent: #0b0d11;
  --glow-a: #17213d;
  --glow-b: #251b3a;
  --glow-c: #0f2a2a;
  --stage: linear-gradient(150deg, #151c31 0%, #1d1830 55%, #112423 100%);
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 26px 50px -16px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 12px 30px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
/* A picture only switches between the light and dark image; the image inside is laid out as if alone. */
picture { display: contents; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; z-index: 10; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 680; letter-spacing: -0.015em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); text-decoration: none; }
.top nav .nav-cta { color: var(--on-accent); background: var(--accent); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.top nav .nav-cta:hover { color: var(--on-accent); background: var(--accent-strong); }
@media (max-width: 760px) { .top nav .wide { display: none; } .top nav { gap: 16px; } }
@media (max-width: 400px) { .top nav .nav-cta { display: none; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 620; font-size: 16px; border: 0; cursor: default; transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.98); }
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.button.primary:hover { background: var(--accent-strong); }
.button.soon { background: var(--fg); color: var(--bg); }
.button.ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { background: var(--surface); }
.button svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding: 80px 0 56px; isolation: isolate; }
.aurora { position: absolute; inset: -140px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.9; }
.aurora span:nth-child(1) { width: 620px; height: 520px; right: -80px; top: 40px; background: var(--glow-a); animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 520px; height: 440px; left: -120px; top: -40px; background: var(--glow-b); animation: drift 26s ease-in-out -6s infinite alternate-reverse; }
.aurora span:nth-child(3) { width: 420px; height: 360px; left: 35%; top: 260px; background: var(--glow-c); opacity: 0.7; animation: drift 30s ease-in-out -12s infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 620; color: var(--accent);
  background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 74px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 760;
  margin: 22px 0 22px;
}
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 32px; max-width: 32em; }
.promises { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 560; color: var(--muted); }
.promises li { display: inline-flex; align-items: center; gap: 7px; }
.promises li::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fineprint { margin: 16px 0 0; font-size: 14px; color: var(--faint); }

/* App windows: the captures have square corners, so the frame rounds them like a Mac window. */
.window { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); outline: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.window img { width: 100%; }
.hero-shots { position: relative; display: grid; justify-items: center; padding: 8px 0 24px; }
.hero-shots .main { position: relative; width: min(100%, 420px); }
.hero-shots .panel { position: absolute; width: 46%; max-width: 230px; left: -4%; bottom: 10%; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* The live timer: frames of the real window's digits, laid exactly over the same spot of the capture. */
.tick { position: absolute; left: 21.7391%; top: 13.4146%; width: 56.5217%; height: 10.7317%; pointer-events: none; }
.tick img { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .actions, .hero-copy .promises { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) { .hero-shots .panel { width: 52%; left: -2%; } }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.kicker { display: block; font-size: 14px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 14px; font-weight: 740; }
h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.3; }
.section-head p, .muted { color: var(--muted); }
.section-head p { margin: 0; font-size: clamp(18px, 2vw, 20px); }

/* How it works: steps on the left, the app on a stage on the right. The step's progress bar drives the change. */
.walk { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.walk-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.walk-step {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; width: 100%;
  padding: 18px 20px; border-radius: var(--radius); cursor: pointer; transition: background 0.25s ease, box-shadow 0.25s ease;
}
.walk-step:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.walk-step:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.walk-step .num {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--muted); background: var(--bg-tint); box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.25s ease, color 0.25s ease;
}
.walk-step .title { font-weight: 660; font-size: 19px; letter-spacing: -0.01em; color: var(--muted); align-self: center; transition: color 0.25s ease; }
.walk-step .text { color: var(--muted); font-size: 16px; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.walk-step .text > span { overflow: hidden; }
.walk-step .bar { grid-column: 2; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; visibility: hidden; }
.walk-step .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--violet)); transform-origin: left; transform: scaleX(0); }
.walk-step[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); }
.walk-step[aria-selected="true"] .num { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.walk-step[aria-selected="true"] .title { color: var(--fg); }
.walk-step[aria-selected="true"] .text { grid-template-rows: 1fr; }
.walk-step[aria-selected="true"] .bar { visibility: visible; }
.walk-step[aria-selected="true"] .bar i { animation: fill var(--step, 6.5s) linear forwards; animation-play-state: paused; }
.walk.playing .walk-step[aria-selected="true"] .bar i { animation-play-state: running; }
.walk.playing:hover .walk-step[aria-selected="true"] .bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.stage { position: relative; border-radius: 28px; background: var(--stage); aspect-ratio: 1 / 1.04; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.scene.active { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.scene .window, .scene .screen { transform: translateY(14px) scale(0.98); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.scene.active .window, .scene.active .screen { transform: none; }
/* Each window is sized to fill 90% of the stage's height: width = 0.9 x (stage height / width) x the image's ratio. */
.shot { position: relative; width: calc(var(--ratio) * 93.6%); }
.shot > .window { width: 100%; }
.shot .float { position: absolute; width: 63%; left: -16%; bottom: 7%; opacity: 0; transform: translateY(16px); }
.walk.playing .scene.active .float { animation: pop var(--step, 6.5s) cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.walk.playing:hover .scene.active .float { animation-play-state: paused; }
@keyframes pop { 0%, 28% { opacity: 0; transform: translateY(16px) scale(0.96); } 38%, 100% { opacity: 1; transform: none; } }
.screen { width: 90%; border-radius: 14px; padding: 10px 10px 0; background: #1c1e23; box-shadow: var(--shadow); }
.screen img { border-radius: 4px 4px 0 0; }
.screen::after { content: ""; display: block; height: 14px; }
@media (max-width: 900px) {
  .walk { grid-template-columns: 1fr; gap: 24px; }
  .walk .stage { order: -1; }
}
/* On phones the stage is taller, so the windows in it are larger. */
@media (max-width: 560px) {
  .stage { aspect-ratio: 1 / 1.3; }
  .shot { width: calc(var(--ratio) * 117%); }
}

/* Features: a few big cards with the app inside, then small ones. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  padding: 30px 30px 0; display: flex; flex-direction: column; min-height: 420px;
}
.tile.wide { grid-column: span 3; }
.tile.third { grid-column: span 2; }
.tile p { color: var(--muted); margin: 0 0 22px; }
.tile .art { margin-top: auto; display: grid; justify-items: center; position: relative; }
.tile .art .window { width: min(100%, 320px); }
.tile .art.crop { height: 250px; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.tile .art.crop .window { width: min(100%, 360px); }
.tile.wide .art.crop { height: 300px; }
.tile .art.pad { padding-bottom: 30px; }
.tile.glow::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, var(--glow-a), transparent); z-index: 0; }
.tile > * { position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 30px; margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
@media (max-width: 900px) { .tile.wide, .tile.third { grid-column: span 6; } .tile { min-height: 0; } }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.grid .card h3 { font-size: 17px; margin-top: 14px; }
.grid .card p { font-size: 15.5px; }
.icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-tint); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
kbd { font-family: var(--font); font-size: 0.9em; padding: 1px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); white-space: nowrap; }

/* Privacy */
.privacy-band { position: relative; overflow: hidden; background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-band .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.privacy-band h2 { margin-bottom: 18px; }
.privacy-band .lock { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 24px; color: #fff; background: linear-gradient(140deg, var(--accent), var(--violet)); box-shadow: 0 14px 30px -14px var(--accent); }
.privacy-band .lock svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.privacy-band .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.privacy-band .facts li { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.privacy-band .facts .check { margin-bottom: 12px; }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.facts b { display: block; margin-bottom: 2px; }
.facts span { color: var(--muted); }
.check { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.check svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .privacy-band .wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .privacy-band .facts { grid-template-columns: 1fr; } }

/* Pricing */
.price {
  position: relative; max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px; align-items: center; padding: 40px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.price::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 60%, var(--violet)); -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 .label { font-weight: 650; color: var(--muted); margin: 0 0 6px; }
.price .amount { margin: 0 0 8px; font: 720 64px/1 var(--font-display); letter-spacing: -0.04em; color: var(--fg); }
.price .amount small { margin-left: 8px; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price .muted { margin: 0; }
.price-actions { margin-top: 22px; }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; padding: 28px; } }

/* Questions */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 620; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.faq-more { text-align: center; margin: 32px 0 0; color: var(--muted); }

/* Closing */
.closing .panel-cta {
  position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 32px; background: var(--stage);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
}
.closing img { width: 92px; height: 92px; margin: 0 auto 20px; filter: drop-shadow(0 14px 24px rgba(25, 35, 70, 0.25)); }
.closing p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 19px; }
.closing .actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--faint); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
footer .brand { font-size: 16px; margin-bottom: 10px; }
footer .brand img { width: 26px; height: 26px; }
footer p { margin: 0; }
footer h2 { font-size: 14px; letter-spacing: 0; font-weight: 650; color: var(--fg); margin: 4px 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer .about { grid-column: 1 / -1; } }

/* Appearing as you scroll, only when scripts run and motion is welcome. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shot .float { opacity: 0; }
  .scene.active .float { opacity: 1; transform: none; }
}

/* Policies and other text pages */
.doc { max-width: 720px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 8px; }
.doc .updated { color: var(--faint); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--fg); }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.summary-box ul { margin: 8px 0 0; padding-left: 20px; }
.todo { background: color-mix(in srgb, #f5a524 18%, transparent); color: var(--fg); padding: 1px 6px; border-radius: 5px; }

/* The success page: the licence key in a box, with Copy and Unlock. */
.key-box { margin: 18px 0 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.key-box .key { display: block; margin: 0 0 16px; font: 600 clamp(17px, 4vw, 22px)/1.3 var(--mono); letter-spacing: 0.02em; overflow-wrap: anywhere; user-select: all; }
.key-box .actions { gap: 10px; }
.waiting { color: var(--muted); }

/* The lost-key form. */
.resend { margin: 20px 0 8px; }
.resend label { display: block; font-weight: 600; margin-bottom: 8px; }
.resend input { flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 0; font: inherit; color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.resend input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Documentation: a sidebar of pages, the page, and links to the pages before and after it. */
.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 15px; padding-bottom: 20px; }
.docs-nav h2 { font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin: 22px 0 8px; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.docs-nav a:hover { color: var(--fg); background: var(--bg-tint); text-decoration: none; }
.docs-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.docs-menu { display: none; }
.article { max-width: 760px; min-width: 0; }
.crumbs { font-size: 14px; color: var(--faint); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(34px, 4.6vw, 46px); letter-spacing: -0.035em; margin: 0 0 14px; }
.article .intro { font-size: 20px; color: var(--muted); margin: 0 0 36px; }
.article h2 { font-size: clamp(24px, 3vw, 28px); letter-spacing: -0.02em; margin: 48px 0 12px; padding-top: 8px; }
.article h3 { font-size: 19px; margin: 30px 0 8px; }
.article p, .article li { color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 6px; }
.article strong { color: var(--fg); font-weight: 620; }
.article figure { margin: 28px 0; display: grid; justify-items: center; gap: 12px; padding: 28px; border-radius: 22px; background: var(--stage); }
.article figure .window { width: min(100%, var(--w, 320px)); }
.article figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-size: 14px; color: var(--faint); font-weight: 600; }
.article td.keys { white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.note { margin: 22px 0; padding: 16px 20px; border-radius: 14px; background: var(--accent-soft); color: var(--fg); }
.note p { margin: 0; color: inherit; }
.note p + p { margin-top: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 42px; min-height: 30px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.steps > li + li { margin-top: 12px; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 0; padding: 0 !important; list-style: none; }
.topics li { margin: 0 !important; }
.topics a { display: block; height: 100%; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--fg); transition: border-color 0.2s ease, transform 0.2s ease; }
.topics a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.topics b { display: block; font-size: 17px; margin: 12px 0 4px; }
.topics span { color: var(--muted); font-size: 15.5px; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pager a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pager small { display: block; color: var(--faint); font-size: 13px; }
.pager .next { grid-column: 2; text-align: right; }
.help-line { margin-top: 40px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .docs-nav { display: none; }
  .docs-menu { display: block; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .docs-menu summary { padding: 12px 16px; font-weight: 600; cursor: pointer; }
  .docs-menu .docs-nav { display: block; position: static; max-height: none; padding: 0 8px 12px; }
  .topics { grid-template-columns: 1fr; }
}
