:root {
  color-scheme: light;
  --ink: #10221e;
  --ink-soft: #40534d;
  --muted: #72817c;
  --paper: #f2f0e8;
  --surface: #fbfaf5;
  --surface-strong: #ffffff;
  --line: #d7d8ce;
  --line-dark: #aeb8b1;
  --green: #1f8b62;
  --green-soft: #dcefe6;
  --amber: #bd741d;
  --amber-soft: #f6e8ce;
  --red: #d94d35;
  --red-soft: #fae1da;
  --blue: #356d83;
  --blue-soft: #deebf0;
  --accent: #ff6846;
  --shadow: 0 24px 70px rgba(16, 34, 30, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 34, 30, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 30, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 540px;
  content: "";
  background:
    radial-gradient(circle at 18% 20%, rgba(130, 214, 173, 0.2), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(255, 104, 70, 0.13), transparent 28%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(255, 104, 70, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
#app {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid rgba(16, 34, 30, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand--small {
  font-size: 17px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 10px;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 99px;
  transform: rotate(45deg);
}

.brand-mark span {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.nav-pricing:hover {
  color: white !important;
  background: #1d3831;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 139, 98, 0.25);
  border-radius: 999px;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(31, 139, 98, 0.1);
}

#app {
  min-height: 68vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 80px;
  align-items: end;
  padding: 94px 0 70px;
}

.eyebrow,
.section-kicker,
.metric-label,
.chart-axis,
.source-label {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--green);
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero h1,
.detail-hero h1,
.error-state h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.3vw, 96px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.058em;
}

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

.hero-aside {
  padding-bottom: 7px;
}

.hero-aside p {
  margin: 0 0 25px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.hero-aside a:not(.primary-button),
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 750;
  border-bottom: 1px solid var(--ink);
}

.hero-aside a:not(.primary-button)::after,
.text-link::after {
  content: "↗";
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.system-summary {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.summary-lead,
.summary-metric {
  min-height: 122px;
  padding: 26px 28px;
}

.summary-lead {
  display: flex;
  align-items: center;
  gap: 18px;
  color: white;
}

.summary-lens {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.summary-lens::before {
  position: absolute;
  inset: 13px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(130, 214, 173, 0.12);
}

.summary-lens::after {
  position: absolute;
  right: -8px;
  bottom: -5px;
  width: 17px;
  height: 4px;
  content: "";
  background: var(--accent);
  border-radius: 9px;
  transform: rotate(45deg);
}

.summary-lead strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.summary-lead span {
  color: #afbeb9;
  font-size: 13px;
}

.summary-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.summary-metric strong {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.summary-metric .metric-label {
  color: #92a39d;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 64px 0 24px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-note {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.service-groups {
  display: grid;
  gap: 52px;
}

.service-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.service-group-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.service-group-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.service-group-heading > span {
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 25px;
  overflow: hidden;
  background: rgba(251, 250, 245, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  border-color: var(--line-dark);
  box-shadow: 0 18px 45px rgba(16, 34, 30, 0.09);
  transform: translateY(-3px);
}

.service-card::after {
  position: absolute;
  right: -38px;
  bottom: -55px;
  width: 142px;
  height: 142px;
  content: "";
  border: 1px solid rgba(16, 34, 30, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(16, 34, 30, 0.025),
    0 0 0 34px rgba(16, 34, 30, 0.018);
}

.service-card-top,
.service-title,
.signal-row,
.incident-meta,
.component-row,
.report-form-footer {
  display: flex;
  align-items: center;
}

.service-card-top {
  justify-content: space-between;
  margin-bottom: 42px;
}

.service-monogram {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status--healthy {
  color: var(--green);
  background: var(--green-soft);
}

.status--warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.status--outage {
  color: var(--red);
  background: var(--red-soft);
}

.status--unknown {
  color: var(--blue);
  background: var(--blue-soft);
}

.service-title {
  gap: 10px;
  justify-content: space-between;
}

.service-title h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.service-title span {
  color: var(--accent);
  font-size: 18px;
}

.service-source-note {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card--community .service-description {
  margin-top: 7px;
}

.service-description {
  min-height: 44px;
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.signal-row {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.signal-row strong {
  color: var(--ink);
  font-size: 14px;
}

.methodology {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 78px;
  margin: 112px 0 70px;
  padding: 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.methodology h2 {
  max-width: 430px;
  margin: 10px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 51px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.methodology-copy > p {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.signal-stack {
  display: grid;
  gap: 12px;
}

.signal-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.signal-number {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
  place-items: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}

.signal-card h3 {
  margin: 1px 0 5px;
  font-size: 14px;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.detail-shell {
  padding: 46px 0 90px;
}

.back-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 55px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.back-link:hover {
  color: var(--ink);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.55fr);
  gap: 70px;
  align-items: center;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line-dark);
}

.detail-hero h1 {
  font-size: clamp(56px, 7vw, 88px);
}

.detail-subtitle {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.assessment-card {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.assessment-card h2 {
  margin: 12px 0 9px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.assessment-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.confidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.confidence-row strong {
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.two-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.source-card,
.chart-card,
.incident-card,
.component-panel {
  background: rgba(251, 250, 245, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.source-card {
  padding: 27px;
}

.source-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.source-card h3 {
  margin: 9px 0 7px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.source-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.source-card-footer span {
  color: var(--muted);
  font-size: 11px;
}

.report-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  cursor: pointer;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  transition:
    transform 150ms ease,
    opacity 150ms ease,
    background 150ms ease;
}

.report-button,
.primary-button {
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.report-button:hover,
.primary-button:hover {
  background: #1d3831;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.secondary-button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.chart-card,
.component-panel {
  padding: 27px;
}

.component-panel {
  align-self: start;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin: 7px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.panel-stat {
  text-align: right;
}

.panel-stat strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.panel-stat span {
  color: var(--muted);
  font-size: 10px;
}

.report-chart {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
  align-items: end;
  height: 150px;
  padding-top: 15px;
  border-bottom: 1px solid var(--line-dark);
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 36px,
    rgba(16, 34, 30, 0.055) 36px,
    rgba(16, 34, 30, 0.055) 37px
  );
}

.chart-bar {
  min-height: 4px;
  background: var(--green);
  border-radius: 4px 4px 0 0;
  opacity: 0.82;
  transition: height 240ms ease;
}

.chart-bar[data-level="high"] {
  background: var(--accent);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.symptom-list {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.symptom-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) 1fr 30px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}

.symptom-track {
  height: 6px;
  overflow: hidden;
  background: var(--paper);
  border-radius: 99px;
}

.symptom-track span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.component-list {
  display: grid;
  max-height: 520px;
  padding-right: 4px;
  overflow-y: auto;
}

.component-row {
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.component-row:last-child {
  border-bottom: 0;
}

.component-name {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.component-status::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.component-status[data-state="degraded_performance"]::before,
.component-status[data-state="partial_outage"]::before {
  background: var(--amber);
}

.component-status[data-state="major_outage"]::before {
  background: var(--red);
}

.empty-panel {
  display: grid;
  min-height: 178px;
  color: var(--muted);
  place-items: center;
  text-align: center;
}

.empty-panel strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.incident-section {
  margin-top: 16px;
}

.incident-card {
  padding: 28px;
}

.incident-card + .incident-card {
  margin-top: 12px;
}

.incident-meta {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.incident-meta h3 {
  margin: 7px 0 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.incident-timeline {
  display: grid;
  margin-top: 20px;
  padding-left: 10px;
}

.incident-update {
  position: relative;
  padding: 0 0 23px 26px;
  border-left: 1px solid var(--line-dark);
}

.incident-update:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.incident-update::before {
  position: absolute;
  top: 1px;
  left: -5px;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: 50%;
}

.incident-update p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.incident-update time {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.assessment-cta {
  width: 100%;
  margin-top: 18px;
}

.pricing-shell {
  padding: 72px 0 88px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 74px;
  align-items: end;
  padding: 28px 0 62px;
}

.pricing-hero h1 {
  max-width: 790px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

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

.pricing-hero-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.pricing-hero-copy span {
  display: inline-flex;
  padding: 8px 11px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 510px;
  padding: 30px;
  flex-direction: column;
  background: rgba(251, 250, 245, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pricing-card--featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-heading h2 {
  margin: 9px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.plan-heading p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-price {
  display: flex;
  min-height: 98px;
  margin: 24px 0;
  gap: 12px;
  align-items: end;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-price strong {
  font-size: 48px;
  font-weight: 620;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.plan-price span {
  max-width: 100px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

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

.plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.plan-features li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 850;
}

.plan-button {
  width: 100%;
  margin-top: auto;
}

.pilot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
  gap: 68px;
  margin-top: 80px;
  padding: 58px;
  color: white;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pilot-copy h2 {
  margin: 10px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.pilot-copy > p {
  margin: 0;
  color: #bcc9c5;
  font-size: 14px;
  line-height: 1.7;
}

.pilot-copy .section-kicker {
  color: #8fd5b6;
}

.pilot-promise {
  display: grid;
  margin-top: 34px;
  gap: 9px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pilot-promise strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.pilot-promise span {
  position: relative;
  padding-left: 16px;
  color: #9fb0aa;
  font-size: 11px;
  line-height: 1.45;
}

.pilot-promise span::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "—";
}

.pilot-form-shell {
  align-self: start;
  min-height: 560px;
  padding: 30px;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.pilot-form {
  display: grid;
  gap: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.form-field label span {
  color: var(--muted);
  font-weight: 500;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
}

.form-field input::placeholder {
  color: #9aa6a1;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.5;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 11px;
}

.pilot-submit {
  width: 100%;
}

.form-fine-print {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.pilot-success {
  display: grid;
  min-height: 500px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.pilot-success .eyebrow {
  margin-bottom: 11px;
}

.pilot-success h3 {
  max-width: 370px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.pilot-success > p:not(.eyebrow) {
  max-width: 390px;
  margin: 17px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.validation-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 650px);
  gap: 40px;
  margin-top: 26px;
  padding: 25px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.validation-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.report-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(8, 24, 20, 0.25);
}

.report-dialog::backdrop {
  background: rgba(11, 28, 24, 0.55);
  backdrop-filter: blur(6px);
}

.report-form {
  padding: 30px;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 7px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.dialog-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  font-size: 18px;
}

.symptom-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 28px 0 20px;
}

.symptom-option {
  padding: 15px;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.symptom-option:hover,
.symptom-option[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

.symptom-option[aria-pressed="true"] {
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.component-select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
}

.privacy-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.report-form-footer {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 48px));
  padding: 14px 17px;
  color: white;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-state,
.error-state {
  display: grid;
  min-height: 62vh;
  place-items: center;
  align-content: center;
  text-align: center;
}

.loading-state p,
.error-state p {
  color: var(--muted);
}

.loading-lens {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line-dark);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loading-lens::after {
  position: absolute;
  inset: 17px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.error-state h1 {
  font-size: clamp(46px, 7vw, 78px);
}

.error-state .primary-button {
  margin-top: 18px;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  padding: 42px 0 48px;
  border-top: 1px solid var(--line-dark);
}

.site-footer p,
.footer-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.site-footer p {
  margin: 13px 0 0;
}

.footer-meta {
  display: grid;
  gap: 4px;
  text-align: right;
}

.footer-link {
  justify-self: end;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.footer-link:hover {
  color: var(--ink);
}

.analytics-consent {
  position: fixed;
  z-index: 95;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(620px, calc(100% - 48px));
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.analytics-consent strong {
  font-size: 14px;
}

.analytics-consent p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .detail-hero,
  .methodology,
  .pricing-hero,
  .pilot-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding-top: 72px;
  }

  .system-summary {
    grid-template-columns: 1fr 1fr;
  }

  .summary-lead {
    grid-column: 1 / -1;
  }

  .summary-metric {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .methodology {
    gap: 38px;
    padding: 40px;
  }

  .detail-hero {
    gap: 38px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: 0;
  }

  .plan-heading p {
    min-height: 0;
  }

  .pilot-section {
    gap: 38px;
    padding: 42px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  #app {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  .site-nav > .nav-secondary,
  .live-indicator {
    display: none;
  }

  .hero {
    padding: 60px 0 46px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 67px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-summary,
  .service-grid,
  .two-source-grid {
    grid-template-columns: 1fr;
  }

  .summary-lead {
    grid-column: auto;
  }

  .summary-metric {
    min-height: 92px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  .service-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .section-note {
    margin-top: 12px;
    text-align: left;
  }

  .methodology {
    margin-top: 75px;
    padding: 27px;
  }

  .detail-shell {
    padding-top: 30px;
  }

  .back-link {
    margin-bottom: 38px;
  }

  .detail-hero h1 {
    font-size: 56px;
  }

  .pricing-shell {
    padding: 38px 0 64px;
  }

  .pricing-hero {
    gap: 30px;
    padding-bottom: 44px;
  }

  .pricing-hero h1 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .pricing-card {
    padding: 25px;
  }

  .pilot-section {
    margin-top: 52px;
    padding: 27px;
  }

  .pilot-form-shell {
    min-height: 0;
    padding: 21px;
  }

  .form-row,
  .validation-note {
    grid-template-columns: 1fr;
  }

  .validation-note {
    gap: 10px;
  }

  .source-card-top,
  .source-card-footer,
  .panel-heading,
  .incident-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-stat {
    text-align: left;
  }

  .report-chart {
    gap: 2px;
  }

  .symptom-picker {
    grid-template-columns: 1fr;
  }

  .report-form {
    padding: 23px;
  }

  .site-footer {
    display: block;
  }

  .footer-meta {
    margin-top: 24px;
    text-align: left;
  }

  .footer-link {
    justify-self: start;
  }

  .analytics-consent {
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    width: calc(100% - 24px);
  }

  .analytics-consent-actions > * {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
