/*
 * RunAIVA marketing site — shared with https://www.runaiva.com/ IA (Home vs Use Cases).
 * Navy / cream palette; distinct from in-app Fertilizer Watch shell.
 */

:root {
  --rv-bg: #050a12;
  --rv-bg-mid: #0a1624;
  --rv-surface: rgba(15, 28, 48, 0.92);
  --rv-line: rgba(165, 193, 216, 0.14);
  --rv-text: rgba(240, 248, 255, 0.96);
  --rv-muted: rgba(200, 215, 230, 0.82);
  --rv-dim: rgba(170, 190, 210, 0.65);
  --rv-accent: #77c2ff;
  --rv-gold: #d4a24c;
  --rv-watch: #d4a24c;
  --rv-severe: #cb4343;
  --rv-stable: #6fd6a8;
  --rv-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rv-max: 1120px;
}

.rv-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rv-skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--rv-surface);
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  z-index: 1000;
  color: var(--rv-text);
}

.rv-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rv-font);
  font-size: 1.05rem;
  line-height: 1.58;
  font-weight: 500;
  color: var(--rv-text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(55, 120, 180, 0.22), transparent 55%),
    linear-gradient(180deg, var(--rv-bg) 0%, var(--rv-bg-mid) 45%, #060d18 100%);
  -webkit-font-smoothing: antialiased;
}

.rv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rv-line);
  background: rgba(5, 10, 18, 0.88);
  backdrop-filter: blur(12px);
}

.rv-header-inner {
  max-width: var(--rv-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rv-text);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.rv-brand:hover {
  color: var(--rv-accent);
}

.rv-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.rv-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--rv-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rv-nav a:hover {
  color: var(--rv-text);
  border-color: var(--rv-line);
  background: rgba(119, 194, 255, 0.06);
}
.rv-nav a.rv-nav--active {
  color: var(--rv-text);
  border-color: rgba(119, 194, 255, 0.45);
  background: rgba(119, 194, 255, 0.1);
}

.rv-nav-cta {
  border: 1px solid rgba(119, 194, 255, 0.45) !important;
  background: rgba(119, 194, 255, 0.12);
  color: var(--rv-accent) !important;
}
.rv-nav-cta:hover {
  background: rgba(119, 194, 255, 0.2) !important;
}

.rv-main {
  max-width: var(--rv-max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.pg-gateway-hero {
  border: 1px solid rgba(119, 194, 255, 0.22);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 32px) clamp(22px, 4vw, 36px);
  margin-bottom: 32px;
  background:
    linear-gradient(130deg, rgba(14, 34, 58, 0.96), rgba(8, 18, 32, 0.92)),
    radial-gradient(circle at 12% 18%, rgba(119, 194, 255, 0.22), transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(212, 162, 76, 0.12), transparent 40%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
}

.pg-gateway-hero--compact {
  min-height: 0;
}

.pg-gateway-hero__main {
  flex: 1 1 280px;
  min-width: 0;
}

.pg-gateway-hero__actions {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pg-gateway-hero__btn {
  white-space: nowrap;
}

.pg-gateway-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--rv-gold);
  font-weight: 700;
}

.pg-gateway-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.pg-gateway-hero__tagline {
  margin: 0 0 10px;
  max-width: 58ch;
  color: var(--rv-text);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.5;
  font-weight: 500;
}

.pg-gateway-subtitle {
  margin: 0;
  max-width: 52ch;
  color: var(--rv-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

.rv-btn--compact {
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* In-card Phil prompts (gateway use-case cards) */
.pg-gateway-card-phil {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rv-line);
}

.pg-gateway-card-phil-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rv-text);
  letter-spacing: -0.01em;
}

.pg-gateway-card-phil-helper {
  margin: 0 0 12px;
  color: var(--rv-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pg-gateway-card-phil-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.pg-gateway-card-phil-label {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rv-dim);
  font-weight: 700;
}

.pg-gateway-card-phil-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--rv-line);
  background: rgba(4, 12, 22, 0.72);
  color: var(--rv-text);
  padding: 12px 14px;
  font: inherit;
}

.pg-gateway-card-phil-input::placeholder {
  color: var(--rv-dim);
}

.pg-gateway-card-phil-input:focus {
  outline: none;
  border-color: rgba(119, 194, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(119, 194, 255, 0.15);
}

.rv-hero-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rv-gold);
}

.rv-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.rv-hero-lead {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--rv-accent);
  max-width: 36ch;
}

.rv-hero-chain {
  margin: 0 0 24px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rv-muted);
}

