:root {
  --navy-deep: #0c1f3f;
  --navy: #142a52;
  --navy-soft: #1f3a63;
  --ink: #0b172b;
  --paper: #f6f8fc;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-soft: #e9cf6a;
  --border: rgba(12, 31, 63, 0.12);
  --shadow: 0 18px 42px rgba(12, 31, 63, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at 14% -10%, rgba(201, 162, 39, 0.12), transparent 40%),
    radial-gradient(circle at 94% -4%, rgba(31, 58, 99, 0.15), transparent 38%),
    var(--paper);
  line-height: 1.55;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 248, 252, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
}

.brand-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.brand-sub {
  display: block;
  font-size: 0.74rem;
  color: #4b5f86;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  font-size: 0.92rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: #3b4f76;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--navy-deep);
  border-color: rgba(201, 162, 39, 0.55);
}

.header-cta {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 650;
  font-family: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 140ms ease, color 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--navy) 12%, var(--navy-deep));
  color: var(--white);
  padding: 10px 20px;
  box-shadow: 0 14px 32px rgba(12, 31, 63, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 17px 40px rgba(12, 31, 63, 0.3);
}

.btn-gold {
  background: linear-gradient(130deg, #e3c963, var(--gold));
  color: var(--navy-deep);
  padding: 13px 20px;
  box-shadow: 0 14px 32px rgba(201, 162, 39, 0.32);
}

.btn-gold:hover {
  box-shadow: 0 18px 36px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  padding: 10px 20px;
  border: 1px solid rgba(12, 31, 63, 0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.btn-lg {
  min-height: 48px;
  font-size: 0.95rem;
}

.btn-compact {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.hero {
  padding: clamp(48px, 7vw, 96px) 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(201, 162, 39, 0.15), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(20, 42, 82, 0.16), transparent 42%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
}

.eyebrow {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #596c92;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin: 0 0 14px;
  color: var(--navy-deep);
}

.hero h1 em {
  font-style: italic;
  color: var(--navy-soft);
}

.lead {
  font-size: 1.05rem;
  color: #3c4f75;
}

.hero-points {
  margin: 20px 0 0;
  padding-left: 20px;
  color: #3c4f75;
}
.hero-points li + li {
  margin-top: 6px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 31, 63, 0.08);
}

.hero-card-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-deep);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--navy-soft);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.input-lg {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(12, 31, 63, 0.16);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #fbfcfe;
}

.input-lg:focus-visible {
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.muted {
  color: #4c618a;
}

.small {
  font-size: 0.88rem;
}

.hint {
  min-height: 1.35em;
  font-size: 0.82rem;
  color: var(--navy-soft);
}

.recent {
  margin-top: 18px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px dashed rgba(12, 31, 63, 0.25);
  background: rgba(246, 248, 252, 0.9);
  padding: 6px 13px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--navy);
}

.chip.is-active {
  border-style: solid;
  border-color: rgba(12, 31, 63, 0.45);
  background: rgba(201, 162, 39, 0.16);
}

.trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 42, 82, 0.07);
  font-size: 0.74rem;
  font-weight: 650;
  color: #32507c;
}

.stripe-demo {
  background: linear-gradient(120deg, rgba(14, 30, 64, 0.08), transparent);
  padding: 42px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.stripe-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: end;
}

.pay-form {
  display: grid;
  gap: 14px;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 31, 63, 0.08);
}

.pay-form input[type="email"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(12, 31, 63, 0.16);
  font-size: 0.96rem;
  font-family: inherit;
}

.stripe-badge {
  font-size: 0.8rem;
  color: #4c618a;
  font-weight: 600;
}

.services {
  padding: 76px 0 40px;
}

.section-title {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--navy-deep);
}

.section-lead {
  margin: 0 0 32px;
  max-width: 720px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(12, 31, 63, 0.08);
  box-shadow: 0 14px 32px rgba(12, 31, 63, 0.05);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  color: #52648c;
  font-size: 0.95rem;
}

.report {
  padding: 48px 0 86px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 22px;
}

.risk-pill {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 31, 63, 0.1);
  background: rgba(255, 255, 255, 0.8);
  min-width: 220px;
  box-shadow: 0 10px 26px rgba(12, 31, 63, 0.06);
}
.risk-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin-top: 4px;
}

.panels {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 31, 63, 0.09);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 24px);
  min-height: 220px;
}

.panel-map {
  grid-column: 1 / -1;
}

