/* ConductData 0.2.0. Theme, type and components are recorded in STYLE_GUIDE.md. */

:root {
  /* Layout: one 1200px column. The hero sits on a sky-to-lavender wash with a halftone fade;
     sections are white with cool-gray cards; one cobalt accent marks actions and selection. */
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --surface: #ffffff;
  --ink: #0c1324;
  --ink-2: #39435a;
  --muted: #5f6980;
  --line: #e2e6ef;
  --line-strong: #c9d1e1;
  --accent: #1557ff;
  --accent-text: #1453f0;
  --accent-soft: #e9efff;
  --accent-line: #b9cbff;
  --on-accent: #ffffff;
  --sky: #d6e4ff;
  --lavender: #e9e3ff;
  --dot: rgb(21 87 255 / 0.17);
  --ok: #0c7a52;
  --ok-soft: #e1f4ea;
  --hint: #8a5300;
  --hint-soft: #fdf0d8;
  --shadow-sm: 0 1px 2px rgb(12 19 36 / 0.06);
  --shadow-md: 0 1px 2px rgb(12 19 36 / 0.04), 0 14px 32px -18px rgb(12 19 36 / 0.22);
  --shadow-accent: 0 10px 24px -10px rgb(21 87 255 / 0.6);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1200px;
  --gutter: 16px;
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d;
    --bg-soft: #0f1628;
    --surface: #141c31;
    --ink: #eef2fb;
    --ink-2: #c5ccdb;
    --muted: #9aa4ba;
    --line: #232d46;
    --line-strong: #34405f;
    --accent: #2f66ff;
    --accent-text: #8eadff;
    --accent-soft: #172552;
    --accent-line: #34509c;
    --on-accent: #ffffff;
    --sky: #0f2253;
    --lavender: #1e1848;
    --dot: rgb(142 173 255 / 0.16);
    --ok: #5fd3a6;
    --ok-soft: #0e2b22;
    --hint: #f2b866;
    --hint-soft: #2d2213;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -18px rgb(0 0 0 / 0.7);
    --shadow-accent: 0 10px 24px -10px rgb(47 102 255 / 0.65);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0f1d;
  --bg-soft: #0f1628;
  --surface: #141c31;
  --ink: #eef2fb;
  --ink-2: #c5ccdb;
  --muted: #9aa4ba;
  --line: #232d46;
  --line-strong: #34405f;
  --accent: #2f66ff;
  --accent-text: #8eadff;
  --accent-soft: #172552;
  --accent-line: #34509c;
  --on-accent: #ffffff;
  --sky: #0f2253;
  --lavender: #1e1848;
  --dot: rgb(142 173 255 / 0.16);
  --ok: #5fd3a6;
  --ok-soft: #0e2b22;
  --hint: #f2b866;
  --hint-soft: #2d2213;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -18px rgb(0 0 0 / 0.7);
  --shadow-accent: 0 10px 24px -10px rgb(47 102 255 / 0.65);
  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; --nav-h: 68px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paints the band behind a phone's status bar so content never scrolls under it. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-top: clamp(56px, 8vw, 112px); }

.section-head { display: grid; gap: 14px; max-width: 720px; }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }

h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
}

@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 160px;
  }
}

@keyframes header-solid {
  to {
    border-bottom-color: var(--line);
    background-color: color-mix(in srgb, var(--bg) 88%, transparent);
  }
}

.nav { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); }

.nav-links { display: none; gap: 2px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .nav { justify-content: space-between; }
  .nav-links { display: flex; }
  .brand { margin-right: 0; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--line-strong); }
.btn-nav { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 112px));
  padding-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52% 64% at 4% 0%, var(--sky), transparent 72%),
    radial-gradient(48% 60% at 98% 0%, var(--lavender), transparent 72%),
    linear-gradient(to bottom, transparent 75%, var(--bg));
}