.rv-hero-copy {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--rv-muted);
  font-size: 1.05rem;
}

.rv-hero-list {
  margin: 0 0 32px;
  padding-left: 1.15rem;
  max-width: 48ch;
  color: var(--rv-muted);
}
.rv-hero-list li {
  margin-bottom: 10px;
}

.rv-pill-row {
  margin: 0 0 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--rv-dim);
}

.rv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(119, 194, 255, 0.55);
  background: rgba(119, 194, 255, 0.15);
  color: var(--rv-accent);
}
.rv-btn:hover {
  background: rgba(119, 194, 255, 0.28);
  color: #fff;
}

.rv-btn--ghost {
  background: transparent;
  border-color: var(--rv-line);
  color: var(--rv-muted);
}
.rv-btn--ghost:hover {
  border-color: rgba(119, 194, 255, 0.35);
  color: var(--rv-text);
}

/* Use Cases + inner pages */
.rv-page-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rv-subtitle {
  margin: 0 0 32px;
  font-size: 1.1rem;
  color: var(--rv-muted);
  max-width: 52ch;
}

.rv-card {
  background: var(--rv-surface);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  padding: 28px 28px 26px;
  margin-bottom: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.rv-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rv-text);
}

.rv-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-gold);
}

.rv-card .pg-fw-sitrep-h3,
.rv-card .pg-dha-pursuit-h3 {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--rv-text);
}

.rv-card p,
.rv-card ul {
  margin: 0 0 12px;
  color: var(--rv-muted);
  font-size: 0.98rem;
}
.rv-card ul {
  padding-left: 1.1rem;
}
.rv-card li {
  margin-bottom: 8px;
}

/* PolicyGraph gateway — executive launchpad */
.pg-gateway-section {
  margin: 0 0 48px;
}

.pg-gateway-section--audio {
  margin-bottom: 52px;
}

.pg-gateway-section__head {
  margin-bottom: 18px;
}

.pg-gateway-section__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-gold);
}

.pg-gateway-section__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rv-text);
}

.pg-gateway-section__lede {
  margin: 0;
  max-width: 60ch;
  font-size: 0.92rem;
  color: var(--rv-muted);
  line-height: 1.45;
}

.pg-intel-daily {
  margin: 0;
}

.pg-intel-daily__panel {
  padding: 24px 26px 26px;
  border-radius: 18px;
  border: 1px solid rgba(119, 194, 255, 0.36);
  background: linear-gradient(165deg, rgba(10, 26, 44, 0.98), rgba(6, 14, 26, 0.95));
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(119, 194, 255, 0.08);
}

.pg-intel-daily__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.pg-intel-daily__panel-intro {
  flex: 1 1 220px;
  min-width: 0;
}

.pg-intel-daily__title {
  margin: 0 0 6px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rv-accent);
}

.pg-intel-daily__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(200, 215, 230, 0.78);
  max-width: 56ch;
  line-height: 1.5;
}

.pg-intel-daily__stamp {
  margin: 4px 0 0;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-dim);
  white-space: nowrap;
}

.pg-intel-daily__grid {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pg-intel-daily__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .pg-intel-daily__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pg-intel-daily__signal {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(119, 194, 255, 0.22);
  background: rgba(4, 12, 22, 0.62);
  box-shadow: inset 0 1px 0 rgba(119, 194, 255, 0.04);
}

.pg-intel-daily__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-gold);
}

.pg-intel-daily__signal-headline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: rgba(240, 248, 255, 0.96);
}

.pg-intel-daily__signal-support {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 0;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rv-dim);
}

.pg-intel-daily__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(165, 193, 216, 0.14);
}

.pg-gateway-audio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.pg-gateway-audio-row--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
}

.pg-gateway-audio-card {
  padding: 22px 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(119, 194, 255, 0.2);
  background: linear-gradient(165deg, rgba(12, 28, 48, 0.96), rgba(6, 14, 26, 0.94));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pg-gateway-audio-card--dha {
  border-left: 3px solid rgba(232, 148, 46, 0.65);
}

.pg-gateway-audio-card--fw {
  border-left: 3px solid rgba(111, 214, 168, 0.55);
}

.pg-gateway-audio-card__player {
  margin-bottom: 4px;
  flex: 1 1 auto;
}

.pg-gateway-audio-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-text);
}

.pg-gateway-audio-card__subtitle {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--rv-muted);
  line-height: 1.45;
}

.pg-gateway-audio-card__sequence {
  margin: 0 0 10px;
}

.pg-gateway-audio-card__support {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--rv-dim);
  line-height: 1.4;
}

