/* Stack Builder: temporary dark look (owner decision, 2026-09-29).
   To rebrand, change the tokens in :root only. */
:root {
  --bg: #0b0d10;
  --surface: #13161b;
  --surface-2: #1a1e25;
  --border: #272c35;
  --text: #eceef1;
  --muted: #a1a9b4;
  --faint: #6f7783;
  --accent: #d9b56b;
  --accent-ink: #17120a;
  --pass: #63c393;
  --fix: #e38563;
  --focus: #8ab4ff;
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #e9cb8c; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1040px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.wordmark { font-weight: 800; letter-spacing: 0.08em; font-size: 15px; color: var(--text); text-decoration: none; }
.wordmark span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.site-footer p { margin: 0 0 8px; }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 800; }
h2 { font-size: clamp(23px, 4vw, 30px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.faint { color: var(--faint); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 750; font-size: 17px; text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: #e6c47e; color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* Screens (quiz page) */
.screen { padding: 40px 0 24px; }
.screen[hidden] { display: none; }
.hero { padding-top: 56px; }
.hero .btn { margin-top: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.promise-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.promise-list li { padding: 12px 14px 12px 42px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); position: relative; }
.promise-list li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Quiz */
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.question-title { font-size: clamp(24px, 4.6vw, 32px); }
.question-hint { color: var(--muted); margin-bottom: 20px; }
.options { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.option {
  width: 100%; text-align: left; cursor: pointer; padding: 16px 18px; min-height: 58px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.option:hover { border-color: #3a414d; background: var(--surface-2); }
.option[aria-pressed="true"] { border-color: var(--accent); background: #1f1b12; }
.option-label { display: block; font-weight: 650; }
.option-detail { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; min-height: 40px; }

/* Cards and panels */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.panel-accent { border-color: #4a3f25; background: linear-gradient(180deg, #19160f 0%, var(--surface) 70%); }
.profile-name { font-size: clamp(28px, 6vw, 40px); font-weight: 800; margin: 4px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.cost { font-size: 28px; font-weight: 800; }
.cost-note { color: var(--muted); font-size: 14px; margin-top: 4px; }
.x-list, .check-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.x-list li { padding-left: 26px; position: relative; }
.x-list li::before { content: "\00d7"; position: absolute; left: 4px; top: -1px; color: var(--fix); font-weight: 800; font-size: 20px; line-height: 1.3; }
.x-list .why { display: block; color: var(--muted); font-size: 15px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 11px; height: 6px; border-left: 2px solid var(--pass); border-bottom: 2px solid var(--pass); transform: rotate(-45deg); }

/* Form */
.form-row { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1.4fr; } }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"] {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); border: 1px solid var(--border); font: inherit;
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: var(--focus); }
.form-actions { margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
.consent { font-size: 14px; color: var(--muted); margin: 0; }
.form-error { color: var(--fix); font-size: 15px; margin: 8px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Kit page */
.kit-nav { position: sticky; top: 0; z-index: 5; background: rgba(11, 13, 16, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.kit-nav ul { list-style: none; display: flex; gap: 6px; padding: 10px 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
.kit-nav ul::-webkit-scrollbar { display: none; }
.kit-nav a { display: block; white-space: nowrap; padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; border: 1px solid transparent; }
.kit-nav a:hover { color: var(--text); border-color: var(--border); }
.kit-section { padding: 44px 0 8px; scroll-margin-top: 64px; }
.kit-section > .wrap > p.intro { color: var(--muted); }
.callout { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 14px 0; }

.job { margin: 26px 0; }
.job-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 750; margin-bottom: 10px; }
.cards { display: grid; gap: 12px; }
.gap-top { margin-top: 12px; }
@media (min-width: 720px) { .cards-2 { grid-template-columns: 1fr 1fr; } .cards-3 { grid-template-columns: 1fr 1fr 1fr; } }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tool-main { border-color: #4a3f25; }
.tool-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tool-name { font-size: 19px; font-weight: 750; margin: 0; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tag-pick { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.tag-tested { color: #0b1a12; background: var(--pass); border-color: var(--pass); font-weight: 700; }
.tool dl { display: grid; grid-template-columns: 124px 1fr; gap: 6px 12px; margin: 0; font-size: 15px; }
@media (max-width: 460px) { .tool dl { grid-template-columns: 1fr; gap: 2px; } .tool dd { margin-bottom: 8px; } }
.tool dt { color: var(--faint); }
.tool dd { margin: 0; }
.tool .terms { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.tool .terms strong { color: var(--text); }
.tool-foot { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tool-foot a { color: var(--muted); }
.lane-label { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.why-not { margin-top: 12px; padding: 14px 16px; border: 1px solid #4a2c22; background: #1b1310; border-radius: var(--radius-sm); font-size: 15px; }
.why-not h4 { margin: 0 0 6px; font-size: 15px; color: var(--fix); }
.why-not ul { margin: 0; padding-left: 18px; }
.why-not li { margin: 4px 0; }

.flow { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: stage; }
.flow li { counter-increment: stage; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 132px; flex: 1 1 132px; }
.flow li::before { content: counter(stage); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 12px; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 6px; }
.flow .stage { display: block; font-weight: 700; }
.flow .stage-tool { display: block; font-size: 14px; color: var(--muted); }

details.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 0; }
details.step[open] { border-color: #3a414d; }
details.step > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
details.step > summary::-webkit-details-marker { display: none; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); font-weight: 800; }
.step.done .step-num { background: var(--pass); color: #0b1a12; }
.step-title { font-weight: 750; font-size: 18px; flex: 1; }
.step-flag { font-size: 12px; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 3px 9px; font-weight: 700; }
.step-body { padding: 0 18px 18px; }
.step-body h4 { margin: 18px 0 8px; font-size: 16px; }
.step-body ul, .step-body ol { padding-left: 22px; margin: 6px 0 12px; }
.step-body li { margin: 5px 0; }
.done-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.done-row input { width: 22px; height: 22px; accent-color: var(--pass); }

table.sheet { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 14px; }
.table-scroll { overflow-x: auto; }
table.sheet th, table.sheet td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
table.sheet th { background: var(--surface-2); font-weight: 650; }
table.sheet td.blank { height: 38px; }

.prompt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 14px 0; overflow: hidden; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.prompt-head h3 { margin: 0; font-size: 16px; }
.prompt pre { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: #d9dde3; }

.checks { display: grid; gap: 10px; margin: 14px 0; }
.check { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.check-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.check-name { font-weight: 750; }
.toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.toggle button { border: 0; background: transparent; padding: 6px 14px; font-size: 13px; font-weight: 750; cursor: pointer; color: var(--muted); letter-spacing: 0.04em; }
.toggle button[aria-pressed="true"][data-v="pass"] { background: var(--pass); color: #0b1a12; }
.toggle button[aria-pressed="true"][data-v="fix"] { background: var(--fix); color: #1e0d06; }
.check p { margin: 8px 0 0; font-size: 15px; }
.check .fixline { color: var(--muted); }
.check-summary { font-weight: 700; margin-top: 8px; }

.todo { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.todo li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.todo input { flex: none; margin-top: 4px; width: 20px; height: 20px; accent-color: var(--pass); }
.todo label { cursor: pointer; }
.todo .detail { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }

.gate { text-align: left; padding: 60px 0; }

/* ---------- Review round (2026-09-29): result screen, richer cards, landing proof ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid #4a3f25; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
.fit { color: var(--muted); margin: 6px 0 0; }
.fit strong { color: var(--text); }
.result-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.result-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.result-q { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 750; margin: 0 0 4px; }
.result-card .cost { font-size: 26px; }
.result-card p { margin: 0; }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.summary-list li { display: grid; grid-template-columns: 118px 1fr; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .job { color: var(--faint); }
.summary-list a { color: var(--text); text-decoration: none; }
.summary-list a:hover { color: var(--accent); }

.tool-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-job { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.tool-best { margin: -4px 0 0; color: var(--muted); font-size: 15px; }
.tool-why, .tool-skip { margin: 0; font-size: 15px; }
.tool-why strong { color: var(--accent); }
.tool-skip { color: var(--muted); }
.tool-skip strong { color: var(--text); }
.tool-rights { display: grid; gap: 6px; }
.tool-label { font-size: 13px; color: var(--faint); }
.tool-quote { margin: 0; font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge-fit { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 750; }
.badge-verified { color: #9fd8bb; border-color: #2b5541; background: #122019; font-weight: 700; letter-spacing: 0.02em; }
.badge-verified::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.badge-tested { color: #0b1a12; background: var(--pass); border-color: var(--pass); font-weight: 750; }
.chip { justify-self: start; font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--border); }
.chip-allowed { color: #9fd8bb; background: #122019; border-color: #2b5541; }
.chip-owned { color: #a9c4ee; background: #121a26; border-color: #2c3e5c; }
.chip-license { color: var(--text); background: var(--surface-2); }
.chip-na { color: var(--faint); background: transparent; }
.tool-foot { align-items: center; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; color: var(--muted); margin: 8px 0 4px; }

.step-text { flex: 1; display: grid; gap: 2px; }
.step-sub { font-size: 14px; color: var(--muted); font-weight: 400; }

/* Landing: example stack, what you get, included check, proof */
.example { position: relative; margin: 36px 0 8px; background: var(--surface); border: 1px solid #4a3f25; border-radius: var(--radius); padding: 20px; overflow: hidden; }
.example-label { position: absolute; top: 14px; right: 14px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 10px; border-radius: 999px; font-weight: 750; }
.example .profile-name { font-size: 26px; margin: 0 0 4px; }
.example .summary-list { margin-top: 14px; }
.example .blurred { filter: blur(4px); opacity: 0.7; user-select: none; }
.example-caption { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.section-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 750; margin: 36px 0 10px; }
.included { margin: 18px 0; }
.included h3 { margin-bottom: 6px; }
.proof { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .proof { grid-template-columns: 1fr 1fr; } }
.proof li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }
.proof strong { display: block; color: var(--text); }
.proof span { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --border: #ccc; --text: #111; --muted: #444; --faint: #666; --accent: #7a5a12; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .kit-nav, .btn, .link-btn, .toggle, .no-print { display: none !important; }
  details.step { break-inside: avoid; }
  details.step > .step-body { display: block !important; }
  .tool, .prompt, .check { break-inside: avoid; }
  a { color: #111; }
}