.panel-head {
  margin-bottom: 12px;
}
.panel-head h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.panel-head-ai {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-icon {
  font-size: 0.95rem;
}

.map-marker.leaflet-div-icon {
  border: none;
  background: transparent;
}

.map-root {
  height: clamp(260px, 44vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(12, 31, 63, 0.12);
}

.map-caption {
  margin: 12px 0 0;
}

.stat-hero {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: center;
}

.stat-big {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--navy-deep);
}

.delta {
  margin: 0;
  font-weight: 650;
}

.delta.positive {
  color: #1e7f4f;
}

.delta.warning {
  color: #aa5b16;
}

.delta.neutral {
  color: #4f648d;
}

.spark-wrap {
  background: radial-gradient(circle at 85% -10%, rgba(201, 162, 39, 0.16), transparent 55%),
    rgba(246, 248, 252, 0.8);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(12, 31, 63, 0.07);
}

.bar-wrap {
  margin-top: 16px;
}

.panel-kicker {
  font-weight: 650;
  color: var(--navy-soft);
  margin-bottom: 8px;
}

.bullet-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #3c506f;
}

.bullet-list li + li {
  margin-top: 8px;
}

.gauge {
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(12, 31, 63, 0.03);
  border: 1px dashed rgba(12, 31, 63, 0.14);
}

.gauge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.gauge-top strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.gauge-bar {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(12, 31, 63, 0.1);
  overflow: hidden;
}

.gauge-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f1de8a);
  width: 0%;
}

.gauge-note {
  margin-top: 8px;
}

.infra-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.infra-item {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(12, 31, 63, 0.08);
}
.infra-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.infra-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.infra-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #4c618a;
}

.disclaimer-mini {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #69799c;
  border-left: 3px solid rgba(201, 162, 39, 0.55);
  padding-left: 10px;
}

.pdf-preview {
  padding: 0 0 86px;
}

.pdf-pages {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pdf-page {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(12, 31, 63, 0.12);
  padding: 18px 18px 20px;
  min-height: 320px;
  box-shadow: 0 22px 50px rgba(12, 31, 63, 0.12);
}

.pdf-banner {
  background: var(--navy-deep);
  color: var(--white);
  margin: -18px -18px 14px -18px;
  padding: 14px 16px;
  border-radius: 12px 12px 0 0;
}

.pdf-logo {
  margin: 0;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 700;
}

.pdf-meta {
  margin: 4px 0 0;
  font-size: 0.76rem;
  opacity: 0.88;
}

.pdf-cover-map {
  height: 112px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: radial-gradient(circle at 30% -10%, rgba(201, 162, 39, 0.4), transparent 55%),
    linear-gradient(130deg, #1f3560 10%, #0c1f3f), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='32' cy='28' fill='%23c9a227' fill-opacity='.45' r='18'/%3E%3Ccircle cx='86' cy='46' fill='%23c9a227' fill-opacity='.55' r='26'/%3E%3Ccircle cx='60' cy='78' fill='%23ffffff' fill-opacity='.12' r='22'/%3E%3C/svg%3E");
  background-blend-mode: screen, multiply, normal;
}

.pdf-h {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-deep);
}

.pdf-body {
  font-size: 0.82rem;
  color: #3c506f;
  margin-bottom: 12px;
}

.pdf-stats-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf-stats-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--navy-deep);
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.pdf-table th,
.pdf-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(12, 31, 63, 0.1);
}

.pdf-table th.num,
.pdf-table td.num {
  text-align: right;
}

.pdf-callout {
  font-size: 0.76rem;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 8px;
  padding: 8px;
  color: var(--navy);
}

.pdf-bullets {
  padding-left: 16px;
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #3c506f;
}

.pdf-bullets li + li {
  margin-top: 6px;
}

.pdf-gauge {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(12, 31, 63, 0.08);
}

.pdf-footer-legal {
  margin-top: 16px;
  font-size: 0.72rem;
  color: #637496;
}

.pricing {
  padding: 0 0 72px;
}

.pricing-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.price-facts {
  margin: 0;
}

.price-facts > div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(12, 31, 63, 0.1);
}

.price-facts dt {
  font-weight: 650;
}

.price-facts dd {
  margin: 6px 0 0;
  color: #4c618a;
}

.costs {
  padding: 0 0 86px;
}

.cost-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cost-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(12, 31, 63, 0.08);
  box-shadow: 0 14px 32px rgba(12, 31, 63, 0.05);
}

.cost-card h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--navy-deep);
}

.cost-range {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-soft);
}

.cost-card.highlight {
  border-color: rgba(201, 162, 39, 0.45);
  background: radial-gradient(circle at 106% -20%, rgba(201, 162, 39, 0.18), transparent 55%);
}

.data-sources {
  padding: 0 0 86px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 48%);
}

.resource-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 31, 63, 0.09);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 28px);
}

.resource-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.resource-card h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--navy-soft);
}

