/* The website of Norn: plain HTML and CSS, no build.
   Layout: a scroll tour. On wide screens the text sits in a left column (the hero, then one sticky
   glass card per chapter) and a stage is fixed on the right: a browser and a phone whose screens
   change with the chapter (body[data-chapter], set by site.js). On narrow screens there is no
   stage: each chapter shows its own picture. After the tour, plain sections.
   Tokens follow the app (frontend/src/routes/layout.css): dark by default, light by preference. */

:root {
  color-scheme: dark;
  --bg: #06080d;
  --bg-2: #0a0d14;
  --surface: #0d1118;
  --surface-2: #141a24;
  --surface-3: #1c2330;
  --glass: rgb(13 17 24 / 0.72);
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #e9edf5;
  --muted: #8a93a6;
  --accent: #8b7bff;
  --accent-soft: rgb(139 123 255 / 0.16);
  --accent-2: #3ee0d0;
  --accent-ink: #0b0820;
  --warn: #ffb547;
  --ok: #3ddc97;
  --device: #10131a;
  --device-edge: #2b3140;
  --shadow: 0 40px 90px -40px rgb(0 0 0 / 0.8), 0 18px 40px -24px rgb(0 0 0 / 0.6);
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 22px;
  --col: min(460px, 40vw); /* the text column of the tour */
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f5f9;
    --bg-2: #eaeef5;
    --surface: #ffffff;
    --surface-2: #eef1f6;
    --surface-3: #e3e8f0;
    --glass: rgb(255 255 255 / 0.78);
    --line: rgb(15 23 42 / 0.08);
    --line-strong: rgb(15 23 42 / 0.15);
    --text: #0d1220;
    --muted: #5d6679;
    --accent: #6a55f5;
    --accent-soft: rgb(106 85 245 / 0.12);
    --accent-2: #0fb5a6;
    --accent-ink: #ffffff;
    --warn: #b86e00;
    --ok: #129a64;
    --device: #1a1e27;
    --device-edge: #3a4152;
    --shadow: 0 40px 90px -40px rgb(30 40 80 / 0.45), 0 18px 40px -24px rgb(30 40 80 / 0.3);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.12em 0.42em; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; margin: 0; }
h2 b, .tagline b, .section-title b { font-weight: 750; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ----- Buttons ----- */
.button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; font: 600 15px/1 var(--body); text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.button:hover { background: var(--surface-3); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 12px 30px -12px var(--accent); }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px var(--accent); }
.button.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.button.large { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }

/* ----- Top bar ----- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; height: 64px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.topbar-links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.topbar-links a { color: var(--muted); text-decoration: none; }
.topbar-links a:hover { color: var(--text); }
@media (max-width: 720px) { .topbar-links { display: none; } .topbar .button { margin-left: auto; } }

/* ----- The stage (wide screens) ----- */
#stage { display: none; }
@media (min-width: 1024px) {
  #stage { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.6s ease; }
  body[data-chapter="rest"] #stage { opacity: 0; }
  #stage .glow { position: absolute; right: -10vw; top: 10vh; width: 70vw; height: 80vh; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%), radial-gradient(closest-side at 70% 70%, color-mix(in oklab, var(--accent-2) 14%, transparent), transparent 70%); filter: blur(10px); }
  /* One device at a time, so nothing ever overlaps: the browser for the desktop screens, the
     phone for the phone chapters. Both are centred in the area right of the text column
     (--area, between the column and the rail) and cross-fade. */
  #stage { --gap-l: calc(max(5vw, 40px) + var(--col) + 48px); --gap-r: 64px; }
  #stage .device { position: absolute; top: 50%; transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
  #stage .device.browser { left: var(--gap-l); width: min(calc(100vw - var(--gap-l) - var(--gap-r)), 1000px, calc((100vh - 200px) * 1.6)); transform: translateY(-46%); }
  #stage .device.phone { left: calc((var(--gap-l) + 100vw - var(--gap-r)) / 2); height: min(76vh, 720px); aspect-ratio: 743 / 1704; transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
  #stage .device.phone .screen { height: 100%; aspect-ratio: auto; }
  body:is([data-chapter="live"], [data-chapter="phone"]) #stage .device.browser { opacity: 0; transform: translateY(-46%) scale(0.97); }
  body:is([data-chapter="live"], [data-chapter="phone"]) #stage .device.phone { opacity: 1; transform: translate(-50%, -46%); }
  /* Out first, then in: the old device is gone before the new one shows, so the two are never
     seen over each other half-transparent. */
  #stage .device { transition: opacity 0.18s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
  body:is([data-chapter="live"], [data-chapter="phone"]) #stage .device.phone,
  body:not(:is([data-chapter="live"], [data-chapter="phone"])) #stage .device.browser {
    transition: opacity 0.32s ease 0.18s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

.device { border-radius: 18px; background: var(--device); box-shadow: var(--shadow), inset 0 0 0 1px var(--device-edge); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4152; }
.browser-bar .url { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: rgb(255 255 255 / 0.06); color: #8a93a6; font: 12px/1.4 var(--mono); }
.device .screen { position: relative; overflow: hidden; }
.device.browser .screen { aspect-ratio: 16 / 10; border-radius: 0 0 18px 18px; }
.device .screen > img, .device .screen > .ai-boxes { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.device .screen > img, .device .screen > .ai-boxes { transition-duration: 0.18s; }
.device .screen > .on { opacity: 1; transition: opacity 0.32s ease 0.18s; }
/* A phone body like storeframe's: a dark bezel, a light edge, the camera island. */
.device.phone { position: relative; padding: 9px; border-radius: 40px; background: linear-gradient(150deg, #2c3240, #0c0f15 55%); box-shadow: var(--shadow), inset 0 0 0 1.5px #4a5263; }
/* A status bar above the app (the island sits in it), as on a real phone. */
.device.phone .screen { aspect-ratio: 725 / 1686; border-radius: 32px; background: #06080d; }
.device.phone .screen > img { top: 7%; height: 93%; }
.device.phone .screen::before { content: "9:41"; position: absolute; z-index: 2; top: 2.6%; left: 12%; color: #e9edf5; font: 600 12px/1 var(--body); letter-spacing: 0.01em; }
.device.phone .island { position: absolute; z-index: 2; top: 17px; left: 50%; width: 30%; height: 14px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.push { position: absolute; left: 6%; right: 6%; top: 9%; z-index: 3; display: grid; gap: 1px; padding: 9px 11px; border-radius: 14px; background: rgb(30 34 44 / 0.86); backdrop-filter: blur(10px); color: #e9edf5; font-size: 9px; line-height: 1.35; box-shadow: 0 10px 24px -10px #000; opacity: 0; transform: translateY(-10px); transition: opacity 0.5s, transform 0.5s; }
.push b { font-size: 10px; }
.push span { color: #b6bdcc; }
.push .push-app { display: flex; align-items: center; gap: 6px; color: #b6bdcc; font-weight: 600; }
.push .push-app small { margin-left: auto; font-weight: 400; }
.push.on { opacity: 1; transform: none; }

/* ----- The rail of chapters (wide screens) ----- */
#rail { display: none; }
@media (min-width: 1024px) {
  #rail { position: fixed; z-index: 10; right: 14px; top: 50%; display: flex; flex-direction: column; gap: 10px; padding: 10px 8px; border-radius: 999px; transform: translateY(-50%); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.4s; }
  body:not([data-chapter="hero"]):not([data-chapter="rest"]) #rail { opacity: 1; }
  #rail a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: background 0.2s, transform 0.2s; }
  #rail a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  #rail a:hover span, #rail a:focus-visible span { opacity: 1; }
  #rail a[aria-current="step"] { background: var(--accent); transform: scale(1.3); }
}

main { position: relative; z-index: 1; }

/* ----- Hero ----- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); background: radial-gradient(900px 600px at 10% 0%, var(--accent-soft), transparent 65%); }
.hero-inner { width: 100%; max-width: 640px; margin: 0 auto; text-align: center; }
@media (min-width: 1024px) {
  .hero { padding-left: max(5vw, 40px); }
  .hero-inner { max-width: var(--col); margin: 0; text-align: left; }
}
.logo-glow { position: relative; display: inline-block; margin-bottom: 20px; }
.logo-glow::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 70%, transparent), transparent 66%); filter: blur(16px); animation: breathe 5s ease-in-out infinite; }
.logo-glow img { position: relative; display: block; border-radius: 22px; box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.2); }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.92); } }
.hero h1 { font-size: clamp(54px, 9vw, 88px); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; }
.tagline { margin: 14px 0 0; font: 300 clamp(24px, 3.4vw, 34px)/1.2 var(--display); letter-spacing: -0.02em; }
.tagline b { background: linear-gradient(100deg, color-mix(in oklab, var(--accent) 80%, var(--text)), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px 0 0; font-size: 18px; color: var(--muted); max-width: 60ch; }
.hero .lead { margin-inline: auto; }
@media (min-width: 1024px) { .hero .lead { margin-inline: 0; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
@media (min-width: 1024px) { .hero .cta { justify-content: flex-start; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; justify-content: center; }
@media (min-width: 1024px) { .hero .pills { justify-content: flex-start; } }
.pills span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); font-size: 13px; color: var(--muted); }
.scroll-hint { margin: 28px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 1024px) { .scroll-hint { text-align: left; max-width: var(--col); } }

/* The ruler: a day of recordings with the playhead, the thing Norn shows all day. site.js moves
   the playhead; under the pointer it follows the pointer. */
.ruler { width: 100%; max-width: 640px; margin: 40px auto 0; }
@media (min-width: 1024px) { .ruler { max-width: var(--col); margin-left: 0; } }
.ruler-track { position: relative; height: 30px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; cursor: ew-resize; touch-action: pan-y; }
.ruler .clip { position: absolute; top: 7px; bottom: 7px; min-width: 4px; border-radius: 3px; background: var(--accent); opacity: 0.6; transition: opacity 0.2s ease; }
.ruler .clip.warm { background: var(--warn); }
.ruler .clip.hit { opacity: 1; }
.ruler .playhead { position: absolute; top: 0; bottom: 0; left: 88%; width: 2px; background: var(--text); box-shadow: 0 0 0 1px var(--bg); pointer-events: none; }
.ruler .playhead em { position: absolute; top: 3px; left: 6px; padding: 1px 5px; border-radius: 5px; background: var(--text); color: var(--bg); font: 500 10px/1.3 var(--mono); font-style: normal; white-space: nowrap; }
.ruler .playhead.flip em { left: auto; right: 6px; }
.ruler-ticks { display: flex; justify-content: space-between; margin-top: 6px; font: 11px/1 var(--mono); color: var(--muted); }

/* ----- The tour ----- */
.chapter { position: relative; padding: 40px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
.card { max-width: 640px; margin: 0 auto; padding: 26px 26px 24px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--shadow); }
@media (min-width: 1024px) {
  .chapter { min-height: 170vh; padding: 0 0 0 max(5vw, 40px); }
  .card { position: sticky; top: max(88px, min(22vh, 180px)); width: var(--col); margin: 0; opacity: 0.4; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .chapter.current .card { opacity: 1; transform: none; }
  .inline-shot { display: none; }
}
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.number { font: 500 11px/1 var(--mono); letter-spacing: 0; padding: 4px 7px; border-radius: 7px; background: var(--accent-soft); }
.card h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 300; line-height: 1.12; }
.card p { margin: 14px 0 0; color: var(--muted); }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.readout div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.readout dt { font-size: 11px; color: var(--muted); }
.readout dd { margin: 2px 0 0; font: 600 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.inline-shot { margin: 20px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.inline-shot img { display: block; width: 100%; height: auto; }
.inline-shot.phone-shot { max-width: 260px; margin-inline: auto; border-radius: 30px; border: 8px solid var(--device); }

/* ----- After the tour ----- */
.rest { position: relative; z-index: 1; background: var(--bg); padding-top: 40px; box-shadow: 0 -60px 80px -20px var(--bg); }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 300; line-height: 1.08; }
.section-lead { max-width: 64ch; margin: 16px 0 0; font-size: 18px; color: var(--muted); }
.more, .cameras, .how-section, .private, .install { padding-block: 72px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 32px; }
.grid > div { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.grid h3 { font-size: 19px; font-weight: 650; }
.grid p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 32px; }
.brand-group { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.brand-group h3 { display: flex; align-items: center; gap: 10px; font: 600 14px/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.state { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.state.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.state.wip { background: var(--warn); }
.brand-group ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.brand-group li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.brand-group li b { font: 600 16px/1.4 var(--display); }
.brand-group li span { color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .brand-group li { grid-template-columns: 1fr; } }
.help { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.help a { color: var(--accent); }

.how { margin: 36px 0 0; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.diagram { display: block; width: 100%; height: auto; }
.diagram.narrow { display: none; max-width: 360px; margin: 0 auto; }
@media (max-width: 640px) { .diagram.wide { display: none; } .diagram.narrow { display: block; } }
.diagram .box { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.diagram .box.accent { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .t { fill: var(--text); font: 650 17px var(--display); text-anchor: middle; }
.diagram .s { fill: var(--muted); font: 12px var(--body); text-anchor: middle; }
.diagram path.v { fill: none; stroke: var(--accent-2); stroke-width: 2.5; }
.diagram path.c { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; }
.diagram path.flow { stroke-dasharray: 10 8; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.diagram .mv { fill: var(--accent-2); }
.diagram .mc { fill: var(--accent); }
.diagram .l { font: 12px var(--mono); text-anchor: middle; }
.diagram .l.v { fill: var(--accent-2); }
.diagram .l.c { fill: var(--accent); }
.diagram .l.start { text-anchor: start; }
.how figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.key { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--accent-2); }
.key.c { border-top: 2px dashed var(--accent); margin-left: 12px; }

.private-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px 48px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: radial-gradient(600px 300px at 0% 0%, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--line); }
.private-card p { color: var(--muted); margin: 16px 0 0; max-width: 60ch; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { padding: 14px 16px 14px 46px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

.steps { counter-reset: step; margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 600 16px/1 var(--mono); }
@media (max-width: 560px) { .steps > li { padding: 70px 18px 20px; } }
.steps h3 { font-size: 21px; font-weight: 650; }
.steps p { color: var(--muted); margin: 8px 0 0; }
.tabs { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.tabs button { border: 0; padding: 7px 14px; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13px/1 var(--body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); }
.code { position: relative; margin-top: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.code pre code { background: none; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 10px; background: var(--surface-2); color: var(--muted); font: 600 12px/1.3 var(--body); cursor: pointer; }
.copy:hover { color: var(--text); }

.finale { padding: 96px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)); text-align: center; background: radial-gradient(700px 360px at 50% 0%, var(--accent-soft), transparent 70%); }
.finale h2 { font-size: clamp(36px, 6vw, 64px); font-weight: 300; line-height: 1.05; letter-spacing: -0.035em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; max-width: 960px; margin: 48px auto 0; }
.facts div { display: grid; gap: 4px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.facts strong { font: 700 34px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot-links { gap: 18px !important; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.hero-shot { max-width: 640px; margin: 36px auto 0; width: 100%; }
@media (min-width: 1024px) { .hero-shot { display: none; } }
.tagline b { white-space: nowrap; }
/* Jumps to a section land below the fixed top bar. */
section[id] { scroll-margin-top: 72px; }