/* Halftone dots, densest in the band under the actions, fading up and out. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64%;
  z-index: -1;
  background-image: radial-gradient(circle, var(--dot) 1.15px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 24%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 24%, #000 42%, transparent 100%);
}

.hero-inner { display: grid; justify-items: center; gap: 22px; }

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.label-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1 {
  font-size: clamp(2.25rem, 1rem + 5vw, 4.25rem);
  letter-spacing: -0.042em;
  line-height: 1.05;
}
.h1-line { display: block; text-wrap: balance; }

.chip {
  display: inline-grid;
  place-items: center;
  width: 0.86em;
  height: 0.86em;
  margin-inline: 0.02em;
  vertical-align: -0.1em;
  border: 1px solid var(--line);
  border-radius: 0.22em;
  background: var(--surface);
  box-shadow: 0 0.14em 0.32em -0.08em rgb(21 87 255 / 0.45), inset 0 -0.04em 0 var(--line);
  color: var(--accent);
  rotate: -7deg;
}
.chip svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip-b { rotate: 6deg; }
.chip-b svg path:first-child { fill: var(--accent-soft); }

.hero-lead { max-width: 640px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero .btn-primary { box-shadow: var(--shadow-accent); }

.proof { margin-top: clamp(56px, 8vw, 96px); }
.proof-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.proof-list li { display: grid; align-content: start; gap: 6px; padding-inline: 6px; }
.proof-list strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.proof-list span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

@media (min-width: 960px) {
  .proof-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof-list li { padding-inline: 20px; }
  .proof-list li + li { border-left: 1px solid var(--line); }
}

/* Tabs (Modern Web Guidance: tabs, search-hidden-content) */

@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }

.tabs { display: grid; gap: 20px; margin-top: 40px; }
.tabs-center .tablist { justify-self: center; }

.tablist {
  --fade-size: 2.5rem;
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: var(--fade-size);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.tablist::-webkit-scrollbar { display: none; }

/* Fade an edge only while more tabs sit beyond it. Without scroll-driven animations there is no fade:
   a plain 0s animation would pin the start fade on for good. */
@supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
  .tablist {
    mask:
      linear-gradient(#000, #000) no-clip subtract,
      linear-gradient(to right, #000, transparent) 0 0 / var(--fade-start) 100% no-repeat no-clip,
      linear-gradient(to right, transparent, #000) 100% 0 / var(--fade-end) 100% no-repeat no-clip;
    animation: reveal-fade-start linear both, hide-fade-end linear both;
    animation-timeline: scroll(self inline);
    animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  }
}

@keyframes reveal-fade-start { to { --fade-start: var(--fade-size); } }
@keyframes hide-fade-end { from { --fade-end: var(--fade-size); } }

[role="tab"] {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
[role="tab"]:hover { color: var(--ink); }
[role="tab"]:focus-visible { outline-offset: -3px; }
[role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
/* The border gives the selected tab a shape that survives forced-colors mode. */
[role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  pointer-events: none;
}

/* All panels share one grid cell; padding and borders live on the child, never on the panel. */
.panels { display: grid; }
.panels > [role="tabpanel"] { grid-area: 1 / 1; min-width: 0; }
.panels > [role="tabpanel"]:focus-visible { outline-offset: 4px; }

/* Split cards: copy on one side, an example visual on the other */

.card-split {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  padding: 18px 12px 12px;
}
.split-top { display: grid; gap: 10px; }
.split-copy h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); letter-spacing: -0.028em; }
.split-top p { max-width: 46ch; color: var(--ink-2); font-size: 16.5px; }

.ticks, .checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticks li, .checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ticks strong { color: var(--ink); font-weight: 600; }
.ticks li::before, .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after, .checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.2em + 5.5px);
  width: 7px;
  height: 4px;
  border-left: 1.8px solid var(--accent-text);
  border-bottom: 1.8px solid var(--accent-text);
  rotate: -45deg;
}

@media (min-width: 960px) {
  .card-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 520px; padding: 12px; }
  .card-split-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 440px; }
  .card-split-flip .viz { order: -1; }
  .split-copy { padding: 30px 26px 26px; }
}

