
/* ============================================================
   Direction v4 — Linear's design system (see popular-web-designs)
   Darkness as the medium; luminance carries depth, not shadows.
   One chromatic colour, reserved for interaction.
   ============================================================ */
:root {
  --ground: #08090a;
  --ground-2: #0f1011;
  --ground-3: #191a1b;
  --bg: #08090a;
  --bg-alt: #0f1011;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.04);
  --text: #f7f8f8;
  --text-muted: #d0d6e0;
  --text-subtle: #8a8f98;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #7170ff;
  --accent-text: #828fff;
  --accent-soft: rgba(113, 112, 255, 0.14);
  --accent-softer: rgba(113, 112, 255, 0.06);
  --btn-bg: #4b55b0;
  --btn-bg-hover: #5e6ad2;
  --btn-text: #ffffff;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-display: clamp(2.5rem, 1.2rem + 4.4vw, 4.5rem);
  --step-head: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.5vw, 1.1875rem);
}

body {
  background: var(--ground);
  color: var(--text);
  font-feature-settings: "cv01", "ss03";
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .h1, .h2 {
  font-weight: 510;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
h1 { letter-spacing: -0.042em; }
h3, h4, .cap h3 { font-weight: 590; letter-spacing: -0.018em; }
.lead { color: var(--text-subtle); font-weight: 400; letter-spacing: -0.014em; }

/* buttons: the brand colour is for action, never decoration */
.btn { border-radius: 6px; font-weight: 510; letter-spacing: -0.011em; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: #e2e4e7;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); }

/* surfaces step up in luminance instead of casting shadows */
.cap, .play, .strat-panel, .panel, .table-card, .plan, .mock {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border); /* taste-skill-ignore */
  border-radius: 12px;
}
.btn-secondary { box-shadow: none; }
/* a long display headline in a narrow column wraps to four lines */
#search .section-head h2, .section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); max-width: 22ch; }
.cap, .play { padding: 24px; }
.strat-panel { padding: 26px 24px 22px; }

.strat-list li, .search-row, .trust-grid > div { border-color: rgba(255, 255, 255, 0.06); /* taste-skill-ignore */ }
.strat-n { color: var(--text-subtle); }
.strat-link { color: var(--accent-text); text-decoration: none; font-weight: 510; }
.strat-link:hover { color: #a5a4ff; text-decoration: underline; text-underline-offset: 3px; }

/* inputs */
.search-input, .county-select, input, select, textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border); /* taste-skill-ignore */
  border-radius: 6px;
  color: var(--text);
}
.search-input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.chip { border-radius: 9999px; border-color: var(--border); color: var(--text-muted); }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* navigation: quiet, one accent on the CTA */
.site-header {
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); /* taste-skill-ignore */
}
.nav a { color: var(--text-muted); font-weight: 510; font-size: 0.875rem; }
.nav a:hover { color: var(--text); }

/* section rhythm: 80px, no dividers — the darkness separates */
.section { padding-block: clamp(56px, 6vw, 88px); }
.section-tight { padding-block: clamp(36px, 4vw, 56px); }

/* a photograph sits like a panel, not a poster */
.band-photo img { border-radius: 12px; filter: saturate(0.7) contrast(1.05) brightness(0.92); }
.band-photo figcaption { color: var(--text-subtle); font-size: 0.8125rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); /* taste-skill-ignore */ color: var(--text-subtle); }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.01em; color: var(--text-muted); font-weight: 510; }
.site-footer a { color: var(--text-subtle); }
.site-footer a:hover { color: var(--text); }

/* the skip link has to clear 4.5:1 like everything else */
.skip-link { color: #f7f8f8; background: #191a1b; }
.skip-link:focus { color: #ffffff; }

/* on a phone the headline has to leave room for the sentence under it */
@media (max-width: 640px) {
  :root { --step-display: clamp(2rem, 1.4rem + 3vw, 2.75rem); }
  .steps-line { font-size: 1rem; margin: 10px 0 14px; }
  .split-main > .lead { font-size: 1rem; line-height: 1.5; }
}

/* the note under the county facts */
.facts-note { font-size: 0.8125rem; line-height: 1.5; color: var(--text-subtle); margin: 12px 0 0; max-width: 58ch; }

/* log in from the header, in an overlay */
.nav-login {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 510;
  padding: 7px 12px; border-radius: 6px; border: 1px solid var(--border);
  margin-right: 10px; text-decoration: none;
}
.nav-login:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; }

body.login-open { overflow: hidden; }
.login-veil {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); padding: 20px;
}
.login-box {
  position: relative; width: 100%; max-width: 400px;
  background: #0f1011; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 30px 28px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.login-x {
  position: absolute; top: 10px; right: 12px; background: none; border: 0;
  color: #8a8f98; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.login-x:hover { color: #f7f8f8; }
.login-brand { font-weight: 590; letter-spacing: -0.03em; font-size: 15px; margin: 0 0 16px; color: #f7f8f8; }
.login-brand span { color: #7170ff; }
.login-box h2 { font-size: 22px; margin: 0 0 4px; font-weight: 510; letter-spacing: -0.03em; color: #f7f8f8; }
.login-sub { color: #8a8f98; font-size: 13.5px; margin: 0 0 20px; }
.login-form label { display: block; font-size: 12.5px; color: #d0d6e0; margin: 12px 0 6px; font-weight: 510; }
.login-form input {
  width: 100%; padding: 11px 12px; border-radius: 8px; font: inherit;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: #f7f8f8;
}
.login-form input:focus { outline: none; border-color: #7170ff; }
.login-go {
  width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 8px;
  background: #4b55b0; color: #fff; font: inherit; font-weight: 510; cursor: pointer;
}
.login-go:hover { background: #5e6ad2; }
.login-go[disabled] { opacity: 0.7; cursor: default; }
.login-err {
  margin: 12px 0 0; font-size: 12.5px; color: #ffb3b3;
  background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3);
  border-radius: 8px; padding: 8px 10px;
}
.login-note { color: #62666d; font-size: 11.5px; line-height: 1.5; margin: 16px 0 0; }
@media (max-width: 720px) {
  .nav-login { display: none; }
}

/* a limit stated where the claim is made, not buried in the terms */
.cap-limit {
  color: var(--text-subtle); font-size: 13px; line-height: 1.55;
  margin: 14px 0 0; max-width: 52ch;
  padding-left: 12px; border-left: 2px solid var(--border-strong);
}

/* reports: a grid of short claims, not cards of equal weight */
.report-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px; margin: 34px 0 26px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--border);
}
.report-part { background: var(--bg); padding: 26px 24px; }
.report-part h3 { font-size: 1rem; margin: 0 0 10px; color: var(--text); letter-spacing: -0.01em; }
.report-part p { margin: 0; color: var(--text-subtle); font-size: 14px; line-height: 1.6; }
.report-note {
  color: var(--text-subtle); font-size: 13.5px; line-height: 1.65; max-width: 78ch;
  margin: 0 0 26px; padding-left: 14px; border-left: 2px solid var(--border-strong);
}

/* the pipeline, in the order it actually runs */
.report-flow {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
}
.report-flow li {
  position: relative; padding: 16px 16px 16px 44px; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-subtle); font-size: 13px; line-height: 1.5;
}
.report-flow .n {
  position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  color: var(--accent-text); background: var(--accent-softer); border: 1px solid var(--border-strong);
}
.report-flow b { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; font-size: 13.5px; }
