/* ubikron.com
   Palette: bone, ink, signal red (from the logo). Private servers run in
   the green livery the extension uses when it's connected to one.
   Type: Schibsted Grotesk for everything you read, Sofia Sans Extra
   Condensed for dial labels, IBM Plex Mono only for real data
   (hashes, URLs, timestamps, commands). */

@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted-grotesk-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Sofia Sans XC"; src: url(/fonts/sofia-sans-xc.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bone: #ECE9E1;
  --paper: #F7F6F2;
  --ink: #131211;
  --shadow: #1C1B19;
  --char: #2A2926;
  --signal: #DE1B33;
  --signal-deep: #B8142A;
  --ember: #F1562A;
  --lume: #50C693;
  --lume-deep: #398F6A;
  --peach: #FBE3D3; /* clipping cards in the product */

  --bg: var(--bone);
  --surface: var(--paper);
  --fg: var(--ink);
  --muted: #5F5D58;
  --faint: #8F8C85;
  --line: rgba(19, 18, 17, .13);
  --line-strong: rgba(19, 18, 17, .28);
  --accent: var(--signal);
  --on-accent: #fff;

  --f-text: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-label: "Sofia Sans XC", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-data: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* There's one theme, light. Some sections are always dark. */
[data-tone="dark"] {
  --bg: #121110; --surface: #1B1A18; --fg: #ECE9E1; --muted: #A3A099; --faint: #77756F;
  --line: rgba(236, 233, 225, .12); --line-strong: rgba(236, 233, 225, .26);
  color-scheme: dark;
}
/* The engine room: private servers. Always dark, always green. */
[data-tone="engine"] {
  --bg: #0D110F; --surface: #141A17; --fg: #E2E8E3; --muted: #93A198; --faint: #64716A;
  --line: rgba(226, 232, 227, .11); --line-strong: rgba(226, 232, 227, .24);
  --accent: var(--lume); --on-accent: #08130D;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--f-text);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: #fff; }
[data-tone="engine"] ::selection { background: var(--lume); color: #08130D; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
code, kbd, samp { font-family: var(--f-data); font-size: .88em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.display, h1, h2, h3 { font-family: var(--f-text); margin: 0; text-wrap: balance; }
.display {
  font-size: clamp(2.9rem, 7.4vw, 6.9rem);
  font-weight: 820;
  line-height: .9;
  letter-spacing: -.048em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.042em; }
h2 { font-size: clamp(1.9rem, 3.9vw, 3.3rem); font-weight: 780; line-height: 1; letter-spacing: -.035em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -.012em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.42; color: var(--muted); max-width: 36ch; text-wrap: pretty; }
.lead strong, .lead b { color: var(--fg); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.data { font-family: var(--f-data); font-size: .82rem; letter-spacing: 0; }

.tag { display: inline-block; font: 600 1rem/1.3 var(--f-text); color: var(--muted); }

.arr { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(3px); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  border: 0; border-radius: 9px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 640; font-size: 1.02rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--signal-deep); }
[data-tone="engine"] .btn:hover { background: #6BD7A7; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-sm { min-height: 38px; padding: .45em .9em; font-size: .93rem; border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }

/* ── The widget (navigation) ──────────────────────────────────────────
   Floats over the page and flips light/dark depending on what's under
   it, like the Ubikron recording widget does on the pages you browse. */
.widget {
  --w-bg: rgba(247, 246, 242, .82); --w-fg: var(--ink); --w-line: rgba(19, 18, 17, .12); --w-muted: #5F5D58;
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(var(--wrap) - 2 * var(--gut) + 24px), calc(100% - 20px));
  height: 56px; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 6px;
  background: var(--w-bg); color: var(--w-fg);
  border: 1px solid var(--w-line); border-radius: 13px;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.widget[data-on="dark"] { --w-bg: rgba(22, 21, 19, .78); --w-fg: #ECE9E1; --w-line: rgba(236, 233, 225, .12); --w-muted: #A3A099; }
.widget[data-on="engine"] { --w-bg: rgba(13, 19, 16, .8); --w-fg: #E2E8E3; --w-line: rgba(80, 198, 147, .2); --w-muted: #93A198; }
.widget-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 760; font-size: 1.12rem; letter-spacing: -.03em; margin-right: auto; }
.widget-links { display: flex; align-items: center; gap: 2px; }
.widget-links a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 520; font-size: .97rem; color: var(--w-muted); transition: color .2s, background .2s; }
.widget-links a:hover, .widget-links a[aria-current="page"] { color: var(--w-fg); }
.widget-links a[aria-current="page"] { background: var(--w-line); }
.widget-links-cta { display: none; }
.widget-cta { margin-left: 4px; }
.widget[data-on="engine"] .widget-cta { background: var(--lume); color: #08130D; }
.widget-menu { display: none; background: none; border: 0; padding: 8px 10px; font-weight: 600; cursor: pointer; }

/* AI switch: off by default. Ubikron is fully usable without AI, and so is this site. */
.ai-switch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; margin: 0 2px 0 6px; background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--w-muted); font: 600 .95rem/1 var(--f-text); }
.ai-switch:hover { color: var(--w-fg); }
.ai-switch-track { width: 30px; height: 17px; border-radius: 9px; background: var(--w-line); box-shadow: inset 0 0 0 1px var(--w-line); position: relative; transition: background .25s; }
.ai-switch-knob { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--w-muted); transition: transform .25s var(--ease), background .25s; }
[data-ai="on"] .ai-switch { color: var(--w-fg); }
[data-ai="on"] .ai-switch-track { background: var(--signal); }
[data-ai="on"] .ai-switch-knob { transform: translateX(13px); background: #fff; }
[data-ai="off"] [data-ai-only] { display: none !important; }
[data-ai="on"] [data-ai-hide] { display: none !important; }

@media (max-width: 900px) {
  .widget { height: 52px; top: 8px; padding-left: 12px; }
  .widget-cta { display: none; }
  .widget-menu { display: inline-block; }
  .widget-links {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--w-bg); border: 1px solid var(--w-line); border-radius: 13px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .widget-links a { padding: 13px 12px; font-size: 1.08rem; }
  .widget-links .widget-links-cta { display: block; margin-top: 6px; background: var(--signal); color: #fff; text-align: center; font-weight: 640; }
  .widget[data-open] .widget-links { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
}

.plain-head { padding: 22px var(--gut); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sec { padding-block: clamp(72px, 10vw, 140px); background: var(--bg); color: var(--fg); position: relative; }
.sec-tight { padding-block: clamp(48px, 6vw, 84px); }
.sec + .sec:not([data-tone]) { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.sec-head .lead { max-width: 52ch; }
.page-top { padding-top: clamp(120px, 15vw, 190px); }

/* ── Home: hero ──────────────────────────────────────────────────────── */
.hero { padding-top: clamp(104px, 12vw, 150px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(48px, 7vw, 128px); align-items: center; }
.hero-copy { display: grid; gap: 26px; align-content: center; }
.hero-copy .display { font-size: clamp(3rem, 6.2vw, 6.4rem); }
.hero-copy .display em { font-style: normal; color: var(--signal); }
.hero-meta { font-size: .98rem; color: var(--faint); margin: 0; }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .display { font-size: clamp(3rem, 11vw, 5.6rem); }
}

/* ── Home: what you lose ─────────────────────────────────────────────── */
.losses { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.loss { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding-block: clamp(28px, 3.6vw, 48px); border-bottom: 1px solid var(--line); align-items: baseline; }
.loss h3 { font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.02; }
.loss-fix { display: grid; gap: 8px; }
.loss-fix p { margin: 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .loss { grid-template-columns: 1fr; gap: 14px; } }

/* ── Figures ──────────────────────────────────────────────────────────── */
.fig { margin: 0; display: grid; gap: 12px; }
.fig-frame { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -32px rgba(0, 0, 0, .4); }
.fig-frame img, .fig-frame video { width: 100%; height: auto; }
.fig-loop .fig-frame { aspect-ratio: 16 / 9; background: #111110; }
.fig-loop video { height: 100%; object-fit: cover; }
.fig-loop .fig-frame { cursor: zoom-in; }
.fig-expand { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border: 0; border-radius: 9px; display: grid; place-content: center; background: rgba(19, 18, 17, .72); color: #ECE9E1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.fig-loop .fig-frame:hover .fig-expand, .fig-expand:focus-visible { opacity: 1; }
.fig-expand:hover { background: var(--signal); }
@media (hover: none) { .fig-expand { opacity: 1; } }
dialog.player { width: min(1500px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #ECE9E1; overflow: visible; }
dialog.player::backdrop { background: rgba(10, 10, 9, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.player video { display: block; width: 100%; max-height: 84vh; border-radius: 12px; background: #000; box-shadow: 0 40px 80px -30px #000; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px 0; }
.player-bar p { margin: 0; font-weight: 560; }
.player-close { border: 0; background: rgba(236, 233, 225, .12); color: #ECE9E1; border-radius: 9px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.player-close:hover { background: var(--signal); }
.fig-hero .fig-frame { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(19, 18, 17, .45); }
.fig figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.fig-caption { font-weight: 560; font-size: .98rem; }
.fig-hash { font: 400 .74rem/1.2 var(--f-data); color: var(--faint); cursor: help; }
.fig-interim { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 6px; background: rgba(19, 18, 17, .78); color: #ECE9E1; font: 500 .8rem/1 var(--f-text); }
.callout {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: clamp(22px, 2.2vw, 28px); height: clamp(22px, 2.2vw, 28px); border-radius: 50%;
  display: grid; place-content: center;
  background: var(--signal); color: #fff; font: 700 clamp(.72rem, 1vw, .85rem)/1 var(--f-text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 4px 10px rgba(0, 0, 0, .25);
}
.legend { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 24px; }
.legend li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: .95rem; }
.legend b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; background: var(--fg); color: var(--bg); font-size: .72rem; transform: translateY(3px); }

/* ── Home: the wide screenshot ───────────────────────────────────────── */
.wide { width: min(1600px, calc(100% - 2 * var(--gut))); margin: 0 auto; }

/* ── Home: dark statement band ───────────────────────────────────────── */
.statement { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.statement h2 { font-size: clamp(2.4rem, 5.6vw, 5.2rem); font-weight: 800; line-height: .94; letter-spacing: -.045em; }
.statement h2 s { text-decoration-thickness: .07em; text-decoration-color: var(--signal); color: var(--faint); }
.statement p { color: var(--muted); }
.statement p strong { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* ── AI band ─────────────────────────────────────────────────────────── */
.ai-off-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-strong); }
/* With AI off, the AI page is just the card, given the room of a page. */
[data-ai="off"] .ai-top { min-height: 70vh; }
.ai-off-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.ai-off-card p { margin: 6px 0 0; color: var(--muted); max-width: 54ch; }
.ai-glyph { width: 64px; height: 64px; border-radius: 14px; display: grid; place-content: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); font: 800 1.3rem/1 var(--f-text); color: var(--faint); }
@media (max-width: 760px) { .ai-off-card { grid-template-columns: 1fr; } .ai-glyph { display: none; } }
.ai-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ai-way { background: var(--bg); padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; align-content: start; }
.ai-way p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .ai-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ai-ways { grid-template-columns: 1fr; } }

/* ── Home: two doors ─────────────────────────────────────────────────── */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); }
.door { border-radius: 16px; padding: clamp(26px, 3.4vw, 48px); display: grid; gap: 18px; align-content: start; background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.door[data-tone="engine"] { background: var(--bg); box-shadow: 0 0 0 1px rgba(80, 198, 147, .25); }
.door h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.02; }
.door ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.door li { display: flex; gap: 10px; color: var(--muted); }
.door li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; background: var(--accent); transform: rotate(45deg); }
.door-price { display: flex; align-items: baseline; gap: 10px; }
.door-price b { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.door-price span { color: var(--muted); }
.door .btn-row { margin-top: 6px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ── Quotes ──────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.quote { margin: 0; display: grid; gap: 16px; align-content: start; }
.quote blockquote { margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.35; letter-spacing: -.015em; font-weight: 500; text-wrap: pretty; }
.quote-big blockquote { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 640; }
.quote figcaption { color: var(--muted); font-size: .95rem; }
.quote figcaption b { color: var(--fg); font-weight: 620; display: block; }
.quote-stack { display: grid; gap: clamp(28px, 3vw, 44px); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ── Lists of reasons (not-for-you, home teaser) ─────────────────────── */
.reasons { list-style: none; padding: 0; margin: 0; counter-reset: r; border-top: 1px solid var(--line-strong); }
.reasons > li { counter-increment: r; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(14px, 3vw, 40px); padding-block: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); align-items: baseline; }
.reasons > li::before { content: counter(r); font: 820 2rem/1 var(--f-text); letter-spacing: -.04em; color: var(--signal); }
.reasons h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.reasons p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .reasons > li { grid-template-columns: 2.2rem minmax(0, 1fr); } .reasons p { grid-column: 2; } }

/* ── Sequence (real ordered steps only) ──────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); counter-reset: s; }
.steps > li { counter-increment: s; background: var(--bg); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 10px; align-content: start; }
.steps > li::before { content: counter(s); font: 820 2.6rem/.9 var(--f-text); letter-spacing: -.05em; color: var(--accent); }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── Product page ────────────────────────────────────────────────────── */
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.chapter-text { position: sticky; top: 100px; display: grid; gap: 16px; }
.chapter-text p { color: var(--muted); margin: 0; }
.chapter-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.chapter-text li { display: flex; gap: 10px; color: var(--muted); }
.chapter-text li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; background: var(--accent); transform: rotate(45deg); }
.chapter-wide { grid-template-columns: 1fr; }
.chapter-wide .chapter-text { position: static; max-width: 760px; }
@media (max-width: 960px) { .chapter { grid-template-columns: 1fr; } .chapter-text { position: static; } }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sources span { padding: 6px 11px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 560; font-size: .95rem; }
.sources span.more { box-shadow: none; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 8px; }
.toc a { padding: 6px 11px; border-radius: 7px; text-decoration: none; font-weight: 540; font-size: .95rem; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.toc a:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ── Engine room (servers) ───────────────────────────────────────────── */
.engine-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 960px) { .engine-hero { grid-template-columns: 1fr; } }
.honest { margin-top: 8px; padding: 18px 20px; border-left: 3px solid var(--lume); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--fg); font-size: 1.08rem; line-height: 1.45; max-width: 52ch; }
.ps { border-radius: 14px; overflow: hidden; background: #08100C; box-shadow: 0 0 0 1px rgba(80, 198, 147, .22), 0 30px 60px -30px #000; font: 400 .8rem/1.6 var(--f-data); color: #B9C7BE; }
.ps-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(80, 198, 147, .14); color: #64716A; }
.ps-head b { color: #E2E8E3; font-weight: 500; }
.ps table { width: 100%; border-collapse: collapse; }
.ps td { padding: 5px 14px; white-space: nowrap; }
.ps td:first-child { text-align: left; }
.ps td:last-child { text-align: left; }
.ps tr + tr td { border-top: 1px solid rgba(80, 198, 147, .06); }
.ps .ok { color: var(--lume); }
.ps .ps-cols td { color: #64716A; padding-block: 8px 4px; }
.ps .ok::before { content: "●"; margin-right: 7px; font-size: .7em; vertical-align: .15em; }
.ps-foot { padding: 10px 14px; border-top: 1px solid rgba(80, 198, 147, .14); color: #64716A; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { padding: clamp(20px, 2.4vw, 30px); border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.card p { margin: 0; color: var(--muted); }
.card h3 { font-size: 1.18rem; }
.tools { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tools span { white-space: nowrap; }

.flow { display: grid; grid-template-columns: auto auto minmax(200px, 340px) auto auto; justify-content: center; gap: clamp(16px, 3vw, 48px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.flow-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.flow-label { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.flow-label:first-child { margin-top: 0; }
.chip { display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 560; font-size: .97rem; line-height: 1.25; }
.chip em { font-style: normal; font-weight: 400; font-size: .85rem; color: var(--muted); }
.chip-in { box-shadow: inset 0 0 0 1px rgba(80, 198, 147, .5); }
.chip-more { box-shadow: none; border: 1px dashed var(--line-strong); color: var(--muted); }
.flow-arrow { font-size: 1.6rem; color: var(--lume); }
.flow-hub { display: grid; justify-items: center; gap: 8px; text-align: center; padding: clamp(18px, 2.4vw, 28px) clamp(14px, 2vw, 22px); border-radius: 16px; background: rgba(80, 198, 147, .08); box-shadow: inset 0 0 0 1.5px var(--lume); }
.flow-hub b { font-size: 1.35rem; font-weight: 760; letter-spacing: -.02em; }
.flow-hub small { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; justify-items: stretch; }
  .flow-col { flex-direction: row; flex-wrap: wrap; }
  .flow-label { flex-basis: 100%; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.plan { background: var(--surface); padding: clamp(22px, 2.8vw, 36px); display: grid; gap: 14px; align-content: start; }
.plan-name { font: 700 1.2rem/1.2 var(--f-text); letter-spacing: -.01em; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-size: clamp(2.3rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: .98rem; }
.plan li::before { content: "+"; color: var(--accent); font-weight: 700; flex: none; width: 10px; }
.plan-featured { background: var(--bg); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 0;
  background: var(--surface); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 400 1rem/1.4 var(--f-text);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .97rem; }
.check input { margin-top: .3em; accent-color: var(--signal); width: 17px; height: 17px; }
.form-status { min-height: 1.5em; font-weight: 560; }
.form-status[data-state="error"] { color: var(--signal); }
.form-status[data-state="ok"] { color: var(--lume-deep); }
[data-tone="dark"] .form-status[data-state="ok"], [data-tone="engine"] .form-status[data-state="ok"] { color: var(--lume); }
.hp { position: absolute; left: -9999px; }
details.quote-box { border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
details.quote-box > summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; gap: 16px; align-items: center; font-weight: 640; }
details.quote-box > summary::-webkit-details-marker { display: none; }
details.quote-box > summary small { display: block; color: var(--muted); font-weight: 400; font-size: .93rem; }
details.quote-box > summary .arr { margin-left: auto; color: var(--accent); }
details.quote-box[open] > summary .arr { transform: rotate(90deg); }
details.quote-box > .form { padding: 0 22px 24px; max-width: none; }

/* ── Learn ───────────────────────────────────────────────────────────── */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111110; box-shadow: 0 0 0 1px var(--line); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; text-align: left; padding: clamp(16px, 2.4vw, 28px); display: grid; align-content: end; gap: 6px; color: #ECE9E1; background: radial-gradient(120% 90% at 85% 10%, #2A2926 0%, #111110 60%); }
.yt-title { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; max-width: 26ch; }
.yt-meta { font-size: .9rem; color: #8F8C85; }
.yt-btn { position: absolute; top: clamp(16px, 2.4vw, 28px); right: clamp(16px, 2.4vw, 28px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center; background: var(--signal); color: #fff; transition: transform .2s var(--ease); }
.yt-play:hover .yt-btn { transform: scale(1.06); }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); counter-reset: l; }
.lessons li { counter-increment: l; background: var(--bg); padding: 20px 22px; display: grid; gap: 6px; align-content: start; min-height: 120px; }
.lessons li::before { content: counter(l); font: 820 1.7rem/1 var(--f-text); letter-spacing: -.04em; color: var(--faint); }
.lessons h3 { font-size: 1.08rem; }
.lessons li { padding: 14px 14px 18px; }
.lessons li::before { display: none; }
.lessons .yt { margin-bottom: 4px; }
.lesson-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 4px; }
.lesson-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.lesson-cover span { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(19, 18, 17, .78); color: #ECE9E1; font-size: .82rem; font-weight: 500; }
.yt-poster { background: linear-gradient(to top, rgba(10, 10, 9, .85), rgba(10, 10, 9, .15) 60%), var(--poster) center / cover no-repeat; }
.lessons .soon { font-size: .92rem; color: var(--faint); margin-top: auto; }
@media (max-width: 960px) { .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lessons { grid-template-columns: 1fr; } }

/* ── Story ───────────────────────────────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.4fr); gap: clamp(14px, 3vw, 40px); padding-block: clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline time { font: 700 1.15rem/1.2 var(--f-text); color: var(--muted); }
.timeline h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .verdict { font-weight: 560; color: var(--fg); }
.timeline li.now h3 { color: var(--signal); }
@media (max-width: 860px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.facts div { background: var(--bg); padding: clamp(20px, 3vw, 36px); display: grid; gap: 6px; }
.facts b { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 820; letter-spacing: -.05em; line-height: .9; }
.facts span { color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ── Prose (notes, legal, docs) ──────────────────────────────────────── */
.prose { max-width: 680px; font-size: 1.1rem; line-height: 1.62; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2em 0 .6em; letter-spacing: -.028em; }
.prose h3 { margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--signal); font-size: 1.2rem; font-weight: 520; letter-spacing: -.01em; }
.prose a { text-decoration-color: var(--accent); }
.prose pre { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: 400 .85rem/1.6 var(--f-data); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--muted); }
.prose .note { padding: 14px 16px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; }
.prose .note.warn { box-shadow: inset 3px 0 0 var(--signal), inset 0 0 0 1px var(--line); }
.prose .note.ok { box-shadow: inset 3px 0 0 var(--lume), inset 0 0 0 1px var(--line); }
.byline { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .98rem; }
.signature { margin-top: 2em; font-weight: 640; }
.signature span { display: block; font-weight: 400; color: var(--muted); }
.notes-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.notes-list li { border-bottom: 1px solid var(--line); }
.notes-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding-block: clamp(20px, 2.6vw, 30px); text-decoration: none; align-items: baseline; }
.notes-list h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.03em; transition: color .2s; }
.notes-list a:hover h2 { color: var(--signal); }
.notes-list p { grid-column: 1; margin: 0; color: var(--muted); }
.notes-list time { grid-row: 1; grid-column: 2; font-size: .95rem; color: var(--faint); }
.changes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.changes > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(14px, 3vw, 40px); padding-block: 28px; border-bottom: 1px solid var(--line); }
.changes .ver { font-weight: 760; font-size: 1.4rem; letter-spacing: -.03em; }
.changes .ver time { display: block; font-size: .95rem; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.changes ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.changes li li { margin-bottom: .35em; }
@media (max-width: 640px) { .changes > li { grid-template-columns: 1fr; } }

/* Server docs */
.doc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.doc-tabs a { padding: 8px 13px; border-radius: 8px; text-decoration: none; font-weight: 560; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.doc-tabs a:hover { color: var(--fg); }
.doc-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.doc-sec .prose { font-size: 1.02rem; }
.doc-sec .prose h2 { margin-top: 0; }
@media (max-width: 960px) { .doc-sec { grid-template-columns: 1fr; } }
.term { border-radius: 12px; background: #08100C; box-shadow: 0 0 0 1px rgba(80, 198, 147, .2); padding: 16px 18px; font: 400 .82rem/1.65 var(--f-data); color: #B9C7BE; overflow-x: auto; white-space: pre; margin: 0 0 18px; }
.term .c { color: #64716A; }
.term .p { color: var(--lume); }
.term .ok { color: var(--lume); }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Small pages ─────────────────────────────────────────────────────── */
.center-page { min-height: 100svh; display: grid; place-content: center; padding: 100px var(--gut); text-align: left; }
.decayed h1 { font-size: clamp(3rem, 10vw, 8rem); }
.decayed .ghost { color: var(--faint); }
.legal-docs { display: grid; gap: 10px; }
.legal-docs a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; }
.legal-docs a span { color: var(--muted); font-weight: 400; }
.legal-docs a:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.bare { padding: 28px 20px 40px; max-width: 680px; margin: 0 auto; }
.sandbox { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 6px; background: rgba(222, 27, 51, .1); color: var(--signal); font-weight: 600; font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { background: var(--bg); color: var(--fg); padding: clamp(56px, 7vw, 96px) var(--gut) 28px; }
.foot-inner { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.foot-sign { display: grid; gap: 18px; align-content: start; }
.foot-line { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.05; margin: 0; max-width: 14ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font: 600 1rem/1.2 var(--f-text); color: var(--faint); margin-bottom: 12px; }
.foot-cols a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); }
.foot-cols a:hover { color: var(--fg); }
.foot-base { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: var(--faint); font-size: .9rem; }
@media (max-width: 860px) { .foot-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ── Easter egg: the advertisement ───────────────────────────────────── */
.ad { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(10, 10, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: adin .4s var(--ease); }
.ad-card { position: relative; max-width: 560px; width: 100%; border-radius: 6px; overflow: hidden; background: #F3EBD8; color: #1F1A12; box-shadow: 0 40px 80px -30px #000; display: grid; grid-template-columns: 180px 1fr; }
.ad-card img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.ad-copy { padding: 26px 26px 22px; display: grid; gap: 12px; }
.ad-copy small { font: 650 .82rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: #9A2A1C; }
.ad-copy p { margin: 0; font-size: 1rem; line-height: 1.45; }
.ad-copy .fine { font-size: .78rem; color: #6B5F4B; }
.ad-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(31, 26, 18, .1); cursor: pointer; font-size: 18px; line-height: 1; color: #1F1A12; }
@keyframes adin { from { opacity: 0; } }
@media (max-width: 520px) { .ad-card { grid-template-columns: 1fr; } .ad-card img { height: 160px; } }

/* ── Motion ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* In dark mode, always-dark sections sit a step deeper so they still read as bands. */

/* The team photo: full bleed, at the top of the story's dark statement. */
.coffee { margin-top: clamp(64px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.coffee figure { margin: 0; }
.coffee img { display: block; width: auto; max-width: 100%; height: auto; max-height: 78vh; border-radius: 6px; }
.coffee figcaption { padding-top: 10px; }
.coffee h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 800; line-height: .96; letter-spacing: -.04em; margin: 0 0 .5em; text-wrap: balance; }
@media (max-width: 860px) { .coffee { grid-template-columns: 1fr; } .coffee > div { order: -1; } }
.sec.team { padding-top: 0; }
.team-photo { margin: 0 0 clamp(56px, 8vw, 110px); }
.team-photo img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; object-position: 50% 35%; }
.team-photo figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; color: var(--muted); font-size: .95rem; }
