/* ============================================================================
   Construction Brief — modern design system
   Neutral surfaces, refined brand accents, soft depth, fluid type.
   ========================================================================== */

:root {
  /* Neutrals */
  --bg: #f6f7f9;
  --bg-tint: #f1f3f6;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --ink: #10131a;          /* headings / strong */
  --body: #3a4049;         /* body copy */
  --muted: #667085;        /* secondary */
  --faint: #98a1b0;        /* tertiary */
  --line: #eaecf0;         /* hairline */
  --line-strong: #dde1e7;

  /* Near-black panels */
  --night: #12151c;
  --night-2: #1a1e27;
  --night-line: #2b303b;
  --night-text: #c5ccd6;

  /* Brand */
  --red: #e0342c;
  --red-600: #d02b26;
  --red-700: #b21f1c;
  --red-soft: #fdecea;
  --green: #10795a;
  --green-600: #0d6b50;
  --green-700: #0a5540;
  --green-soft: #e6f3ee;

  /* Effects */
  --focus: #2f6bff;
  --ring: 0 0 0 4px rgba(47, 107, 255, .18);
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 6px 16px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .22);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --radius-lg: 24px;
  --control-height: 48px;
  --shell: min(1180px, calc(100% - 48px));
  --ease: cubic-bezier(.4, 0, .2, 1);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 15% -10%, rgba(224, 52, 44, .06), transparent 60%),
    radial-gradient(50% 120% at 100% -20%, rgba(16, 121, 90, .06), transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.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;
}
.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 200;
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff;
  font-weight: 600; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 18px; color: #fff; }
.route-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  height: 3px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), #f37f67 70%, var(--green));
  pointer-events: none;
}
body.is-navigating .route-progress {
  opacity: 1;
  animation: route-progress 1.8s var(--ease) forwards;
}
body.is-navigating { cursor: progress; }
body.is-navigating #main-content { opacity: .72; }
#main-content { transition: opacity 140ms var(--ease); }
@keyframes route-progress {
  0% { transform: scaleX(.05); }
  45% { transform: scaleX(.62); }
  100% { transform: scaleX(.9); }
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
.page-shell { width: var(--shell); margin-inline: auto; }

/* ---------------------------------------------------------------- Header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: var(--shell); margin: 0 auto; padding: 15px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; width: 34px; height: 34px; place-items: center;
  background: linear-gradient(150deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.5px;
  border-radius: 9px; box-shadow: 0 4px 10px -3px rgba(224, 52, 44, .5);
}
.brand-name { font-size: 15px; }

.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a {
  padding: 8px 12px; border-radius: 9px;
  color: var(--body); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.primary-nav a:hover { background: rgba(16, 19, 26, .05); color: var(--ink); }
.primary-nav .nav-cta {
  margin-left: 6px; padding: 9px 16px;
  background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.primary-nav .nav-cta:hover { background: #000; color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center; gap: 5px; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 11px;
  box-shadow: var(--shadow-xs);
}
.nav-toggle-bar {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* --------------------------------------------------------------- Eyebrow -- */
.eyebrow, .kicker, .activity-label, .fact-label, .estimate-label,
.verified-label, .access-label {
  display: inline-block;
  color: var(--red-700);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* ------------------------------------------------------------- Headings --- */
h1, h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 500;
  letter-spacing: -.02em;
}
h1 em, h2 em { color: var(--green); font-style: italic; }

/* ------------------------------------------------------------------ Hero -- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .72fr);
  align-items: center;
  gap: clamp(42px, 6vw, 78px);
  padding: 64px 0 70px;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero .eyebrow, .hero > .eyebrow {
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); box-shadow: var(--shadow-xs); letter-spacing: .06em;
}
.hero h1, .page-hero h1 {
  max-width: 15ch; margin: 22px 0 24px;
  font-size: clamp(46px, 6.6vw, 86px); letter-spacing: -.035em; line-height: 1.02;
}
.hero h1 { max-width: none; font-size: clamp(48px, 4.6vw, 64px); line-height: 1.08; }
.hero h1 em { display: block; }
.lede, .page-hero > p {
  max-width: 60ch; margin: 0;
  color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }
.hero-signup {
  display: flex; width: min(520px, 100%); padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow-md);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hero-signup:focus-within { border-color: color-mix(in srgb, var(--focus) 45%, var(--line-strong)); box-shadow: var(--shadow-md), var(--ring); }
.hero-signup input {
  min-width: 0; flex: 1; height: 44px; padding: 0 14px;
  border: 0; background: transparent; box-shadow: none;
}
.hero-signup input:focus-visible { outline: none; }

/* Primary buttons */
.hero-signup button, .access-form button, .signup button,
.filters .filter-submit, .correction-section button {
  padding: 13px 20px; border: 0; border-radius: 11px;
  background: var(--red); color: #fff; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 6px 14px -6px rgba(224, 52, 44, .6);
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.hero-signup button:hover, .access-form button:hover, .signup button:hover,
.filters .filter-submit:hover, .correction-section button:hover {
  background: var(--red-600); transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(224, 52, 44, .65); color: #fff;
}
.hero-signup button:active, .access-form button:active, .signup button:active { transform: translateY(0); }
.hero-signup button { white-space: nowrap; }

.secondary-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.secondary-cta::after { content: "→"; transition: transform .15s var(--ease); color: var(--red); }
.secondary-cta:hover { color: var(--ink); }
.secondary-cta:hover::after { transform: translateX(3px); }

.freshness {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 30px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; box-shadow: var(--shadow-xs);
}
.freshness-copy { min-width: 0; line-height: 1.45; }
.freshness a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.freshness > .live-dot { margin-top: .42em; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a; flex: none;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .15);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
.live-dot.delayed-dot { background: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .15); animation: none; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, .05); }
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 455px;
  margin: 0 0 0 auto;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% -8% -5% 14%;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(224, 52, 44, .13), rgba(16, 121, 90, .13));
  filter: blur(22px);
}
.hero-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 28px;
  background: #d7d3ca;
  box-shadow: 0 32px 70px -28px rgba(16, 24, 40, .42), 0 2px 8px rgba(16, 24, 40, .08);
  isolation: isolate;
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 15, 13, .46) 100%);
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
  transform: translate3d(var(--hero-x, 0px), calc(var(--hero-y, 0px) + var(--hero-scroll, 0px)), 0) scale(1.065);
  transition: transform 420ms var(--ease);
  will-change: transform;
}
.hero-location {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(10, 16, 14, .48);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-location > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb14a;
  box-shadow: 0 0 0 4px rgba(255, 177, 74, .18);
}
.hero-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
  padding: 0 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.45;
}
.hero-visual figcaption a { flex: none; color: var(--muted); font-weight: 600; text-decoration: none; }
.hero-visual figcaption a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Metrics -- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--night) 0%, #0b0d12 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.metrics article {
  min-height: 158px; padding: 30px 28px; position: relative;
  border-right: 1px solid var(--night-line);
}
.metrics article::before {
  content: ""; position: absolute; top: 30px; left: 28px; width: 24px; height: 3px;
  border-radius: 3px; background: var(--red);
}
.metrics article:last-child { border-right: 0; }
.metrics strong {
  display: block; margin-top: 20px;
  font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em;
}
.metrics span { display: block; max-width: 16ch; margin-top: 12px; color: var(--night-text); font-size: 13.5px; line-height: 1.45; }

