/* styluslog.app: "Paper after dark", the app's tokens (lib/ui/theme/tokens.dart).
   Built like a piece of hi-fi: a photo of a turntable behind the hero, a spec
   sheet, the flow as Side A and Side B tracklists, the quality report as a
   printed sheet. No JavaScript, no third parties: fonts and images are
   served from here. */

@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/fonts/BarlowSemiCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #16130f;
  --bg-deep: #0e0c0a;
  --surface: #201c17;
  --sunken: #1a1713;
  --raised: #2a251f;
  --border: #332d25;
  --border-strong: #3d362d;
  --divider: #2b2620;
  --text: #efe6d6;
  --muted: #b9ad99;
  --faint: #918672;
  --accent: #e8954a;
  --accent-ink: #1c1006;
  --accent-tint: #33230f;
  --rec: #f0573f;
  --rec-text: #ff8a75;
  --ok: #8fc48a;
  --ok-tint: #1a2618;
  --warn: #f0cf5a;
  /* the printed insert */
  --paper: #efe6d6;
  --paper-2: #e4d8c3;
  --ink: #1c1814;
  --ink-muted: #5c5143;
  --ink-line: #cfc2ab;
  --stamp: #b9432c;

  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::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(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Paper grain over everything, very faint: the sleeve's card stock. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: url("/img/grain.svg");
  opacity: 0.03;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); }
.amber { color: var(--accent); }

/* Small caps label, like the printing on a sleeve's spine. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 24px 10px 18px;
  border-radius: 999px;
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: 0.01em;
  text-decoration: none; line-height: 1.1;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.btn-play { background: var(--accent); color: var(--accent-ink); }
.btn-play:hover { background: #f0a560; }
.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); padding-left: 24px; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-soon { color: var(--muted); border: 1px dashed var(--border-strong); cursor: default; }
.btn-soon:hover { transform: none; }
.btn-soon svg { color: var(--faint); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 16px; }

/* The stores' own badges, unmodified (img/badges/: Apple's from its marketing
   toolbox, Google's from play.google.com/intl/en_us/badges). App Store first
   and both the same visible height, as both guidelines ask. Google's PNG
   carries 41 px of clear space around its 168 px badge (646×250), so it is
   drawn taller and pulled in by that margin. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; --badge-h: 48px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: var(--badge-h); width: auto; }
.badge-play img { height: calc(var(--badge-h) * 250 / 168); margin: calc(var(--badge-h) * -41 / 168); }
.badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.badge:hover { opacity: 0.88; }

/* ── Masthead ───────────────────────────────────────────────────────────── */

.mast { border-bottom: 1px solid var(--divider); position: relative; z-index: 5; }
.mast-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 0.01em;
}
.brand svg { width: 34px; height: 34px; }
.mast-nav { display: none; gap: 26px; margin-left: auto; }
.mast-nav a {
  color: var(--muted); text-decoration: none;
  font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
}
.mast-nav a:hover { color: var(--text); }
.mast-nav a[aria-current="page"] { color: var(--text); }
.mast .btn-sm { margin-left: auto; }
.mast-nav + .btn-sm { margin-left: 0; }
@media (min-width: 900px) { .mast-nav { display: flex; } }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; overflow: hidden; }
/* A photo of a real turntable, full-bleed; the copy sits over its dark right half. */
.hero-photo { margin: 0; position: absolute; top: 0; bottom: 0; left: 0; width: 76%; z-index: -1; }
/* Dimmed and a little desaturated: a quiet backdrop, not the subject. */
.hero-photo img, .closing-bg img { opacity: 0.7; filter: saturate(0.8); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 60%; }
.hero-photo::after, .closing-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-photo::after {
  background:
    linear-gradient(90deg, rgba(22, 19, 15, 0) 34%, rgba(22, 19, 15, 0.85) 64%, var(--bg) 96%),
    linear-gradient(180deg, rgba(22, 19, 15, 0.55) 0%, rgba(22, 19, 15, 0) 20%),
    linear-gradient(0deg, var(--bg) 0%, rgba(22, 19, 15, 0) 22%);
}
.hero-in { display: grid; align-items: center; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 980px) {
  .hero-in { grid-template-columns: 1fr 1fr; min-height: min(86vh, 860px); padding-top: 80px; padding-bottom: 96px; }
  .hero-copy { grid-column: 2; }
}
@media (max-width: 979px) {
  /* the photo on top, the copy below it */
  .hero-photo { position: relative; inset: auto; width: auto; z-index: 0; height: clamp(260px, 62vw, 520px); }
  .hero-photo img { object-position: 22% 55%; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(22, 19, 15, 0.45) 0%, rgba(22, 19, 15, 0) 25%),
      linear-gradient(0deg, var(--bg) 0%, rgba(22, 19, 15, 0) 40%);
  }
  .hero-in { padding-top: 0; margin-top: -24px; position: relative; }
}

