:root {
  --ink: #14213d;
  --muted: #5b6b8c;
  --bg: #f7f8fb;
  --card: #ffffff;
  --accent: #1e7f5c;
  --accent-dark: #14563e;
  --border: #dfe4ee;
  --danger: #C81E1E;
  --danger-dark: #8F1414;
}

* { box-sizing: border-box; }

/* This has bitten us three times now (nav button, self-report-form, entity-vertical door
   buttons): any author rule with >= the same specificity as `[hidden]` (e.g. a class like
   .cta, or an ID selector) wins the display property away from it when hidden is toggled on
   an element that itself carries the class/ID, rather than an ancestor. !important here beats
   any normal-weight author rule regardless of specificity or source order, closing the whole
   bug class at once instead of patching one selector at a time. */
[hidden] { display: none !important; }

.brand-link { color: inherit; text-decoration: none; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-nav-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav-links a:not(.site-nav-help) {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-nav-links a:not(.site-nav-help):hover { color: var(--ink); }

a.site-nav-help {
  background: var(--danger);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}

a.site-nav-help:hover { background: var(--danger-dark); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 560px;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 720px;
}

.sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
}

.cta:hover { background: var(--accent-dark); }

.how { padding: 64px 0; }

h2 {
  font-size: 28px;
  margin: 0 0 32px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps h3 { margin: 0 0 8px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.form-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.form-note {
  color: var(--muted);
  margin: 0 0 24px;
}

#opt-in-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#opt-in-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

#opt-in-form input {
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 400;
}

#opt-in-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#opt-in-form button {
  margin-top: 8px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#opt-in-form button:hover { background: var(--accent-dark); }

#form-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent-dark);
  min-height: 1.2em;
}

footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

footer p { margin: 0 0 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.footer-nav a { font-weight: 600; text-decoration: none; }

.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal .note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 24px;
}
.legal .updated { color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