/* --------------------------------------------------------------- Sections -- */
.home-benefits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden;
  background: var(--night); border-radius: var(--radius-lg); color: var(--night-text);
}
.home-benefits article { padding: 30px 32px; border-right: 1px solid var(--night-line); }
.home-benefits article:last-child { border-right: 0; }
.home-benefits .detail-icon { color: var(--night-text); width: 24px; height: 24px; margin: 0 0 18px; }
.home-benefits h2 { margin: 0 0 10px; color: #fff; font: 600 20px/1.25 var(--sans); letter-spacing: -.02em; }
.home-benefits p { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.6; }
.home-showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.home-showcase-copy h2, .home-permit-check h2 { margin: 14px 0 22px; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.12; }
.home-showcase-copy > p { max-width: 40ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.brief-steps { display: grid; gap: 22px; padding: 0; margin: 30px 0; list-style: none; }
.brief-steps li { display: flex; gap: 16px; align-items: baseline; }
.brief-steps li > span { flex: none; color: var(--red-700); font-size: 12px; font-weight: 700; }
.brief-steps h3, .permit-check-flow h3 { margin: 0 0 4px; color: var(--ink); font: 600 15px/1.4 var(--sans); }
.brief-steps p { margin: 0; max-width: 42ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.brief-signup { padding: 0; border: 0; background: transparent; }
.brief-preview { min-width: 0; padding: 30px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.brief-preview-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.brief-preview-label > span:last-child:not(.kicker) { color: var(--muted); font-size: 11px; }
.brief-preview h3 { margin: 24px 0 8px; color: var(--ink); font: 650 25px/1.25 var(--sans); letter-spacing: -.025em; overflow-wrap: anywhere; }
.brief-preview h3 a { color: inherit; text-decoration: none; }
.brief-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 26px 0; }
.brief-fact-wide { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.brief-facts dt { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.brief-facts dd { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.brief-interpretation { padding: 18px; border-left: 3px solid var(--green); background: var(--green-soft); border-radius: 0 8px 8px 0; }
.brief-interpretation .kicker { color: var(--green-700); font-size: 10px; }
.brief-interpretation p { margin: 8px 0 0; color: var(--body); font-size: 14px; line-height: 1.6; }
.brief-record-date { margin: 20px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.brief-example-note { margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.brief-format-intro { color: var(--muted); font-size: 14px; line-height: 1.6; }
.brief-format-facts dt { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.brief-format-facts dd { color: var(--muted); font-weight: 400; }
.brief-format-facts .detail-icon { width: 18px; height: 18px; margin: 0; }
.home-permit-check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 76px); align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.home-permit-check h2 { font-size: clamp(30px, 2.8vw, 38px); }
.home-permit-check p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.home-permit-check .permit-check-note { font-size: 12px; }
.permit-check-flow { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.permit-check-flow li { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); }
.permit-check-flow li:not(:last-child)::after { content: ""; position: absolute; left: 32px; top: 100%; height: 14px; border-left: 1px solid var(--line-strong); }
.permit-check-flow .detail-icon { margin: 0; width: 24px; height: 24px; }
.permit-check-flow p { margin: 0; font-size: 13px; }
.section { padding: 92px 0; }
.section + .section, .notable-section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading h2, .signup h2, .trust-section h2, .access-comparison h2, .buyer-example h2 {
  margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05;
}
.section-heading > p { max-width: 42ch; margin: 0; color: var(--muted); line-height: 1.6; }

.notable-grid, .results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------------------------------------------------------- Project cards -- */
.project-card {
  display: flex; min-width: 0; flex-direction: column; padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 10px; }
.card-meta > span {
  padding: 5px 11px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-700);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.card-meta > .earliest-signal {
  background: var(--green-soft); color: var(--green-700); border: 1px solid #cce3da;
}
.card-meta strong { margin-left: auto; color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.project-card h3, .activity-row h3 {
  overflow-wrap: anywhere; color: var(--ink);
  font-family: var(--sans); font-variant-numeric: lining-nums proportional-nums;
  font-weight: 650; letter-spacing: -.02em;
}
.project-card h3 { max-width: 34ch; margin: 22px 0 8px; font-size: 22px; line-height: 1.25; }
.project-card h3 a, .activity-row h3 a { color: inherit; text-decoration: none; }
.project-card h3 a:hover, .activity-row h3 a:hover { color: var(--red-700); }
.address { margin: 0; color: var(--muted); font-size: 14px; }
.fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.fact-line > span:first-child {
  padding: 4px 10px; border-radius: 7px; background: var(--bg-tint);
  color: var(--body); font-weight: 500;
}
.record-party {
  margin: 16px 0 0; padding: 11px 13px; border-left: 3px solid var(--ink);
  background: var(--bg-tint); color: var(--body); font-size: 13px; line-height: 1.45;
}
.record-party strong { color: var(--ink); }
.stage-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--green-700); font-size: 13px; font-weight: 600; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.decision-signal { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.decision-signal p { margin: 8px 0 9px; color: var(--body); font-size: 14px; line-height: 1.5; }
.decision-signal small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.decision-signal strong { color: var(--ink); }

.commercial-window {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px;
  margin: 20px 0; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-tint); border: 1px solid var(--line);
}
.commercial-window > div { display: flex; flex-direction: column; gap: 5px; }
.commercial-window strong { color: var(--ink); font-size: 14px; }
.commercial-window > span { color: var(--green-700); font-size: 13px; font-weight: 600; text-align: right; }
.commercial-window p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.confidence {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.confidence::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.commercial-window .confidence { grid-column: 1 / -1; }
.confidence-high { color: #157a53; }
.confidence-medium { color: #b45309; }
.confidence-low, .confidence-not-assessed { color: #8a6d1f; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; margin-top: auto; padding-top: 12px; }
.text-link, .section-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--red-700); font-size: 14px; font-weight: 600; text-decoration: none;
}
.text-link:hover, .section-link:hover { color: var(--red); }

/* ------------------------------------------------------- Buyer example -- */
.buyer-example {
  display: grid; grid-template-columns: .7fr 1.8fr auto; align-items: center; gap: 24px 45px;
  margin-top: 72px; padding: 34px 38px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.buyer-example h2 { font-size: 26px; }
.buyer-example p { margin: 10px 0 6px; color: var(--body); font-size: 19px; line-height: 1.5; }
.buyer-example p strong { color: var(--ink); }
.buyer-example span:not(.kicker) { color: var(--muted); font-size: 13px; }

/* -------------------------------------------------------- Activity list -- */
.activity-list {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.activity-row {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 26px; align-items: center; gap: 24px;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  transition: background .15s var(--ease);
}
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: var(--surface-2); }
.activity-row time { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.activity-row h3 { margin: 5px 0 4px; font-size: 17px; line-height: 1.3; }
.activity-row p { margin: 0; color: var(--muted); font-size: 13px; }
.activity-label { font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.activity-category {
  padding: 4px 11px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-700); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.row-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  color: var(--red-700); font-size: 16px; text-decoration: none;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.row-arrow:hover { background: var(--red-soft); transform: translateX(2px); color: var(--red-700); }
.section-link { margin-top: 26px; }

/* ----------------------------------------------------------- Trust grid -- */
.trust-section { display: grid; grid-template-columns: .7fr 1.5fr; gap: 56px 70px; padding: 92px 0; border-top: 1px solid var(--line); }
.trust-section h2 { max-width: 12ch; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust-grid article {
  padding: 24px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.trust-grid article:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trust-grid strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15.5px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.trust-section > .text-link { grid-column: 2; }

/* --------------------------------------------------------- Access cards -- */
.access-comparison { padding: 92px 0; border-top: 1px solid var(--line); }
.pilot-offer {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 44px 64px; align-items: center; padding: 48px;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(150deg, var(--night) 0%, #0b0d12 100%);
  border: 1px solid var(--night-line); box-shadow: var(--shadow-lg);
}
.pilot-offer .kicker { color: #ff8d87; }
.pilot-offer h2 {
  max-width: 23ch; margin: 14px 0 20px; color: #fff;
  font-family: var(--sans); font-size: clamp(27px, 3vw, 40px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.08;
}
.pilot-price {
  width: fit-content; margin: 0; padding: 10px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 14px; font-weight: 700;
}
.pilot-fit { max-width: 62ch; margin: 18px 0 0; color: #fff; font-size: 15px; line-height: 1.55; }
.pilot-availability { margin: 20px 0 0; color: var(--night-text); font-size: 14px; line-height: 1.6; }
.pilot-availability strong { color: #fff; }
.pilot-form .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pilot-form .pilot-territory { grid-column: 1 / -1; }
.pilot-form button { width: 100%; min-height: 48px; }
.pilot-offer .form-message { background: rgba(224, 52, 44, .16); color: #ffc9c6; }
.pilot-offer .form-message.success { background: rgba(16, 121, 90, .22); color: #9fe7c8; }
.access-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; align-items: start; }
.access-grid > article {
  padding: 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.access-grid .professional-card {
  background: linear-gradient(165deg, var(--night) 0%, #0b0d12 100%);
  color: #fff; border-color: transparent; box-shadow: var(--shadow-lg);
}
.access-label {
  padding: 5px 11px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-700); letter-spacing: .06em;
}
.professional-card .access-label { background: rgba(255, 255, 255, .1); color: #fff; }
.access-grid h3 { margin: 16px 0 22px; color: inherit; font-family: var(--sans); font-size: 25px; font-weight: 650; letter-spacing: -.02em; }
.professional-card h3 { color: #fff; }
.access-grid ul { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 11px; color: var(--muted); }
.access-grid li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; }
.access-grid li::before {
  content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft);
  color: var(--green-700); font-size: 10px; font-weight: 700;
}
.professional-card ul { color: var(--night-text); }
.professional-card li::before { background: rgba(255, 255, 255, .12); color: #fff; }

.button {
  display: inline-flex; align-items: center; gap: 7px; padding: 13px 20px; border-radius: 11px;
  border: 0; background: var(--red); color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 14px -6px rgba(224, 52, 44, .6);
  transition: background .15s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.button:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(224, 52, 44, .65); }
.button.secondary { background: var(--ink); box-shadow: var(--shadow-sm); }
.button.secondary:hover { background: #000; }

/* --------------------------------------------------------------- Forms --- */
label { display: flex; flex-direction: column; gap: 8px; color: var(--body); font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
  background-color: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select {
  height: var(--control-height); min-height: var(--control-height); padding: 0 14px; line-height: 1.2;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  border-radius: 10px; font-weight: 550;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select:hover { border-color: #b8bec8; background-color: var(--surface-2); }
select option { color: var(--ink); background: var(--surface); }
select option:disabled { color: #a2a9b4; background: #f3f4f6; }
select:disabled { cursor: not-allowed; opacity: .58; }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: var(--ring);
}
textarea { min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.access-form { display: grid; gap: 16px; }
.access-form label { color: var(--night-text); }
.access-form input, .access-form select, .access-form textarea {
  border-color: var(--night-line); background-color: rgba(255, 255, 255, .04); color: #fff; box-shadow: none;
}
.access-form input::placeholder, .access-form textarea::placeholder { color: #7c8493; }
.access-form input:hover, .access-form select:hover, .access-form textarea:hover { border-color: #3d4453; }
.access-form input:focus-visible, .access-form select:focus-visible, .access-form textarea:focus-visible {
  border-color: #6d93ff; box-shadow: 0 0 0 4px rgba(109, 147, 255, .22);
}
.access-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c5ccd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.access-form option { color: var(--ink); }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; font-weight: 500; font-size: 13px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; box-shadow: none; accent-color: var(--red); }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-message { margin: 2px 0 0; padding: 11px 14px; border-radius: 9px; background: var(--red-soft); color: var(--red-700); font-size: 13px; font-weight: 500; }
.form-message.success { background: var(--green-soft); color: var(--green-700); }
.professional-card .form-message { background: rgba(224, 52, 44, .16); color: #ffc9c6; }
.professional-card .form-message.success { background: rgba(16, 121, 90, .22); color: #9fe7c8; }

/* -------------------------------------------------------- Signup block --- */
.signup {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px 70px;
  margin-block: 92px; padding: 56px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--green) 0%, var(--green-700) 100%);
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.signup::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none;
}
.signup .kicker { color: #bff2df; }
.signup h2 { color: #fff; max-width: 16ch; }
.signup p { max-width: 46ch; color: #d4ebe2; line-height: 1.6; }
.signup form { display: grid; gap: 18px; align-self: center; position: relative; }
.signup label { color: #e8f4ef; }
.signup input, .signup select {
  border-color: rgba(255, 255, 255, .28); background-color: rgba(255, 255, 255, .06); color: #fff; box-shadow: none;
}
.signup input::placeholder { color: #b6d6c9; }
.signup input:hover, .signup select:hover { border-color: rgba(255, 255, 255, .5); }
.signup input:focus-visible, .signup select:focus-visible { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.signup select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8f4ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.signup option { color: var(--ink); }
.signup button { background: #fff; color: var(--green-700); box-shadow: var(--shadow-md); }
.signup button:hover { background: #fff; color: var(--green-700); box-shadow: var(--shadow-lg); }
.signup small { color: #bdddce; }
.signup .form-message { background: rgba(255, 255, 255, .14); color: #fff; }
.signup .form-message.success { background: rgba(255, 255, 255, .2); color: #fff; }
.signup-modal-action { display: grid; align-content: center; justify-items: start; gap: 12px; position: relative; z-index: 1; }

body.newsletter-modal-open { overflow: hidden; }
.newsletter-modal {
  width: min(680px, calc(100% - 32px)); max-height: min(92vh, 850px); padding: 0;
  border: 0; border-radius: 22px; background: transparent; color: var(--ink);
  box-shadow: 0 28px 80px rgba(10, 20, 17, .26); overflow: visible;
}
.newsletter-modal::backdrop { background: rgba(9, 18, 16, .58); backdrop-filter: blur(7px); }
.newsletter-modal-card {
  position: relative; max-height: min(92vh, 850px); padding: 32px 38px; overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; background: var(--surface);
}
.newsletter-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 1; display: grid;
  width: 38px; height: 38px; padding: 0; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle);
  color: var(--muted); font-size: 22px; line-height: 1;
}
.newsletter-modal-close:hover { border-color: var(--line-strong); color: var(--ink); }
.newsletter-modal-header { padding-right: 42px; }
.newsletter-modal-header .kicker, .newsletter-modal-success .kicker { color: var(--green-700); }
.newsletter-modal-header h2, .newsletter-modal-success h2 {
  max-width: 18ch; margin: 10px 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.06;
}
.newsletter-modal-header p, .newsletter-modal-success > p { margin: 0; color: var(--muted); line-height: 1.6; }
.newsletter-modal form { display: grid; gap: 14px; margin-top: 22px; }
.newsletter-modal .field-grid { gap: 12px 14px; }
.newsletter-modal input, .newsletter-modal select { height: 44px; }
.newsletter-modal-submit {
  min-height: 48px; padding: 13px 20px; border: 0; border-radius: 11px;
  background: var(--red); color: #fff; font-weight: 650;
  box-shadow: 0 8px 18px -8px rgba(224, 52, 44, .62);
}
.newsletter-modal-submit:hover { background: var(--red-600); }
.newsletter-modal form > small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.newsletter-modal-success { display: grid; justify-items: start; padding: 28px 18px 18px; }
.newsletter-modal-success .button { margin-top: 24px; }
.newsletter-modal-icon {
  display: grid; width: 46px; height: 46px; margin-bottom: 24px; place-items: center;
  border-radius: 50%; background: var(--green-soft); color: var(--green-700); font-size: 21px; font-weight: 800;
}

/* --------------------------------------------------------- Page heroes --- */
.page-hero { padding: 80px 0 60px; }
.page-hero.narrow { max-width: 62ch; }
.page-hero .eyebrow {
  padding: 7px 13px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink); box-shadow: var(--shadow-xs); letter-spacing: .06em;
}
.page-hero h1 { font-size: clamp(42px, 5.6vw, 74px); }

/* -------------------------------------------------- Projects discovery --- */
.discovery-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px 32px;
  padding-bottom: 96px;
}
.project-filter-form { display: contents; }
.project-search-bar {
  grid-column: 1 / -1; display: grid; gap: 7px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.project-search-bar > label {
  color: var(--body); font-size: 11px; font-weight: 750; letter-spacing: .07em;
  text-transform: uppercase;
}
.project-search-control { display: flex; min-width: 0; gap: 8px; }
.project-search-control input {
  min-width: 0; height: 44px; flex: 1; padding-inline: 13px;
  border-color: var(--line-strong); box-shadow: none;
}
.project-search-submit {
  min-height: 44px; padding: 9px 19px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
}
.project-search-submit:hover { background: #000; }
.filters {
  align-self: start; position: sticky; top: 78px; max-height: calc(100vh - 94px); padding: 17px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.filter-header { display: flex; align-items: center; justify-content: space-between; }
.filter-header h2 { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.filter-header a { color: var(--red-700); font-size: 12px; font-weight: 600; }
.filters-fields { display: grid; gap: 11px; margin-top: 15px; }
.filter-focus { margin: 14px 0 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 600; }
.other-trade-link { margin-top: 24px; color: var(--muted); font-size: 13px; }
.other-trade-link a, .trade-waitlist summary span { color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }
.trade-waitlist { padding-block: 22px; border-block: 1px solid var(--line); }
.trade-waitlist summary { cursor: pointer; font-size: 15px; line-height: 1.5; }
.trade-waitlist > p { max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.trade-waitlist form { max-width: 620px; margin-top: 16px; }
.filters label, .filter-control-group { gap: 5px; font-size: 11.5px; }
.filter-control-group { display: grid; color: var(--body); font-weight: 600; }
.filter-control-label { line-height: 1.3; }
.filters input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .filters select {
  height: 40px; min-height: 40px; padding-inline: 10px; font-size: 12.5px;
}
.filters select {
  padding-right: 29px; border-color: #d3d8e0; background-position: right 8px center;
  background-size: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.filter-multiselect { position: relative; }
.filter-multiselect summary {
  display: flex; height: 40px; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 10px; border: 1px solid #d3d8e0; border-radius: 10px;
  background: var(--surface); color: var(--body); font-size: 12.5px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); cursor: pointer; list-style: none;
}
.filter-multiselect summary::-webkit-details-marker { display: none; }
.filter-chevron {
  width: 7px; height: 7px; flex: 0 0 7px; border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg);
  transition: transform .15s var(--ease);
}
.filter-multiselect[open] .filter-chevron { transform: translateY(2px) rotate(225deg); }
.filter-multiselect-menu {
  position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 50;
  display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line-strong);
  border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.filter-multiselect-all, .filter-multiselect-option {
  display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: space-between;
  gap: 10px; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent;
  color: var(--body); font-size: 11.5px; font-weight: 550; text-align: left;
}
.filter-multiselect-all:hover, .filter-multiselect-option:hover { background: var(--bg-tint); }
.filter-multiselect-all.selected { color: var(--ink); font-weight: 700; }
.filter-multiselect-option { flex-direction: row; cursor: pointer; }
.filter-multiselect-option > span:first-child { display: flex; min-width: 0; align-items: center; gap: 7px; }
.filter-multiselect-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--red); }
.filter-multiselect-option.disabled { color: var(--faint); cursor: not-allowed; }
.filters .filter-submit {
  width: 100%; min-height: 42px; margin-top: 15px; padding: 10px 16px;
}
.filters .filter-submit:disabled, .project-search-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.discovery-layout[aria-busy="true"] .project-results {
  opacity: .58; pointer-events: none; transition: opacity .15s var(--ease);
}
.project-results { min-width: 0; scroll-margin-top: 80px; }
.pilot-results-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 16px; padding: 12px 15px; border: 1px solid #d9d1c5;
  border-radius: 10px; background: #fffaf2; color: var(--body);
  font-size: 13px; line-height: 1.45; text-decoration: none;
}
.pilot-results-banner strong { flex: 0 0 auto; color: var(--red-700); font-size: 12px; }
.pilot-results-banner:hover { border-color: #c7b9aa; color: var(--ink); }
.results-header {
  position: relative; z-index: 1; display: grid; gap: 18px; padding: 4px 0 0;
  border-bottom: 1px solid var(--line-strong); background: transparent;
}
.results-summary-row, .results-tabs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.results-header h2 {
  margin: 0; color: var(--ink); font-family: var(--serif);
  font-size: 32px; font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.04em; line-height: .98;
}
.result-tabs { display: flex; align-items: center; gap: 10px; }
.result-tabs a {
  display: inline-flex; min-height: 42px; align-items: center; gap: 10px; padding: 7px 16px 12px;
  border-bottom: 3px solid transparent; color: #6f706c;
  font-size: 16px; font-weight: 650; text-decoration: none;
}
.result-tabs a:hover { color: var(--ink); }
.result-tabs a.active { border-color: var(--red-700); color: var(--ink); }
.result-tabs a span { color: var(--faint); font-variant-numeric: tabular-nums; }
.result-controls { display: flex; align-items: center; }
.result-controls label { flex-direction: row; align-items: center; gap: 10px; color: #6f706c; font-size: 14px; font-weight: 500; }
.result-controls select {
  width: min(170px, 32vw); height: 38px; min-height: 38px; padding: 0 34px 0 13px;
  border-color: var(--line-strong); border-radius: 9px; background-color: var(--surface);
  font-size: 14px; box-shadow: var(--shadow-xs);
}
.result-note, .result-limit { color: var(--muted); font-size: 13px; line-height: 1.55; }
.result-note { margin: 18px 0 0; }
.result-range {
  display: flex; min-height: 42px; align-items: center; margin: 0 0 3px;
  color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap;
}
.results-grid { grid-template-columns: 1fr; margin-top: 20px; }
.project-card-compact { min-height: 0; }
.project-card-compact .commercial-window { margin-bottom: 16px; }

/* Compact cards are exclusive to the /projects listing, not shared/detail cards. */
.project-card.project-list-card {
  padding: 20px; border-radius: 12px; box-shadow: none;
}
.list-card-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.list-card-badges { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.list-card-label {
  padding: 3px 10px; border-radius: 999px; background: #fbdcda; color: var(--red-700);
  font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1.45;
}
.list-card-early { background: var(--green-soft); color: var(--green-700); }
.list-card-value {
  flex: 0 1 auto; min-width: 0; color: var(--ink); font-size: 21px; font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums; line-height: 1.25; text-align: right;
}
.list-card-value.list-card-value-undisclosed { max-width: 110px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.project-list-card h3 {
  max-width: none; margin: 12px 0 4px; font-size: 19px; font-weight: 600; line-height: 1.3;
}
.project-list-card h3 a:hover { color: inherit; }
.list-card-address { margin: 0; color: var(--body); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.list-card-facts { display: grid; gap: 5px; margin-top: 12px; }
.list-card-fact { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; }
.list-card-fact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.list-card-fact .detail-icon {
  flex: 0 0 17px; width: 17px; height: 19px; margin: 1px 0 0; color: inherit;
}
.list-card-stage { color: var(--green-700); }
.list-card-estimate, .list-card-role { font-size: 12px; }
.list-card-stage time { display: inline-block; }
.list-card-organization { color: var(--body); }
.list-card-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.list-card-window { display: grid; flex: 1 1 0; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.4; }
.list-card-window strong { color: var(--ink); font-weight: 500; }
.list-card-window > span { color: var(--body); font-size: 13px; overflow-wrap: anywhere; }
.list-card-details {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-left: auto;
  color: var(--red-700); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.list-card-details:hover { color: var(--red); }
@media (max-width: 720px) {
  .project-card.project-list-card { padding: 16px; }
  .project-list-card h3 { font-size: 17px; }
  .list-card-value { font-size: 19px; }
}
.pagination {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-strong);
}
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination-page, .pagination-arrow, .pagination-ellipsis {
  display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center;
  border-radius: 9px; color: var(--body); font-size: 13px; font-weight: 650; text-decoration: none;
}
.pagination-page { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-xs); }
.pagination-page:hover { border-color: var(--muted); color: var(--ink); }
.pagination-page.current { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination-arrow { width: fit-content; color: var(--red-700); }
.pagination-arrow:last-child { justify-self: end; }
.pagination-arrow.disabled { color: var(--faint); }
.pagination-ellipsis { min-width: 24px; color: var(--faint); }
.empty-state {
  grid-column: 1 / -1; padding: 40px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); text-align: center;
}
.empty-state h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--sans); font-weight: 650; }
.empty-state a { color: var(--red-700); font-weight: 600; }

.filter-alert {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px;
  padding: 30px; overflow: hidden; border-radius: var(--radius);
  background: var(--night); border: 1px solid var(--night-line); color: #d5d9d7;
  box-shadow: var(--shadow-md);
}
.filter-alert-no-number { grid-template-columns: minmax(0, 1fr); }
.filter-alert-number {
  display: flex; align-self: start; flex-direction: column; padding-right: 24px;
  border-right: 1px solid var(--night-line);
}
.filter-alert-number strong {
  color: #fff; font-family: var(--sans); font-size: 48px; font-weight: 750;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.04em; line-height: .95;
}
.filter-alert-number span { margin-top: 8px; color: #aeb6b2; font-size: 12px; font-weight: 650; }
.filter-alert-content { min-width: 0; }
.filter-alert-kicker {
  color: #ff7a73; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase;
}
.filter-alert h3 {
  margin: 7px 0 8px; color: #fff; font-family: var(--sans); font-size: 22px;
  font-weight: 700; letter-spacing: -.025em; line-height: 1.18;
}
.filter-alert p { margin: 0; color: #b8c0bc; font-size: 13px; line-height: 1.55; }
.filter-alert-form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  margin-top: 20px;
}
.filter-alert-form > input[type="email"] {
  min-width: 0; height: 44px; padding: 0 13px; border-color: #39403d;
  background: #fff; color: var(--ink); box-shadow: none;
}
.filter-alert button, .filter-alert-manage {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  padding: 10px 17px; border: 0; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none; box-shadow: none;
}
.filter-alert button:hover { background: var(--red-600); }
.filter-alert-message { margin-top: 10px !important; color: #ffaaa5 !important; }
.filter-alert [data-alert-add] form { margin-top: 18px; }
.filter-alert-manage { width: fit-content; margin-top: 18px; background: #fff; color: var(--ink); }
.filter-alert-manage:hover { color: var(--ink); background: #f1f2f1; }
.filter-alert-preview {
  grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--night-line);
}
.filter-alert-preview h4 { margin: 6px 0 14px; color: #fff; font-size: 15px; }
.filter-alert-preview ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.filter-alert-preview li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--night-line);
}
.filter-alert-preview a { color: #fff; font-size: 13px; font-weight: 650; text-decoration: none; }
.filter-alert-preview li span { color: #9fa9a4; font-size: 11px; text-align: right; }

.alerts-page { max-width: 900px; padding-block: 72px 100px; }
.alerts-page-header { max-width: 680px; }
.alerts-page-header h1 {
  margin: 18px 0 20px; font-size: clamp(46px, 7vw, 76px); line-height: 1.02;
}
.alerts-page-header > p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.alerts-notice {
  margin: 34px 0 0; padding: 13px 16px; border-radius: 10px;
  background: var(--green-soft); color: var(--green-700); font-weight: 650;
}
.alerts-notice.error { background: var(--red-soft); color: var(--red-700); }
.alerts-list { display: grid; gap: 14px; margin-top: 40px; }
.saved-alert-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 25px 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.saved-alert-card.paused { background: color-mix(in srgb, var(--surface) 68%, var(--bg)); }
.saved-alert-status {
  color: var(--green-700); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
}
.saved-alert-card.paused .saved-alert-status { color: var(--muted); }
.saved-alert-card h2 { margin: 7px 0 8px; font-family: var(--sans); font-size: 20px; font-weight: 700; }
.saved-alert-card a { color: var(--red-700); font-size: 12px; font-weight: 650; }
.saved-alert-actions { display: flex; gap: 8px; }
.saved-alert-actions button {
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 650;
}
.saved-alert-actions button.danger { color: var(--red-700); }
.alerts-empty { padding: 42px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.alerts-empty h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 22px; font-weight: 700; }
.alerts-empty p { margin: 0; color: var(--muted); }
.alerts-add { margin-top: 26px; }
.alerts-security { margin: 18px 0 0; color: var(--muted); font-size: 11px; }

.error-page { min-height: 60vh; }
.error-page h1 { max-width: 18ch; font-size: clamp(40px, 5.4vw, 68px); }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 30px; }

/* --------------------------------------------------------- Project page -- */
.project-page { padding: 40px 0 96px; }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--ink); }
.project-header { padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.project-header-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 40px 70px; margin-top: 26px; }
.project-header h1 {
  margin: 14px 0 14px; font-family: var(--sans); font-size: clamp(30px, 3.4vw, 46px);
  font-variant-numeric: lining-nums proportional-nums; font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; overflow-wrap: anywhere; color: var(--ink);
}
.scope-notice {
  display: flex; align-items: center; gap: 10px 18px; margin: 22px 0 0; padding: 14px 16px;
  border: 1px solid #dfd5c8; border-radius: 10px; background: #faf6ef; color: var(--body);
  font-size: 13px; line-height: 1.5;
}
.scope-notice strong { flex: 0 0 auto; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.project-address { color: var(--muted); font-size: 17px; }
.project-summary { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.project-summary dl, .facts-list { margin: 18px 0 0; }
.project-summary dl div, .facts-list div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.project-summary dl div:first-of-type, .facts-list div:first-of-type { border-top: 0; }
dt { color: var(--muted); font-size: 12px; font-weight: 600; }
dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; text-align: right; }

.recommended-action {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 40px;
  margin: 32px 0 10px; padding: 30px 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green) 0%, var(--green-700) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.recommended-action h2 { grid-column: 2; margin: -18px 0 8px; color: #fff; font-family: var(--sans); font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.recommended-action p { grid-column: 2; margin: 0; color: #cfe7dd; font-size: 13px; }
.recommended-action .why-now { margin-bottom: 8px; color: #fff; font-size: 14.5px; line-height: 1.55; }
.recommended-action .estimate-label { color: #a8ecce; }

.project-location {
  margin: 32px 0 10px; padding: 30px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.project-location-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 24px 48px;
  margin-bottom: 22px;
}
.project-location-heading h2 { margin: 6px 0 0; color: var(--ink); font-size: clamp(22px, 2.2vw, 28px); }
.project-location-heading p { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.project-map {
  position: relative; min-height: 360px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background:
    linear-gradient(rgba(16, 19, 26, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 26, .045) 1px, transparent 1px),
    var(--bg-tint);
  background-size: 32px 32px;
}
.project-map-canvas { height: 360px; }
.project-map-loading {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--bg-tint) 92%, transparent);
  color: var(--body); font-size: 13px; font-weight: 650;
}
.project-map-loading[hidden] { display: none; }
.project-map-loading span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 6px rgba(224, 52, 44, .12); animation: map-pulse 1.2s ease-in-out infinite;
}
@keyframes map-pulse { 50% { opacity: .55; transform: scale(.78); } }
.project-map .leaflet-tile-pane { filter: grayscale(1) contrast(.9) brightness(1.04); }
.project-map .leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(16, 19, 26, .18); border-radius: 10px; box-shadow: var(--shadow-sm); }
.project-map .leaflet-control-zoom a { border-color: var(--line); color: var(--ink); font-family: var(--sans); }
.project-map .leaflet-control-attribution { padding: 3px 7px; background: rgba(255, 255, 255, .88); font-family: var(--sans); font-size: 9px; }
.project-map .leaflet-control-attribution a { color: var(--body); }
.project-map-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 13px; }
.project-map-meta p { margin: 0; color: var(--muted); font-size: 12px; }
.project-map-meta a { color: var(--red-700); font-size: 12px; font-weight: 650; text-decoration: none; }
.project-map-unavailable {
  display: flex; min-height: 190px; align-items: center; justify-content: center; gap: 12px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-tint); color: var(--muted);
}
.project-map-unavailable span { color: var(--red); font-size: 28px; }
.project-map-unavailable p { margin: 0; font-size: 14px; }

.detail-heading-group { min-width: 0; }
.detail-heading-group h2 { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 0; line-height: 1.12; }
.detail-heading-group > h2:first-child { margin-top: 0; }
.detail-icon {
  display: inline-flex; width: 22px; height: 22px; flex: 0 0 22px;
  align-items: center; justify-content: center; margin-top: .14em; color: var(--ink); opacity: .72;
}
.detail-icon svg { width: 100%; height: 100%; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .55fr); gap: 40px 70px; align-items: start; }
.detail-grid > aside { position: sticky; top: 88px; }
.detail-section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.detail-section h2 { margin: 8px 0 24px; font-size: clamp(22px, 2.2vw, 28px); }
.detail-section > .detail-heading-group { margin-bottom: 24px; }
.detail-section > .detail-heading-group h2 { margin-bottom: 0; }
.detail-section h3 { margin: 30px 0 14px; color: var(--ink); font-size: 16px; }

.interpretation-box {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  border-radius: var(--radius); background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.interpretation-box > div { display: flex; min-height: 118px; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); }
.interpretation-box span:not(.confidence) { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.interpretation-box strong { color: var(--ink); font-size: 16px; }
.interpretation-box small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.reason-list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.reason-list li { position: relative; padding-left: 26px; color: var(--body); line-height: 1.55; }
.reason-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.trade-list { display: grid; gap: 12px; }
.trade-list article { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.trade-list strong { color: var(--ink); }
.trade-list p { margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.trade-list span { color: var(--green-700); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.fact-panel + .detail-section { margin-top: 8px; }
.unknown-list { color: var(--muted); font-size: 14px; }
.section-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.organization { display: flex; flex-direction: column; gap: 5px; padding: 15px 0; border-top: 1px solid var(--line); }
.organization:first-of-type { border-top: 0; }
.organization strong { color: var(--ink); }
.organization span, .organization small { color: var(--muted); font-size: 11px; }
.organization span { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.timeline h3 { margin: 8px 0 6px; color: var(--ink); font-size: 16px; }
.timeline p { margin: 0 0 8px; color: var(--body); font-size: 14px; line-height: 1.55; }
.timeline small, .timeline a { color: var(--muted); font-size: 11px; }
.timeline a { color: var(--red-700); font-weight: 600; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 4px; }
.timeline-meta span:not(.verified-label):not(.estimate-label) { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

.source-section { padding-bottom: 20px; }
.source-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; }
th { padding: 14px 16px; background: var(--bg-tint); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
td span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
td a { color: var(--red-700); font-weight: 600; }

.conversion-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 30px;
  margin: 54px 0; padding: 34px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--night) 0%, #0b0d12 100%); color: #fff; box-shadow: var(--shadow-lg);
}
.conversion-strip h2 { margin: 10px 0 0; color: #fff; font-family: var(--sans); font-size: 23px; font-weight: 650; letter-spacing: -.01em; }
.conversion-strip .kicker { color: #ff9e99; }

.correction-section {
  display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px 60px;
  padding: 48px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.correction-section h2 { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 28px); }
.correction-section .detail-heading-group { margin-bottom: 14px; }
.correction-section > div p { color: var(--muted); line-height: 1.6; }
.correction-section form { display: grid; gap: 16px; }

/* --------------------------------------------------------- Methodology --- */
.methodology { padding-bottom: 96px; }
.methodology-nav {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-top: 8px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.methodology-nav a { padding: 7px 13px; border-radius: 8px; color: var(--body); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.methodology-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.methodology-grid section { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.methodology-grid section > span {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--red-soft); color: var(--red-700); font-family: var(--serif); font-size: 22px; font-weight: 600;
}
.methodology-grid section > div { max-width: 74ch; }
.methodology-grid h2, .policy-grid h2 { margin: 0 0 14px; color: var(--ink); font-size: clamp(24px, 2.8vw, 32px); }
.methodology-grid p, .methodology-grid li, .policy-grid p { color: var(--body); line-height: 1.7; }
.methodology-grid ul { padding-left: 20px; display: grid; gap: 8px; }
.source-statuses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.source-statuses article {
  display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 18px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.source-statuses strong { color: var(--ink); font-size: 14px; }
.source-statuses span { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-size: 12px; font-weight: 600; }
.source-statuses span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.source-statuses .status-delayed, .source-statuses .status-attention-required { color: var(--red-700); }
.source-statuses small { color: var(--muted); font-size: 11px; }

.policy-page { min-height: 68vh; padding-bottom: 96px; }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.policy-grid section {
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.policy-grid a { color: var(--red-700); font-weight: 600; }

/* ------------------------------------------------ Programmatic SEO pages -- */
.seo-landing { padding-bottom: 36px; }
.seo-landing-hero { padding: 54px 0 44px; }
.seo-landing-hero .breadcrumb { margin-bottom: 32px; }
.seo-landing-hero .eyebrow {
  padding: 7px 13px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink); box-shadow: var(--shadow-xs);
  letter-spacing: .06em;
}
.seo-landing-hero h1 {
  max-width: 17ch; margin: 20px 0 20px;
  font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02;
}
.seo-landing-hero > p {
  max-width: 66ch; margin: 0; color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55;
}
.seo-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }

.seo-snapshot {
  display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.seo-snapshot article { display: flex; min-height: 138px; flex-direction: column; padding: 26px 28px; border-right: 1px solid var(--line); }
.seo-snapshot article:last-child { border-right: 0; }
.seo-snapshot span { color: var(--red-700); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.seo-snapshot strong {
  margin: 10px 0 5px; color: var(--ink); font-size: clamp(25px, 2.6vw, 36px);
  font-variant-numeric: tabular-nums; letter-spacing: -.025em; line-height: 1.1;
}
.seo-snapshot small { margin-top: auto; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.seo-explainer {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 48px 72px; padding-block: 76px; border-bottom: 1px solid var(--line);
}
.seo-explainer h2, .seo-faq h2, .seo-related h2 {
  margin: 10px 0 20px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08;
}
.seo-explainer p { max-width: 70ch; margin: 0 0 16px; line-height: 1.72; }
.seo-explainer aside {
  align-self: start; padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs);
}
.seo-explainer aside ul { display: grid; gap: 12px; margin: 18px 0 24px; padding: 0; list-style: none; }
.seo-explainer aside li { position: relative; padding-left: 24px; color: var(--body); font-size: 14px; line-height: 1.5; }
.seo-explainer aside li::before {
  content: ""; position: absolute; top: 8px; left: 2px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft);
}
.seo-explainer aside p { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.seo-explainer aside strong { color: var(--ink); }

.seo-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.seo-project-grid .project-card { min-height: 100%; }

.seo-faq {
  display: grid; grid-template-columns: minmax(240px, .6fr) minmax(0, 1.4fr);
  gap: 42px 72px; padding-block: 72px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.seo-faq h2 { max-width: 12ch; }
.seo-faq details { border-top: 1px solid var(--line-strong); }
.seo-faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.seo-faq summary { position: relative; padding: 22px 40px 22px 0; color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; position: absolute; top: 18px; right: 4px; color: var(--red-700); font-size: 24px; font-weight: 400; }
.seo-faq details[open] summary::after { content: "−"; }
.seo-faq details p { max-width: 68ch; margin: -4px 0 22px; color: var(--muted); line-height: 1.65; }

.seo-related { padding-block: 72px 24px; }
.seo-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.seo-related-grid a {
  display: flex; min-height: 170px; flex-direction: column; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: inherit; text-decoration: none; box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.seo-related-grid a:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); color: inherit; }
.seo-related-grid span { color: var(--red-700); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.seo-related-grid strong { margin: 12px 0 8px; color: var(--ink); font-size: 17px; line-height: 1.3; }
.seo-related-grid small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* --------------------------------------------------- Prepared lead pages -- */
.prepared-page {
  width: var(--shell); margin-inline: auto; padding: 72px 0 88px;
}
.prepared-hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  align-items: end; gap: 52px; padding-bottom: 58px; border-bottom: 1px solid var(--line-strong);
}
.prepared-hero h1 {
  max-width: 13ch; margin: 14px 0 22px;
  font-size: clamp(48px, 6.2vw, 78px); line-height: .98; letter-spacing: -.045em;
}
.prepared-intro { max-width: 68ch; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.prepared-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.prepared-filter span {
  padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--muted); font-size: 12.5px; box-shadow: var(--shadow-xs);
}
.prepared-filter strong { margin-right: 5px; color: var(--ink); font-weight: 650; }
.prepared-method-note {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 18px;
  padding: 24px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.prepared-method-number {
  color: var(--red-700); font-family: var(--serif); font-size: 48px; line-height: .9;
  font-variant-numeric: lining-nums;
}
.prepared-method-note strong { color: var(--ink); font-size: 14px; }
.prepared-method-note p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.prepared-projects { padding: 68px 0 0; }
.prepared-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 28px;
}
.prepared-section-head h2 { margin: 9px 0 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
.prepared-section-head > p { max-width: 42ch; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.prepared-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.prepared-project-card { min-height: 100%; }
.mechanical-gap-check {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 11px;
  margin-top: 20px; padding: 15px; border: 1px solid #cce3da; border-radius: 10px;
  background: var(--green-soft);
}
.mechanical-gap-check > span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800;
}
.mechanical-gap-check strong { display: block; color: var(--green-700); font-size: 13px; }
.mechanical-gap-check p { margin: 3px 0 0; color: #45675d; font-size: 11.5px; line-height: 1.45; }
.prepared-more-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px;
  margin-top: 20px; padding: 24px 28px; border: 1px dashed #c7b9aa; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, var(--red-soft));
}
.prepared-more-count {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--red); color: #fff; font-family: var(--serif); font-size: 23px; font-weight: 600;
}
.prepared-more-card h3 { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 18px; }
.prepared-more-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.prepared-empty { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prepared-empty h3 { margin: 0; color: var(--ink); font-family: var(--sans); }
.prepared-empty p { margin: 8px 0 0; color: var(--muted); }
.prepared-offer {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 64px;
  margin-top: 72px; padding: 46px 48px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(150deg, var(--night) 0%, #0b0d12 100%);
  border: 1px solid var(--night-line); box-shadow: var(--shadow-lg);
}
.prepared-offer .kicker { color: #ff8d87; }
.prepared-offer h2 { max-width: 17ch; margin: 12px 0 16px; color: #fff; font-size: clamp(31px, 4vw, 46px); line-height: 1.05; }
.prepared-offer > div > p:not(.kicker):not(.prepared-price) { max-width: 58ch; margin: 0; color: var(--night-text); }
.prepared-offer ul { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--night-text); font-size: 13px; }
.prepared-offer li { position: relative; padding-left: 23px; }
.prepared-offer li::before { content: "✓"; position: absolute; left: 0; color: #8ed7bd; font-weight: 700; }
.prepared-offer-action { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 14px; }
.prepared-price { display: flex; align-items: baseline; gap: 6px; margin: 0; color: #fff; }
.prepared-price strong { font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums; }
.prepared-price span { color: var(--night-text); font-size: 15px; }
.prepared-offer-action .button { justify-content: center; text-align: center; }
.prepared-offer-action .text-link { justify-content: center; color: #ff9a94; }
.prepared-disclaimer { max-width: 90ch; margin: 24px auto 0; color: var(--faint); font-size: 11.5px; line-height: 1.6; text-align: center; }

/* --------------------------------------------------------------- Footer -- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px 70px;
  width: var(--shell); margin: 0 auto; padding: 56px 0 40px; color: var(--muted); font-size: 13px;
}
.footer-brand { width: fit-content; margin-bottom: 4px; }
.footer-lead p { margin: 12px 0 0; max-width: 34ch; line-height: 1.55; }
.footer-lead .fine-print { color: var(--faint); font-size: 12px; }
.site-footer .fine-print { font-size: 12px; }
.footer-inner > nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-inner nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-inner nav strong { margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-legal { width: var(--shell); margin: 0 auto; padding: 22px 0 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.footer-legal a { color: var(--muted); }

/* ------------------------------------------------------------ Responsive - */
@media (max-width: 980px) {
  :root { --shell: min(1180px, calc(100% - 40px)); }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: calc(100% + 8px); right: max(20px, calc((100% - var(--shell)) / 2));
    left: max(20px, calc((100% - var(--shell)) / 2));
    flex-direction: column; align-items: stretch; gap: 4px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  }
  .site-header.nav-open .primary-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav a { padding: 12px 14px; font-size: 15px; }
  .primary-nav .nav-cta { margin: 4px 0 0; justify-content: center; }
  .site-header.nav-open .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; gap: 42px; padding-top: 58px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { max-width: none; margin: 0; }
  .hero-photo-frame { aspect-ratio: 16 / 8.4; }
  .hero-photo { object-position: center 54%; }
  .home-benefits article { padding: 26px 22px; }
  .home-showcase { gap: 28px; }
  .home-permit-check { gap: 28px; padding: 30px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--night-line); }
  .metrics article:nth-child(even) { border-right: 0; }
  .buyer-example { grid-template-columns: 1fr; }
  .access-grid, .pilot-offer, .signup, .trust-section, .project-header-grid, .detail-grid, .correction-section { grid-template-columns: 1fr; }
  .seo-explainer, .seo-faq { grid-template-columns: 1fr; gap: 28px; }
  .seo-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-section > .text-link { grid-column: 1; }
  .detail-grid > aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
  .discovery-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .prepared-hero { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .prepared-method-note { max-width: 520px; }
  .prepared-offer { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); }
  body { font-size: 15.5px; }
  .site-header-inner { padding: 12px 0; }
  .hero { gap: 34px; padding: 46px 0 48px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); letter-spacing: -.03em; }
  .page-hero h1 { font-size: clamp(38px, 12vw, 56px); letter-spacing: -.03em; }
  .hero-photo-frame { aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero-photo { object-position: center 55%; }
  .hero-visual::before { inset: 7% 0 -5% 14%; }
  .hero-visual figcaption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hero-location { right: 14px; bottom: 14px; left: 14px; }
  .hero-actions, .hero-signup { align-items: stretch; flex-direction: column; }
  .hero-signup { width: 100%; }
  .hero-signup button { width: 100%; }
  .home-benefits, .home-showcase, .home-permit-check { grid-template-columns: 1fr; }
  .home-benefits article { border-right: 0; padding: 26px; }
  .home-benefits article:not(:last-child) { border-bottom: 1px solid var(--night-line); }
  .home-benefits p { max-width: none; }
  .home-benefits .detail-icon { margin-bottom: 12px; }
  .home-showcase { gap: 32px; }
  .brief-preview { padding: 24px; }
  .brief-preview h3 { font-size: 22px; }
  .brief-facts { grid-template-columns: 1fr; gap: 16px; }
  .home-permit-check { padding: 26px; }
  .secondary-cta { width: fit-content; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article { min-height: 0; padding: 24px; border-right: 0; }
  .metrics article:not(:last-child) { border-bottom: 1px solid var(--night-line); }
  .metrics strong { font-size: 38px; margin-top: 16px; }
  .section, .trust-section, .access-comparison { padding: 60px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .notable-grid { grid-template-columns: 1fr; }
  .project-card { padding: 24px; }
  .commercial-window { grid-template-columns: 1fr; }
  .commercial-window > span { text-align: left; }
  .buyer-example { gap: 14px; margin-top: 48px; padding: 28px 24px; }
  .activity-row { grid-template-columns: 54px minmax(0, 1fr) 22px; gap: 12px; padding: 18px 20px; }
  .activity-category { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .access-grid > article, .signup { padding: 32px 24px; }
  .pilot-offer { padding: 32px 24px; gap: 30px; }
  .pilot-form .field-grid { grid-template-columns: 1fr; }
  .pilot-form .pilot-territory { grid-column: auto; }
  .field-grid, .detail-grid > aside, .interpretation-box, .policy-grid, .source-statuses { grid-template-columns: 1fr; }
  .signup { gap: 28px; margin-block: 60px; }
  .newsletter-modal-card { padding: 32px 20px 24px; }
  .newsletter-modal-header { padding-right: 36px; }
  .discovery-layout { grid-template-columns: 1fr; padding-bottom: 68px; }
  .project-search-control { align-items: stretch; }
  .project-search-submit { padding-inline: 16px; }
  .filters { position: static; max-height: none; overflow: visible; }
  .results-header { gap: 16px; padding-top: 0; }
  .pilot-results-banner { align-items: flex-start; flex-direction: column; gap: 6px; }
  .results-summary-row { align-items: center; gap: 14px; }
  .results-header h2 { font-size: 30px; white-space: nowrap; }
  .result-tabs { overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
  .result-tabs::-webkit-scrollbar { display: none; }
  .result-tabs a { min-height: 42px; padding: 7px 10px 12px; font-size: 14px; white-space: nowrap; }
  .results-tabs-row { align-items: start; gap: 2px; }
  .result-controls label > span { display: none; }
  .result-controls select { width: min(44vw, 160px); height: 38px; min-height: 38px; font-size: 13px; }
  .result-range { font-size: 11px; }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; }
  .pagination-arrow { grid-row: 2; }
  .filter-alert { grid-template-columns: 1fr; gap: 20px; padding: 25px 22px; }
  .filter-alert-number { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--night-line); }
  .filter-alert-number strong { font-size: 46px; }
  .filter-alert-form { grid-template-columns: 1fr; }
  .filter-alert-form button { width: 100%; }
  .filter-alert-preview li { grid-template-columns: 1fr; gap: 4px; }
  .filter-alert-preview li span { text-align: left; }
  .alerts-page { padding-block: 50px 72px; }
  .alerts-page-header > p { font-size: 16px; }
  .saved-alert-card { grid-template-columns: 1fr; align-items: start; padding: 22px; }
  .saved-alert-actions { width: 100%; }
  .saved-alert-actions form, .saved-alert-actions button { flex: 1; width: 100%; }
  .recommended-action { grid-template-columns: 1fr; gap: 10px; padding: 26px 24px; }
  .recommended-action h2, .recommended-action p { grid-column: 1; margin: 0; }
  .project-location { padding: 22px 18px; border-radius: var(--radius); }
  .project-location-heading, .project-map-meta { align-items: start; flex-direction: column; }
  .project-location-heading { gap: 10px; }
  .project-map, .project-map-canvas { min-height: 290px; height: 290px; }
  .detail-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .detail-grid { gap: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .conversion-strip { align-items: start; flex-direction: column; padding: 30px 26px; }
  .correction-section { gap: 28px; padding: 32px 24px; }
  .methodology-grid section { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .methodology-grid section > span { width: 46px; height: 46px; font-size: 19px; }
  .seo-landing-hero { padding: 42px 0 38px; }
  .seo-snapshot, .seo-project-grid, .seo-related-grid { grid-template-columns: 1fr; }
  .seo-snapshot article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .seo-snapshot article:last-child { border-bottom: 0; }
  .seo-explainer, .seo-faq, .seo-related { padding-block: 54px; }
  .prepared-page { padding: 44px 0 64px; }
  .prepared-hero { padding-bottom: 42px; }
  .prepared-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .prepared-intro { font-size: 16px; }
  .prepared-filter { flex-direction: column; align-items: stretch; }
  .prepared-projects { padding-top: 48px; }
  .prepared-section-head { align-items: start; flex-direction: column; gap: 10px; }
  .prepared-section-head > p { text-align: left; }
  .prepared-project-grid { grid-template-columns: 1fr; }
  .prepared-more-card { align-items: start; padding: 22px; }
  .prepared-offer { margin-top: 52px; padding: 32px 24px; }
  .prepared-price strong { font-size: 46px; }
  .seo-faq h2 { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner > nav { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero-photo { transform: scale(1.02); will-change: auto; }
}