.pg-gateway-audio-card audio {
  width: 100%;
  margin: 0;
  border-radius: 10px;
}

.pg-gateway-audio-card__phil {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pg-gateway-audio-card__phil-link {
  color: var(--rv-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pg-gateway-audio-card__phil-link:hover {
  border-bottom-color: rgba(119, 194, 255, 0.45);
  color: #fff;
}

.pg-gateway-workspaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.pg-gateway-workspaces .rv-card {
  margin-bottom: 0;
}

.pg-workspace-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pg-workspace-card__actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.pg-gateway-btn--primary {
  min-width: 220px;
}

.pg-workspace-card__text-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rv-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pg-workspace-card__text-link:hover {
  border-bottom-color: rgba(119, 194, 255, 0.45);
  color: #fff;
}

.pg-workspace-card__lede,
.pg-workspace-card__subtitle {
  margin: 0 0 14px;
  color: var(--rv-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.pg-workspace-card__plain {
  margin: 0 0 12px;
  color: var(--rv-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
}

.pg-fw-sitrep--compact,
.pg-dha-pursuit--compact {
  margin-bottom: 12px;
  padding: 12px 14px 14px;
}

.pg-gateway-supporting {
  margin: 24px 0 0;
  color: var(--rv-muted);
  font-size: 1rem;
  max-width: 68ch;
}

.rv-chain-tag {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rv-accent);
  letter-spacing: 0.03em;
}

.rv-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rv-line);
  font-size: 0.85rem;
  color: var(--rv-dim);
}

.rv-footer a {
  color: var(--rv-accent);
  text-decoration: none;
}
.rv-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .rv-header-inner {
    padding: 12px 16px;
  }
  .rv-main {
    padding: 32px 16px 64px;
  }
  .rv-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .pg-gateway-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .pg-gateway-hero__actions {
    justify-content: flex-start;
  }

  .pg-gateway-hero__btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .pg-gateway-card-phil-form {
    grid-template-columns: 1fr;
  }

  .pg-gateway-card-phil-form .rv-btn {
    width: 100%;
  }

  .pg-gateway-audio-row {
    grid-template-columns: 1fr;
  }

  .pg-gateway-audio-row--single {
    max-width: none;
  }

  .pg-gateway-workspaces {
    grid-template-columns: 1fr;
  }

  .pg-gateway-btn--primary {
    width: 100%;
    min-width: 0;
  }
}

/* Fertilizer gateway — live SITREP strip (server-fed ``fw_sitrep``) */
.pg-fw-sitrep {
  margin: 0 0 18px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(119, 194, 255, 0.22);
  background: linear-gradient(165deg, rgba(8, 22, 38, 0.95), rgba(5, 12, 22, 0.88));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.pg-fw-sitrep-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.pg-fw-sitrep-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rv-severe);
  box-shadow: 0 0 12px rgba(203, 67, 67, 0.65);
  flex-shrink: 0;
}

.pg-fw-sitrep-h3 {
  margin: 0;
  flex: 1 1 200px;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-text);
  line-height: 1.25;
}

.pg-fw-sitrep-label {
  color: var(--rv-gold);
  letter-spacing: 0.14em;
}

.pg-sitrep-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pg-sitrep-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rv-line);
  color: var(--rv-muted);
  background: rgba(4, 12, 22, 0.55);
}

.pg-sitrep-pill--vector-stable {
  border-color: rgba(111, 214, 168, 0.45);
  color: var(--rv-stable);
}

.pg-sitrep-pill--vector-volatile {
  border-color: rgba(212, 162, 76, 0.55);
  color: var(--rv-watch);
}

.pg-sitrep-pill--vector-accel {
  border-color: rgba(203, 67, 67, 0.55);
  color: var(--rv-severe);
}

.pg-sitrep-pill--vector-unknown {
  border-color: var(--rv-line);
  color: var(--rv-dim);
}

.pg-sitrep-pill--band {
  border-color: rgba(119, 194, 255, 0.35);
  color: var(--rv-accent);
}

.pg-sitrep-pill--confidence {
  border-color: rgba(165, 193, 216, 0.35);
  color: var(--rv-muted);
}

.pg-fw-sitrep-feed {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--rv-muted);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
}

.pg-fw-sitrep-partial {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--rv-watch);
  line-height: 1.4;
}

