/* Canonical pilot stylesheet; keep in sync with web/static_src/site.css (Tailwind form). */
:root {
  color-scheme: light;
  --ink: #16232b;
  --muted: #4f6270;
  --line: #d8e0dd;
  --paper: #ffffff;
  --band: #f4f7f6;
  --hover: #f8fbfa;
  --accent: #0e6e66;
  --accent-strong: #0a544e;
  --pos: #1a6b3c;
  --pos-bg: #e8f5ed;
  --pos-line: #c4e5d0;
  --neg: #a3271b;
  --neg-bg: #fceeec;
  --neg-line: #f2cdc7;
  --warn: #8a5312;
  --warn-bg: #fdf4e2;
  --warn-line: #efdcb4;
  --accent-bright: #57cdbb;
  --mist: #a9bdb7;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

/* Header + provenance strip */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand-mark {
  display: block;
  flex: none;
}

.brand-word span {
  color: var(--accent-bright);
}

.brand:hover {
  text-decoration: none;
  color: #ffffff;
}

.brand:focus-visible {
  outline-color: var(--accent-bright);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
}

.site-nav a {
  color: var(--mist);
  font-weight: 500;
}

.site-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.site-nav a:focus-visible {
  outline-color: var(--accent-bright);
}

.provenance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--band);
  font-size: 13px;
  color: var(--muted);
}

.provenance .mono {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.source-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pos);
}

/* Page scaffold */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 56px) 64px;
}

.section {
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.lede {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: 17px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
  text-decoration: none;
}

.button-secondary {
  background: var(--paper);
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--band);
  color: var(--accent-strong);
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--band);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.badge::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.badge-pos {
  border-color: var(--pos-line);
  background: var(--pos-bg);
  color: var(--pos);
}

.badge-neg {
  border-color: var(--neg-line);
  background: var(--neg-bg);
  color: var(--neg);
}

.badge-warn {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Cards and facts */
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-cta {
  background: var(--band);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.card-actions:first-child {
  margin-top: 0;
}

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

.plan-price {
  display: block;
  margin: 2px 0 10px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 600;
}

.plan-price .per {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.card ol {
  margin: 0;
  padding-left: 20px;
}

.card ol li {
  margin-bottom: 8px;
}

.card ol li:last-child {
  margin-bottom: 0;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.form-panel fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.form-panel legend,
.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.plan-options {
  display: grid;
  gap: 10px;
}

.plan-options + .errorlist {
  margin-top: 10px;
}

.form-panel .plan-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.plan-option input {
  flex: none;
  margin: 4px 0 0;
  accent-color: var(--accent);
}

.plan-option:hover {
  background: var(--hover);
}

.plan-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--band);
}

.plan-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plan-name {
  display: block;
  font-weight: 650;
  line-height: 1.3;
}

.plan-desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.plan-rate {
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.manifest {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--band);
}

.manifest .facts {
  grid-template-columns: 92px 1fr;
}

.manifest .facts dd {
  overflow-wrap: anywhere;
}

/* Manifest values and field hints that follow the checked plan radio.
   Without :has() support, only the plan-neutral .v-none copy shows. */
.v-state,
.v-national {
  display: none;
}

@supports selector(:has(*)) {
  .checkout-grid:has(input[value="state"]:checked) .v-none,
  .checkout-grid:has(input[value="national"]:checked) .v-none {
    display: none;
  }

  .checkout-grid:has(input[value="state"]:checked) .v-state,
  .checkout-grid:has(input[value="national"]:checked) .v-national {
    display: inline;
  }

  .checkout-grid:has(input[value="national"]:checked) .state-field {
    opacity: 0.6;
  }
}

.schedule {
  margin: 0;
  display: grid;
  grid-template-columns: 168px 1fr;
}

.schedule dt,
.schedule dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.schedule dt {
  padding-right: 14px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
}

.schedule dd {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.schedule dt:last-of-type,
.schedule dd:last-of-type {
  border-bottom: 0;
}

.schedule + p {
  margin: 14px 0 0;
}

.form-panel select {
  width: 100%;
  min-height: 42px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.field-help {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.form-errors,
.errorlist {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--neg-line);
  border-radius: 8px;
  background: var(--neg-bg);
  color: var(--neg);
  font-size: 13px;
}

.errorlist {
  list-style-position: inside;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.facts dt {
  font-size: 13px;
  color: var(--muted);
}

.facts dd {
  font-size: 14px;
}

.facts dt:last-of-type,
.facts dd:last-of-type {
  border-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: var(--band);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
}

td {
  font-size: 14px;
}

td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:hover {
  background: var(--hover);
}

tr:last-child td {
  border-bottom: 0;
}

.empty-row td {
  color: var(--muted);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 24px clamp(18px, 4vw, 56px) 40px;
  border-top: 1px solid var(--line);
  background: var(--band);
  font-size: 13px;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 4px;
  max-width: 480px;
}

.footer-brand {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 720px) {
  .grid,
  .plan-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .schedule {
    grid-template-columns: 118px 1fr;
  }

  h1 {
    font-size: 26px;
  }

  th,
  td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .facts {
    grid-template-columns: 130px 1fr;
  }
}