.hero h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 0.95; letter-spacing: -0.02em; max-width: 9.5em; }
.hero h1 .kicker {
  display: block; margin-bottom: 22px;
  font: 500 13px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 26px; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 32em; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 18px; font: 400 13.5px/1.5 var(--mono); color: var(--faint); }

/* A thin frame, as on a current phone: about 2% a side, the screen's corner
   radius the frame's minus its width. */
.phone {
  position: relative;
  border-radius: 24px; padding: 4px;
  background: #0c0a08;
  box-shadow: 0 0 0 1px #3d362d, 0 40px 80px -20px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 20px; width: 100%; background: var(--bg); }

/* ── Specifications ─────────────────────────────────────────────────────── */

.specsheet { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: var(--bg-deep); }
.spec-grid { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-grid > div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--divider); }
@media (min-width: 1040px) {
  .spec-grid > div { padding: 26px 24px 26px 0; }
  .spec-grid > div:nth-last-child(-n+4) { border-bottom: 0; }
  .spec-grid > div + div:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--divider); }
}
.spec-grid dt { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.spec-grid dd { margin: 8px 0 0; color: var(--text); font-size: 16px; line-height: 1.45; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: 96px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 20px; font-size: clamp(40px, 5.6vw, 68px); }
.section-head p { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 36em; }

/* ── Sides: the tracklists ──────────────────────────────────────────────── */

.side-in { display: grid; gap: 56px; align-items: start; }
@media (min-width: 960px) { .side-in { grid-template-columns: 1.15fr 0.85fr; gap: 72px; } .side-b .side-in { grid-template-columns: 0.85fr 1.15fr; } .side-b .shots { order: -1; } }

.side-head { margin-bottom: 40px; }
.side-head .eyebrow { margin-bottom: 18px; }
.side-head h2 { font-size: clamp(38px, 5vw, 60px); }

.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.track {
  display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px;
  padding: 26px 0; border-bottom: 1px solid var(--divider);
}
@media (min-width: 600px) { .track { grid-template-columns: 64px 1fr auto; } }
.track .pos { font: 500 20px/1.3 var(--mono); color: var(--accent); }
.track h3 { font-size: 27px; font-weight: 700; line-height: 1.15; }
.track p { margin-top: 8px; color: var(--muted); max-width: 34em; }
.track .tag {
  grid-column: 2; justify-self: start; align-self: start; margin-top: 12px; white-space: nowrap;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 10px;
}
@media (min-width: 600px) { .track .tag { grid-column: 3; grid-row: 1; margin-top: 6px; } }
.track a { color: var(--accent); }

.shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; max-width: 560px; margin: 0 auto; width: 100%; }
.shots .phone:nth-child(2) { margin-top: 72px; }
.shots figcaption { grid-column: 1 / -1; font: 400 13px/1.5 var(--mono); color: var(--faint); text-align: center; }
@media (min-width: 960px) { .shots { position: sticky; top: 32px; } }

/* ── The quality report: a printed sheet ───────────────────────────────── */

