/* Vibe Code Agent: own design system (SPEC 4). Recursive variable font used three ways: Sans Linear (UI), Mono Casual (code),
   Sans Casual (asides). Square corners, hairlines, IDE-like file panes, margin-note verdicts. */
@font-face {
  font-family: "Rec";
  src: url("fonts/recursive-var.woff2") format("woff2-variations"), url("fonts/recursive-var.woff2") format("woff2");
  font-weight: 300 1000;
  font-style: oblique 0deg 15deg;
  font-display: swap;
}
:root {
  --ink: #0D1F24; --ink-2: #14303A; --ink-3: #24424C; --ink-text: #DCE6E2; --ink-mute: #8FA6A3;
  --paper: #F4F1EA; --paper-2: #ECE7DC; --white: #FFFFFF; --line: #D9D2C4; --line-2: #E8E3D8;
  --text: #1A1D21; --mute: #565D63;
  --go: #FF5A1F; --go-d: #C43A0A; --mint: #BDEBD6; --mint-d: #17694A; --amber: #FFC857; --amber-d: #7A4E00; --brick: #C2412D; --brick-l: #F6DCD5;
  --mono: "MONO" 1, "CASL" 1; --sans: "MONO" 0, "CASL" 0; --casual: "MONO" 0, "CASL" 1;
  --r: 2px;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 "Rec", ui-sans-serif, system-ui, sans-serif; font-variation-settings: var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--go-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
code, kbd, .mono, pre { font-family: "Rec", ui-monospace, monospace; font-variation-settings: var(--mono); }
code { font-size: .9em; background: rgba(13, 31, 36, .07); padding: .05em .35em; border-radius: var(--r); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--go); color: var(--ink); padding: 8px 14px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 30px; height: 30px; }

