/* ==========================================================================
   SkyRaun design system
   Warm-neutral graphite, one amber ember accent.
   No gradients. No background patterns. Nothing decorative.
   Warmth lives in the neutrals (hue 60, very low chroma), never the canvas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --bg:        oklch(14.5% 0.004 60);
  --bg-2:      oklch(11.5% 0.004 60);
  --surface:   oklch(18% 0.005 60);
  --surface-2: oklch(21.5% 0.006 60);
  --fg:        oklch(96.5% 0.003 60);
  --muted:     oklch(73% 0.006 60);
  --faint:     oklch(60% 0.006 60);
  --border:    color-mix(in oklab, var(--fg) 10%, transparent);
  --border-2:  color-mix(in oklab, var(--fg) 19%, transparent);

  /* the only chromatic brand colour on the page */
  --accent:     oklch(79% 0.145 62);
  --accent-ink: oklch(15% 0.02 60);

  /* semantic — only where state is genuinely being shown */
  --ok:     oklch(80% 0.14 152);
  --warn:   oklch(84% 0.13 88);
  --danger: oklch(70% 0.18 20);

  /* code surfaces: three hues, no rainbow */
  --syn-comment: oklch(54% 0.010 60);
  --syn-string:  oklch(79% 0.10 150);
  --syn-key:     oklch(78% 0.09 22);

  /* real terminal role colours from skyraun.json */
  --term-server: #8dbdff;
  --term-client: #70d097;

  --font-display: 'Charter', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, ui-monospace, Menlo, monospace;
  --font-hand: 'Ink Free', 'Segoe Script', 'Bradley Hand', 'Snell Roundhand', 'Brush Script MT', cursive;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.1vw, 68px); letter-spacing: -0.032em; }
h2 { font-size: clamp(27px, 3.1vw, 42px); letter-spacing: -0.022em; }
h3 { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.012em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.lede { font-size: clamp(17px, 1.3vw, 19.5px); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); }
section { padding: clamp(78px, 9.5vw, 142px) 0; }
.section-head { max-width: 66ch; margin-bottom: clamp(38px, 4.4vw, 64px); }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head h2 + p { margin-top: 20px; }
.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font: 550 15px/1 var(--font-body); letter-spacing: 0.015em;
  border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.1s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--fg)); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn .price { font-family: var(--font-mono); font-size: 14px; opacity: 0.72; }

/* --------------------------------------------------------------------------
   4. RUNE MARK — two separate letterforms, side by side.
   Left:  sowilo  ᛋ  (S of ský)   — a three-segment zigzag, no stave.
   Right: raidho  ᚱ  (R of raun)  — stave + closed bowl + diagonal leg.
   Drawn as paths so no Runic font is required on any platform.
   -------------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-size: 19.5px; letter-spacing: -0.01em; }
.runemark { width: auto; flex: none; }
.runemark path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: square; stroke-linejoin: miter; }
.brand .runemark { height: 23px; color: var(--fg); }

/* --------------------------------------------------------------------------
   4b. RUNE LOADER — ský · cloud / raun · experiment, proof
   Letterforms are drawn paths, so there is no rune font to fail.
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-2);
  display: grid; place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loader[hidden] { display: none; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); padding: 24px; }
.gloss-row { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.gloss-row svg { width: clamp(96px, 13vw, 146px); height: auto; flex: none; }
.rune-stroke {
  fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linecap: square;
  stroke-dasharray: 120; stroke-dashoffset: 120;
  animation: draw 0.62s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.gloss {
  font-family: var(--font-hand);
  font-size: clamp(19px, 2.2vw, 26px);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: write 0.85s ease-out forwards;
}
.gloss em { color: var(--muted); font-style: normal; }
@keyframes write { to { clip-path: inset(0 -2% 0 0); } }
.loader-bar { width: min(340px, 62vw); height: 2px; background: var(--border); overflow: hidden; margin-top: 6px; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent); animation: fill 2.05s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes fill { to { width: 100%; } }
.loader-skip {
  margin-top: 4px; background: none; border: 0; cursor: pointer;
  font: 500 10px/1 var(--font-mono); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}
@media (max-width: 767px) { .gloss { font-size: 17px; white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .gloss { clip-path: none; } }

/* --------------------------------------------------------------------------
   5. HEADER + FOOTER (shared on every page)
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease;
}
.site-head.stuck { border-bottom-color: var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.site-nav { margin-left: auto; display: flex; gap: 24px; }
.site-nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a .free { font: 500 9.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-left: 5px; }
.site-head .btn { min-height: 38px; padding: 0 16px; font-size: 13.5px; }

.site-foot { padding: 44px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 34px; }
.foot-grid .runemark { height: 30px; color: var(--muted); margin-bottom: 16px; }
.foot-grid p { font-size: 14px; color: var(--faint); max-width: 34ch; }
.foot-col h5 { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; font-size: 14.5px; color: var(--muted); text-decoration: none; margin-bottom: 11px; }
.foot-col a:hover { color: var(--fg); }
.foot-rule { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.foot-rule p { font: 400 12.5px/1.6 var(--font-mono); color: var(--faint); }

/* --------------------------------------------------------------------------
   6. SUBPAGE HEADER
   -------------------------------------------------------------------------- */
