/* Reporun — website styles
   Colours come from the app itself (src/styles.css): #285c46 green, #f8f9f6 paper. */

:root {
  --paper: #f7f6f1;
  --paper-2: #efeee6;
  --card: #ffffff;
  --ink: #16211b;
  --text: #2f3b35;
  --muted: #56635b;
  --line: #dddfd5;
  --line-2: #c9ccc0;
  --green: #285c46;
  --green-dark: #1d4635;
  --green-soft: #e7efe2;
  --sage: #b4d0a6;
  --ok: #2b6e4b;
  --ok-bg: #e4f1e7;
  --warn: #855400;
  --warn-bg: #fbefd6;
  --miss: #a3352a;
  --miss-bg: #fbe6e2;
  --pen: #c2502b;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;

  --fs-xs: 0.8125rem; /* 13 */
  --fs-sm: 0.9375rem; /* 15 */
  --fs-body: 1.125rem; /* 18 */
  --fs-lead: 1.25rem; /* 20 */
  --fs-h3: 1.1875rem; /* 19 */
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 4.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Show operators exactly as typed (>= not ≥) */
* { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "calt" 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--fs-body) / 1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
code, pre, kbd { font-family: var(--mono); }
code { font-size: 0.86em; }
p code, li code, td code, summary code, .step-aside code, h2 code {
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe2c4; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.soft { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Top note ---------- */
.topnote {
  padding: calc(9px + env(safe-area-inset-top, 0px)) var(--gutter) 9px;
  background: var(--green-dark);
  color: #e3ece0;
  font-size: var(--fs-sm);
  text-align: center;
  line-height: 1.5;
}
.topnote a { color: #fff; font-weight: 600; text-underline-offset: 3px; margin-left: 4px; }
.topnote-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: #e0b54d; color: #2a1f00; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; }
.wordmark img { border-radius: 8px; }
.wordmark b { font-weight: 400; }
.wordmark i { font-style: normal; color: #61906b; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.nav-gh:hover { color: var(--ink); background: var(--paper-2); }
@media (max-width: 920px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-gh span { display: none; } .nav-inner { gap: 12px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 9px; border: 1px solid transparent;
  font: 600 var(--fs-sm) / 1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 2px rgba(22, 33, 27, 0.2); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 15px 24px; font-size: 1.0625rem; border-radius: 10px; }
.btn-sm { padding: 9px 14px; }
.os-glyph { display: inline-flex; }
.os-glyph:empty { display: none; }
.os-glyph svg { width: 17px; height: 17px; }
.link-arrow { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.link-arrow:hover { text-decoration-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 104px); max-width: 1000px; }
.kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--green); margin-bottom: 22px; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 15ch; }
h1 .nowrap { position: relative; display: inline-block; }
h1 .serif { font-size: 1.08em; padding-right: 0.06em; }
.squiggle { position: absolute; left: 0; right: 0; bottom: -0.08em; width: 100%; height: 0.28em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--pen); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s 0.6s var(--ease) forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lede { margin-top: 28px; max-width: 40rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }
.hero-fine { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- App preview ---------- */
.preview { position: relative; margin-top: clamp(56px, 8vw, 88px); }
.app {
  position: relative; border-radius: 12px; overflow: hidden; background: #f8f9f6;
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(22, 33, 27, 0.06), 0 12px 24px -8px rgba(22, 33, 27, 0.12), 0 40px 80px -30px rgba(22, 33, 27, 0.25);
  font-size: 14px; line-height: 1.45; color: #25332e;
}
.app-titlebar { position: relative; display: flex; align-items: center; height: 40px; padding: 0 14px; background: #ecede7; border-bottom: 1px solid #dcded5; }
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ec6a5e; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12) inset; }
.lights i:nth-child(2) { background: #f4bf4f; }
.lights i:nth-child(3) { background: #61c554; }
.app-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #6b736d; }
.replay { margin-left: auto; padding: 4px 10px; border: 1px solid #cfd2c8; border-radius: 6px; background: #fff; color: #56635b; font: 500 12.5px var(--sans); cursor: pointer; }
.replay:hover { color: var(--ink); border-color: #9aa39b; }
.app-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 560px; }
.app-side { background: #fff; border-right: 1px solid #e5e9e2; padding: 18px 14px; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 22px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: #25332e; }
.app-brand img { width: 26px; height: 26px; border-radius: 7px; }
.app-brand b { font-weight: 400; }
.app-brand i { font-style: normal; color: #61906b; }
.app-label { padding: 0 8px; margin: 14px 0 8px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em; color: #8a938b; }
.app-label.tight { padding: 0; margin: 0 0 4px; }
.app-nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 2px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: #626c64; }
.app-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app-nav.active { background: #edf3e9; color: var(--green); }
.app-recent { display: flex; align-items: center; gap: 9px; padding: 7px 10px; font-size: 13px; color: #56635b; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: #4c9a6c; }
.dot.warn { background: #d69a2d; }
.dot.miss { background: #cc5745; }

.app-main { position: relative; padding: 22px 26px 26px; min-width: 0; }
.app-url { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; background: #fff; border: 1px solid #dfe3db; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); }
.app-url > svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #8a938b; stroke-width: 1.9; stroke-linecap: round; }
.app-url-text { flex: 1; min-width: 0; font: 14px var(--mono); color: #25332e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 2px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--green); animation: blink 1.05s steps(2) infinite; }
.caret.off { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.app-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform 0.12s, background 0.12s; }
.app-btn.pressed { transform: scale(0.95); background: var(--green-dark); }
.app-btn.ghost { background: #fff; color: #3c4a42; border: 1px solid #d7dbd2; }
.app-sample { margin-top: 12px; font-size: 12.5px; color: #8a6a1f; }

.app-report { margin-top: 18px; opacity: 0; transition: opacity 0.4s; }
.app-report.on { opacity: 1; }
.app-repo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.repo-owner { color: #7a847d; font-size: 15px; }
.repo-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #1f2b26; }
.repo-meta { flex-basis: 100%; font-size: 13px; color: #6e786f; }
.repo-meta code { font-size: 12.5px; color: #3c4a42; }
.readiness { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; background: #fff; border: 1px solid #e5e9e2; border-radius: 10px; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.ring { --p: 0; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#92ad73 calc(var(--p) * 1%), #dce6cf 0); transition: --p 0.6s var(--ease); }
.ring span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; font-size: 15px; font-weight: 700; color: #25332e; }
.ring small { font-size: 11px; color: #8a938b; font-weight: 500; }
.readiness-title { font-size: 16px; font-weight: 650; color: #1f2b26; }
.readiness-sub { font-size: 13px; color: #6e786f; }
.app-tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid #e2e6de; overflow-x: auto; scrollbar-width: none; }
.app-tabs span { flex: none; padding: 9px 12px; font-size: 13px; font-weight: 500; color: #6e786f; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.app-tabs span.on { color: #1f2b26; border-color: var(--green); }
.app-tabs b { margin-left: 4px; padding: 1px 6px; border-radius: 9px; background: #eef0ea; font-size: 11.5px; font-weight: 600; color: #6e786f; }
.app-table-wrap { margin-top: 12px; background: #fff; border: 1px solid #e5e9e2; border-radius: 10px; overflow-x: auto; }
.app-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.app-table th { padding: 10px 14px; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8a938b; border-bottom: 1px solid #edf0ea; white-space: nowrap; }
.app-table td { padding: 11px 14px; border-bottom: 1px solid #f0f2ed; white-space: nowrap; color: #3c4a42; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table td:first-child { font-weight: 600; color: #1f2b26; }
.app-table td code { font-size: 12.5px; padding: 0; border: 0; background: none; color: #3c4a42; }
.app-table tbody tr { animation: rowin 0.35s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.miss { color: var(--miss); background: var(--miss-bg); }

.plan {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4px 20px;
  margin-top: 16px; padding: 16px 18px; background: #fff; border: 1px solid #cfd6ca; border-left: 3px solid var(--green); border-radius: 10px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--ease);
}
.plan.on { opacity: 1; transform: none; }
.plan-head b { display: block; font-size: 16px; color: #1f2b26; }
.plan-head span { font-size: 13px; color: #6e786f; }
.plan-cmd { margin: 12px 0 0; padding: 11px 13px; border-radius: 8px; background: #17231d; color: #e4ede6; font-size: 13.5px; overflow-x: auto; }
.plan-cmd::before { content: '$ '; color: #8fb39f; }
.plan-warn { margin: 0; padding: 10px 12px 10px 28px; border-radius: 8px; background: #fbf6ea; color: #6a4f12; font-size: 12.5px; line-height: 1.5; }
.plan-warn li + li { margin-top: 4px; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.plan-exp { font-size: 12.5px; color: #6e786f; }
.plan-exp b { color: #25332e; font-variant-numeric: tabular-nums; }
.plan-btns { display: flex; gap: 8px; }
@media (max-width: 760px) { .plan { grid-template-columns: 1fr; } .plan-right { margin-top: 12px; } }

/* Handwritten notes around the preview (positioned by main.js) */
.app-frame { position: relative; max-width: 1000px; margin-inline: auto; }
.note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 4px; width: max-content; font: 600 1.35rem/1.12 var(--hand); color: var(--pen); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.note svg { flex: none; width: 56px; height: 32px; overflow: visible; }
.note span { white-space: nowrap; }
.note path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 0.8s var(--ease) 0.2s; }
.note-l { right: calc(100% + 8px); justify-content: flex-end; text-align: right; transform: rotate(-3deg); }
.note-r { left: calc(100% + 8px); transform: rotate(2deg); }
.preview.noted .note.placed { opacity: 1; }
.preview.noted .note.placed path { stroke-dashoffset: 0; }
@media (max-width: 1460px) { .note { display: none; } }
@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
@media (max-width: 600px) {
  .app-main { padding: 16px; }
  .hide-sm { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(96px, 12vw, 152px); }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--green); }
.label span { font: 500 var(--fs-xs) var(--mono); color: var(--muted); padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 4px; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; max-width: 22ch; }
h2 code { font-size: 0.82em; padding: 0.04em 0.3em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.section-lede { margin-top: 18px; max-width: 40rem; font-size: var(--fs-lead); color: var(--text); }
.fine { margin-top: 22px; max-width: 46rem; font-size: var(--fs-sm); color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.col-text > p + p, .col-text h2 + p { margin-top: 18px; }
.col-text p { max-width: 34rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.callout { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 8px 8px 0; max-width: 34rem; }
.callout b { color: var(--ink); }
.callout-warn { border-left-color: #c98d1c; background: #f9f0dc; }

/* Terminal */
.terminal { border-radius: 10px; overflow: hidden; background: #17221c; box-shadow: 0 24px 50px -24px rgba(22, 33, 27, 0.5); }
.terminal-bar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; background: #202d26; }
.terminal-bar > span:last-child { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: #9fb2a6; }
.terminal-body { margin: 0; min-height: 420px; padding: 18px 20px 22px; font-size: 14px; line-height: 1.75; color: #c9d6cd; white-space: pre-wrap; word-break: break-word; }
.terminal-body .p { color: #f2f6f3; }
.terminal-body .p::before { content: '$ '; color: #82c39a; }
.terminal-body .e { color: #ff9b8a; }
.terminal-body .c { color: #e3c178; }
.terminal-body .cur { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: #c9d6cd; animation: blink 1.05s steps(2) infinite; }

/* Steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-n { font: 400 2.6rem/1 var(--serif); color: var(--green); }
.step-body h3 { margin-bottom: 8px; }
.step-body p { max-width: 36rem; }
.step-aside { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.step-aside code { font-size: 0.86rem; white-space: normal; word-break: break-all; }
.warn-text { font-style: normal; font-weight: 600; color: var(--warn); }
@media (max-width: 820px) { .step { grid-template-columns: 44px minmax(0, 1fr); } .step-aside { grid-column: 2; } .step-n { font-size: 2rem; } }

/* Ecosystem table */
.table-scroll { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.eco-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.55; }
.eco-table th, .eco-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.eco-table thead th { background: var(--paper-2); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.eco-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.eco-table tbody tr:last-child > * { border-bottom: 0; }
.eco-table tbody tr:hover > * { background: #fbfbf8; }
.eco-table code { font-size: 0.85rem; }

/* Who */
.who { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.who-item { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.who-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.who-item h3 { margin-bottom: 8px; }
.who-item p { max-width: 30rem; }
@media (max-width: 720px) { .who { grid-template-columns: 1fr; } .who-item { padding-right: 0; } .who-item:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { padding-top: 0; }
.checklist svg { flex: none; width: 24px; height: 24px; margin-top: 2px; padding: 3px; border-radius: 6px; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.checklist b { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 650; }

/* Limits */
.limits { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.limits li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.limits b { color: var(--ink); }
.x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 6px; background: var(--miss-bg); color: var(--miss); font-weight: 700; line-height: 1; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

/* Build log */
.log { margin-top: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: var(--fs-sm); }
.log-ver { font: 600 var(--fs-sm) var(--mono); color: var(--ink); }
.log-head time { color: var(--muted); }
.log-tag { margin-left: auto; padding: 2px 9px; border-radius: 20px; background: var(--warn-bg); color: var(--warn); font-size: var(--fs-xs); font-weight: 600; }
.log-cols { display: grid; grid-template-columns: 1fr 1fr; }
.log-cols > div { padding: 22px 24px 26px; }
.log-cols > div + div { border-left: 1px solid var(--line); }
.log-cols h3 { display: flex; align-items: center; gap: 9px; font-size: 1.0625rem; margin-bottom: 12px; }
.log-cols ul { margin: 0; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.6; }
.log-cols li + li { margin-top: 8px; }
.log-cols li::marker { color: var(--line-2); }
@media (max-width: 760px) { .log-cols { grid-template-columns: 1fr; } .log-cols > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Download cards */
.dl-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; }
.dl { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.dl:hover { border-color: var(--green); box-shadow: 0 6px 20px -12px rgba(40, 92, 70, 0.5); }
.dl-logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--paper-2); }
.dl-logo svg { width: 24px; height: 24px; }
.dl-text { flex: 1; min-width: 0; }
.dl-text h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-text p { font-size: var(--fs-sm); color: var(--muted); }
.dl-yours { display: none; padding: 1px 8px; border-radius: 20px; background: var(--green-soft); color: var(--green); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; }
.dl.recommended { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.dl.recommended .dl-yours { display: inline-block; }
.dl-go { flex: none; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 600; }
.dl.recommended .dl-go { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 700px) { .dl-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 1.5rem/1 var(--sans); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 0 22px; max-width: 42rem; }

/* Closing */
.closing { padding-block: clamp(110px, 14vw, 170px) clamp(90px, 11vw, 130px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.closing h2 { max-width: none; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08; }
.closing .serif { color: var(--green); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-brand p { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); max-width: 22rem; }
.footer-brand .wordmark { font-size: 1.2rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.footer-col h4 { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
kbd { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--card); font-size: 0.9em; color: var(--ink); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Mini terminal */
.shell { position: fixed; z-index: 60; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(500px, calc(100vw - 32px)); border-radius: 10px; overflow: hidden; background: #17221c; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5); font: 14px/1.6 var(--mono); color: #c9d6cd; }
.shell-bar { display: flex; align-items: center; padding: 8px 14px; background: #202d26; font-size: 13px; color: #9fb2a6; }
.shell-x { margin-left: auto; background: none; border: 0; color: #9fb2a6; font-size: 20px; line-height: 1; cursor: pointer; }
.shell-out { max-height: 260px; overflow-y: auto; padding: 12px 14px 2px; white-space: pre-wrap; }
.shell-out .p { color: #f2f6f3; }
.shell-out .h { color: #82c39a; }
.shell-out .e { color: #ff9b8a; }
.shell-in { display: flex; gap: 10px; padding: 6px 14px 14px; color: #82c39a; }
.shell-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #f2f6f3; font: inherit; caret-color: #82c39a; }

/* Reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