/* ---------- top bar: IDE file tabs ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--ink-text); border-bottom: 1px solid var(--ink-3); }
.bar-in { display: flex; align-items: stretch; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.mark { width: 34px; height: 34px; }
.brand-word { font-variation-settings: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-word i { font-style: normal; color: var(--go); padding: 0 1px; }
.tabs { display: flex; align-items: stretch; gap: 2px; flex: 1; }
.tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; white-space: nowrap; color: var(--ink-mute); text-decoration: none; border-bottom: 2px solid transparent; font-size: 15px; font-variation-settings: var(--mono); }
.tab .ic { width: 17px; height: 17px; }
.tab em { font-style: normal; opacity: .6; }
.tab:hover { color: #fff; background: var(--ink-2); }
.tab.is-on { color: #fff; border-bottom-color: var(--go); background: var(--ink-2); }
.bar-end { display: flex; align-items: center; gap: 12px; flex: none; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border: 1px solid var(--ink-3); color: var(--ink-text); text-decoration: none; font-size: 13px; border-radius: var(--r); white-space: nowrap; }
.chip b { color: #fff; font-variation-settings: var(--mono); }
.chip-note { color: var(--mint); }
.chip:hover { border-color: var(--go); color: #fff; }
.shelf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--go); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; border-radius: var(--r); }
.shelf-btn:hover, .shelf-btn.is-on { background: #fff; color: var(--ink); }
.dock { display: none; }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn .ic { width: 18px; height: 18px; }
.btn-go { background: var(--go); color: var(--ink); }
.btn-go:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.pagehead .btn-ghost, .hero .btn-ghost, .band-ink .btn-ghost { color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--go); color: var(--ink); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-danger { color: var(--brick); border-color: var(--brick); }
.btn-danger:hover { background: var(--brick); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.tag { display: inline-block; font-variation-settings: var(--mono); font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: var(--r); white-space: nowrap; vertical-align: 2px; }
.tag-mint { background: var(--mint); color: #0F4A33; }
.tag-pass { background: var(--ink); color: #fff; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-variation-settings: var(--mono); font-size: 14px; letter-spacing: .02em; color: var(--mint); }
.eyebrow a { color: inherit; }
.eyebrow-dark { color: var(--go-d); }
.file-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--go); color: var(--ink); border-radius: var(--r); }
.file-ic .ic { width: 18px; height: 18px; }
.fine { font-size: 14px; color: var(--mute); }
.opt { font-weight: 400; color: var(--mute); font-size: 14px; }

/* ---------- hero ---------- */
.hero { background: var(--ink) radial-gradient(1200px 500px at 85% -10%, rgba(255, 90, 31, .16), transparent 60%); color: var(--ink-text); padding: 80px 0 88px; border-bottom: 1px solid var(--ink-3); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.display { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.035em; color: #fff; margin: 0 0 26px; font-weight: 850; }
.hl { color: var(--go); }
.lede { font-size: 20px; line-height: 1.55; max-width: 40em; }
.hero .lede, .pagehead .lede { color: var(--ink-text); }
.hero-price { margin: 22px 0 0; font-size: 15px; color: var(--ink-mute); }
.hero-price b { color: #fff; }

.wiring { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 30px 230px; align-items: center; }
.wiring figcaption { grid-column: 1 / -1; margin-top: 18px; font-size: 14px; color: var(--ink-mute); font-variation-settings: var(--casual); }
.wiring figcaption a { color: var(--mint); }
.bus { align-self: stretch; position: relative; margin: 32px 0; border-right: 2px solid var(--go); }
.bus::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--go); }
.wires { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wire { position: relative; margin-left: 16px; padding: 9px 12px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r); }
.wire::before { content: ""; position: absolute; left: -16px; top: 50%; width: 16px; border-top: 2px solid var(--go); }
.wire b { display: block; color: #fff; font-size: 15px; }
.wire code { background: none; padding: 0; color: var(--mint); font-size: 12.5px; }

/* ---------- panes (files) ---------- */
.pane { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.pane-tab { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-variation-settings: var(--mono); font-size: 14px; }
.pane-tab .path { font-weight: 700; }
.pane-meta { margin-left: auto; color: var(--mute); font-size: 13px; }
.pane-actions { margin-left: auto; display: flex; gap: 6px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; text-decoration: none; }
.act .ic { width: 15px; height: 15px; }
.act:hover { border-color: var(--ink); }
.act.is-done { background: var(--mint); border-color: var(--mint-d); }
.pane-note { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--mute); border-bottom: 1px dashed var(--line); font-variation-settings: var(--casual); }
.code { margin: 0; padding: 14px 0; overflow-x: auto; font-size: 13.5px; line-height: 1.65; background: #FBFAF6; tab-size: 2; }
.code-num { counter-reset: none; }
.ln { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); column-gap: .8em; padding: 0 16px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln::before { content: attr(data-n); display: block; padding-right: 1em; text-align: right; color: #A7A091; border-right: 1px solid var(--line-2); user-select: none; }
.pane-dark { background: #0A191D; border-color: var(--ink-3); }
.pane-dark .pane-tab { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.pane-dark .pane-meta { color: var(--ink-mute); }
.pane-dark .code { background: #0A191D; color: #D5E2DE; font-size: 13px; }
.pane-dark .ln { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.pane-dark .ln::before { color: #3F5D65; border-color: #1C3740; }
.dotrow { display: flex; gap: 5px; }
.dotrow i { width: 9px; height: 9px; background: var(--ink-3); }
.dotrow i:first-child { background: var(--go); }

/* ---------- bands ---------- */
.band { padding: 88px 0; }
.band-tight { padding: 48px 0 72px; }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--ink-text); }
.band-ink .h2 { color: #fff; }
.band-head { max-width: 820px; margin-bottom: 44px; }
.band-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.h1 { font-size: clamp(34px, 4.4vw, 56px); color: #fff; max-width: 22em; margin-bottom: 18px; }
.h2 { font-size: clamp(28px, 3.2vw, 42px); }
.h3 { font-size: 21px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.h4 { font-size: 16px; margin-bottom: 10px; }
.sub { font-size: 18px; color: var(--mute); margin-top: 14px; }
.band-ink .sub { color: var(--ink-mute); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--go); padding-bottom: 2px; }
.more .ic { width: 16px; height: 16px; }
.more:hover { color: var(--go-d); }

.pagehead { background: var(--ink) linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 48px 48px; color: var(--ink-text); padding: 56px 0 50px; border-bottom: 1px solid var(--ink-3); }
.pagehead .alert { margin-top: 18px; max-width: 760px; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; padding: 0; font-variation-settings: var(--mono); font-size: 14px; color: var(--ink-mute); }
.stats b { color: #fff; font-size: 18px; }
.stat-of { opacity: .75; }
.t-add { color: var(--mint) !important; }
.t-del { color: #FF9B7F !important; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.step { padding: 30px 34px 10px 0; }
.step + .step { padding-left: 34px; border-left: 1px solid var(--line); }
.step-n { display: block; font-variation-settings: var(--mono); font-size: 54px; font-weight: 300; color: var(--go-d); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step h3 a { color: var(--ink); text-decoration: none; }
.step p { color: var(--mute); }

/* ---------- review / verdicts ---------- */
.review { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.review-score { position: sticky; top: 96px; border-top: 2px solid var(--ink); padding-top: 22px; }
.score { display: flex; align-items: baseline; gap: 10px; margin: 0; font-variation-settings: var(--mono); }
.score b { font-size: 96px; line-height: .9; font-weight: 300; color: var(--ink); }
.score span { font-size: 26px; color: var(--mute); }
.review-score > p:nth-child(2) { font-size: 18px; margin: 8px 0 22px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.note { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 18px; padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--line); }
.note .verdict { grid-row: 1 / span 2; align-self: start; }
.note-text { margin: 0; font-weight: 600; font-variation-settings: var(--mono); font-size: 15px; }
.note-why { margin: 0; font-size: 14.5px; color: var(--mute); font-variation-settings: var(--casual); }
.note-checkable { border-left-color: var(--mint-d); }
.note-unclear { border-left-color: var(--amber); }
.note-vague { border-left-color: var(--brick); background: #FBEFEA; }
.verdict { display: inline-block; font-variation-settings: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: var(--r); text-align: center; }
.note-checkable .verdict, .v-checkable { background: var(--mint); color: #0F4A33; }
.note-unclear .verdict, .v-unclear { background: var(--amber); color: #4A3000; }
.note-vague .verdict, .v-vague { background: var(--brick); color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.grid-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid-table th, .grid-table td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); }
.grid-table thead th { font-variation-settings: var(--mono); font-size: 13px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; padding-top: 14px; }
.grid-table tbody th { font-weight: 800; font-size: 17px; width: 15%; }
.grid-table tbody th span { display: block; font-weight: 400; font-size: 13px; color: var(--mute); font-variation-settings: var(--mono); }
.grid-table .src { display: block; margin-top: 8px; font-size: 13px; color: var(--mute); }
.compare-table td { font-variation-settings: var(--mono); font-size: 14.5px; }
.compare-table tbody th { width: 46%; font-weight: 600; font-size: 16px; }

/* ---------- ship check areas (ink band) ---------- */
.areas { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); }
.area { background: var(--ink); padding: 26px 26px 22px; position: relative; }
.area .ic { color: var(--go); margin-bottom: 14px; }
.area h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.area p { color: var(--ink-mute); font-size: 15px; margin: 0 0 28px; }
.area-n { position: absolute; right: 22px; bottom: 18px; font-variation-settings: var(--mono); font-size: 12px; color: var(--mint); }

/* ---------- plans ---------- */
.preview-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; }
.plan { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 32px; border-radius: var(--r); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.plan-price { margin: 16px 0 4px; font-variation-settings: var(--mono); }
.plan-price b { font-size: 52px; font-weight: 400; letter-spacing: -.03em; }
.plan-price span { font-size: 18px; color: var(--mute); }
.plan-alt { color: var(--mute); }
.plan-pass { background: var(--ink); color: var(--ink-text); border-color: var(--ink); border-top-color: var(--go); }
.plan-pass h3, .plan-pass .plan-price b, .plan-pass .plan-alt b { color: #fff; }
.plan-pass .plan-alt, .plan-pass .plan-price span { color: var(--ink-mute); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan-preview { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--ink-3); font-size: 15px; }
/* home pricing: a price ledger beside a free..pass diff (v1.0.2, review VCA-T5: no card pair) */
.plan-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.ledger { border-top: 4px solid var(--ink); padding-top: 8px; }
.ledger-rows { margin: 0; }
.ledger-rows > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger-rows dt { font-variation-settings: var(--mono); font-size: 14px; color: var(--mute); }
.ledger-rows dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ledger-rows dd b { font-variation-settings: var(--mono); font-size: 40px; font-weight: 400; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.ledger-rows dd span { color: var(--mute); font-size: 15px; }
.ledger-pass dt { color: var(--go-d); font-weight: 700; }
.ledger-pass dd b { font-size: 56px; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 24px; }
.plan-diff .diff { padding: 10px 0; font-size: 14px; line-height: 1.75; font-family: "Rec", ui-monospace, monospace; font-variation-settings: var(--mono); }
.plan-diff .diff .d { padding-left: 2.4em; text-indent: -2.4em; }
.plan-diff .diff .d i { text-indent: 0; font-weight: 700; }
.plan-diff-note { border-top: 1px dashed var(--line); border-bottom: 0; }
@media (max-width: 900px) { .plan-split { grid-template-columns: 1fr; } .ledger-rows > div { grid-template-columns: 7.5em 1fr; } .ledger-pass dd b { font-size: 46px; } }
.ticks { list-style: none; margin: 18px 0 24px; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line-2); font-size: 15.5px; }
.plan-pass .ticks li { border-color: var(--ink-3); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--go); border-bottom: 2px solid var(--go); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-variation-settings: var(--mono); font-size: 24px; color: var(--go-d); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--mute); max-width: 46em; }
.faq .h2 { margin-bottom: 18px; }

/* ---------- tool pages ---------- */
.tool-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.outline { position: sticky; top: 92px; font-size: 15px; }
.outline ol { list-style: none; margin: 0 0 18px; padding: 0; border-left: 2px solid var(--line); }
.outline li a { display: flex; gap: 12px; padding: 7px 12px; color: var(--ink); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.outline li a:hover { border-left-color: var(--go); background: var(--paper); }
.outline li span { font-variation-settings: var(--mono); color: var(--go-d); }
.outline-note { font-size: 13.5px; color: var(--mute); font-variation-settings: var(--casual); background: var(--paper); padding: 12px 14px; border-radius: var(--r); }
.outline-rules .legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; font-size: 14px; color: var(--mute); }
.outline-rules .legend .verdict { margin-bottom: 4px; }
.rule-list { margin-top: 10px; border-top: 1px solid var(--line-2); padding-top: 10px; font-size: 13.5px; }
.rule-list summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.rule-list .words { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rule-list .words li { font-variation-settings: var(--mono); font-size: 12.5px; background: var(--paper); border: 1px solid var(--line); padding: 2px 7px; border-radius: var(--r); }
.pro-note { border-left: 4px solid var(--amber); background: #FFF8E6; padding: 14px 18px; margin: 0 0 24px; border-radius: var(--r); }
.pro-note h2 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.pro-note p { margin: 0; font-size: 15.5px; color: #3A2A00; }
.tool-form { min-width: 0; }
.sect { border: 0; border-top: 2px solid var(--ink); margin: 0 0 40px; padding: 22px 0 0; min-width: 0; }
.sect legend { display: flex; align-items: center; gap: 12px; float: left; width: 100%; font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 16px; padding: 0; }
.sect legend + * { clear: both; }
.sect-n { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: #fff; font-variation-settings: var(--mono); font-size: 15px; font-weight: 600; border-radius: var(--r); }
.sect-help { color: var(--mute); margin-top: -4px; clear: both; }
.field { margin: 0 0 18px; }
.field label, .mini-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
input[type=text], input:not([type]), textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--white); border: 1px solid #BDB5A6; border-radius: var(--r); padding: 11px 13px; }
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
input.mono, textarea.mono { font-size: 15px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 31, .35); }
.has-err input, .has-err textarea { border-color: var(--brick); }
.field-err { color: var(--brick); font-size: 14px; margin: 6px 0 0; font-weight: 600; }
.cmd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.packs { background: var(--paper); padding: 16px; margin-bottom: 20px; border-radius: var(--r); clear: both; }
.packs-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pack-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pack { padding: 7px 11px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; border-radius: var(--r); font-variation-settings: var(--mono); }
.pack:hover, .pack.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.group { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.group-head { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 12px; padding: 14px 14px 10px; cursor: pointer; margin: 0 !important; }
.group-head input { grid-row: 1 / span 2; margin-top: 3px; }
.group-title { font-weight: 800; font-size: 16px; }
.group-note { font-weight: 400; font-size: 14px; color: var(--mute); }
.group:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--go); }
.group-rules summary { cursor: pointer; padding: 0 14px 12px 48px; font-size: 13px; color: var(--go-d); font-variation-settings: var(--mono); }
.group-rules ul { margin: 0; padding: 0 16px 14px 64px; font-size: 14px; color: var(--mute); }
input[type=checkbox], input[type=radio] { accent-color: var(--go-d); width: 18px; height: 18px; }
.targets { display: flex; flex-wrap: wrap; gap: 10px; }
.target { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 600; background: var(--white); }
.target:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }
.form-foot .fine { margin: 0; max-width: 34em; }

/* segmented yes/no/unsure */
.q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.q-text { margin: 0; font-size: 16px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 14px; font-size: 14px; font-weight: 600; font-variation-settings: var(--mono); white-space: nowrap; }
.seg label + label span { border-left: 1px solid var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--go); outline-offset: -3px; }
.seg-y input:checked + span { background: var(--mint-d); color: #fff; }
.seg-n input:checked + span { background: var(--brick); color: #fff; }
.seg-u input:checked + span { background: var(--amber); color: #3A2600; }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); margin: 0 0 16px; border: 1px solid; }
.alert p { margin: 0; }
.alert .ic { margin-top: 2px; }
.alert-brick { background: var(--brick-l); border-color: var(--brick); color: #5C1A0E; }
.alert-amber { background: #FFF3D6; border-color: #E2AE3A; color: #4A3000; }
.alert-mint { background: #E5F6EE; border-color: var(--mint-d); color: #0F4A33; }

/* result layouts */
.files { display: grid; gap: 24px; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 36px 0 18px; }
.next-card { background: var(--paper); border-top: 2px solid var(--ink); padding: 22px; border-radius: var(--r); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.next-card p { color: var(--mute); font-size: 15px; }
.next-card select { margin-bottom: 12px; }
.next-card .btn { margin-top: auto; }
.next-card .btn + .btn { margin-top: 10px; }
.price-at-use { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--text) !important; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.checkpanel { background: var(--paper); padding: 24px; border-top: 2px solid var(--ink); position: sticky; top: 88px; }
.score-dark b { font-size: 72px; }
.score-cap { margin: 4px 0 12px; font-weight: 600; }
.meter { width: 100%; height: 8px; margin: 0 0 18px; }
.m-bg { fill: var(--line); }
.m-fg { fill: var(--mint-d); }
.notes-tight .note { grid-template-columns: 1fr; background: var(--white); }
.notes-tight .note .verdict { grid-row: auto; justify-self: start; }
.warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.warns li { display: flex; gap: 10px; }
.warns .ic { color: var(--amber-d); width: 18px; height: 18px; margin-top: 3px; }

/* sheet */
.sheet-top { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 40px; align-items: center; }
.dial { width: 180px; height: 180px; }
.dial-bg { fill: none; stroke: var(--ink-3); stroke-width: 10; }
.dial-fg { fill: none; stroke: var(--go); stroke-width: 10; stroke-linecap: butt; }
.dial-n { fill: #fff; font: 800 38px "Rec"; font-variation-settings: var(--mono); }
.dial-of { fill: var(--ink-mute); font: 400 14px "Rec"; font-variation-settings: var(--mono); }
.area-bars { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }
.area-bars li { display: grid; grid-template-columns: 22px 1fr 70px auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.area-bars .meter { height: 8px; margin: 0; }
.area-bars b { font-variation-settings: var(--mono); }
.sheet-h { margin-bottom: 20px; }
.gaps { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: gap; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gap { border: 1px solid var(--line); border-top: 3px solid var(--brick); padding: 20px 22px; background: var(--white); border-radius: var(--r); font-size: 15px; }
.gap h3 { font-size: 18px; margin: 10px 0 12px; line-height: 1.3; }
.gap-tag { margin: 0; font-size: 13px; color: var(--mute); font-variation-settings: var(--mono); }
.gap-ref { font-size: 13px; color: var(--mute); margin: 0; }
.pane-prompt { margin-bottom: 8px; }

/* shelf */
.keybox { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #0A191D; border: 1px solid var(--go); padding: 16px; margin: 26px 0 10px; border-radius: var(--r); }
.keybox code { flex: 1 1 320px; background: none; color: var(--mint); font-size: 15px; overflow-wrap: anywhere; }
.pagehead .fine { color: var(--ink-mute); }
.projects { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.project { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.project b { font-size: 18px; }
.project span { color: var(--mute); font-size: 14px; font-variation-settings: var(--mono); }
.project:hover { background: var(--paper); }
.shelf-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.confirm { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.empty { color: var(--mute); }
.shelf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shelf-col { border-top: 2px solid var(--ink); padding-top: 18px; min-width: 0; }
.count { margin-left: auto; font-variation-settings: var(--mono); font-size: 13px; font-weight: 500; color: var(--mute); }
.versions { list-style: none; margin: 0 0 16px; padding: 0; }
.versions li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.versions li > a:not(.act) { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.versions b { display: block; font-size: 15px; }
.versions span { font-size: 13px; color: var(--mute); }
.pick { display: flex; gap: 4px; }
.open-form { display: grid; gap: 10px; margin-top: 26px; max-width: 640px; }
.open-form label { color: #fff; font-weight: 700; }
.diff .d { display: block; padding: 0 16px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .d i { display: inline-block; width: 2.4em; text-align: center; font-style: normal; color: #A7A091; user-select: none; }
.diff .d-add { background: #E2F5EA; }
.diff .d-add i { color: var(--mint-d); }
.diff .d-del { background: #FBE4DE; text-decoration: line-through; text-decoration-color: rgba(194, 65, 45, .5); }
.diff .d-del i { color: var(--brick); }

/* sources, prose */
.sources { margin: 0 0 32px; padding: 0 0 0 1.4em; }
.sources li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.sources li b { display: block; }
.sources li a { display: block; }
.src-url { display: block; font-size: 12.5px; color: var(--mute); overflow-wrap: anywhere; }
.src-date { font-size: 13px; color: var(--mute); }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 8px; }
.prose .h3 { margin-top: 28px; }
.terms-short { margin-top: 40px; }
.guide-notes { margin-top: 48px; }
.guide-table tbody th { width: 12%; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--ink-mute); padding: 60px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-3); }
.brand-foot { margin-bottom: 14px; }
.foot-line { color: #fff; font-weight: 700; font-size: 18px; }
.foot-price b { color: #fff; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-variation-settings: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-text); margin-bottom: 6px; font-weight: 600; }
.foot a { color: var(--ink-text); text-decoration: none; }
.foot a:hover { color: var(--go); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 26px; }
.foot-legal { max-width: 52em; font-size: 13.5px; margin: 0; }
.powered { margin: 0; color: var(--ink-text); }
.powered a { color: #fff; text-decoration: underline; text-decoration-color: var(--go); }
.ver { margin-left: 8px; font-variation-settings: var(--mono); font-size: 12px; opacity: .6; }
.is-error .foot { padding-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .chip-plan { display: none; }
}
@media (max-width: 1240px) {
  .tab { padding: 0 11px; font-size: 14px; }
  .tab .ic { display: none; }
}
@media (max-width: 1100px) {
  .tab { padding: 0 9px; font-size: 13.5px; }
  .tab .ic { display: none; }
  .chip-plan { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .wiring { max-width: 720px; }
}
@media (max-width: 900px) {
  body { padding-bottom: 70px; }
  .tabs { display: none; }
  .bar-in { justify-content: space-between; gap: 12px; min-height: 58px; }
  .shelf-btn { display: none; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); border-top: 1px solid var(--ink-3); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .dock-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--ink-mute); text-decoration: none; font-size: 11.5px; font-weight: 600; border-top: 2px solid transparent; }
  .dock-tab .ic { width: 22px; height: 22px; }
  .dock-tab.is-on { color: #fff; border-top-color: var(--go); }
  .steps, .areas, .next, .shelf-cols, .gaps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .review, .tool-grid, .split, .plans, .cols-2, .sheet-top { grid-template-columns: 1fr; }
  .review-score, .outline, .checkpanel { position: static; }
  .outline ol { display: none; }
  .area-bars { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .band { padding: 60px 0; }
  .band-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand-word { font-size: 15px; }
  .mark { width: 30px; height: 30px; }
  .chip { padding: 5px 8px; font-size: 12px; }
  .chip-note { display: none; }
  .hero { padding: 48px 0 56px; }
  .lede { font-size: 18px; }
  .wiring { grid-template-columns: 1fr; }
  .bus { display: none; }
  .wires { grid-template-columns: 1fr 1fr; margin-top: 14px; }
  .wire::before { display: none; }
  .wire { margin-left: 0; }
  .pagehead { padding: 40px 0 36px; }
  .note { grid-template-columns: 1fr; }
  .note .verdict { grid-row: auto; justify-self: start; }
  .groups, .cmd-grid, .cols-3, .area-bars { grid-template-columns: 1fr; }
  .q { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg label { flex: 1; text-align: center; }
  .grid-table thead { display: none; }
  .grid-table, .grid-table tbody, .grid-table tr, .grid-table th, .grid-table td { display: block; width: auto !important; }
  .grid-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .grid-table th, .grid-table td { border: 0; padding: 4px 0; }
  .grid-table td[data-h]::before { content: attr(data-h); display: block; font-variation-settings: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin-top: 8px; }
  .compare-table td::before { content: none; }
  /* /pricing compare table on phones (v1.0.4): the Free and Shelf Pass column headers stay in view, held under the top
     bar while the table scrolls; each feature takes a full line and its two values sit below it, in the headers' columns */
  .table-wrap:has(> .compare-table) { overflow-x: visible; }
  .compare-table thead { display: block; position: sticky; top: 58px; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
  .compare-table tr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 16px; }
  .compare-table thead tr { padding: 0 0 8px; border-bottom: 0; }
  .compare-table thead th:first-child { position: absolute; width: 1px !important; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table tbody th { grid-column: 1 / -1; }
  .project { grid-template-columns: 22px minmax(0, 1fr) 18px; }
  .project span { grid-column: 2; }
  .dial { width: 140px; height: 140px; }
  .plan { padding: 24px; }
  .score b { font-size: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .bar, .dock, .foot, .next, .skip, .act, .cta-row { display: none !important; }
  body { background: #fff; padding: 0; }
  .pagehead { background: #fff; color: #000; border: 0; padding: 0 0 12px; }
  .pagehead .h1, .pagehead .lede, .eyebrow { color: #000; }
  .dial-n { fill: #000; }
  .band { padding: 12px 0; }
  .gaps { grid-template-columns: 1fr 1fr; }
  .gap { break-inside: avoid; }
}
::placeholder { color: #A39C8E; opacity: 1; }