.subhead { padding: clamp(52px, 6.5vw, 96px) 0 clamp(38px, 4.5vw, 60px); border-bottom: 1px solid var(--border); }
.crumb { display: flex; align-items: center; gap: 9px; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--fg); }
.subhead h1 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 22px; }
.subhead .lede { max-width: 66ch; }
.subhead .meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; border: 1px solid var(--border); color: var(--muted); }
.chip.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chip.ok { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 36%, transparent); }

/* --------------------------------------------------------------------------
   7. PROSE — documentation reading view
   -------------------------------------------------------------------------- */
.prose { font-size: 17.5px; line-height: 1.72; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 56px; }
.prose h3 { font-size: 20px; margin-top: 40px; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }
.prose p { color: var(--muted); max-width: 68ch; }
.prose strong { color: var(--fg); font-weight: 550; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; max-width: 68ch; display: grid; gap: 10px; }
.prose li::marker { color: var(--faint); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; color: var(--fg); background: var(--surface); border: 1px solid var(--border); padding: 2px 6px; border-radius: 2px; }
.prose a.term { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.prose a.term:hover { text-decoration-color: var(--accent); }

.callout { border-left: 2px solid var(--accent); background: var(--surface); padding: 20px 24px; max-width: 68ch; }
.callout p { color: var(--fg); font-size: 17px; max-width: none; }
.callout i { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 11px; font-style: normal; }
.note { border-left: 2px solid var(--border-2); background: var(--surface); padding: 18px 22px; max-width: 68ch; }
.note p { font-size: 15.5px; }

.diagram { border: 1px solid var(--border); background: var(--bg-2); padding: 22px; overflow-x: auto; }
.diagram pre { font: 400 12.5px/1.7 var(--font-mono); color: var(--muted); }
.diagram figcaption { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint); }