/* DHA gateway — pursuit strip (server-fed ``dha_pursuit``) */
.pg-dha-pursuit {
  margin: 0 0 18px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(232, 148, 46, 0.28);
  background: linear-gradient(165deg, rgba(38, 22, 10, 0.92), rgba(12, 8, 6, 0.9));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.pg-dha-pursuit-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.pg-dha-pursuit-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8942e;
  box-shadow: 0 0 12px rgba(232, 148, 46, 0.55);
  flex-shrink: 0;
}

.pg-dha-pursuit-h3 {
  margin: 0;
  flex: 1 1 200px;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-text);
  line-height: 1.25;
}

.pg-dha-pursuit-label {
  color: #e8942e;
  letter-spacing: 0.14em;
}

.pg-sitrep-pill--posture-vulnerable {
  border-color: rgba(232, 148, 46, 0.55);
  color: #e8942e;
}

.pg-sitrep-pill--posture-defensive {
  border-color: rgba(119, 194, 255, 0.4);
  color: var(--rv-accent);
}

.pg-sitrep-pill--posture-dominant {
  border-color: rgba(165, 193, 216, 0.45);
  color: var(--rv-muted);
}

.pg-sitrep-pill--posture-unknown {
  border-color: var(--rv-line);
  color: var(--rv-dim);
}

.pg-dha-pursuit-feed {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--rv-muted);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
}

.pg-dha-pursuit-partial {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--rv-watch);
  line-height: 1.4;
}

/* GAO fragility preview (gateway): only rendered when DuckDB reader returns surfaced rows */
.pg-dha-gao-preview {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 148, 46, 0.2);
}

.pg-dha-gao-preview__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8942e;
}

.pg-dha-gao-preview__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--rv-muted);
}

.pg-dha-gao-preview__item {
  margin-bottom: 4px;
}

.pg-dha-gao-preview__link {
  color: var(--rv-text);
  font-weight: 600;
}

.pg-dha-gao-preview__meta {
  color: var(--rv-dim);
}

.pg-dha-gao-preview__why {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  font-size: 0.76rem;
  color: var(--rv-muted);
}

/* DHA Vendor Intel — executive readout + compact tables */
.pg-vendor-intel-hero {
  margin-bottom: 8px;
}

/* Ask Phil — inline structured evidence from vendor intel page */
.pg-vendor-intel-askphil {
  margin: 0 0 28px;
  padding: 22px 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(119, 194, 255, 0.32);
  background: rgba(6, 14, 26, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  width: 100%;
  box-sizing: border-box;
  font-family: var(--rv-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.pg-vendor-intel-askphil__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.pg-vendor-intel-askphil__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.96);
}

.pg-vendor-intel-askphil__helper {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(210, 222, 238, 0.88);
}

.pg-vendor-intel-askphil__form {
  margin: 0;
}

.pg-vendor-intel-askphil__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 198, 218, 0.75);
}

.pg-vendor-intel-askphil__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: stretch;
}

.pg-vendor-intel-askphil__input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 12, 22, 0.85);
  color: rgba(235, 245, 255, 0.96);
  padding: 12px 16px;
  font-family: var(--rv-font);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.pg-vendor-intel-askphil__input::placeholder {
  color: rgba(165, 185, 208, 0.55);
}

.pg-vendor-intel-askphil__input:focus {
  outline: none;
  border-color: rgba(119, 194, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(119, 194, 255, 0.12);
}

.pg-vendor-intel-askphil__submit {
  white-space: nowrap;
  align-self: center;
  min-height: 48px;
  padding-left: 20px;
  padding-right: 20px;
}

.pg-vendor-intel-askphil__try {
  margin-top: 18px;
}

.pg-vendor-intel-askphil__try-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 198, 218, 0.75);
}

.pg-vendor-intel-askphil__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
}

.pg-vendor-intel-askphil-chip {
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(119, 194, 255, 0.35);
  background: rgba(6, 16, 30, 0.65);
  color: rgba(225, 235, 248, 0.95);
  font-family: var(--rv-font);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  justify-self: stretch;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.pg-vendor-intel-askphil-chip:hover {
  border-color: rgba(119, 194, 255, 0.65);
  background: rgba(12, 28, 48, 0.85);
}

.pg-vendor-intel-askphil-chip:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(119, 194, 255, 0.2);
}

.pg-vendor-intel-askphil__status {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: rgba(165, 193, 216, 0.85);
}

.pg-vendor-intel-askphil__error {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: rgba(255, 160, 160, 0.95);
}

