/* Deliberately small and framework-free: this page is bundled with no runtime dependencies so
   it loads fast on a phone in a warehouse, which is where a seller actually reads it. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #1a1a17;
  --muted: #5f5d57;
  --line: #e3e0d9;
  --accent: #1f5f4f;
  --accent-ink: #ffffff;
  --warn: #8a5a00;
  --warn-bg: #fdf6e3;
  --bad: #8f2d20;
  --unknown: #6b5a8f;
  --ok: #1f5f4f;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --surface: #1e2024;
    --ink: #eceae5;
    --muted: #a5a29b;
    --line: #33363c;
    --accent: #6fd3b4;
    --accent-ink: #10241e;
    --warn: #e0b050;
    --warn-bg: #2c2415;
    --bad: #e8897c;
    --unknown: #b7a3e0;
    --ok: #6fd3b4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 0 48px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bar, main, .hero, .banner { max-width: 780px; margin-inline: auto; padding-inline: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
}

.site-header .bar,
.site-footer .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 12px;
}

.brand {
  color: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

.banner {
  margin-block: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--warn);
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: var(--radius);
}

.hero { padding-block: 36px 8px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 1.075rem; color: var(--muted); max-width: 62ch; }
.privacy {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

.panel {
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h2 { margin: 0 0 16px; font-size: 1.15rem; letter-spacing: -0.01em; }
.panel h3 { margin: 0 0 8px; font-size: 0.95rem; }
.panel > .step + h2 { margin-top: 0; }
.panel > p:not(.step):not(.hint) { margin: 0 0 12px; }
.panel > p:not(.step):last-child { margin-bottom: 0; }

.nests, .blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nest {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nest-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

fieldset { margin: 0; padding: 0; border: 0; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 0.925rem; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.choice:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-size: 0.875rem; color: var(--muted); }
select { width: 100%; max-width: 380px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }

.drop { padding: 28px 16px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); outline: none; }
.drop p { margin: 0 0 10px; }
input[type="file"] { font: inherit; max-width: 100%; }

.hint { margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); }
.nest > .hint:first-child,
.nest > h3 + .hint { margin-top: 0; }
.error { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.actions { margin: 14px 0 0; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.stat.bad b { color: var(--bad); }
.stat.unknown b { color: var(--unknown); }
.stat.ok b { color: var(--ok); }

.questions { margin: 0; padding: 0; list-style: none; }
.questions li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.questions .count { flex: 0 0 auto; min-width: 5.5ch; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--unknown); }

.diagnostics { margin: 0; padding-left: 20px; font-size: 0.9rem; color: var(--muted); }
.diagnostics li { margin-bottom: 4px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; }
td .pill { display: inline-block; min-width: 2ch; padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pill.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.pill.unknown { background: color-mix(in srgb, var(--unknown) 16%, transparent); color: var(--unknown); }
.pill.zero { color: var(--muted); }

.disclaimer { background: transparent; }
.disclaimer p:not(.step) { margin: 0 0 10px; font-size: 0.9rem; }
.disclaimer p:last-child { margin-bottom: 0; }
code { font-size: 0.85em; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; }

/* Waitlist + call to action */
.cta {
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.cta h3 { margin-top: 0; }
.cta p { margin: 0 0 10px; }
.cta p:last-child { margin-bottom: 0; }
.submit { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.submit:hover { filter: brightness(1.08); }
input[type="email"], input[type="text"] { width: 100%; max-width: 380px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.field { margin-bottom: 14px; }
.nest .field:last-child { margin-bottom: 0; }
.consent { align-items: flex-start; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; }
.consent span { font-size: 0.9rem; line-height: 1.45; }
fieldset[disabled] { opacity: .55; }
/* Honeypot: off-screen for people, present for form-filling bots. Not display:none — some bots
   skip fields hidden that way, and this one has to actually be reachable to do its job. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.eyebrow a { color: inherit; }
