/* ZeroZero: one stylesheet, no external fonts or requests. */

:root {
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --ink: #17150f;
  --muted: #5a5548;
  --line: #ddd6c5;
  --accent: #bf3a17;
  --accent-ink: #ffffff;
  --todo-bg: #fff0a8;
  --todo-ink: #5a4600;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --band-bg: #1b1913;
  --band-ink: #f1ede2;
  --band-muted: #b8b2a1;
  --band-line: #3a362d;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110e;
    --surface: #1a1814;
    --ink: #f1ede2;
    --muted: #b0aa99;
    --line: #302d25;
    --accent: #ff7a55;
    --accent-ink: #17150f;
    --todo-bg: #4a3f00;
    --todo-ink: #ffe680;
  }
}

:root[data-theme="dark"] {
  --bg: #12110e;
  --surface: #1a1814;
  --ink: #f1ede2;
  --muted: #b0aa99;
  --line: #302d25;
  --accent: #ff7a55;
  --accent-ink: #17150f;
  --todo-bg: #4a3f00;
  --todo-ink: #ffe680;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.15rem/1 var(--serif);
  letter-spacing: -0.01em;
}
.mark { width: 40px; height: 24px; flex: none; }
.mark circle { fill: none; stroke-width: 3; }
.mark .a { stroke: var(--ink); }
.mark .b { stroke: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .lang { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; }
.nav .lang:hover { border-color: var(--accent); }

/* Missing company facts on the legal pages */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.88em;
  white-space: normal;
}

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } .hero { padding: 88px 0 80px; } }
.eyebrow {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.25; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin: 22px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }

.idcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.idcard h2 { font-size: 1.05rem; margin-bottom: 14px; }
dl.facts { margin: 0; display: grid; gap: 14px; }
dl.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
dl.facts div:first-child { border-top: 0; padding-top: 0; }
dl.facts dt { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
dl.facts dd { margin: 0; }

/* Sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.band { background: var(--surface); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 10px 0 0; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
section.band .card { background: var(--bg); }
.card p { color: var(--muted); margin: 10px 0 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 14px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 700 0.85rem/1 var(--mono);
  color: var(--accent);
  margin-bottom: 10px;
}
.steps p { color: var(--muted); margin: 8px 0 0; }
.note { font-size: 0.92rem; color: var(--muted); max-width: 46em; }

/* Content pages */
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-top: 16px; }
.prose { max-width: 44rem; padding-bottom: 72px; }
.prose h2 { margin: 40px 0 10px; font-size: 1.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 0.9rem; }

.perm-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.perm-list li { display: grid; gap: 4px 20px; grid-template-columns: 1fr; padding: 14px 18px; margin: 0; border-top: 1px solid var(--line); background: var(--surface); }
.perm-list li:first-child { border-top: 0; }
@media (min-width: 720px) { .perm-list li { grid-template-columns: 17em 1fr; } }
.perm-list code { font: 600 0.88rem/1.5 var(--mono); color: var(--ink); }
.perm-list span { color: var(--muted); }

.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-bottom: 72px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.92rem; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.foot strong { color: var(--ink); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink); }
.legal-note { margin-top: 28px; font-size: 0.82rem; max-width: 60em; }

/* ---- Home v2 ---- */
.hero-grid { align-items: center; }
.hero-art { width: 100%; max-width: 440px; height: auto; justify-self: center; }
.hero-art .o1 { fill: var(--ink); }
.hero-art .o2 { fill: var(--accent); }
.hero-art .lens { fill: var(--bg); }
@media (max-width: 879px) { .hero-art { max-width: 280px; justify-self: start; } .hero { padding-bottom: 40px; } }

.strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.strip li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.strip li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

.who { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.who .card { background: var(--surface); border-top: 4px solid var(--accent); padding: 28px; }
.who .card h3 { font-size: 1.6rem; }

.band-dark { background: var(--band-bg); color: var(--band-ink); border-top: 0 !important; }
.band-dark h2, .band-dark h3 { color: var(--band-ink); }
.band-dark .section-head p, .band-dark p { color: var(--band-muted); }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.trust li { border-top: 1px solid var(--band-line); padding-top: 18px; }
.trust h3 { font-size: 1.15rem; }
.trust p { margin: 8px 0 0; }

.ada-split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .ada-split { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.ada-split .lead { margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 18px; height: 3px; background: var(--accent); border-radius: 2px; }

.cta-band { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 72px 0; }
.cta-band h2 { color: var(--accent-ink); font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.cta-band p { color: var(--accent-ink); margin: 14px auto 0; max-width: 34em; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); margin-top: 12px; }
.cta-band .btn:focus-visible { outline-color: var(--accent-ink); }

/* Four-item grids: 1 column, then 2, then (steps) 4, never 3 + 1 */
.cards.four { grid-template-columns: 1fr; }
.steps.four { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .steps.four { grid-template-columns: repeat(4, 1fr); }
}

/* ---- ADA ADS page ---- */
:root { --band-accent: #ff7a55; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.tags li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-size: 0.88rem; font-weight: 600; }
.diagram { width: 100%; max-width: 460px; height: auto; justify-self: center; }
.diagram .c1 { fill: var(--ink); }
.diagram .c2 { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.diagram .gate { fill: var(--accent); }
.diagram .tick { fill: none; stroke: var(--accent-ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.diagram .line { stroke: var(--muted); stroke-width: 3; fill: none; stroke-linecap: round; }
.diagram .head { fill: var(--muted); }
.diagram text { font: 600 15px var(--sans); fill: var(--ink); text-anchor: middle; }
@media (max-width: 879px) { .diagram { max-width: 360px; justify-self: start; } }

.steps.five { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .steps.five { grid-template-columns: repeat(5, 1fr); } }

.ico { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; display: block; }
.ico circle[r="0.6"] { fill: var(--accent); }

.nevers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 48px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.nevers li { position: relative; padding: 16px 0 16px 38px; border-top: 1px solid var(--band-line); color: var(--band-ink); }
.nevers li::before { content: "\00d7"; position: absolute; left: 2px; top: 10px; font: 700 1.9rem/1 var(--sans); color: var(--band-accent); }

.permgroups { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.pg h3 { font-size: 1.35rem; }
.pg .sub { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 16px; }
.pg ul { list-style: none; padding: 0; margin: 0; }
.pg li { border-top: 1px solid var(--line); padding: 14px 0; }
.pg li:first-child { border-top: 0; padding-top: 0; }
.pg code { display: inline-block; font: 600 0.84rem/1.4 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; overflow-wrap: anywhere; }
.pg li p { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }

.links-h { margin-top: 40px; font-size: 1.1rem; }
.linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; }
.linklist a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none; color: var(--ink); background: var(--bg); }
.linklist a:hover { border-color: var(--accent); }
section.band .meta.note { margin-top: 28px; }

.meaning { border-left: 4px solid var(--accent); padding: 2px 0 2px 16px; margin: 24px 0 0; max-width: 40em; color: var(--muted); }
.meaning strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