.pg-vendor-intel-askphil-result {
  margin-top: 20px;
  padding: 20px 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(119, 194, 255, 0.28);
  background: rgba(8, 18, 32, 0.72);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--rv-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.pg-vendor-intel-askphil-result[data-accent='dha'] {
  border-left: 4px solid rgba(119, 194, 255, 0.92);
}

.pg-vendor-intel-askphil-result[data-accent='cross'] {
  border-left: 4px solid rgba(212, 162, 76, 0.92);
}

.pg-vendor-intel-askphil-result[data-accent='commodity'] {
  border-left: 4px solid rgba(120, 200, 160, 0.92);
}

.pg-vendor-intel-askphil-result__kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(119, 194, 255, 0.92);
}

.pg-vendor-intel-askphil-result__panel-title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 232, 248, 0.95);
}

.pg-vendor-intel-askphil-result__route {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(165, 193, 216, 0.88);
  word-break: break-word;
}

.pg-vendor-intel-askphil-result__bluf {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0.01em;
  color: rgba(240, 248, 255, 0.96);
  white-space: pre-wrap;
}

.pg-vendor-intel-askphil-result__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--rv-font);
  color: rgba(195, 210, 228, 0.92);
}

.pg-vendor-intel-askphil-result__metrics span {
  white-space: normal;
  max-width: 100%;
  padding: 4px 0;
}

.pg-vendor-intel-askphil-result__pill-wrap {
  margin: 0 0 10px;
}

.pg-vendor-intel-askphil-result__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(235, 245, 255, 0.92);
  background: rgba(4, 12, 22, 0.55);
}

.pg-vendor-intel-askphil-result__bullets {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.52;
  color: rgba(228, 238, 250, 0.94);
}

.pg-vendor-intel-askphil-result__bullets li,
.pg-vendor-intel-askphil-result__bullet-item {
  margin-bottom: 8px;
  white-space: pre-line;
}

.pg-vendor-intel-askphil-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .pg-vendor-intel-askphil__chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pg-vendor-intel-askphil__row {
    grid-template-columns: 1fr;
  }

  .pg-vendor-intel-askphil__submit {
    width: 100%;
  }
}

.pg-vendor-intel-whatdo {
  margin: 0 0 28px;
  padding: 22px 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(212, 162, 76, 0.55);
  background: linear-gradient(145deg, #0a1628 0%, #050c16 55%, #0c1a2e 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.45);
}

.pg-vendor-intel-whatdo__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.pg-vendor-intel-whatdo__lede {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(220, 230, 245, 0.82);
  max-width: 72ch;
}

.pg-vendor-intel-whatdo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pg-vendor-intel-whatdo__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 20, 0.72);
}

.pg-vendor-intel-whatdo__col--pursue {
  border-left: 4px solid rgba(120, 200, 160, 0.95);
}

.pg-vendor-intel-whatdo__col--partner {
  border-left: 4px solid rgba(119, 194, 255, 0.9);
}

.pg-vendor-intel-whatdo__col--avoid {
  border-left: 4px solid rgba(220, 100, 100, 0.95);
}

.pg-vendor-intel-whatdo__col-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.92);
}

.pg-vendor-intel-whatdo__list {
  flex: 1 1 auto;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.52;
  color: rgba(235, 245, 255, 0.94);
}

.pg-vendor-intel-whatdo__list li {
  margin-bottom: 8px;
}

.pg-vendor-intel-whatdo__empty {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(200, 215, 230, 0.65);
  font-style: italic;
}

.pg-vendor-intel-bluf {
  margin: 0 0 26px;
  padding: 18px 20px 20px;
  border-radius: 14px;
  border: 1px solid rgba(119, 194, 255, 0.28);
  background: rgba(8, 20, 36, 0.55);
}

.pg-vendor-intel-bluf__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-gold);
}

.pg-vendor-intel-bluf__heading {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rv-text);
}

.pg-vendor-intel-bluf__body {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(240, 248, 255, 0.96);
  max-width: 78ch;
}

.pg-vendor-intel-keyline {
  margin: 0 0 26px;
}

.pg-vendor-intel-keyline__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pg-vendor-intel-keyline__tile {
  padding: 14px 16px 16px;
  border-radius: 12px;
  border: 1px solid var(--rv-line);
  background: rgba(6, 14, 24, 0.65);
}

.pg-vendor-intel-keyline__label {
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-dim);
}

.pg-vendor-intel-keyline__value {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rv-text);
  line-height: 1.25;
}

.pg-vendor-intel-keyline__meta,
.pg-vendor-intel-keyline__desc,
.pg-vendor-intel-keyline__mono {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--rv-muted);
}

.pg-vendor-intel-keyline__mono {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--rv-dim);
}

