/* Layout: one centered column, hero split 55/45 (copy | chart card), alternating section grounds. */
:root {
  color-scheme: light;
  --ground: #f5f6f8;
  --ground-alt: #eceff3;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #47536a;
  --muted: #7a8498;
  --line: #d9dee6;
  --accent: #f2a900;        /* hi-vis amber, fuel-dock signage */
  --accent-ink: #1b1300;
  --line-ok: #2c6fd6;
  --loss: #c4421a;
  --pass: #14803c;
  --band: rgba(15, 27, 45, 0.035);
  --deep: #0f1b2d;          /* the dark "why" band — dark in both themes */
  --deep-ink: #eef2f7;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 12px 32px rgba(15, 27, 45, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0c121c; --ground-alt: #111a27; --surface: #152031;
    --ink: #e9eef5; --ink-2: #b2bccb; --muted: #7f8ba0; --line: #24324a;
    --accent: #f5b72a; --accent-ink: #1b1300; --line-ok: #5d9bf2; --loss: #f0773f; --pass: #34c06b;
    --band: rgba(255, 255, 255, 0.035); --shadow: none; --deep: #05080d; --deep-ink: #e9eef5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0c121c; --ground-alt: #111a27; --surface: #152031;
  --ink: #e9eef5; --ink-2: #b2bccb; --muted: #7f8ba0; --line: #24324a;
  --accent: #f5b72a; --accent-ink: #1b1300; --line-ok: #5d9bf2; --loss: #f0773f; --pass: #34c06b;
  --band: rgba(255, 255, 255, 0.035); --shadow: none; --deep: #05080d; --deep-ink: #e9eef5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 750; margin-bottom: 24px; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.drop { width: 14px; height: 14px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 18%, transparent); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 750; text-decoration: none; border: 2px solid var(--accent); transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn-wide { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 20px; max-width: 58ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

.leak-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow); min-width: 0; }
.leak-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.leak-title { font-weight: 750; }
.leak-sub { font-size: 13px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { color: var(--pass); background: color-mix(in srgb, var(--pass) 12%, transparent); }
.leak-cap { font-size: 15px; color: var(--ink-2); margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.leak-cap strong { color: var(--ink); }

/* Leak chart (SVG generated at build time) */
.lc { display: block; width: 100%; height: auto; font-family: var(--font); }
.lc-band { fill: var(--band); }
.lc-pass { fill: var(--pass); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.lc-tick { fill: var(--muted); font-size: 12.5px; font-family: var(--font-num); }
.lc-zero { stroke: var(--line); stroke-width: 1.5; }
.lc-mark { stroke: var(--loss); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lc-ok { fill: none; stroke: var(--line-ok); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lc-loss { fill: none; stroke: var(--loss); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lc-end { fill: var(--loss); stroke: var(--surface); stroke-width: 2; }
.lc-note { fill: var(--loss); font-size: 14px; font-weight: 750; }

/* Why section: dark band */
.band { background: var(--deep); color: var(--deep-ink); padding: 64px 0; }
.band h2 { color: var(--deep-ink); }
.band p { color: color-mix(in srgb, var(--deep-ink) 78%, transparent); }
.point .big { font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 8px; letter-spacing: -0.02em; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.section { padding: 80px 0; }
.section-alt { background: var(--ground-alt); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-family: var(--font-num); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -20px; height: 2px; background: var(--line); }
.steps p, .features p, .who p { color: var(--ink-2); margin-top: 8px; }

.features > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.more { margin-top: 24px; color: var(--ink-2); }
.more a { font-weight: 700; }

.who > div { border-top: 3px solid var(--accent); padding-top: 16px; }

/* What to send */
.send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.send > div > p { color: var(--ink-2); }
.ticks { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 3px solid var(--pass); border-bottom: 3px solid var(--pass); transform: rotate(-45deg); }
.fields { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; min-width: 0; }
.fields h3 { margin-bottom: 10px; }
.fields table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fields th { text-align: left; font-weight: 700; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.fields td { color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--line); }
.fields tr:last-child th, .fields tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq > * { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-num); color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin-top: 10px; }

/* Contact */
.contact { padding: 72px 0; background: var(--accent); color: var(--accent-ink); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contact h2 { margin-bottom: 12px; }
.contact p { max-width: 52ch; font-size: 18px; }
.sig { margin-top: 16px; font-weight: 750; }
.contact-box { background: #fffdf6; color: #1b1300; border-radius: 14px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 10px 30px rgba(27, 19, 0, 0.18); min-width: 0; }
.contact-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b5a2a; }
.email-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email { font-size: 20px; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.copy { border: 1px solid #d9c99a; background: transparent; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: #1b1300; }
.contact-box .btn { background: #0f1b2d; color: #fff; border-color: #0f1b2d; }

.foot { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--ink-2); }
.foot-note { flex-basis: 100%; }

@media (max-width: 900px) {
  .hero-in, .send, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .grid3, .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps li:not(:last-child)::after { display: none; }
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .section, .band, .contact { padding: 56px 0; }
  .lede { font-size: 17px; }
  .cta-row .btn { width: 100%; }
}