.resource-lead {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.resource-sub {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(12, 31, 63, 0.12);
}

.resource-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.resource-links.tight {
  gap: 8px;
}

.resource-links li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resource-links a {
  font-weight: 650;
  color: var(--navy-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  color: var(--navy-deep);
  border-bottom-color: rgba(201, 162, 39, 0.6);
}

.resource-links code {
  font-size: 0.88em;
  background: rgba(12, 31, 63, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.resource-hint {
  font-size: 0.82rem;
  color: #5a6f95;
  line-height: 1.45;
}

.resource-hint a {
  font-weight: 600;
  color: var(--navy-soft);
}

.resource-columns {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 8px;
}

.resource-column {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(246, 248, 252, 0.85);
  border: 1px solid rgba(12, 31, 63, 0.06);
}

.data-sources-foot {
  margin-top: 22px;
}

.support {
  padding: 56px 0 86px;
  border-top: 1px solid var(--border);
}

.support-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.support-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer-brand {
  margin: 0 0 4px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  left: 22px;
  justify-self: end;
  max-width: 420px;
  margin-left: auto;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: 0 26px 50px rgba(8, 16, 32, 0.45);
  z-index: 60;
}

.toast:not([hidden]) {
  animation: toast-in 200ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.data-truth-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 31, 63, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

.data-truth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.data-truth-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--navy-soft);
  max-width: 460px;
}

.truth-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.truth-dot-live {
  background: #198754;
}

.truth-dot-off {
  background: #9aa6c4;
}

.spark-wrap-chart {
  position: relative;
  height: 180px;
  min-height: 160px;
  width: 100%;
}

.bar-wrap-chart {
  position: relative;
  min-height: 280px;
  height: 300px;
  width: 100%;
  margin-top: 14px;
}

.social-panel-muted {
  background: rgba(246, 248, 252, 0.65);
}

.ai-badge-muted {
  background: rgba(154, 166, 196, 0.25);
  color: var(--navy-soft);
}

.live-dashboard {
  margin-bottom: 20px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 31, 63, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 254, 0.88));
  box-shadow: var(--shadow);
}

.live-dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(20, 42, 82, 0.08);
  color: var(--navy-deep);
}

.live-pill--live {
  background: rgba(30, 127, 79, 0.12);
  color: #146b45;
}

.live-pill--demo {
  background: rgba(170, 91, 22, 0.12);
  color: #884a12;
}

.live-pill--wait {
  animation: live-pulse 1.2s ease infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.live-dash-meta {
  margin: 0;
  flex: 1;
  text-align: right;
  min-width: 220px;
}

.live-widgets {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 280px);
  align-items: center;
}

.score-widget {
  display: grid;
  place-items: center;
  gap: 8px;
}

.score-widget-title {
  margin: 0;
  max-width: 17rem;
  text-align: center;
  line-height: 1.35;
}

.score-ring {
  position: relative;
  width: min(168px, 100%);
  --score: 0;
}

.score-ring svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 168px;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 8px 20px rgba(12, 31, 63, 0.1));
}

.score-ring-bg {
  fill: none;
  stroke: rgba(12, 31, 63, 0.1);
  stroke-width: 10;
}

.score-ring-fg {
  fill: none;
  stroke: #d4af37;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 * (1 - var(--score, 0)));
  transition: stroke-dashoffset 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#live-safety-score {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1;
  color: var(--navy-deep);
}

.score-ring-denom {
  font-size: 0.78rem;
}

.score-ring-caption {
  margin-top: 6px;
  max-width: 10rem;
  line-height: 1.35;
}

.kpi-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.kpi-card {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(12, 31, 63, 0.06);
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 650;
  color: #596c92;
}

.kpi-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.kpi-card .tiny {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.35;
}

.mix-chart-card {
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid rgba(12, 31, 63, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.mix-chart-title {
  margin: 0 0 4px;
}

.mix-chart-wrap {
  position: relative;
  height: 220px;
}

.mix-chart-wrap canvas {
  max-width: 100%;
}

.live-dash-footnote {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(12, 31, 63, 0.1);
}

@media (max-width: 940px) {
  .panels {
    grid-template-columns: 1fr;
  }

  .live-widgets {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .score-widget {
    margin: 4px auto 8px;
  }

  .live-dash-meta {
    text-align: left;
    flex-basis: 100%;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .stat-hero {
    grid-template-columns: 1fr;
  }

  .pdf-stats-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .hero,
  .stripe-demo,
  .services,
  .pricing,
  .costs,
  .support,
  .toast,
  .nav,
  .header-cta {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .report,
  .pdf-preview {
    padding: 0;
  }

  .panel,
  .pdf-page {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