.pg-vendor-intel-keyline__empty {
  margin: 0;
  color: var(--rv-dim);
  font-size: 0.9rem;
}

.pg-vendor-intel-takeaways {
  margin: 0 0 32px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(165, 193, 216, 0.16);
  background: rgba(5, 12, 22, 0.45);
}

.pg-vendor-intel-takeaways__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-dim);
}

.pg-vendor-intel-takeaways__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--rv-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pg-vendor-intel-takeaways__list li {
  margin-bottom: 8px;
}

.pg-vendor-intel-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #1a0f04;
  background: linear-gradient(135deg, rgba(212, 162, 76, 0.95), rgba(230, 185, 95, 0.92));
  border: 1px solid rgba(255, 220, 160, 0.35);
}

.pg-vendor-intel-row--hot td {
  background: rgba(119, 194, 255, 0.08);
  font-weight: 600;
}

.pg-vendor-intel-row--hot .pg-vendor-intel-date {
  color: #ffb86b;
  font-weight: 700;
}

.pg-vendor-intel-alert {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(203, 67, 67, 0.45);
  background: rgba(48, 12, 12, 0.55);
}

.pg-vendor-intel-alert__title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb4b4;
}

.pg-vendor-intel-alert__body {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--rv-muted);
}

.pg-vendor-intel-alert__path {
  margin: 0;
  font-size: 0.78rem;
  color: var(--rv-dim);
}

.pg-vendor-intel-readout-panel {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(119, 194, 255, 0.22);
  background: linear-gradient(165deg, rgba(8, 22, 38, 0.95), rgba(5, 12, 22, 0.88));
}

.pg-vendor-intel-readout-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--rv-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pg-vendor-intel-readout-list strong {
  color: var(--rv-text);
}

.pg-vendor-intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.pg-vendor-intel-card {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pg-vendor-intel-card--full {
  margin-bottom: 22px;
}

.pg-vendor-intel-card__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-text);
  border-bottom: 1px solid rgba(165, 193, 216, 0.18);
  padding-bottom: 10px;
}

.pg-vendor-intel-card__lede {
  margin: -4px 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--rv-dim);
}

.pg-vendor-intel-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(165, 193, 216, 0.14);
  background: rgba(4, 12, 22, 0.45);
}

.pg-vendor-intel-table-wrap--wide {
  max-width: 100%;
}

.pg-vendor-intel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.pg-vendor-intel-table--dense {
  font-size: 0.76rem;
}

.pg-vendor-intel-table thead th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rv-dim);
  background: rgba(6, 16, 28, 0.9);
  border-bottom: 1px solid rgba(165, 193, 216, 0.2);
}

.pg-vendor-intel-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(165, 193, 216, 0.1);
  color: var(--rv-muted);
  vertical-align: top;
}

.pg-vendor-intel-table tbody tr:hover td {
  background: rgba(119, 194, 255, 0.06);
}

.pg-vendor-intel-num {
  text-align: right;
  white-space: nowrap;
}

.pg-vendor-intel-mono {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  color: var(--rv-muted);
}

.pg-vendor-intel-date {
  white-space: nowrap;
  color: #e8942e;
  font-weight: 600;
}

.pg-vendor-intel-empty {
  text-align: center;
  color: var(--rv-dim);
  font-style: italic;
  padding: 16px 10px !important;
}

@media (max-width: 900px) {
  .pg-vendor-intel-grid {
    grid-template-columns: 1fr;
  }

  .pg-vendor-intel-whatdo__grid,
  .pg-vendor-intel-keyline__grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* PolicyGraph homepage — decision-graph hero + live Phil demo              */
/* -------------------------------------------------------------------------- */

:root {
  --pg-home-capture: #4d8fd4;
  --pg-home-capture-soft: rgba(77, 143, 212, 0.2);
  --pg-home-risk: #3d9b72;
  --pg-home-risk-soft: rgba(61, 155, 114, 0.18);
  --pg-home-amber: #c9a227;
  --pg-home-fragile: rgba(220, 90, 90, 0.95);
}

.pg-home-hero {
  border: 1px solid rgba(119, 194, 255, 0.2);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 36px;
  background:
    linear-gradient(145deg, rgba(12, 26, 44, 0.97), rgba(6, 14, 26, 0.94)),
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(77, 143, 212, 0.12), transparent 55%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pg-home-hero[data-track="risk"] {
  background:
    linear-gradient(145deg, rgba(10, 32, 28, 0.96), rgba(6, 16, 22, 0.94)),
    radial-gradient(ellipse 65% 45% at 85% 10%, var(--pg-home-risk-soft), transparent 50%);
}

.pg-home-hero__top {
  max-width: 68ch;
  margin-bottom: 20px;
}

.pg-home-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.pg-home-hero__lead {
  margin: 0 0 10px;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.52;
  color: var(--rv-muted);
  font-weight: 500;
}

.pg-home-hero__caption {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--rv-dim);
  max-width: 62ch;
}

.pg-home-track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--rv-line);
  background: rgba(5, 12, 22, 0.55);
}