/* Example visuals */

.viz {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 52px 14px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--surface);
}
.viz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 42% at 50% 60%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 72%),
    radial-gradient(36% 34% at 92% 4%, var(--lavender), transparent 72%),
    radial-gradient(36% 34% at 6% 100%, var(--sky), transparent 72%);
}
.viz-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 960px) { .viz { padding: 56px 32px 28px; } }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.key {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.key-id { background: var(--ok-soft); color: var(--ok); }
.key-hint { background: var(--hint-soft); color: var(--hint); }

/* Clean and match: five source rows on a rail that ends in one record */
.match { position: relative; display: grid; width: 100%; max-width: 440px; padding-left: 24px; }
.match::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: 44px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--accent-line), var(--accent));
}
.match-sources { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.match-sources li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 7px 10px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.match-sources li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}
.match-sources li::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 12px;
  height: 2px;
  margin-top: -1px;
  background: var(--accent-line);
}
.src { color: var(--muted); font-size: 11px; line-height: 1.3; }
.name { color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.match-sources .key { grid-column: 2; grid-row: 1 / span 2; }

.match-result {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow-md);
}
.match-result::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.result-label { color: var(--accent-text); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.match-result strong { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.result-meta { color: var(--muted); font-size: 12.5px; }

/* Standardize: recorded values against standard terms and codes */
.codes {
  width: 100%;
  max-width: 480px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.codes table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.4; }
.codes th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.codes td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.codes tr:last-child td { border-bottom: 0; }
.codes .raw { color: var(--muted); }
.codes .code { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.codes .code span { display: block; color: var(--accent-text); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; }
.formats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.formats > span:first-child { margin-right: 2px; }
@media (min-width: 640px) { .codes th, .codes td { padding-inline: 14px; } }

/* Connect: drive-time areas around one neighborhood, then research and public-context links */
.connect { display: grid; gap: 12px; width: 100%; max-width: 460px; }
.map {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-streets path { fill: none; stroke: var(--surface); stroke-width: 7; stroke-linecap: round; }
.iso { stroke-width: 1.5; }
.iso-20 { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: color-mix(in srgb, var(--accent) 50%, transparent); stroke-dasharray: 5 5; }
.iso-10 { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); }
.origin { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.origin-halo { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.pin-far { border-style: dashed; }
.map-key {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 10.5px;
}
.map-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.map-key .k10 { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.map-key .k20 { margin-left: 4px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

.places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: place;
}
.places li {
  counter-increment: place;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
}
.places li::before {
  content: counter(place);
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}
.places li:last-child::before { border-style: dashed; }
.places b { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.link-rows { display: grid; gap: 8px; margin: 0; }
.link-rows > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 8px; }
.link-rows dt { padding-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.link-rows dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 500;
}

/* Prove: one fact with its source, then the decisions behind it */
.audit { display: grid; gap: 16px; width: 100%; max-width: 440px; }
.fact {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.fact-field { color: var(--muted); font-size: 12px; }
.fact-value { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.fact-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.fact-meta div {
  display: inline-flex;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
}
.fact-meta dt { color: var(--muted); }
.fact-meta dd { margin: 0; color: var(--ink); font-weight: 500; }

.trail { position: relative; display: grid; gap: 11px; margin: 0; padding: 0 0 0 22px; list-style: none; }
.trail::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; border-left: 2px solid var(--line); }
.trail li { position: relative; display: grid; gap: 1px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.trail li::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}
.trail .is-human::before { border-color: var(--ok); background: var(--ok); }
.trail .is-human span { color: var(--ink); font-weight: 500; }
.trail time { color: var(--muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Share and earn: release, study extract, income */
.flow { display: grid; gap: 4px; width: 100%; max-width: 400px; }
.flow-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.flow-card-accent { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.flow-card-accent .pill { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flow-head strong { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.flow-card ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.flow-card li { position: relative; padding-left: 12px; }
.flow-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-line); }
.flow-arrow {
  justify-self: center;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* What makes it different */

.why-grid { display: grid; gap: 12px; margin: 48px 0 0; padding: 0; list-style: none; }
.why-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.why-card:hover { border-color: var(--accent-line); }
.why-card.is-lead { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.why-card h3 { margin-bottom: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.why-card.is-lead h3 { color: var(--accent-text); }
.why-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.icon-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--accent-text);
}
.icon-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 640px) {
  .why-card { gap: 36px; min-height: 220px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .why-grid > * { grid-column: span 2; }
  .why-grid > :nth-child(n + 4) { grid-column: span 3; }
}

/* How it works: a loop diagram beside four steps */

.how-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 960px) { .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }

.viz-loop { padding: 28px 14px; }
.loop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  grid-template-rows: auto 76px auto;
  grid-template-areas:
    "n1 ar n2"
    "au c ad"
    "n4 al n3";
  place-items: center;
  width: 100%;
  max-width: 460px;
}
.loop-node {
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.loop-node[data-node="1"] { grid-area: n1; }
.loop-node[data-node="2"] { grid-area: n2; }
.loop-node[data-node="3"] { grid-area: n3; }
.loop-node[data-node="4"] { grid-area: n4; }
.loop-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.loop-node strong { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.loop-node small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.loop-arrow {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}
.a-right { grid-area: ar; }
.a-down { grid-area: ad; }
.a-left { grid-area: al; }
.a-up { grid-area: au; }
.loop-center { grid-area: c; width: 48px; height: 48px; color: var(--accent); filter: drop-shadow(0 8px 14px rgb(21 87 255 / 0.35)); }
.loop-center svg { display: block; width: 100%; height: 100%; }

.viz-loop[data-step="1"] [data-node="1"],
.viz-loop[data-step="2"] [data-node="2"],
.viz-loop[data-step="3"] [data-node="3"],
.viz-loop[data-step="4"] [data-node="4"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.viz-loop[data-step="1"] [data-node="1"] .loop-num,
.viz-loop[data-step="2"] [data-node="2"] .loop-num,
.viz-loop[data-step="3"] [data-node="3"] .loop-num,
.viz-loop[data-step="4"] [data-node="4"] .loop-num { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.viz-loop[data-step="1"] [data-to="1"],
.viz-loop[data-step="2"] [data-to="2"],
.viz-loop[data-step="3"] [data-to="3"],
.viz-loop[data-step="4"] [data-to="4"] { stroke: var(--accent); }

.steps { position: relative; display: grid; align-content: start; gap: 10px; margin: 0; padding: 0 0 0 22px; list-style: none; }
.steps::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 12px; border-left: 2px solid var(--line); }
.step {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { border-color: var(--line-strong); }
.step[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 24px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.step[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); }
.step-num { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.step-title { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.step-text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.step[aria-pressed="true"] .step-num,
.step[aria-pressed="true"] .step-title { color: var(--accent-text); }

/* Who it's for */

.card-split-flip .split-copy { justify-content: flex-start; gap: 26px; }
.who-block { display: grid; gap: 10px; }
.who-block h4 { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.who-block p { color: var(--ink-2); font-size: 15px; }

.dash, .request {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 400px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dash-head strong { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.dash-head span { color: var(--muted); font-size: 12px; }
.bars { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--ink-2); font-size: 12.5px; }
.bars li::after {
  content: "";
  width: calc(var(--v) * 100%);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--lavender)));
  transform-origin: left;
}
.dash-income {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}
.dash-income strong { color: var(--accent-text); font-size: 12.5px; font-weight: 600; }

.fields { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fields li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
}
.fields li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.fields li.off { background: var(--bg-soft); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.fields li.off::before { border: 1.5px solid var(--line-strong); background: transparent; }
.fields em {
  display: inline-block;
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--hint-soft);
  color: var(--hint);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
.request-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.request-checks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.request-checks span::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  rotate: -45deg;
  translate: 0 -1px;
}

/* Agencies: who owns whom, and who pays whom */
.owners { display: grid; justify-items: center; width: 100%; max-width: 420px; }
.own-node {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.own-top { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.own-links { position: relative; width: 100%; height: 72px; }
.own-links svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.own-links path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.own-edge {
  position: absolute;
  top: 66%;
  translate: -50% -50%;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
/* Centers of the outer columns of .own-row, where the tree's lines drop. */
.own-edge-l { left: calc(100% / 6); }
.own-edge-r { left: calc(500% / 6); }
.own-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; width: 100%; }
.own-row .own-node { justify-self: center; border-color: color-mix(in srgb, var(--hint) 45%, var(--line)); }
.own-pay { display: grid; justify-items: center; color: var(--hint); font-size: 11.5px; font-weight: 600; }
.own-pay svg { width: 100%; max-width: 64px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.own-note {
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hint-soft);
  color: var(--hint);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}

/* Health systems: one screening answer, coded and placed */
.coded {
  display: grid;
  width: 100%;
  max-width: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.coded > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.coded > div:last-child { border-bottom: 0; }
.coded dt { padding-top: 1px; color: var(--muted); font-size: 12px; }
.coded dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.coded code {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Promises */

.promise-grid {
  display: grid;
  gap: 1px;
  margin: 40px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.promise-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
}
.promise-icon { width: 26px; height: 26px; fill: var(--accent-soft); stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise-icon path { fill: none; }
.promise-grid p { color: var(--ink); font-size: 15.5px; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; }

@media (min-width: 640px) {
  .promise-grid li { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; min-height: 168px; padding: 22px; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .promise-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .promise-grid > :last-child { grid-column: auto; }
}

/* Contact */

.section-cta { padding-bottom: clamp(56px, 8vw, 112px); }

.cta {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 16px;
  overflow: hidden;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 90% at 0% 0%, var(--sky), transparent 70%),
    radial-gradient(60% 90% at 100% 100%, var(--lavender), transparent 70%);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--dot) 1.15px, transparent 1.7px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 120%, #000, transparent 70%);
  mask-image: radial-gradient(70% 80% at 50% 120%, #000, transparent 70%);
}
.cta .lead { max-width: 560px; }

.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.email-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 3px 3px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.email { color: var(--ink); font-size: 15px; font-weight: 500; user-select: all; }
.copy {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.copy:hover { background: var(--accent-soft); color: var(--accent-text); }
.copy-status { min-height: 1.5em; color: var(--muted); font-size: 13px; }

/* Footer */

.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { display: grid; gap: 16px; padding-block: 40px 20px; }
.footer-brand p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent-text); text-decoration: underline; }
.legal { color: var(--muted); font-size: 13px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; } }

.wordmark {
  margin-bottom: -0.1em;
  padding-inline: 8px;
  background: linear-gradient(180deg, var(--sky), color-mix(in srgb, var(--lavender) 55%, var(--bg-soft)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(64px, 17vw, 236px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* Motion: opt-in only, and every animation ends in the resting state. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  [role="tabpanel"]:not([hidden]) > * { animation: panel-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  [role="tabpanel"]:not([hidden]) .match-sources li { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.08s + var(--i) * 60ms); }
  [role="tabpanel"]:not([hidden]) .match-result { animation: settle 0.5s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.1) both; }
  [role="tabpanel"]:not([hidden]) .bars li::after { animation: grow 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

@keyframes panel-in { from { opacity: 0.35; translate: 0 8px; } }
@keyframes rise { from { opacity: 0.3; translate: -6px 0; } }
@keyframes settle { from { opacity: 0.4; scale: 0.94; } }
@keyframes grow { from { scale: 0 1; } }
