/* Site styles (home, form, guides, legal). House rules: ../../../DESIGN.md (ventures). Product notes: ../../docs/DESIGN.md.
   Dark, atmospheric first screen (the dependency-graph stage), then a light "reading" page, then a dark close. */

:root {
  --night: #0b0f15;
  --night-2: #121a26;
  --on-night: #e9edf3;
  --on-night-2: #b3bdcc;
  --amber: #f2a83b;
  --amber-hi: #ffbf5e;
  --paper: #f5f6f8;
  --paper-2: #eceff3;
  --card: #ffffff;
  --ink: #0f141b;
  --ink-2: #4a5566;
  --ink-3: #5c6778;
  --line: #dde1e8;
  --amber-ink: #8f5300; /* amber for text on light backgrounds (AA) */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 10px;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 650; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
code { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--on-night); color: var(--ink); padding: 0.6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* --- Header: sits on the stage, no bar ---------------------------------------------------------- */
.site-head {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 1.4rem var(--pad);
  color: var(--on-night);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-mark { color: var(--on-night-2); }
.nav { display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--on-night-2); font-size: 0.95rem; transition: color 200ms var(--ease-out); }
.nav a:hover { color: var(--on-night); }
.site-head :focus-visible, .stage :focus-visible, .close :focus-visible { outline-color: var(--amber); }

/* --- Stage: the full-screen first view ----------------------------------------------------------- */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: 7rem var(--pad) 7rem;
  background:
    radial-gradient(60% 55% at 82% 28%, rgba(242, 168, 59, 0.06) 0%, transparent 60%),
    radial-gradient(120% 90% at 70% 0%, #141d2b 0%, transparent 65%),
    var(--night);
  color: var(--on-night);
}
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; animation: fade-in 1.8s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } }
/* Calm the graph behind the words and fade it into the edges. */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 52rem 30rem at 22% 52%, rgba(11, 15, 21, 0.92) 0%, rgba(11, 15, 21, 0.7) 45%, rgba(11, 15, 21, 0) 100%),
    linear-gradient(180deg, rgba(11, 15, 21, 0.8) 0%, rgba(11, 15, 21, 0) 20%, rgba(11, 15, 21, 0) 72%, rgba(11, 15, 21, 0.92) 100%);
}
.stage-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; }
.stage-inner > * { max-width: 40rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.6rem;
}
.stage h1 {
  font-size: clamp(2.75rem, 1.5rem + 6vw, 6.5rem);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 650;
  max-width: 11ch; margin: 0 0 1.75rem; text-wrap: balance;
}
.stage-lead { font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--on-night-2); max-width: 33rem; margin: 0 0 2.6rem; text-wrap: pretty; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.stage-link { color: var(--on-night); text-decoration: none; font-weight: 500; }
.stage-link span { display: inline-block; transition: transform 300ms var(--ease-out); }
.stage-link:hover { color: var(--amber-hi); }
.stage-link:hover span { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem; border-radius: 8px; font-weight: 600; text-decoration: none; line-height: 1;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn-amber { background: var(--amber); color: #1a1104; box-shadow: 0 0 0 1px rgba(242, 168, 59, 0.4), 0 10px 30px -12px rgba(242, 168, 59, 0.55); }
.btn-amber:hover { background: var(--amber-hi); transform: translateY(-1px); }
.btn-amber:active { transform: translateY(0); }

.stage-cue { position: absolute; left: 50%; bottom: 2rem; width: 1px; height: 3.5rem; transform: translateX(-50%); overflow: hidden; background: rgba(214, 223, 236, 0.14); }
.stage-cue span { position: absolute; inset: 0; background: var(--amber); animation: cue 2.6s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* --- Reading part --------------------------------------------------------------------------------- */
.section { padding: clamp(5rem, 12vw, 9rem) 0; }
.section.alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.copy { max-width: 40rem; }
.copy.narrow { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 1.1rem; }
.section h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.06; letter-spacing: -0.028em; margin-bottom: 1.4rem; text-wrap: balance; }
.copy p { color: var(--ink); }
.muted, .copy p.muted { color: var(--ink-2); font-size: 0.97rem; }
.copy a, .faq a, .sources a, figcaption a { color: var(--ink); text-decoration-color: rgba(15, 20, 27, 0.35); }
.copy a:hover, .faq a:hover, .sources a:hover, figcaption a:hover { text-decoration-color: var(--amber-ink); }

/* Files a scan writes */
.files { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: 13.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); }
.files code { color: var(--ink); font-size: 0.84rem; }

/* Panels: real output */
.panel { margin: 0; border-radius: var(--radius); }
.panel figcaption { font-size: 0.84rem; color: var(--ink-3); line-height: 1.5; padding: 0.9rem 0.1rem 0; }
.window { background: #0e131b; color: #cfd7e3; border-radius: var(--radius); box-shadow: 0 1px 0 rgba(15, 20, 27, 0.04), 0 40px 80px -48px rgba(11, 15, 21, 0.55); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid #1e2632; font-family: var(--mono); font-size: 0.78rem; color: #8995a8; }
.panel-title { color: #cfd7e3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-meta { white-space: nowrap; }
.panel-meta { margin-left: auto; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3341; }
.panel pre { margin: 0; padding: 1.1rem 1.25rem 1.3rem; overflow: auto; font: 0.74rem/1.65 var(--mono); tab-size: 2; }
.panel pre code { font-size: inherit; }
.panel pre:focus-visible { outline-offset: -2px; }
.panel.small pre { font-size: 0.7rem; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 2.2rem; text-indent: -1rem; }
.j-key { color: #9fb4d3; }
.j-str { color: #d6dde8; }
.j-num { color: #e9c58f; }
.j-punct { color: #7d8a9e; }
.j-fold { color: #7d8a9e; font-style: italic; }
.j-hl { display: block; margin: 0 -1.25rem; padding: 0 1.25rem; background: rgba(242, 168, 59, 0.09); box-shadow: inset 2px 0 0 var(--amber); }
.t-ph { color: var(--amber); }
.t-key { color: #e9edf3; font-weight: 600; }
.t-h { color: #8995a8; }

/* GitHub check run */
.panel.check { background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px -50px rgba(15, 20, 27, 0.4); padding: 0; overflow: hidden; }
.check-head { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); background: #fafbfc; }
.check-status { flex: none; width: 18px; height: 18px; margin-top: 0.25rem; border-radius: 50%; border: 2px solid #7d8796; position: relative; }
.check-status::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: #7d8796; }
.check-name { margin: 0; font-weight: 650; display: flex; align-items: center; gap: 0.6rem; }
.check-title { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.badge { font: 500 0.72rem/1 var(--mono); padding: 0.3rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.panel.check figcaption { padding: 0.9rem 1.4rem 1.1rem; border-top: 1px solid var(--line); background: #fafbfc; }
.md { padding: 1.3rem 1.4rem 1.4rem; font-size: 0.92rem; overflow-x: auto; }
.md h1 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.md h2 { font-size: 1.05rem; margin: 1.2rem 0 0.6rem; }
.md p, .md ul, .md blockquote { margin: 0 0 0.85rem; }
.md ul { padding-left: 1.25rem; }
.md li { margin: 0.15rem 0; }
.md blockquote { padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--line); color: var(--ink-2); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.3rem 0; }
.md table { border-collapse: collapse; font-size: 0.82rem; width: 100%; margin: 0 0 1rem; }
.md .num { text-align: right; }
@media (max-width: 40rem) { .md table { min-width: 32rem; } }
.md h3 { font-size: 0.98rem; margin: 1.2rem 0 0.6rem; }
.md th, .md td { border: 1px solid var(--line); padding: 0.45rem 0.65rem; text-align: left; vertical-align: top; }
.md th { background: #f6f8fa; font-weight: 600; }
.md td code, .md td { overflow-wrap: anywhere; }
.md a { color: #0b5cad; text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md .link { color: #0b5cad; }

/* The Article 14 clock */
.clock { list-style: none; margin: 0 0 2rem; padding: 0; position: relative; }
.clock::before { content: ""; position: absolute; left: 3.6rem; top: 1.1rem; bottom: 1.1rem; width: 1px; background: var(--line); }
.clock li { display: grid; grid-template-columns: 2.8rem 1fr; gap: 2rem; padding: 0.55rem 0; position: relative; }
.clock li::before { content: ""; position: absolute; left: calc(3.6rem - 4px); top: 1.15rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-3); }
.clock li:first-child::before { background: var(--amber); border-color: var(--amber-ink); }
.clock .t { font: 600 0.9rem/1.9 var(--mono); color: var(--ink); text-align: right; white-space: nowrap; }
.clock .d { color: var(--ink-2); line-height: 1.55; padding-top: 0.2rem; }
.clock strong { color: var(--ink); font-weight: 600; }
.ref { font: 0.78rem var(--mono); color: var(--ink-3); white-space: nowrap; }

/* Permissions */
.perms { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.perms th, .perms td { text-align: left; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.perms thead th { font: 500 0.75rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: #fafbfc; }
.perms tbody tr:last-child > * { border-bottom: 0; }
.perms tbody th { font-weight: 600; }
.perms td:last-child { color: var(--ink-2); }
.sources { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.7rem 1.9rem; }
.plan-main { border-color: #e2c08c; box-shadow: inset 0 3px 0 var(--amber); }
.plan h3 { font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.price { margin: 0 0 0.6rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.amount { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.per { color: var(--ink-3); font-size: 0.9rem; }
.plan-for { color: var(--ink-2); font-size: 0.95rem; min-height: 3rem; }
.plan-note { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-3); }
.plan ul { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.plan li { padding: 0.32rem 0 0.32rem 1.2rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.soon { font: 500 0.7rem var(--mono); color: var(--amber-ink); border: 1px solid #e2c08c; border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.3rem; white-space: nowrap; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.55rem; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { color: var(--ink-2); max-width: 40rem; padding-bottom: 0.6rem; }
.faq strong { color: var(--ink); font-weight: 600; }

/* Closing band mirrors the stage */
.close {
  background: radial-gradient(70% 120% at 50% 0%, #17202e 0%, transparent 65%), var(--night);
  color: var(--on-night); padding: clamp(5rem, 12vw, 9rem) 0; text-align: center;
}
.close-inner { display: grid; justify-items: center; gap: 2rem; }
.close h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.04; margin: 0; max-width: 16ch; text-wrap: balance; }
.close-note { color: var(--on-night-2); margin: -0.75rem 0 0; font-size: 0.95rem; }
.site-foot { background: var(--night); color: #8f9bad; border-top: 1px solid #1a2230; font-size: 0.85rem; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem 2rem; padding-top: 1.8rem; padding-bottom: 2rem; }
.foot-inner > p:last-child { grid-column: 1 / -1; color: #7d899b; }
.foot-inner p { margin: 0; }

/* The record (home 01): a schema, not sample data */
.ledger { margin: 0; padding: 0.9rem 1.25rem 1.2rem; font: 0.78rem/1.55 var(--mono); }
.ledger div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 0.28rem 0 0.28rem 1rem; }
.ledger dt { color: #9fb4d3; }
.ledger dd { margin: 0; color: #cfd7e3; overflow-wrap: anywhere; }
.ledger .ledger-group { grid-template-columns: 9.5rem minmax(0, 1fr); padding-left: 0; margin-top: 0.7rem; padding-top: 0.75rem; border-top: 1px solid #1e2632; }
.ledger .ledger-group:first-child { margin-top: 0; padding-top: 0.2rem; border-top: 0; }
.ledger .ledger-group dt { color: #e9edf3; font-weight: 600; }
.ledger .ledger-group dd { color: #8995a8; }
.ledger-note { color: #8995a8; margin-left: 0.4rem; }
.guide-links { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.guide-links li { border-bottom: 1px solid var(--line); }
.guide-links a { display: block; padding: 0.7rem 1.5rem 0.7rem 0; text-decoration: none; position: relative; }
.guide-links a::after { content: "→"; position: absolute; right: 0.2rem; color: var(--ink-3); transition: transform 250ms var(--ease-out); }
.guide-links a:hover::after { transform: translateX(3px); color: var(--amber-ink); }

/* --- Inner pages: a quiet version of the stage as the page head ------------------------------------ */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: radial-gradient(120% 120% at 80% 0%, #141d2b 0%, transparent 65%), var(--night);
  color: var(--on-night);
}
.page-head .stage-canvas { opacity: 0.9; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 15, 21, 0.94) 0%, rgba(11, 15, 21, 0.75) 45%, rgba(11, 15, 21, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 15, 21, 0.7) 0%, rgba(11, 15, 21, 0) 30%, rgba(11, 15, 21, 0) 70%, rgba(11, 15, 21, 0.85) 100%);
}
.page-head-inner > * { max-width: 44rem; }
.page-head .eyebrow { margin-bottom: 1.2rem; }
.page-head .eyebrow a { color: inherit; text-decoration-color: rgba(242, 168, 59, 0.45); }
.page-head h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); line-height: 1.03; letter-spacing: -0.032em; margin: 0 0 1.2rem; text-wrap: balance; }
.page-lead { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--on-night-2); margin: 0; text-wrap: pretty; }
.page-meta { margin: 1.4rem 0 0; font: 0.8rem/1.5 var(--mono); color: #8f9bad; }
.page-head :focus-visible { outline-color: var(--amber); }

/* Reading layout: guides, privacy, thanks */
.article { padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 7rem); }
.prose { max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem); line-height: 1.2; letter-spacing: -0.018em; margin: 2.8rem 0 0.9rem; text-wrap: balance; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-wrap, .prose address { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.4rem 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--ink-3); }
.prose a { text-decoration-color: rgba(15, 20, 27, 0.35); }
.prose a:hover { text-decoration-color: var(--amber-ink); }
.prose strong { font-weight: 600; }
.prose code { background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose blockquote { margin-left: 0; padding: 0.9rem 1.2rem; border-left: 2px solid var(--amber); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: 0 0 0.4rem; font-size: 1rem; }
.prose cite { font: normal 0.78rem var(--mono); color: var(--ink-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose thead th { font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: #fafbfc; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 600; white-space: nowrap; }
.prose .timeline td:last-child { font: 0.78rem/1.6 var(--mono); color: var(--ink-3); white-space: nowrap; }
.prose .timeline tr.now > * { background: #fffaf2; }
.prose .timeline tr.now th { box-shadow: inset 2px 0 0 var(--amber); }
.tldr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 2rem; }
.tldr p { margin: 0; }
.lead-in { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.address { font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.text-link { font-weight: 500; }
.btn-dark { background: var(--ink); color: var(--on-night); }
.btn-dark:hover { background: #222b38; transform: translateY(-1px); }

/* Guide end matter */
.cta-aside { max-width: 40rem; margin: 3.5rem 0 0; padding: 1.8rem 1.9rem 2rem; border-radius: var(--radius); color: var(--on-night); background: radial-gradient(90% 140% at 100% 0%, #17202e 0%, transparent 70%), var(--night); }
.cta-aside .kicker { color: var(--amber); }
.cta-aside h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.8rem; }
.cta-aside p { color: var(--on-night-2); margin: 0 0 1.4rem; }
.cta-aside :focus-visible { outline-color: var(--amber); }
.sources-block, .more-guides { max-width: 40rem; margin-top: 3.5rem; }
.sources-block h2, .more-guides h2 { font: 500 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 1rem; }
.source-list { margin: 0; padding-left: 1.4rem; font-size: 0.93rem; line-height: 1.5; }
.source-list li { margin: 0 0 0.7rem; padding-left: 0.2rem; }
.source-list li::marker { font: 0.8rem var(--mono); color: var(--ink-3); }
.source-list a { text-decoration-color: rgba(15, 20, 27, 0.35); }
.source-list span { display: block; color: var(--ink-3); font-size: 0.85rem; }
.disclaimer { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
.more-guides ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more-guides li { border-bottom: 1px solid var(--line); }
.more-guides a { display: block; padding: 0.75rem 0; text-decoration: none; }
.more-guides a:hover { color: var(--amber-ink); }

/* Guides index */
.guides-index { padding-top: clamp(3rem, 7vw, 5rem); }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.guide-cards a { display: grid; gap: 0.6rem; height: 100%; padding: 1.6rem 1.7rem 1.7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out); }
.guide-cards a:hover { border-color: #e2c08c; transform: translateY(-2px); }
.g-title { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.g-desc { color: var(--ink-2); font-size: 0.95rem; }
.guides-note { margin-top: 2rem; max-width: 40rem; }

/* Early-access form */
.signup { padding-top: clamp(3rem, 7vw, 5rem); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.section h2.lift { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.ticks { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.ticks li { position: relative; padding: 0.85rem 0 0.85rem 1.9rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 1.35rem; width: 0.75rem; height: 0.4rem; border-left: 2px solid var(--amber-ink); border-bottom: 2px solid var(--amber-ink); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 600; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 30px 70px -50px rgba(15, 20, 27, 0.35); scroll-margin-top: 1.5rem; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.field label { font-weight: 600; font-size: 0.93rem; }
.hint { font-weight: 400; color: var(--ink-3); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c9d0db; border-radius: 8px; padding: 0.7rem 0.8rem; min-height: 2.9rem;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.8rem) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber-ink); box-shadow: 0 0 0 3px rgba(242, 168, 59, 0.28); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--amber-ink); }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.fine { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Errors come back as #error-<code> (no script): only the targeted message shows. */
.form-msg { display: none; margin: 0; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid #e3b7ae; background: #fdf3f1; color: #8a2a17; font-size: 0.93rem; }
.form-msg:target { display: block; }
.form-msg::before { content: "Not sent. "; font-weight: 600; }

/* Footer */
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot-nav a, .foot-inner a { color: #b3bdcc; text-decoration: none; }
.foot-nav a:hover, .foot-inner a:hover { color: var(--on-night); text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--amber); }

/* Sections rise in once as they enter (scroll-driven, no JS; static where unsupported). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage-cue span { animation: none; transform: none; }
  .stage-canvas { animation: none; }
  .btn, .stage-link span, .faq summary::after, .guide-cards a, .guide-links a::after { transition: none; }
}

@media (max-width: 60rem) {
  .split, .faq-grid, .signup-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
  .plan-for { min-height: 0; }
}
@media (max-width: 40rem) {
  .stage { align-items: end; padding-bottom: 6.5rem; }
  .stage::after {
    background: linear-gradient(180deg, rgba(11, 15, 21, 0.7) 0%, rgba(11, 15, 21, 0.15) 22%, rgba(11, 15, 21, 0.82) 52%, rgba(11, 15, 21, 0.96) 100%);
  }
  .nav { gap: 1.25rem; }
  .files li { grid-template-columns: 1fr; gap: 0.15rem; }
  .stage-cue { display: none; }
  .dots, .panel-meta { display: none; }
  .panel pre { font-size: 0.68rem; }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 0.05rem; padding-left: 0.6rem; }
  .ledger .ledger-group { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .page-head::after { background: linear-gradient(180deg, rgba(11, 15, 21, 0.75) 0%, rgba(11, 15, 21, 0.82) 100%); }
  .prose tbody th { white-space: normal; }
  .prose .timeline td:last-child { white-space: normal; }
}

/* Trackpads and mice: no rubber-band overscroll past the page edges (it shows a strip of the wrong
   colour behind the dark stage). Touch screens keep it, so pull-to-refresh still works there. */
@media (hover: hover) and (pointer: fine) { html, body { overscroll-behavior: none; } }
/* What shows in any remaining overscroll (phones): night, like the stage and the footer. */
html { background: var(--night); }