.pg-home-track__btn {
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--rv-dim);
  background: transparent;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.pg-home-track__btn:hover {
  color: var(--rv-text);
}

.pg-home-track__btn[aria-pressed="true"] {
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.pg-home-hero[data-track="capture"] .pg-home-track__btn[data-track="capture"][aria-pressed="true"] {
  background: linear-gradient(135deg, var(--pg-home-capture), #2e6aa8);
}

.pg-home-hero[data-track="risk"] .pg-home-track__btn[data-track="risk"][aria-pressed="true"] {
  background: linear-gradient(135deg, var(--pg-home-risk), #2a7a58);
}

.pg-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
}

.pg-home-hero__graph-col,
.pg-home-hero__brief-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pg-home-graph-panel {
  border-radius: 16px;
  border: 1px solid var(--rv-line);
  background: rgba(4, 10, 18, 0.55);
  padding: 14px 14px 10px;
  min-height: 280px;
}

.pg-home-graph-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.pg-home-graph-panel__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-dim);
}

.pg-home-graph-panel__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--rv-dim);
}

.pg-home-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
}

.pg-home-svg .pg-edge--main {
  fill: none;
  stroke-linecap: round;
}

.pg-home-svg .pg-edge--heavy {
  stroke-width: 4;
  opacity: 0.92;
}

.pg-home-svg .pg-edge--support {
  stroke-width: 2;
  opacity: 0.45;
}

.pg-home-svg .pg-edge--gap {
  stroke-dasharray: 7 6;
  stroke-width: 2;
  opacity: 0.65;
}

.pg-home-hero[data-track="capture"] .pg-home-svg .pg-edge--main {
  stroke: var(--pg-home-capture);
}

.pg-home-hero[data-track="risk"] .pg-home-svg .pg-edge--main {
  stroke: var(--pg-home-risk);
}

.pg-home-svg .pg-edge--fragile {
  stroke: var(--pg-home-fragile);
}

.pg-home-svg .pg-node {
  stroke-width: 2;
}

.pg-home-hero[data-track="capture"] .pg-home-svg .pg-node--core {
  stroke: var(--pg-home-capture);
  fill: rgba(77, 143, 212, 0.25);
}

.pg-home-hero[data-track="risk"] .pg-home-svg .pg-node--core {
  stroke: var(--pg-home-risk);
  fill: rgba(61, 155, 114, 0.22);
}

.pg-home-svg .pg-node--amber {
  stroke: var(--pg-home-amber);
  fill: rgba(201, 162, 39, 0.22);
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.35));
}

.pg-home-svg .pg-node--green {
  stroke: var(--rv-stable);
  fill: rgba(111, 214, 168, 0.18);
  filter: drop-shadow(0 0 8px rgba(111, 214, 168, 0.25));
}

.pg-home-svg .pg-node--risk {
  stroke: var(--pg-home-fragile);
  fill: rgba(220, 90, 90, 0.12);
}

.pg-home-svg .pg-node-label {
  font-size: 11px;
  font-weight: 700;
  fill: rgba(240, 248, 255, 0.92);
  font-family: var(--rv-font);
}

.pg-home-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rv-line);
  font-size: 0.72rem;
  color: var(--rv-dim);
}

.pg-home-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg-home-legend i {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--rv-accent);
}

.pg-home-legend i.pg-leg--dash {
  height: 0;
  border-bottom: 3px dashed rgba(200, 215, 230, 0.55);
  background: none;
}

.pg-home-legend i.pg-leg--thick {
  height: 4px;
}

.pg-home-brief {
  border-radius: 16px;
  border: 1px solid rgba(119, 194, 255, 0.22);
  background: rgba(8, 18, 32, 0.88);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-home-brief__head {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-gold);
}

.pg-home-brief__bluf {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--rv-text);
  font-weight: 600;
}

.pg-home-brief__bluf strong {
  color: var(--rv-accent);
  font-weight: 700;
}

.pg-home-brief__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--rv-muted);
}

.pg-home-brief__metrics dt {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-dim);
}

.pg-home-brief__metrics dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--rv-text);
}