.report-in { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .report-in { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }

.insert {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 28px 22px 22px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
}
.insert::before {
  /* the insert's own grain */
  content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  background: url("/img/grain.svg"); opacity: 0.35; mix-blend-mode: multiply;
}
@media (min-width: 640px) { .insert { padding: 36px 40px 30px; } }
.insert-top {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.insert-kicker { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.insert h3 { margin-top: 6px; font-size: clamp(26px, 3.6vw, 36px); color: var(--ink); }
.insert-sub { margin-top: 4px; color: var(--ink-muted); font-size: 15px; }
.stamp {
  flex: none; width: 92px; height: 92px; border-radius: 6px;
  display: grid; place-content: center; text-align: center;
  border: 2px solid var(--stamp); color: var(--stamp);
  font: 700 34px/1 var(--cond);
  margin-top: -6px;
}
.stamp small { display: block; font: 500 8.5px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.verdict { margin: 18px 0 6px; font: 700 21px/1.2 var(--cond); }
.readings { margin: 0; }
.readings dd { margin: 0; }
.reading {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--ink-line);
}
.reading:last-child { border-bottom: 0; }
.reading dt { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.reading dt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4f8a49; flex: none; }
.reading.note dt::before { background: #c9741f; }
.reading .val { font: 500 14px/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.reading .why { grid-column: 1 / -1; color: var(--ink-muted); font-size: 15px; line-height: 1.45; padding-left: 19px; }
.insert-foot { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); font: 400 12px/1.5 var(--mono); color: var(--ink-muted); }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--divider); position: relative; color: var(--muted); }
.checks li:first-child { border-top: 1px solid var(--divider); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 23px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.checks b { color: var(--text); font-weight: 600; }
.aside-h { font: 700 24px/1.2 var(--cond); margin-bottom: 18px; }
.aside-p { color: var(--muted); margin-top: 22px; }

/* ── Files and stylus hours ─────────────────────────────────────────────── */

.duo { display: grid; gap: 22px; }
.duo > *, .side-in > *, .report-in > *, .hero-in > * { min-width: 0; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.25fr 0.75fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 28px 22px;
}
@media (min-width: 640px) { .card { padding: 36px; } }
.card h3 { font-size: 30px; }
.card > p { margin-top: 12px; color: var(--muted); }

.tree {
  margin: 26px 0 0; padding: 20px; border-radius: 14px;
  background: var(--bg-deep); border: 1px solid var(--divider);
  font: 400 14px/1.85 var(--mono); color: var(--muted);
  overflow-x: auto; white-space: pre;
}
.tree .dir { color: var(--text); }
.tree .ext { color: var(--accent); }
.tree .dim { color: var(--faint); }

.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fmt { border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; min-width: 140px; flex: 1 1 140px; }
.fmt b { font: 700 20px/1.1 var(--cond); display: block; }
.fmt span { font-size: 14px; color: var(--faint); }
.fmt.main { border-color: var(--accent); background: var(--accent-tint); }
.fmt.main b { color: var(--accent); }

.gauge { display: block; width: 100%; max-width: 260px; margin: 22px auto 6px; }
.gauge-track { stroke: var(--divider); }
.gauge-tick { stroke: var(--border-strong); }
.gauge-fill { stroke: var(--accent); }
.gauge-num { font: 700 44px var(--cond); fill: var(--text); }
.gauge-unit { font: 500 11px var(--mono); fill: var(--faint); letter-spacing: 0.12em; }
.card .note { font: 400 12.5px/1.5 var(--mono); color: var(--faint); text-align: center; }

/* ── What you need: the signal chains ───────────────────────────────────── */

.chains { display: grid; gap: 14px; }
.chain {
  display: grid; gap: 18px; align-items: center;
  background: var(--sunken); border: 1px solid var(--divider); border-radius: 20px;
  padding: 22px;
}
@media (min-width: 900px) { .chain { grid-template-columns: 1fr 1.25fr; padding: 26px 32px; } }
.chain h3 { font-size: 25px; }
.chain p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.flow { display: flex; align-items: center; gap: 4px; }
.node { flex: 0 0 auto; display: grid; justify-items: center; gap: 8px; text-align: center; width: 92px; }
.node svg { width: 56px; height: 56px; color: var(--muted); }
.node.phone-node svg { color: var(--accent); }
.node span { font: 500 11px/1.25 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.wire { flex: 1 1 auto; min-width: 20px; position: relative; height: 2px; background: var(--border-strong); margin-bottom: 26px; }
.wire::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--border-strong); border-right: 0; }
.wire.usb { background: var(--accent); }
.wire.usb::after { border-left-color: var(--accent); }
.wire em { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: 0.1em; color: var(--faint); white-space: nowrap; }
.wire.usb em { color: var(--accent); }
@media (max-width: 420px) { .node { width: 72px; } .node svg { width: 44px; height: 44px; } }

.gear-notes { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 800px) { .gear-notes { grid-template-columns: repeat(3, 1fr); } }
.gear-note { border-top: 2px solid var(--border-strong); padding-top: 16px; }
.gear-note.yes { border-top-color: var(--ok); }
.gear-note.no { border-top-color: var(--rec); }
.gear-note h3 { font: 700 19px/1.25 var(--cond); }
.gear-note p, .gear-note li { color: var(--muted); font-size: 16px; }
.gear-note p { margin-top: 8px; }
.gear-note ul { margin: 8px 0 0; padding-left: 18px; }
.gear-note li + li { margin-top: 4px; }

/* ── Price ───────────────────────────────────────────────────────────── */

.prices { display: grid; gap: 22px; }
@media (min-width: 860px) { .prices { grid-template-columns: 1fr 1fr; } }
.price {
  position: relative; border-radius: 22px; padding: 32px 24px 28px;
  border: 1px solid var(--border); background: var(--surface);
}
@media (min-width: 640px) { .price { padding: 40px 40px 34px; } }
.price.pro { background: linear-gradient(165deg, #2b1f12, var(--surface) 55%); border-color: #5a3f22; }
.price .tier { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.price.pro .tier { color: var(--accent); }
.price h3 { margin-top: 12px; font-size: clamp(34px, 4vw, 44px); }
.price .sub { margin-top: 8px; color: var(--muted); }
.price ul { list-style: none; margin: 24px 0 0; padding: 0; }
.price li { padding: 11px 0 11px 30px; border-top: 1px solid var(--divider); position: relative; }
.price li::before {
  content: ""; position: absolute; left: 3px; top: 18px; width: 11px; height: 6px;
  border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg);
}
.price.pro li::before { border-color: var(--accent); }
.price .btn { margin-top: 26px; }

/* ── Private ────────────────────────────────────────────────────────────── */

.private-copy { display: grid; gap: 22px; border-top: 1px solid var(--border); padding-top: 32px; }
@media (min-width: 860px) { .private-copy { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.private-copy h3 { font: 700 21px/1.25 var(--cond); }
.private-copy p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ── Liner notes (FAQ) ──────────────────────────────────────────────────── */

.liner { background: var(--bg-deep); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.notes { columns: 1; column-gap: 56px; column-rule: 1px solid var(--divider); }
@media (min-width: 760px) { .notes { columns: 2; } }
@media (min-width: 1100px) { .notes { columns: 3; } }
.qa { break-inside: avoid; margin: 0 0 30px; }
.qa h3 {
  font: 600 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.qa p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.qa p + p { margin-top: 8px; }

/* ── Guides teaser ──────────────────────────────────────────────────────── */

.reads { display: grid; gap: 14px; }
@media (min-width: 800px) { .reads { grid-template-columns: repeat(2, 1fr); } }
.read {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 22px; border-radius: 18px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.read:hover { border-color: var(--accent); transform: translateY(-2px); }
.read .no { font: 500 13px/1 var(--mono); color: var(--accent); border: 1px solid var(--border-strong); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; }
.read b { display: block; font: 700 22px/1.2 var(--cond); }
.read span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ── Closing call ───────────────────────────────────────────────────────── */

.closing { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--divider); }
.closing-bg { position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(64%, 1000px); }
.closing-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.closing-bg::after {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(22, 19, 15, 0) 45%),
    linear-gradient(180deg, var(--bg) 0%, rgba(22, 19, 15, 0) 25%),
    linear-gradient(0deg, var(--bg) 0%, rgba(22, 19, 15, 0) 25%);
}
.closing-in { padding-top: 120px; padding-bottom: 120px; }
.closing h2 { font-size: clamp(46px, 7vw, 88px); line-height: 0.95; max-width: 8em; }
.closing .lede { margin-top: 22px; color: var(--muted); max-width: 30em; font-size: 19px; }
@media (max-width: 979px) { .closing-bg { width: 100%; opacity: 0.25; } }

.foot { border-top: 1px solid var(--divider); padding: 36px 0 44px; color: var(--faint); font-size: 14px; }
.foot-in { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: auto 1fr; align-items: start; gap: 40px; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 800px) { .foot nav { justify-content: flex-end; } }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.foot .legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.55; display: grid; gap: 4px; }
.foot .brand { font-size: 19px; }
.foot .brand svg { width: 28px; height: 28px; }

/* ── Documents: privacy, terms, guides ──────────────────────────────────── */

.doc-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.doc { padding: 56px 0 24px; }
.doc .eyebrow { margin-bottom: 18px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); line-height: 0.98; }
.doc .standfirst { margin-top: 20px; font-size: 20px; color: var(--muted); line-height: 1.5; }
.meta { font: 400 14px/1.5 var(--mono); color: var(--faint); margin: 18px 0 36px; }

.summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin: 0 0 8px;
}
.summary ul { margin: 0; padding-left: 20px; }
.summary li + li { margin-top: 6px; }
.summary p + ul, .summary ul + p { margin-top: 10px; }

.doc h2 {
  font: 700 clamp(26px, 3.4vw, 32px)/1.15 var(--cond);
  margin: 52px 0 12px;
}
.doc.legal h2 {
  font: 600 15px/1.4 var(--cond); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 44px 0 10px;
}
.doc h3 { font: 700 21px/1.25 var(--cond); margin: 30px 0 8px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li + li { margin-top: 6px; }
.doc code { font-family: var(--mono); font-size: 0.88em; color: var(--muted); }
.doc strong { font-weight: 600; }
.doc .muted { color: var(--muted); }
.doc figure { margin: 28px 0; }
.doc figure .phone { max-width: 280px; margin: 0 auto; }
.doc figcaption { margin-top: 14px; text-align: center; font: 400 13px/1.5 var(--mono); color: var(--faint); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
.doc th { font: 500 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.table-scroll { overflow-x: auto; }
.callout { border-left: 3px solid var(--accent); background: var(--sunken); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; margin-top: 18px !important; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); font: 500 15px/1 var(--mono);
}
.toc { border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin: 0 0 12px; }
.toc p { font: 500 12px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.toc ol { margin: 0; }
.crumbs { font: 400 13px/1.5 var(--mono); color: var(--faint); }
.crumbs a { color: var(--muted); }
.doc-cta {
  margin: 48px 0 0; padding: 28px; border-radius: 20px;
  background: linear-gradient(165deg, #2b1f12, var(--surface) 60%); border: 1px solid #5a3f22;
}
.doc-cta h2 { margin: 0 0 8px !important; }
.doc-cta p { color: var(--muted); }
.doc-cta .btn { margin-top: 8px; }
.doc-cta .badges { margin-top: 14px; }

.doc .reads { margin-top: 36px; }

/* 404 */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px var(--gutter); }
.lost .eyebrow { margin-bottom: 14px; }
.lost svg { width: 140px; height: 140px; margin: 0 auto 28px; }
.lost h1 { font-size: clamp(48px, 9vw, 88px); }
.lost p { margin-top: 16px; color: var(--muted); font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .read { transition: none; }
}
