/* theme_03 — Swiss Grid Technical Ledger */
:root {
  --bg: #f4f4f0;
  --surface: #ffffff;
  --ink: #111111;
  --accent: #d9381e;
  --muted: #4b5563;
  --line: #d4d4cc;
  --ok: #1a7f37;
  --warn: #b45309;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .kicker, .module-no, th, .num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; margin: 0.2em 0; font-weight: 700; }
h2 { font-size: 1.15rem; margin: 0 0 0.4em; font-weight: 700; }
h3 { font-size: 0.95rem; margin: 0 0 0.3em; font-weight: 700; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.kicker { color: var(--muted); font-size: 0.75rem; margin: 0 0 0.5em; }
.lede { font-size: 1.05rem; max-width: 62ch; color: var(--ink); }
.muted { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--ink); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; font-size: 1rem; }
.brand-dot { color: var(--accent); }
.site-nav a { margin-left: 1.4em; color: var(--ink); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-nav a:hover { color: var(--accent); }

.disclosure-banner {
  background: var(--ink); color: #f4f4f0; font-size: 0.82rem;
  border-bottom: 2px solid var(--accent);
}
.disclosure-banner a { color: #ffd9d0; }
.disclosure-banner .wrap { padding-top: 8px; padding-bottom: 8px; }

.hero { padding: 64px 20px 40px; }

.section { padding: 32px 20px 8px; }
.section-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 20px; }
.module-no { color: var(--accent); font-size: 0.8rem; }

/* Swiss grid: 12 hairline columns */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; min-width: 0; }
.grid > *:nth-child(12n) { border-right: none; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; }
.c12 { grid-column: span 12; }
@media (max-width: 860px) {
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
}

label.field { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
input[type="number"], input[type="text"], select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--ink); background: var(--bg);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); border-radius: 0;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input.invalid { border-color: var(--accent); background: #fdf0ee; }

.btn {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--ink); background: var(--ink);
  color: #f4f4f0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.score-display { text-align: center; padding: 18px 10px; }
.score-num { font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.verdict-quit-now { color: var(--accent); }
.verdict-plan-exit { color: var(--warn); }
.verdict-watch, .verdict-keep { color: var(--ok); }

.meter { height: 10px; border: 1px solid var(--ink); background: var(--bg); margin: 12px 0; position: relative; }
.meter > i { display: block; height: 100%; background: var(--accent); width: 0%; transition: width 0.3s; }

.comp-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.comp-row .val { font-variant-numeric: tabular-nums; }

svg.chart { width: 100%; height: auto; display: block; }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-label { font-size: 10px; fill: var(--muted); font-family: "Helvetica Neue", Arial, sans-serif; }
.chart-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chart-area { fill: var(--accent); opacity: 0.12; }
.chart-dot { fill: var(--accent); }

.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 0.88rem; }
.checklist input { margin-top: 4px; accent-color: var(--accent); }
.checklist .w { margin-left: auto; color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checklist label.done span.txt { text-decoration: line-through; color: var(--muted); }

.receipt-box { font-family: "Courier New", monospace; font-size: 0.78rem; background: var(--bg); border: 1px solid var(--line); padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.receipt-hash { font-size: 0.72rem; color: var(--muted); word-break: break-all; }

.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.table th { background: var(--ink); color: #f4f4f0; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.preset-card { border: 1px solid var(--line); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.preset-card h3 { font-size: 0.85rem; }
.preset-card p { margin: 0; font-size: 0.82rem; color: var(--muted); flex: 1; }

.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; }
.faq p { margin: 8px 0 4px; color: var(--muted); font-size: 0.9rem; }

.legal-body h2 { margin-top: 1.6em; }
.legal-body p, .legal-body li { max-width: 70ch; }
.prose p, .prose li { max-width: 70ch; }

footer.site-footer { border-top: 1px solid var(--ink); background: var(--surface); margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); }
.footer-grid > div { border-right: 1px solid var(--line); padding: 20px; }
.footer-grid > div:last-child { border-right: none; }
.footer-grid h3 { font-size: 0.75rem; color: var(--muted); }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; font-size: 0.85rem; margin: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-note { font-size: 0.75rem; color: var(--muted); padding: 14px 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid > div { grid-column: span 12 !important; border-right: none; border-bottom: 1px solid var(--line); } }

.notice { border: 1px solid var(--accent); background: #fdf0ee; padding: 12px 14px; font-size: 0.85rem; margin: 14px 0; }