.pg-home-brief__cta {
  margin-top: auto;
}

.pg-home-brief__cta .rv-btn {
  width: 100%;
  justify-content: center;
}

.pg-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
}

.pg-home-panel[hidden] {
  display: none !important;
}

.pg-home-how {
  margin-bottom: 40px;
}

.pg-home-how__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pg-home-card {
  border-radius: 16px;
  border: 1px solid var(--rv-line);
  background: rgba(8, 16, 28, 0.65);
  padding: 20px 20px 22px;
}

.pg-home-card__step {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--rv-dim);
  text-transform: uppercase;
}

.pg-home-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pg-home-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--rv-muted);
  line-height: 1.5;
}

.pg-home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 40px;
}

.pg-home-use {
  border-radius: 16px;
  border: 1px solid var(--rv-line);
  padding: 20px 20px 22px;
  background: rgba(6, 14, 26, 0.75);
}

.pg-home-use--capture {
  border-color: rgba(77, 143, 212, 0.28);
}

.pg-home-use--risk {
  border-color: rgba(61, 155, 114, 0.28);
}

.pg-home-use__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-dim);
  margin: 0 0 8px;
}

.pg-home-use h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.pg-home-use p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--rv-muted);
  line-height: 1.5;
}

.pg-home-use__prompt {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--rv-line);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--rv-accent);
  text-decoration: none;
  word-break: break-word;
}

.pg-home-use__prompt:hover {
  border-color: rgba(119, 194, 255, 0.4);
}

.pg-home-diff {
  margin-bottom: 40px;
}

.pg-home-diff__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pg-home-diff__item {
  border-radius: 14px;
  border: 1px solid var(--rv-line);
  padding: 16px 18px;
  background: rgba(5, 12, 22, 0.55);
}

.pg-home-diff__item h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.pg-home-diff__item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--rv-muted);
  line-height: 1.48;
}

.pg-home-demo {
  margin-bottom: 44px;
  border-radius: 20px;
  border: 1px solid rgba(119, 194, 255, 0.18);
  padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(165deg, rgba(10, 24, 42, 0.9), rgba(5, 12, 20, 0.92));
}

.pg-home-demo__head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.pg-home-demo__head p {
  margin: 0 0 16px;
  color: var(--rv-muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

.pg-home-demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pg-home-demo__chip {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rv-line);
  background: rgba(8, 18, 32, 0.6);
  color: var(--rv-muted);
  cursor: pointer;
}

.pg-home-demo__chip:hover {
  color: var(--rv-text);
  border-color: rgba(119, 194, 255, 0.35);
}

.pg-home-demo__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pg-home-demo__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rv-line);
  background: rgba(4, 10, 18, 0.85);
  color: var(--rv-text);
  font: inherit;
  font-size: 0.95rem;
}

.pg-home-demo__input:focus {
  outline: none;
  border-color: rgba(119, 194, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(119, 194, 255, 0.12);
}

.pg-home-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pg-home-demo__tab {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--rv-dim);
  cursor: pointer;
}

.pg-home-demo__tab[aria-selected="true"] {
  color: var(--rv-text);
  border-color: rgba(119, 194, 255, 0.4);
  background: rgba(119, 194, 255, 0.1);
}

.pg-home-demo__panes {
  border-radius: 14px;
  border: 1px solid var(--rv-line);
  background: rgba(3, 10, 18, 0.65);
  min-height: 200px;
  max-height: 360px;
  overflow: auto;
}

.pg-home-demo__pane {
  display: none;
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--rv-muted);
}

.pg-home-demo__pane[aria-hidden="false"] {
  display: block;
}

.pg-home-demo__pane pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
  font-family: ui-monospace, Menlo, monospace;
  color: rgba(200, 215, 230, 0.88);
}

.pg-home-demo__km-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.pg-home-demo__km-table th,
.pg-home-demo__km-table td {
  border-bottom: 1px solid var(--rv-line);
  padding: 6px 8px;
  text-align: left;
}

.pg-home-demo__status {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--rv-dim);
}

.pg-home-demo__status--err {
  color: #f0a4a4;
}

@media (max-width: 900px) {
  .pg-home-hero__grid {
    grid-template-columns: 1fr;
  }

  .pg-home-how__grid {
    grid-template-columns: 1fr;
  }

  .pg-home-split {
    grid-template-columns: 1fr;
  }

  .pg-home-diff__grid {
    grid-template-columns: 1fr;
  }

  .pg-home-brief__metrics {
    grid-template-columns: 1fr;
  }
}