/* --------------------------------------------------------------------------
   8. PANELS, CODE, TERMINALS
   -------------------------------------------------------------------------- */
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: 3px; overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.panel-bar .tag { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.panel-bar .tag.live { margin-left: auto; color: var(--muted); }

.editor { background: var(--bg-2); min-width: 0; }
.editor + .terms { border-top: 1px solid var(--border); }
.tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 11px 16px; font: 500 12px/1 var(--font-mono); color: var(--faint); border-right: 1px solid var(--border); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab.on { color: var(--fg); background: var(--surface); box-shadow: inset 0 -1px 0 var(--accent); }
.tab .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); flex: none; }
.code { display: flex; min-width: 0; }
.gutter { padding: 16px 0 16px 16px; display: flex; flex-direction: column; text-align: right; flex: none; }
.gutter span { font: 400 12.5px/1.75 var(--font-mono); color: color-mix(in oklab, var(--faint) 62%, transparent); }
.code pre { padding: 16px 18px; overflow-x: auto; min-width: 0; }
pre { font: 400 12.5px/1.75 var(--font-mono); }
pre .c { color: var(--syn-comment); }
pre .s { color: var(--syn-string); }
pre .k { color: var(--syn-key); }
pre .p { color: var(--faint); }
pre .fail { color: var(--danger); }
pre .pass { color: var(--ok); }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.term { padding: 17px 18px; min-width: 0; }
.term + .term { border-left: 1px solid var(--border); }
.term .thead { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.term .thead::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.term.server .thead { color: var(--term-server); }
.term.client .thead { color: var(--term-client); }
.term pre { color: var(--muted); font-size: 12px; overflow-x: auto; }
.term pre b { color: var(--fg); font-weight: 400; }

/* --------------------------------------------------------------------------
   9. THE LOOP — learn → build → predict → …
   -------------------------------------------------------------------------- */
.loop { display: flex; flex-wrap: wrap; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.loop-step { background: var(--surface); padding: 18px 20px; flex: 1 1 150px; min-width: 0; }
.loop-step i { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; color: var(--faint); margin-bottom: 10px; font-style: normal; }
.loop-step b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.loop-step p { font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   10. MODULE / LESSON TABLES
   -------------------------------------------------------------------------- */
.mods { border-top: 1px solid var(--border-2); }
.mod { display: grid; grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 2fr) 108px; gap: clamp(14px, 2vw, 30px); padding: 16px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.mod .n { font: 500 12px/1.6 var(--font-mono); color: var(--faint); }
.mod .t { font-size: 16px; font-weight: 550; }
.mod .d { font-size: 14.5px; color: var(--muted); }
.pill { justify-self: start; font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--border); color: var(--faint); white-space: nowrap; }
.pill.shipped { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 36%, transparent); }
.pill.building { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 32%, transparent); }

