/* SignalVolt: storm night by default, day mode on request (brand/final/README.md) */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #07081A; --panel: #0C0E24; --line: #1A1C38; --hair: #3A3E6A;
  --text: #F4F6FF; --text-2: #B4B8D6; --text-3: #8E93B8; --label: #C9CCE6;
  --accent: #9D8CFF; --glow: #8B7BFF;
  --btn-bg: #F4F6FF; --btn-text: #07081A; --field-bg: #10122A; --field-line: #23264A;
  --dot: #FFFFFF; --dot-glow: 0 0 0.22em 0.05em #8B7BFF, 0 0 0.6em 0.14em #8B7BFF;
  --point: #FFFFFF; --point-glow: 0 0 9px 2px #8B7BFF, 0 0 20px 4px rgba(139, 123, 255, 0.33);
  --strike: #F4F6FF; --strike-glow: 0 0 10px 1px #8B7BFF;
  --ring: #5A5F8C;
  color-scheme: dark;
}
:root[data-theme="day"] {
  --bg: #FAFAFC; --panel: #FFFFFF; --line: #E6E6EF; --hair: #D5D7E6;
  --text: #0B0B1A; --text-2: #5C5F78; --text-3: #5C5F78; --label: #3E4157;
  --accent: #5B3DF5; --glow: #5B3DF5;
  --btn-bg: #0B0B1A; --btn-text: #FFFFFF; --field-bg: #FFFFFF; --field-line: #DCDDE8;
  --dot: #5B3DF5; --dot-glow: 0 0 0.14em 0.02em rgba(91, 61, 245, 0.45);
  --point: #5B3DF5; --point-glow: 0 0 9px 2px rgba(91, 61, 245, 0.4);
  --strike: #5B3DF5; --strike-glow: 0 0 8px 1px rgba(91, 61, 245, 0.45);
  --ring: #A9ABC2;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Geist", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--label); }
a:hover { color: var(--text); }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--btn-bg); color: var(--btn-text); padding: 8px 12px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.wordmark { position: relative; display: inline-block; font-size: 26px; line-height: 0; height: 1em; width: 4.9588em; }
.wordmark svg { width: 100%; height: 100%; }
.wordmark .ink { fill: var(--text); }
.wordmark .dot { fill: var(--dot); }
.wordmark .glow { position: absolute; left: 15.322%; top: 6.289%; width: 0.1371em; height: 0.1175em; background: var(--dot); box-shadow: var(--dot-glow); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.mode { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--label); cursor: pointer; }
.mode:hover { color: var(--text); border-color: var(--hair); }
.mode .sun { display: none; }
:root[data-theme="day"] .mode .sun { display: block; }
:root[data-theme="day"] .mode .moon { display: none; }

/* type */
.eyebrow { margin: 0 0 18px; font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font-weight: 600; font-size: clamp(38px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -0.04em; }
h1 .hl, h2 .hl { color: var(--accent); }
.lede { margin: 20px 0 0; max-width: 36em; font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); }
h2 { margin: 0 0 10px; font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.03em; }
h3 { margin: 0 0 6px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; color: var(--text-3); }

/* hero + check form */
.hero { padding: clamp(48px, 8vw, 88px) 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.page-head { padding: clamp(40px, 7vw, 72px) 0 8px; max-width: 820px; }
.page-head .lede { margin-left: 0; }
.check { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 680px; padding: 6px; border-radius: 12px; background: var(--field-bg); border: 1px solid var(--field-line); }
.check label { flex: 1 1 150px; min-width: 0; display: flex; }
.check input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.check input::placeholder { color: var(--text-3); }
.check label + label { border-left: 1px solid var(--field-line); }
.check input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.check button, .btn { flex: 0 1 auto; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--btn-bg); color: var(--btn-text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { color: var(--btn-text); opacity: 0.92; }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--hair); }
.btn-line:hover { color: var(--text); border-color: var(--accent); }
.check-note { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.check-msg { margin: 10px 0 0; font-size: 14px; color: var(--accent); }
.check-msg:empty { display: none; }
.check-note a { color: var(--text-3); }

/* doors, facts, closing call */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.door { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.door:hover { color: var(--text); border-color: var(--accent); }
.door b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.door span { display: block; margin-top: 2px; color: var(--text-2); font-size: 15px; }
.door .arrow { flex-shrink: 0; color: var(--accent); font-size: 22px; }
.facts { margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
.facts div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.facts dd { margin: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(56px, 8vw, 96px); padding: 36px clamp(22px, 4vw, 48px); border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.cta-band h2 { margin: 0; }
.qa { max-width: 760px; }
.qa h3 { margin-top: 26px; }
.qa p { color: var(--text-2); }

/* the reading */
.reading { margin-top: clamp(40px, 6vw, 72px); padding: 28px clamp(20px, 3vw, 34px); border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 32px 52px; align-items: center; text-align: left; }
.reading .total { flex: 1 1 280px; min-width: 0; }
.reading .label { margin: 0; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.reading .num { margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; }
.reading .num b { font-weight: 300; font-size: clamp(76px, 9vw, 112px); line-height: 0.9; letter-spacing: -0.05em; }
.reading .num span { font-family: "Geist Mono", monospace; font-weight: 300; font-size: 26px; color: var(--text-3); }
.reading .what { margin: 8px 0 0; font-size: 14px; color: var(--label); }
.scale { position: relative; margin-top: 32px; height: 1px; background: var(--hair); }
.scale .strike { position: absolute; bottom: 0; width: 2px; height: 32px; margin-left: -1px; background: var(--strike); box-shadow: var(--strike-glow); }
.scale .hit { position: absolute; top: -4.5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--point); box-shadow: var(--point-glow); }
.scale-ends { margin: 8px 0 0; display: flex; justify-content: space-between; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--text-3); }
.engines { flex: 2 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.engines li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 72px; align-items: center; gap: 14px; }
.engines .name { color: var(--label); }
.engines .line { position: relative; display: block; height: 1px; background: var(--hair); }
.engines .fill { position: absolute; left: 0; top: 0; height: 1px; background: var(--accent); }
.engines .pt { position: absolute; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--point); box-shadow: var(--point-glow); }
.engines .zero { position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ring); }
.engines .val { font-family: "Geist Mono", monospace; text-align: right; white-space: nowrap; }
.engines .val.none { color: var(--text-3); }
.reading-note { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--text-3); }

/* sections */
.section { padding: clamp(48px, 7vw, 80px) 0 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.step .n { margin: 0 0 12px; font-family: "Geist Mono", monospace; font-size: 12px; color: var(--accent); }
.card { padding: 26px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 44px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--label); background: var(--panel); }
tr:last-child td { border-bottom: 0; }
.us td { background: var(--panel); }
.pledge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: clamp(48px, 7vw, 80px); padding: 40px 0; border-top: 1px solid var(--line); }
.pledge p { margin: 0; max-width: 720px; font-weight: 500; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; letter-spacing: -0.02em; }
.draft { margin: 18px 0; padding: 12px 16px; border-radius: 10px; border: 1px dashed var(--accent); color: var(--text-2); font-size: 14px; }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 40px; padding: 26px 0 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--text-3); }

@media (max-width: 560px) {
  .engines li { grid-template-columns: 76px minmax(0, 1fr) 64px; gap: 10px; }
  .check button { flex: 1 1 100%; }
  .check label + label { border-left: 0; border-top: 1px solid var(--field-line); }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}
