/* FLØW — foundry black, brand blue, signal-only color.
   Design tokens and chrome are the KØNB1T foundry family (shared with
   KØNTACT's src/styles/main.css): same :root custom properties, type,
   spacing and components, so the foundry reads as one family. */

:root {
  --bg: #05070c;
  --bg-soft: #0a0e16;
  --bg-card: #0d121d;
  --line: #1b2433;
  --text: #e8edf4;
  --muted: #8b94a7;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
  --amber: #f5a623;
  --amber-dim: rgba(245, 166, 35, 0.1);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.08);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-name { font-weight: 700; letter-spacing: 0.12em; font-size: 15px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; display: block; flex: none; }
.brand-name .cyan { color: var(--cyan); }
.nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
.nav a:hover { color: var(--cyan); }
.nav a.active { color: var(--text); }
.lang-toggle {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 10px; font-size: 13px; color: var(--muted);
  background: none; cursor: pointer; font-family: inherit;
  text-decoration: none; line-height: 1.4; margin-left: 18px;
}
.lang-toggle:hover { color: var(--text); border-color: var(--cyan); }

/* Ø mark (foundry glyph) */
.o-mark {
  width: 30px; height: 30px; border: 2px solid var(--cyan); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--cyan); flex: none;
}

/* Hero */
.hero { padding: 56px 0 32px; position: relative; overflow: hidden; }
.hero .kicker, .kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 10px;
}
.hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 12px; font-weight: 700; position: relative; }
.hero h1 .cyan { color: var(--cyan); }
/* .sub: the landing page's explanatory paragraph sits after the product
   cards (Ricky's reorder, 2026-10-23), outside .hero — so the rule is no
   longer hero-scoped. .page-head .sub below still overrides it on the
   inner pages by specificity. */
.sub { color: var(--muted); font-size: 17px; margin: 0 0 28px; max-width: 620px; position: relative; }
.hero-motif {
  position: absolute; right: -30px; top: 10px; width: 340px; height: 220px;
  opacity: 0.4; pointer-events: none;
}
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: 30px; margin: 0 0 8px; }
.page-head .sub { color: var(--muted); font-size: 16px; margin: 0; max-width: 640px; }

/* Buttons + forms */
.btn {
  background: var(--cyan); color: #04222a; border: none; border-radius: var(--radius);
  padding: 13px 22px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-block;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--cyan); border: 1px solid var(--line); }

.calc-form {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 22px 0 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 11px 12px; font-size: 16px;
  font-family: inherit; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--cyan); }
.field select option { background: var(--bg-card); color: var(--text); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.privacy-line { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.error-line { color: var(--amber); font-size: 14px; margin: 0; }
.tool-error { color: var(--amber); font-size: 14px; margin: 12px 0 0; }

/* Results */
.results { margin: 30px 0 10px; }
.results h2 { font-size: 22px; margin: 0 0 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.stat-hero { border-color: var(--cyan); background: linear-gradient(to bottom right, var(--cyan-dim), var(--bg-card) 60%); }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.stat-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-hero .stat-value { font-size: 26px; color: var(--cyan); }

table.breakdown, table.compare {
  width: 100%; border-collapse: collapse; margin: 6px 0 26px; font-size: 14px;
}
table.breakdown th, table.compare th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
table.breakdown td, table.compare td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.line-info td { color: var(--muted); font-size: 13px; }
.line-source { color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
tr.line-total td { font-weight: 700; border-top: 2px solid var(--line); }
tr.line-result td { font-weight: 800; color: var(--cyan); font-size: 15px; border-bottom: none; }
tr.row-selected td { background: var(--cyan-dim); }
.selected-tag {
  font-size: 11px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; margin-left: 6px;
}
.compare-caption { color: var(--muted); font-size: 13px; margin: 0 0 6px; max-width: 640px; }

/* Honesty / limitations */
.honesty { margin: 26px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg-soft); }
.honesty p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.honesty p:last-child { margin-bottom: 0; }

/* Doors (landing) */
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 10px 0 8px; }
.door-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px;
}
.door-card:hover { border-color: var(--cyan); }
.door-card .kicker { margin: 0; }
.door-card h2, .door-card h3 { margin: 0; font-size: 19px; }
.door-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.door-card .btn { align-self: flex-start; margin-top: 10px; }
.tool-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tool-links a { color: var(--cyan); text-decoration: none; font-size: 15px; }
.tool-links a:hover { text-decoration: underline; }
.tool-links span { color: var(--muted); font-size: 13px; display: block; }

.trust { margin: 34px 0 6px; }
.trust h2 { font-size: 19px; margin: 0 0 10px; }
.trust ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

/* Count tool cards */
.tool-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 16px 0;
}
.tool-card h2 { margin: 0 0 4px; font-size: 18px; }
.tool-card .tool-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.tool-card .calc-form { background: none; border: none; padding: 0; margin: 0; }
.tool-result { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.result-main { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.result-stats { margin: 12px 0 4px; }
.worked { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.worked-label { color: var(--cyan); font-weight: 600; }
.worked-text { font-family: ui-monospace, SFMono-Regular, monospace; }
.pp-note { color: var(--muted); font-size: 13px; border-left: 3px solid var(--cyan); padding: 4px 0 4px 12px; margin: 18px 0 0; }
.bridge-card {
  border: 1px solid var(--cyan); background: linear-gradient(to right, var(--cyan-dim), var(--bg-card) 55%);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
}
.bridge-card h2 { margin: 0 0 6px; font-size: 17px; }
.bridge-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* Methodology */
.doc-section { margin: 26px 0; }
.doc-section h2 { font-size: 19px; margin: 0 0 8px; }
.doc-section p, .doc-section li { color: var(--muted); font-size: 15px; }
.doc-section ul { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-section a { color: var(--cyan); }
.verified-stamp {
  display: inline-block; border: 1px solid var(--line); border-radius: 20px;
  padding: 5px 14px; font-size: 13px; color: var(--text); background: var(--bg-soft); margin-top: 6px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; }
.site-footer p { color: var(--muted); font-size: 13px; margin: 4px 0; }
.footer-tagline { color: var(--cyan); font-weight: 700; letter-spacing: 0.12em; font-size: 13px; }

/* Accessibility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--cyan); color: #04222a; padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 27px; }
  .hero-motif { display: none; }
  .nav a { margin-left: 12px; }
  table.breakdown td, table.compare td { padding: 7px 6px; }
  .stat-value { font-size: 18px; }
  .stat-hero .stat-value { font-size: 23px; }
}

@media print {
  .site-header, .site-footer, .calc-form, .skip-link, .form-actions { display: none; }
  body { background: #fff; color: #000; }
  .stat-card, .tool-card { border: 1px solid #999; background: #fff; }
  .stat-label, .worked, td, th { color: #000 !important; }
}