/* expandable module detail */
.mdet { border-bottom: 1px solid var(--border); }
.mdet:first-of-type { border-top: 1px solid var(--border-2); }
.mdet summary { cursor: pointer; list-style: none; padding: 20px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 108px 22px; gap: clamp(12px, 2vw, 26px); align-items: baseline; }
.mdet summary::-webkit-details-marker { display: none; }
.mdet summary .n { font: 500 12px/1.6 var(--font-mono); color: var(--faint); }
.mdet summary .t { font-size: 17px; font-weight: 550; letter-spacing: -0.005em; }
.mdet summary .t span { display: block; font-weight: 400; font-size: 14.5px; color: var(--muted); margin-top: 5px; }
.mdet summary .caret { font-family: var(--font-mono); color: var(--faint); text-align: right; }
.mdet[open] summary .caret { color: var(--fg); }
.mdet .body { padding: 4px 0 30px clamp(0px, 4vw, 60px); display: grid; gap: 22px; }
.mdet .body h4 { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.mdet .body ul { list-style: none; display: grid; gap: 9px; }
.mdet .body li { font-size: 15px; color: var(--muted); padding-left: 16px; position: relative; }
.mdet .body li::before { content: "·"; position: absolute; left: 2px; color: var(--faint); }
.mdet .body .bound { border-left: 2px solid var(--border-2); padding: 14px 18px; background: var(--surface); }
.mdet .body .bound p { font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   11. INCIDENT CARDS (challenges)
   -------------------------------------------------------------------------- */
.inc { border: 1px solid var(--border); background: var(--surface); border-radius: 3px; }
.inc + .inc { margin-top: 18px; }
.inc-head { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.inc-head .id { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.inc-head h3 { margin: 13px 0 0; }
.inc-body { padding: 22px 24px; display: grid; gap: 20px; }
.inc-body .sym { font-size: 15.5px; color: var(--muted); }
.inc-ev { display: grid; gap: 10px; }
.inc-ev .row { display: grid; grid-template-columns: 108px 1fr; gap: 16px; font-size: 14.5px; align-items: baseline; }
.inc-ev .row i { font: 500 10px/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-style: normal; }
.inc-ev .row p { color: var(--muted); }
.inc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inc-actions .btn { min-height: 40px; font-size: 13.5px; padding: 0 18px; }
.inc-answer { border-left: 2px solid var(--ok); background: var(--surface-2); padding: 18px 22px; }
.inc-answer[hidden] { display: none; }
.inc-answer i { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; font-style: normal; }
.inc-answer p { font-size: 15.5px; color: var(--muted); }
.inc-answer p + p { margin-top: 11px; }
.inc-answer b { color: var(--fg); font-weight: 550; }

/* --------------------------------------------------------------------------
   12. NUMBERED STEPS (fulfilment)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.step { background: var(--surface); padding: 26px; }
.step i { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--faint); font-style: normal; }
.step code { display: block; margin: 15px 0 11px; font-family: var(--font-mono); font-size: 14px; word-break: break-all; }
.step p { font-size: 14.5px; color: var(--muted); }
.step h4 { margin: 14px 0 9px; }

.bigsteps { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.bigstep { background: var(--surface); padding: clamp(22px, 2.6vw, 32px); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.bigstep .no { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--faint); line-height: 1; }
.bigstep h3 { margin-bottom: 10px; }
.bigstep p { font-size: 15.5px; color: var(--muted); max-width: 62ch; }
.bigstep p + p { margin-top: 11px; }
.bigstep code { font-family: var(--font-mono); font-size: 14px; background: var(--bg-2); border: 1px solid var(--border); padding: 3px 7px; }
.bigstep .inline-form { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.bigstep input {
  flex: 1 1 240px; min-height: 44px; padding: 0 14px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 3px;
  color: var(--fg); font: 400 15px/1 var(--font-mono);
}
.bigstep input::placeholder { color: var(--faint); }
.bigstep .msg { margin-top: 12px; font-size: 14px; }
.bigstep .msg.ok { color: var(--ok); }
.bigstep .msg.err { color: var(--danger); }

/* --------------------------------------------------------------------------
   13. CARD GRIDS + CHANNELS
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.card { background: var(--surface); padding: clamp(24px, 2.6vw, 32px); }
.card i { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-style: normal; }
.card h3 { margin-bottom: 11px; }
.card p { font-size: 15px; color: var(--muted); }
.card a.more { display: inline-block; margin-top: 16px; font: 500 13px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--border-2); padding-bottom: 3px; }
.card a.more:hover { border-bottom-color: var(--accent); }

.chans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.chan { background: var(--surface); padding: 18px 20px; }
.chan b { display: block; font-family: var(--font-mono); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.chan p { font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. FIT COLUMNS + CTA BLOCK
   -------------------------------------------------------------------------- */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.fit-col { background: var(--surface); padding: clamp(26px, 3vw, 38px); }
.fit-col.no { background: var(--surface-2); }
.fit-col h3 { margin-bottom: 22px; }
.fit-col ul { list-style: none; display: grid; gap: 15px; }
.fit-col li { display: grid; grid-template-columns: 20px 1fr; gap: 13px; font-size: 15.5px; align-items: start; }
.fit-col li svg { width: 15px; height: 15px; margin-top: 5px; }
.fit-col li svg path { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fit-col.yes li svg path { stroke: var(--ok); }
.fit-col.no li svg path { stroke: var(--faint); }
.fit-col.no li { color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.endcap { text-align: center; }
.endcap .runemark { height: 44px; color: var(--muted); margin: 0 auto 30px; display: block; }
.endcap h2 { margin-bottom: 20px; }
.endcap p { color: var(--muted); max-width: 54ch; margin: 0 auto 34px; }
.endcap .cta-row { justify-content: center; }

/* --------------------------------------------------------------------------
   15. RESPONSIVE — 360 / 390 / 430 / 600 / 768 / 1024 / 1440+
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mod { grid-template-columns: 36px minmax(0, 1fr) 100px; }
  .mod .d { grid-column: 2; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .site-head .wrap { height: 58px; gap: 14px; }
  .fit-grid, .terms { grid-template-columns: minmax(0, 1fr); }
  .term + .term { border-left: 0; border-top: 1px solid var(--border); }
  .mod { grid-template-columns: 30px minmax(0, 1fr); }
  .mod .pill { grid-column: 2; }
  .mdet summary { grid-template-columns: 30px minmax(0, 1fr) 22px; }
  .mdet summary .pill { grid-column: 2; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .prose { font-size: 16.5px; }
  .bigstep { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .inc-ev .row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1440px) { .wrap { max-width: 1200px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
