/* KernelPanic — Signal Red identity (2026-08-30)
   Light default, dark via [data-theme="dark"] on <html>. */

:root {
  --bg: #faf8f4;
  --ink: #16130f;
  --muted: #6b645a;
  --line: #16130f;
  --card: #ffffff;
  --accent: #d92d20;
  --accent-contrast: #ffffff;
  --flip-bg: #16130f;
  --flip-text: #faf8f4;
  --flip-muted: #a29a90;
  --flip-accent: #ff6f61;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Archivo Black", "Archivo", system-ui, sans-serif;
}
[data-theme="dark"] {
  --bg: #141210;
  --ink: #f2ede6;
  --muted: #a39b90;
  --line: #f2ede6;
  --card: #1d1a17;
  --accent: #f0483c;
  --accent-contrast: #ffffff;
  --flip-bg: #060505;
  --flip-text: #f2ede6;
  --flip-muted: #a39b90;
  --flip-accent: #ff6f61;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-contrast); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 10px 14px; font-family: var(--mono);
}
.skip-link:focus { top: 16px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.site-header .bar {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-family: var(--mono); font-weight: 600; font-size: 18px; letter-spacing: -0.5px; }
.brand em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink);
  padding: 6px 10px; cursor: pointer; font: inherit;
}
.theme-toggle svg { display: block; }
.theme-toggle .sun { stroke: var(--ink); }
.theme-toggle .moon { stroke: var(--muted); }
[data-theme="dark"] .theme-toggle .sun { stroke: var(--muted); }
[data-theme="dark"] .theme-toggle .moon { stroke: var(--ink); }
.btn {
  display: inline-block; padding: 14px 26px;
  font-weight: 700; font-size: 16px; line-height: 1;
  border: 2px solid var(--line); background: transparent; color: var(--ink);
}
.btn:hover { background: var(--line); color: var(--bg); }
.btn-solid { background: var(--flip-bg); color: var(--flip-text); border-color: var(--flip-bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-accent {
  background: var(--accent); color: var(--accent-contrast); border-color: var(--accent);
  font-family: var(--mono); font-weight: 600; font-size: 14px;
}
.btn-accent:hover { background: var(--flip-bg); border-color: var(--flip-bg); color: var(--flip-text); }

/* hero */
.hero { padding: 72px 0 56px 0; }
.hero h1 {
  margin: 0; font-family: var(--display);
  font-size: clamp(52px, 8.6vw, 124px);
  line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; font-weight: 400;
}
.hero h1 .dot { color: var(--accent); }
.hero .deck {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-top: 40px; flex-wrap: wrap;
}
.hero .deck p { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* stat band */
.stats { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.stats .row {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { padding: 28px 32px; border-right: 2px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.1; }
.stat span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 6px; letter-spacing: 0.02em; }
.stat-accent { background: var(--accent); color: var(--accent-contrast); }
.stat-accent span { color: var(--accent-contrast); opacity: 0.9; }

/* sections */
section { padding: 72px 0; }
.kicker {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.04em; margin-bottom: 18px;
}
h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; text-transform: uppercase;
}
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }

.split { display: flex; gap: 64px; align-items: flex-start; }
.split > div { flex: 1; }
.quote { border-left: 4px solid var(--line); padding-left: 32px; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); font-style: italic; }
.quote cite { display: block; font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 12px; }
.quote p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 20px 0 0 0; }

/* method steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.step { border: 2px solid var(--line); background: var(--card); padding: 26px; }
.step .n { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--accent); }
.step h3 { margin: 10px 0 8px 0; font-size: 19px; font-weight: 700; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.afterfire { margin-top: 28px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 880px; }
.afterfire strong { color: var(--ink); }

/* pricing */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card {
  border: 2px solid var(--line); background: var(--card);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
}
.card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card .price { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 15px; }
.card .price b { font-weight: 600; }
.card-flip { background: var(--flip-bg); border-color: var(--flip-bg); color: var(--flip-text); }
.card-flip h3 { color: var(--flip-text); }
.card-flip h3 small { color: var(--flip-accent); font-size: 0.75em; }
.card-flip p { color: var(--flip-muted); }
[data-theme="dark"] .card-flip { border-color: var(--line); }
.price-note { margin-top: 24px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.price-note b { color: var(--ink); }

/* comparison table */
.compare { border: 2px solid var(--line); background: var(--card); margin-top: 40px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.compare th, .compare td { text-align: left; padding: 14px 24px; border-bottom: 1.5px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 700; font-size: 15px; }
.compare thead .col-retainer { color: var(--accent); }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare tbody td:first-of-type { font-weight: 600; }

/* proof */
.proof-intro { max-width: 880px; }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.story { border: 2px solid var(--line); background: var(--card); padding: 30px; }
.story h3 { margin: 0 0 12px 0; font-size: 20px; font-weight: 700; }
.story p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.story .num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 16px; display: block; }

/* refusals */
.refuse { border-top: 2px solid var(--line); }
.refuse .inner { display: flex; gap: 64px; align-items: flex-start; }
.refuse .inner > div { flex: 1; }
.refuse p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 16px 0 0 0; }

/* footer CTA */
.cta-footer { background: var(--flip-bg); color: var(--flip-text); }
.cta-footer .inner {
  max-width: 1280px; margin: 0 auto; padding: 56px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-footer h2 { color: var(--flip-text); }
.cta-footer .hours { font-family: var(--mono); font-size: 13px; color: var(--flip-muted); margin-top: 10px; }
footer { border-top: 2px solid var(--line); }
footer .inner {
  max-width: 1280px; margin: 0 auto; padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}

/* responsive */
@media (max-width: 980px) {
  .nav .nav-link { display: none; }
  .stats .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 2px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .stories { grid-template-columns: 1fr; }
  .split, .refuse .inner { flex-direction: column; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header .bar { padding: 14px 20px; }
  .stats .row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 2px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px 0; }
  section { padding: 48px 0; }
  .cta-footer .inner { padding: 40px 20px; }
}

/* language switcher + FAQ (site v3) */
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lang-link { color: var(--muted); }
.lang-link.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }
.lang-link:hover { color: var(--accent); }
.faq-list { margin-top: 40px; border-top: 2px solid var(--line); }
.faq-list details { border-bottom: 2px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 20px 0; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 20px 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 880px; }
.faq-list details a { color: var(--accent); }
