@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: oklch(0.985 0.005 250);
  --surface: oklch(1 0 0);
  --tint: oklch(0.962 0.014 250);
  --line: oklch(0.895 0.016 250);
  --line-strong: oklch(0.78 0.03 250);
  --ink: oklch(0.24 0.045 258);
  --ink-soft: oklch(0.44 0.04 256);
  --navy: oklch(0.29 0.085 260);
  --navy-deep: oklch(0.235 0.075 260);
  --on-navy: oklch(0.97 0.012 250);
  --on-navy-soft: oklch(0.84 0.045 250);
  --blue: oklch(0.5 0.17 256);
  --blue-hover: oklch(0.43 0.17 256);
  --blue-tint: oklch(0.95 0.03 256);
  --save: oklch(0.47 0.105 172);
  --save-tint: oklch(0.955 0.035 172);
  --danger: oklch(0.5 0.17 27);
  --danger-tint: oklch(0.96 0.025 27);
  --warn-tint: oklch(0.955 0.055 90);
  --warn-ink: oklch(0.36 0.07 80);

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-form: 0 1px 2px oklch(0 0 0 / 0.2), 0 18px 40px -16px oklch(0 0 0 / 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  accent-color: var(--blue);
  caret-color: var(--blue);
}

::selection {
  background: oklch(0.86 0.09 256);
  color: var(--navy-deep);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

h1,
h2,
h3 {
  font-stretch: 108%;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 1.6vw + 1.15rem, 2.2rem);
  font-weight: 680;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-hover);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid oklch(0.68 0.16 256);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Opening field ---------- */

.top {
  background: var(--navy);
  color: var(--on-navy);
}

.top :focus-visible {
  outline-color: oklch(0.85 0.1 250);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

/* The emblem is the ringed mark cropped out of the supplied logo image. */
.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  background: url("img/logo.jpeg") 47.2% 14% / 173.6% auto no-repeat;
  box-shadow: 0 0 0 2px oklch(1 0 0 / 0.9);
}

.site-nav {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a,
.header-phone {
  color: var(--on-navy-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.header-phone:hover {
  color: var(--on-navy);
  text-decoration: underline;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: var(--on-navy);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.header-phone svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.site-nav + .header-phone {
  margin-left: 0;
}

.hero {
  display: grid;
  gap: 2rem;
  padding-block: clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.05rem, 3.6vw + 1.05rem, 3.7rem);
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.028em;
  line-height: 1.04;
  max-width: 17ch;
}

.hero-lede {
  margin-top: 1.15rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem);
  color: var(--on-navy-soft);
}

.hero-points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.6rem;
  font-weight: 500;
}

.hero-points li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.hero-points li::before {
  content: "";
  flex: none;
  width: 0.62rem;
  height: 0.34rem;
  border-left: 2px solid oklch(0.8 0.12 172);
  border-bottom: 2px solid oklch(0.8 0.12 172);
  transform: translateY(-0.28rem) rotate(-45deg);
}

/* ---------- Quote form ---------- */

.quote-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-form);
}

.quote-form :focus-visible {
  outline-color: oklch(0.68 0.16 256);
}

.form-title {
  font-size: 1.5rem;
  letter-spacing: -0.012em;
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field label,
.people legend,
.filter-group > label,
.filter-group legend,
.filter-label,
.doctor-search label {
  font-size: 0.925rem;
  font-weight: 620;
}

.optional {
  margin-left: 0.3rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.field-note {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.field-note:empty {
  display: none;
}

.field-note.is-ok {
  color: var(--save);
  font-weight: 560;
}

.field-note.is-bad {
  color: var(--danger);
  font-weight: 560;
}

input[type="text"],
input[type="number"],
input[type="search"],
select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
select:hover {
  border-color: var(--ink-soft);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(0.5 0.17 256 / 0.22);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: none;
}

#zip {
  max-width: 9rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.input-money {
  position: relative;
}

.input-money span {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-soft);
}

.input-money input {
  padding-left: 1.7rem;
}

.field-row {
  display: grid;
  gap: 1.15rem;
}

.people legend {
  margin-bottom: 0.5rem;
}

.people-list {
  display: grid;
  gap: 0.5rem;
}

.person {
  display: grid;
  grid-template-columns: minmax(5.2rem, 1fr) 5.4rem auto 2rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.8rem;
  background: var(--tint);
  border-radius: var(--radius-sm);
}

.person-who {
  font-weight: 600;
}

.person-age {
  position: relative;
  display: block;
}

.person-age span {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 0.8rem;
  color: var(--ink-soft);
  pointer-events: none;
}

.person-age input {
  min-height: 2.5rem;
  padding-left: 2.6rem;
  text-align: right;
}

.person-tobacco {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
}

.person-remove {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
}

.person-remove:hover {
  background: var(--line);
  color: var(--ink);
}

.person-remove svg,
.btn-add svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  background: none;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-add:hover {
  background: var(--blue-tint);
  border-color: var(--blue);
}

.form-error,
.results-error {
  padding: 0.7rem 0.9rem;
  background: var(--danger-tint);
  border: 1px solid oklch(0.82 0.08 27);
  border-radius: var(--radius-sm);
  color: oklch(0.38 0.14 27);
  font-size: 0.95rem;
  font-weight: 520;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s var(--ease-out);
}

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

.btn[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.btn-primary {
  background: var(--blue);
  color: oklch(0.99 0.005 256);
}

.btn-primary:hover:not([disabled]) {
  background: var(--blue-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover:not([disabled]) {
  border-color: var(--ink-soft);
  background: var(--tint);
}

.btn-ghost {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  background: none;
  border-color: oklch(0.6 0.07 256);
  color: var(--on-navy);
}

.btn-ghost:hover {
  background: oklch(0.36 0.09 260);
}

#quote-submit {
  width: 100%;
  min-height: 3.3rem;
  font-size: 1.075rem;
}

/* Collapsed hero: the household on one line, once plans are showing */

.hero.is-collapsed {
  gap: 0;
  padding-block: 0.25rem 1.5rem;
}

.hero.is-collapsed .hero-copy,
.hero.is-collapsed .quote-form {
  display: none;
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

/* ---------- Results ---------- */

.sample-banner {
  margin-top: 1.25rem;
  padding: 0.65rem 0.95rem;
  background: var(--warn-tint);
  border-radius: var(--radius-sm);
  color: var(--warn-ink);
  font-size: 0.92rem;
}

.results {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.results-head h2:focus {
  outline: none;
}

.results-note {
  margin-top: 0.5rem;
  max-width: 68ch;
  color: var(--ink-soft);
}

.results-note .save {
  color: var(--save);
  font-weight: 600;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
}

.filter-group {
  display: grid;
  gap: 0.4rem;
}

.filter-group select {
  min-height: 2.5rem;
  min-width: 15.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 560;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover span {
  border-color: var(--ink-soft);
}

.chip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}

.chip input:focus-visible + span {
  outline: 3px solid oklch(0.68 0.16 256);
  outline-offset: 2px;
}

.dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px oklch(0.2 0.03 260 / 0.18);
}

.dot-bronze { background: oklch(0.62 0.11 55); }
.dot-silver { background: oklch(0.8 0.012 250); }
.dot-gold { background: oklch(0.82 0.14 88); }
.dot-platinum { background: oklch(0.9 0.02 220); }
.dot-catastrophic { background: oklch(0.55 0.03 260); }

/* Doctors and hospitals */

.needs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.75rem;
  margin-top: 1.25rem;
}

.need {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.need .btn-add {
  background: var(--surface);
  border-style: solid;
}

.need-shop {
  min-height: 2.25rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
}

.needs .field-note {
  flex-basis: 100%;
  max-width: 80ch;
}

/* Doctor and prescription pickers */

.picker {
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: min(42rem, calc(100dvh - 1.5rem));
  padding: 0;
  background: var(--surface);
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 2px 6px oklch(0 0 0 / 0.2), 0 30px 70px -20px oklch(0 0 0 / 0.6);
  overflow: hidden;
}

.picker[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.picker::backdrop {
  background: oklch(0.2 0.06 260 / 0.6);
}

.picker-head,
.picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.4rem;
}

.picker-head {
  border-bottom: 1px solid var(--line);
}

.picker-head h2 {
  font-size: 1.45rem;
}

.picker-foot {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
}

.picker-body {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 14rem;
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

@media (max-width: 26rem) {
  .search-row {
    grid-template-columns: 1fr;
  }
}

.picker .doctor-search {
  max-width: none;
}

.picker .doctor-results {
  position: static;
  max-height: 16rem;
  border: 1px solid var(--line);
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  .picker[open] {
    animation: sbc-open 0.3s var(--ease-out);
  }
}

.plan-logo {
  display: block;
  width: auto;
  height: 2.1rem;
  max-width: min(13rem, 100%);
  margin-bottom: 0.5rem;
  object-fit: contain;
  object-position: left center;
}

.plan-doctors + .plan-drugs {
  margin-top: 0.3rem;
}

.doctor-search {
  position: relative;
  display: grid;
  gap: 0.35rem;
  max-width: 30rem;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.doctor-results {
  position: absolute;
  z-index: 5;
  top: 4.75rem;
  left: 0;
  right: 0;
  max-height: 19rem;
  overflow-y: auto;
  padding: 0.3rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.16), 0 14px 30px -12px oklch(0 0 0 / 0.35);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.doctor-results button {
  display: grid;
  gap: 0.05rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: none;
  border: 0;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
}

.doctor-results button:hover,
.doctor-results button:focus-visible {
  background: var(--blue-tint);
}

.doctor-results strong {
  font-weight: 620;
}

.doctor-results small {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.doctor-chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.doctor-chosen:empty {
  display: none;
}

.doctor-chosen li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.35rem 0.3rem 0.85rem;
  background: var(--navy);
  border-radius: 999px;
  color: var(--on-navy);
  font-size: 0.9rem;
  font-weight: 560;
}

.doctor-chosen button {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--on-navy-soft);
  cursor: pointer;
}

.doctor-chosen button:hover {
  background: oklch(0.4 0.09 260);
  color: var(--on-navy);
}

.doctor-chosen svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* Carrier dropdown */

.dropdown {
  position: relative;
}

.dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  min-width: 12rem;
  padding: 0.3rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}

.dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown summary::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-0.12rem) rotate(45deg);
}

.dropdown summary:hover {
  border-color: var(--ink-soft);
}

.dropdown.is-active summary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}

.dropdown.is-active summary::after {
  border-color: var(--on-navy-soft);
}

.dropdown-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.35rem);
  left: 0;
  display: grid;
  gap: 0.1rem;
  width: max-content;
  max-width: min(26rem, calc(100vw - 2 * var(--gutter)));
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.16), 0 14px 30px -12px oklch(0 0 0 / 0.35);
}

.dropdown:not([open]) .dropdown-panel {
  display: none;
}

/* Set when the dropdown sits in the right half of the screen, so the panel opens inward. */
.dropdown.opens-left .dropdown-panel {
  left: auto;
  right: 0;
}

.dropdown-panel label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
  font-size: 0.93rem;
  line-height: 1.3;
  cursor: pointer;
}

.dropdown-panel label:hover {
  background: var(--blue-tint);
}

.dropdown-panel small {
  margin-left: auto;
  padding-left: 0.75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.results-status {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.results-status:empty {
  display: none;
}

.results-error {
  margin-top: 1.1rem;
}

.plan-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.plan-list.is-loading {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.plan {
  display: grid;
  gap: 1rem 2rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.plan:hover {
  border-color: var(--line-strong);
}

.plan-issuer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan-name {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.plan-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  background: var(--tint);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 580;
}

.plan-tags li.is-save {
  background: var(--save-tint);
  color: var(--save);
}

.plan-doctors {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.plan-doctors li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.45rem;
  align-items: start;
  color: var(--ink-soft);
}

.plan-doctors li.is-covered {
  color: var(--save);
  font-weight: 600;
}

.plan-doctors svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-doctors li:not(.is-covered)::before {
  content: "";
  width: 0.55rem;
  height: 2px;
  margin: 0.6rem 0 0 0.2rem;
  background: var(--line-strong);
}

.plan-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  gap: 0.75rem 2rem;
}

.plan-costs dd.is-text {
  max-width: 22ch;
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.3;
}

.plan-costs dt {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.plan-costs dd {
  font-size: 1.1rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.plan-buy {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

.plan-math {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.plan-math .credit {
  color: var(--save);
  font-weight: 600;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.plan-price-amount {
  font-size: 2.1rem;
  font-weight: 720;
  font-stretch: 104%;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.plan-price-amount small {
  font-size: 0.5em;
  font-weight: 640;
  letter-spacing: 0;
  vertical-align: 0.62em;
}

.plan-price-unit {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.plan-enroll {
  width: 100%;
  margin-top: 0.6rem;
}

.plan-sbc {
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.plan-error {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 520;
  color: var(--danger);
}

/* Summary of benefits viewer */

.sbc-dialog {
  width: min(64rem, calc(100vw - 2rem));
  height: min(56rem, calc(100dvh - 2rem));
  max-width: none;
  max-height: none;
  padding: 0;
  background: var(--surface);
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 2px 6px oklch(0 0 0 / 0.2), 0 30px 70px -20px oklch(0 0 0 / 0.6);
  overflow: hidden;
}

.sbc-dialog[open] {
  display: grid;
  grid-template-rows: auto 1fr;
}

.sbc-dialog::backdrop {
  background: oklch(0.2 0.06 260 / 0.6);
}

.sbc-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1rem 0.9rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.sbc-head div {
  min-width: 0;
  margin-right: auto;
}

.sbc-head h2 {
  font-size: 1.45rem;
}

.sbc-head p {
  margin-top: 0.15rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbc-head a {
  flex: none;
  font-size: 0.92rem;
}

.sbc-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
}

.sbc-close:hover {
  background: var(--tint);
  color: var(--ink);
}

.sbc-close svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sbc-loading {
  align-self: center;
  justify-self: center;
  color: var(--ink-soft);
}

.sbc-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--tint);
}

@media (prefers-reduced-motion: no-preference) {
  .sbc-dialog[open] {
    animation: sbc-open 0.3s var(--ease-out);
  }
}

@keyframes sbc-open {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.load-more {
  display: flex;
  margin: 1.25rem auto 0;
}

.empty {
  padding: 2rem 1.25rem;
  background: var(--tint);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.empty strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-summary:not([hidden]) {
    animation: settle 0.5s var(--ease-out) both;
  }

  .plan.is-new {
    animation: arrive 0.55s var(--ease-out) both;
  }

  .plan.is-new:nth-child(2) { animation-delay: 45ms; }
  .plan.is-new:nth-child(3) { animation-delay: 90ms; }
  .plan.is-new:nth-child(4) { animation-delay: 135ms; }
  .plan.is-new:nth-child(5) { animation-delay: 180ms; }
  .plan.is-new:nth-child(n + 6) { animation-delay: 225ms; }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Supporting sections ---------- */

.band {
  background: var(--tint);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.how {
  display: grid;
  gap: 2rem;
}

.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 1rem;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--navy);
  border-radius: 50%;
  color: var(--on-navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  align-self: center;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.steps p {
  grid-column: 2;
  margin-top: 0.25rem;
  max-width: 44ch;
  color: var(--ink-soft);
}

.levels,
.faq {
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}

.faq {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-head p {
  margin-top: 0.75rem;
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.table-scroll {
  margin-top: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.levels-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.levels-table th,
.levels-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

.levels-table thead th {
  background: var(--tint);
  font-size: 0.85rem;
  font-weight: 620;
  color: var(--ink-soft);
  white-space: nowrap;
}

.levels-table tbody tr + tr > * {
  border-top: 1px solid var(--line);
}

.levels-table tbody th {
  font-weight: 650;
  white-space: nowrap;
}

.levels-table tbody th .dot {
  margin-right: 0.55rem;
}

.levels-table td:nth-child(2) {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.levels-foot {
  margin-top: 1rem;
  max-width: 70ch;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.faq-list {
  margin-top: 1.5rem;
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  font-size: 1.08rem;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}

.faq summary:hover {
  color: var(--blue);
}

.faq details p {
  padding-bottom: 1.2rem;
  max-width: 68ch;
  color: var(--ink-soft);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding-block: 2.5rem;
  font-size: 0.88rem;
}

.site-footer .brand {
  color: var(--on-navy);
}

.site-footer a:not(.brand) {
  color: var(--on-navy);
}

.site-footer :focus-visible {
  outline-color: oklch(0.85 0.1 250);
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-legal {
  margin-top: 0.8rem;
  line-height: 1.5;
}

.footer-notes {
  display: grid;
  gap: 0.75rem;
  max-width: 72ch;
}

/* ---------- Wider screens ---------- */

@media (min-width: 34rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .plan {
    grid-template-columns: 1fr auto;
  }

  .plan-main {
    grid-column: 1;
  }

  .plan-costs {
    grid-column: 1;
    align-self: end;
  }

  .plan-buy {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-items: end;
    align-content: center;
    min-width: 13rem;
    text-align: right;
  }

  .plan-price {
    justify-content: flex-end;
  }
}

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 16rem 1fr;
    gap: 3rem;
  }
}

@media (min-width: 60rem) and (max-width: 75rem) {
  .hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 2.9rem);
    max-width: none;
  }
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28.5rem);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
  }

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

  .plan {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .plan-costs {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-inline: 2rem;
    border-inline: 1px solid var(--line);
  }

  .plan-buy {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 26rem) {
  .person {
    grid-template-columns: 1fr 5.2rem 2rem;
  }

  .person-tobacco {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .person-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .filter-group select {
    min-width: 0;
    width: 100%;
  }

  .filter-group:first-child {
    width: 100%;
  }
}

/* ---------- Touch screens: finger-sized targets ---------- */

@media (pointer: coarse) {
  .site-nav a,
  .header-phone {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .btn-add,
  .chip span,
  .dropdown summary,
  .filter-group select,
  .need-shop {
    min-height: 2.75rem;
  }

  .doctor-chosen li {
    padding-block: 0.15rem;
  }

  .doctor-chosen button,
  .person-remove {
    width: 2.5rem;
    height: 2.5rem;
  }

  .plan-sbc {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: 0;
  }

  .dropdown-panel label,
  .doctor-results button {
    padding-block: 0.75rem;
  }

  .faq summary {
    min-height: 3.25rem;
  }
}

/* ---------- Phones: the plan-levels table stacks instead of scrolling sideways ---------- */

@media (max-width: 40rem) {
  .table-scroll {
    overflow: visible;
    background: none;
    border: 0;
  }

  .levels-table {
    min-width: 0;
  }

  .levels-table,
  .levels-table tbody,
  .levels-table tr,
  .levels-table th,
  .levels-table td {
    display: block;
  }

  .levels-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .levels-table tbody tr {
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .levels-table tbody tr + tr {
    margin-top: 0.75rem;
  }

  .levels-table tbody tr + tr > * {
    border-top: 0;
  }

  .levels-table tbody th {
    padding: 0 0 0.5rem;
    font-size: 1.1rem;
  }

  .levels-table td {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 0.75rem;
    padding: 0.3rem 0;
  }

  .levels-table td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 400;
  }

  .picker-foot {
    flex-wrap: wrap;
  }

  .picker-foot .btn {
    flex: 1 1 100%;
  }
}

/* Very narrow phones */
@media (max-width: 22rem) {
  .levels-table td {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .plan-costs {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.05rem;
  }
}

/* Short landscape screens: popups use the full height */
@media (max-height: 30rem) {
  .picker {
    max-height: calc(100dvh - 0.75rem);
  }

  .picker-body {
    min-height: 0;
  }
}

/* ---------- Giveaway opt-in ---------- */

/* The form wraps the dialog's three rows, so it steps out of the layout. */
.giveaway-dialog form {
  display: contents;
}

.giveaway-dialog .picker-body {
  min-height: 0;
}

/* ================= Character and motion ================= */

/* Opening field: two quiet rings echo the ringed emblem. */
.top {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.top::before,
.top::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid oklch(1 0 0 / 0.075);
  border-radius: 50%;
  pointer-events: none;
}

.top::before {
  width: 74rem;
  height: 74rem;
  top: -34rem;
  right: -30rem;
}

.top::after {
  width: 48rem;
  height: 48rem;
  top: -21rem;
  right: -17rem;
}

.hero h1 {
  font-weight: 780;
  font-stretch: 120%;
  letter-spacing: -0.032em;
  max-width: 14ch;
}

.mark {
  position: relative;
  white-space: nowrap;
}

.mark-line {
  position: absolute;
  left: -1%;
  bottom: -0.16em;
  width: 102%;
  height: 0.3em;
  overflow: visible;
  fill: none;
  stroke: oklch(0.8 0.12 172);
  stroke-width: 5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.mark-line path {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
}

.form-foot {
  margin-top: -0.35rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Carriers */
.logos {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.logos-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: 1.6rem;
}

.logos-title {
  font-weight: 650;
  font-stretch: 108%;
}

.logo-list {
  display: flex;
  flex: 1 1 30rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 2.4rem;
}

/* A fixed height with contain: several of these SVGs carry no intrinsic size. */
.logo-list img {
  display: block;
  width: auto;
  height: 1.9rem;
  max-width: 9rem;
  object-fit: contain;
}

.logos-note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* How it works: big numerals on a rule instead of badges */
.steps li {
  display: block;
  padding-top: 1.1rem;
  border-top: 2px solid var(--navy);
}

.steps li::before {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 0.9rem;
  background: none;
  border-radius: 0;
  color: var(--blue);
  font-size: 3.4rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.steps h3 {
  display: block;
  min-height: 0;
  font-size: 1.3rem;
}

.steps p {
  margin-top: 0.4rem;
}

/* Plan levels: the split between plan and member, drawn */
.pays-cell {
  display: block;
}

.split {
  display: block;
  width: 100%;
  max-width: 10rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.split i {
  display: block;
  height: 100%;
  background: var(--save);
  border-radius: inherit;
  transform-origin: left center;
}

.split-60 i { width: 60%; }
.split-70 i { width: 70%; }
.split-80 i { width: 80%; }
.split-90 i { width: 90%; }

/* Motion: one opening sequence, then quiet reveals as sections arrive */
@media (prefers-reduced-motion: no-preference) {
  .hero:not(.is-collapsed) .hero-copy h1,
  .hero:not(.is-collapsed) .hero-lede,
  .hero:not(.is-collapsed) .quote-form {
    animation: rise 0.8s var(--ease-out) both;
  }

  .hero:not(.is-collapsed) .hero-lede { animation-delay: 90ms; }
  .hero:not(.is-collapsed) .quote-form { animation-delay: 160ms; }

  .mark-line path {
    animation: draw 0.7s 0.55s var(--ease-out) both;
  }

  .js [data-reveal] .split i,
  .js .steps[data-reveal] li,
  .js .logos[data-reveal] .logo-list li {
    transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out);
  }

  .js [data-reveal]:not(.is-in) .split i {
    transform: scaleX(0);
  }

  .js .steps[data-reveal]:not(.is-in) li,
  .js .logos[data-reveal]:not(.is-in) .logo-list li {
    opacity: 0;
    transform: translateY(14px);
  }

  .js [data-reveal] tr:nth-child(2) .split i,
  .js .steps[data-reveal] li:nth-child(2),
  .js .logo-list li:nth-child(2) { transition-delay: 70ms; }
  .js [data-reveal] tr:nth-child(3) .split i,
  .js .steps[data-reveal] li:nth-child(3),
  .js .logo-list li:nth-child(3) { transition-delay: 140ms; }
  .js [data-reveal] tr:nth-child(4) .split i,
  .js .logo-list li:nth-child(4) { transition-delay: 210ms; }
  .js .logo-list li:nth-child(n + 5) { transition-delay: 280ms; }

  .logo-list img {
    transition: transform 0.25s var(--ease-out);
  }

  .logo-list li:hover img {
    transform: translateY(-2px);
  }

  .btn-primary {
    transition: background-color 0.15s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  }

  .btn-primary:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px oklch(0 0 0 / 0.45);
  }

  .plan {
    transition: border-color 0.15s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  }

  .plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -16px oklch(0 0 0 / 0.4);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@media (max-width: 40rem) {
  .hero h1 {
    max-width: none;
  }

  .levels-table td .pays-cell {
    display: block;
  }

  .logos-inner {
    gap: 0.9rem 1.5rem;
  }

  .logo-list {
    gap: 1rem 1.6rem;
  }

  .logo-list img {
    max-width: 6.5rem;
    height: 1.6rem;
  }
}

/* ================= Header call to action, About, Contact ================= */

.btn-cta {
  min-height: 2.6rem;
  margin-left: auto;
  padding: 0.45rem 1.05rem;
  background: var(--on-navy);
  color: var(--navy-deep);
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-cta:hover {
  background: oklch(1 0 0);
}

.header-phone + .btn-cta:not(:first-child) {
  margin-left: 0;
}

.header-phone[hidden] + .btn-cta {
  margin-left: auto;
}

@media (min-width: 48rem) {
  .site-nav ~ .btn-cta,
  .header-phone[hidden] + .btn-cta {
    margin-left: 0;
  }
}

@media (max-width: 30rem) {
  .site-header {
    gap: 0.75rem;
  }

  .brand {
    font-size: 1.02rem;
    line-height: 1.08;
  }

  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
  }

  .btn-cta {
    padding-inline: 0.8rem;
    font-size: 0.88rem;
  }

  /* The header already carries the call button; the number stays in Contact us. */
  .header-phone {
    display: none;
  }
}

.about-inner {
  display: grid;
  gap: 1.25rem;
}

.about-text {
  display: grid;
  gap: 1rem;
  max-width: 68ch;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.contact-lede {
  margin-block: 0.75rem 1.4rem;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.contact-ways {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-ways dt {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.contact-ways dd {
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.contact-ways a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-ways a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1rem;
}

.site-footer .footer-links a {
  color: var(--on-navy-soft);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--on-navy);
  text-decoration: underline;
}

.schedule-dialog {
  width: min(46rem, calc(100vw - 1.5rem));
  height: min(48rem, calc(100dvh - 1.5rem));
}

.schedule-dialog .sbc-frame {
  background: var(--surface);
}

@media (min-width: 48rem) {
  .about-inner {
    grid-template-columns: 16rem 1fr;
    gap: 3rem;
  }

  .contact {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 4rem;
  }

  .contact-ways {
    padding-top: 0.4rem;
  }
}

@media (pointer: coarse) {
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* ================= Questions: centred head, one card per question (matches the giveaway site) ================= */

.faq {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
}

.faq-head {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  max-width: 46rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.faq-head h2 {
  font-size: clamp(1.9rem, 2.6vw + 1.2rem, 3rem);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.faq-head p:not(.eyebrow) {
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto;
  border-top: 0;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -18px oklch(0 0 0 / 0.45);
}

.faq-list summary {
  padding: 1.35rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 650;
  border-radius: 16px;
}

/* Plus sign drawn from two bars; the upright bar goes when the answer is open. */
.faq-list summary::after {
  width: 1rem;
  height: 1rem;
  margin-right: 0;
  border: 0;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transform: none;
  transition: transform 0.25s var(--ease-out);
}

.faq-list details[open] summary::after {
  background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}

.faq-list details p {
  padding: 0 1.5rem 1.4rem;
  max-width: 64ch;
}

@media (max-width: 30rem) {
  .faq-list summary {
    padding: 1.1rem 1.15rem;
  }

  .faq-list details p {
    padding: 0 1.15rem 1.2rem;
  }
}

/* ================= About and Contact: photo beside the words ================= */

.duo {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.duo-photo {
  position: relative;
  margin: 0;
}

.duo-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

/* A ring from the emblem sits behind one corner of each photo. */
.duo-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 46%;
  aspect-ratio: 1;
  left: -1.1rem;
  bottom: -1.1rem;
  border: 3px solid oklch(0.72 0.11 172);
  border-radius: 50%;
}

.duo-flip .duo-photo::before {
  left: auto;
  right: -1.1rem;
  bottom: auto;
  top: -1.1rem;
  border-color: var(--blue);
}

.duo-photo img {
  position: relative;
  z-index: 1;
}

.duo-body h2 {
  font-size: clamp(1.9rem, 2.2vw + 1.2rem, 2.7rem);
  font-weight: 720;
  letter-spacing: -0.025em;
}

.duo-body .about-text {
  margin-top: 1.1rem;
}

.contact {
  display: block;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.contact .contact-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.5rem;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .duo {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .duo-flip .duo-photo {
    order: 2;
  }

  .duo-flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 30rem) {
  .duo-photo::before {
    left: -0.6rem;
    bottom: -0.6rem;
  }

  .duo-flip .duo-photo::before {
    left: auto;
    right: -0.6rem;
    top: -0.6rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .duo[data-reveal] .duo-photo,
  .js .duo[data-reveal] .duo-body {
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  }

  .js .duo[data-reveal] .duo-body {
    transition-delay: 110ms;
  }

  .js .duo[data-reveal]:not(.is-in) .duo-photo {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  .js .duo[data-reveal]:not(.is-in) .duo-body {
    opacity: 0;
    transform: translateY(16px);
  }

  .js .duo[data-reveal] .duo-photo::before {
    transition: transform 1.1s 0.25s var(--ease-out);
  }

  .js .duo[data-reveal]:not(.is-in) .duo-photo::before {
    transform: scale(0.6);
  }
}

/* ================= Hero: family photo behind the opening, tinted navy for legibility ================= */

.top:has(.hero:not(.is-collapsed)) {
  background:
    linear-gradient(180deg, oklch(0.235 0.075 260 / 0.8) 0%, oklch(0.29 0.085 260 / 0.62) 100%),
    url("img/hero-960.jpg") 62% 22% / cover no-repeat,
    var(--navy);
}

/* The photo replaces the rings. */
.top:has(.hero:not(.is-collapsed))::before,
.top:has(.hero:not(.is-collapsed))::after {
  content: none;
}

@media (min-width: 60rem) {
  .top:has(.hero:not(.is-collapsed)) {
    background:
      linear-gradient(100deg, oklch(0.235 0.075 260 / 0.82) 0%, oklch(0.26 0.08 260 / 0.7) 38%, oklch(0.29 0.085 260 / 0.3) 62%, oklch(0.29 0.085 260 / 0.2) 100%),
      url("img/hero-1920.jpg") 88% 14% / 128% auto no-repeat,
      var(--navy);
  }
}

/* Keeps small text readable where the photo is brightest. */
.top:has(.hero:not(.is-collapsed)) .hero-lede {
  color: var(--on-navy);
}

/* With a lighter tint, a soft shadow keeps the white text readable over bright parts of the photo. */
.top:has(.hero:not(.is-collapsed)) .hero-copy,
.top:has(.hero:not(.is-collapsed)) .site-header {
  text-shadow: 0 1px 2px oklch(0 0 0 / 0.45), 0 2px 18px oklch(0 0 0 / 0.5);
}

.top:has(.hero:not(.is-collapsed)) .btn-cta {
  text-shadow: none;
}

/* Large screens get a sharper copy of the hero photo, since it is drawn wider than the window. */
@media (min-width: 90rem) {
  .top:has(.hero:not(.is-collapsed)) {
    background-image:
      linear-gradient(100deg, oklch(0.235 0.075 260 / 0.82) 0%, oklch(0.26 0.08 260 / 0.7) 38%, oklch(0.29 0.085 260 / 0.3) 62%, oklch(0.29 0.085 260 / 0.2) 100%),
      url("img/hero-2560.jpg"),
      none;
  }
}

/* ================= How it works: centred head, three connected step cards ================= */

.how-band {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.how-head {
  margin-bottom: 2.5rem;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 16px;
}

/* Step label, sitting beside the icon */
.steps li::before {
  content: "Step " counter(step);
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.step-icon {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--blue);
  border-radius: 12px;
  color: oklch(0.99 0.005 256);
}

.step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps h3 {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
  font-size: 1.3rem;
}

.steps p {
  grid-column: 1 / -1;
  margin-top: 0.1rem;
  max-width: none;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem;
  }

  .steps li {
    align-content: start;
  }

  /* An arrow in the gap carries the eye from one step to the next. */
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.55rem;
    right: -1.75rem;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid var(--line-strong);
    border-right: 2px solid var(--line-strong);
    transform: rotate(45deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .steps li {
    transition: transform 0.9s var(--ease-out), opacity 0.7s var(--ease-out), border-color 0.2s, box-shadow 0.25s;
  }

  .js .steps[data-reveal].is-in li:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 12px 26px -18px oklch(0 0 0 / 0.45);
    transition-delay: 0s;
    transition-duration: 0.25s;
  }
}

/* ================= Plan levels: centred head, one card per level ================= */

.levels {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.levels-head {
  margin-bottom: 2.5rem;
}

.levels-grid {
  display: grid;
  gap: 1rem;
}

.level {
  display: grid;
  align-content: start;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.level h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
}

.medal {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px oklch(1 0 0 / 0.55), inset 0 0 0 4px oklch(0.2 0.03 260 / 0.14), 0 0 0 1px oklch(0.2 0.03 260 / 0.14);
}

.level-pays {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.2rem;
  line-height: 1.3;
}

.level-pays strong {
  font-size: 2.7rem;
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.level-pays span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.level .split {
  max-width: none;
  height: 0.6rem;
  margin-top: 0.9rem;
}

.level-split {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.level-split span:first-child {
  color: var(--save);
  font-weight: 620;
}

.level-facts {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
}

.level-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.level-facts dt {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.level-facts dd {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 620;
  white-space: nowrap;
}

/* Four pips: how far up the scale this level sits */
.pips {
  display: inline-flex;
  gap: 3px;
}

.pips i {
  width: 0.4rem;
  height: 0.85rem;
  background: var(--line);
  border-radius: 2px;
}

.pips-1 i:nth-child(-n + 1),
.pips-2 i:nth-child(-n + 2),
.pips-3 i:nth-child(-n + 3),
.pips-4 i:nth-child(-n + 4) {
  background: var(--navy);
}

.level-suits {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.level-suits span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.levels .levels-foot {
  max-width: 46rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

@media (min-width: 40rem) {
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .levels-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .levels-grid[data-reveal] .level {
    transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), border-color 0.2s, box-shadow 0.25s;
  }

  .js .levels-grid[data-reveal]:not(.is-in) .level {
    opacity: 0;
    transform: translateY(16px);
  }

  .js .levels-grid[data-reveal] .level:nth-child(2),
  .js .levels-grid[data-reveal] .level:nth-child(2) .split i { transition-delay: 80ms; }
  .js .levels-grid[data-reveal] .level:nth-child(3),
  .js .levels-grid[data-reveal] .level:nth-child(3) .split i { transition-delay: 160ms; }
  .js .levels-grid[data-reveal] .level:nth-child(4),
  .js .levels-grid[data-reveal] .level:nth-child(4) .split i { transition-delay: 240ms; }

  .js .levels-grid[data-reveal] .split i {
    transition-duration: 1.2s;
  }

  .js .levels-grid[data-reveal].is-in .level:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 12px 26px -18px oklch(0 0 0 / 0.45);
    transition-delay: 0s;
    transition-duration: 0.25s;
  }
}

/* ================= Carrier strip: centred label, one tile per company ================= */

.logos-inner {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.logos-title {
  font-stretch: 100%;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  flex: none;
}

.logo-list li {
  display: grid;
  place-items: center;
  height: 4.6rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.logo-list img {
  width: auto;
  height: 1.9rem;
  max-width: 100%;
  object-fit: contain;
}

.logos-note {
  flex-basis: auto;
  text-align: center;
}

@media (min-width: 34rem) {
  .logo-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .logo-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .logo-list li {
    height: 5rem;
    padding-inline: 0.9rem;
  }
}

@media (max-width: 40rem) {
  .logo-list img {
    max-width: 100%;
    height: 1.7rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .logos[data-reveal] .logo-list li {
    transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), border-color 0.2s, box-shadow 0.25s, background-color 0.2s;
  }

  .js .logos[data-reveal] .logo-list li:nth-child(5) { transition-delay: 280ms; }
  .js .logos[data-reveal] .logo-list li:nth-child(6) { transition-delay: 350ms; }
  .js .logos[data-reveal] .logo-list li:nth-child(7) { transition-delay: 420ms; }
  .js .logos[data-reveal] .logo-list li:nth-child(8) { transition-delay: 490ms; }

  .js .logos[data-reveal].is-in .logo-list li:hover {
    transform: translateY(-3px);
    background: var(--surface);
    border-color: var(--line-strong);
    box-shadow: 0 12px 26px -18px oklch(0 0 0 / 0.45);
    transition-delay: 0s;
    transition-duration: 0.25s;
  }

  .logo-list li:hover img {
    transform: none;
  }
}

/* Tiles flow and centre, so any number of carriers leaves no stray tile at the left edge. */
.logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-list li {
  flex: 1 1 7.2rem;
  max-width: 10.5rem;
}

@media (max-width: 34rem) {
  .logo-list li {
    flex: 0 1 calc(50% - 0.3rem);
    max-width: none;
  }
}

/* ================= Logos that need help: long wordmarks and white-on-colour marks ================= */

/* Blue Cross wordmarks are seven times wider than tall with two lines of small type. */
.plan-logo.is-wide {
  height: 2.9rem;
  max-width: min(21rem, 100%);
}

.logo-list li.is-wide {
  flex: 2 1 17rem;
  max-width: 22rem;
}

.logo-list img.is-wide {
  height: 2.6rem;
}

/* A white logo sits on a chip of its own brand colour. */
.plan-logo.has-bg,
.logo-list img.has-bg {
  box-sizing: content-box;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
}

.plan-logo.has-bg {
  height: 1.6rem;
}

.logo-list img.has-bg {
  height: 1.5rem;
  max-width: calc(100% - 1.7rem);
}

@media (max-width: 34rem) {
  .logo-list li.is-wide {
    flex: 0 1 100%;
  }

  .logo-list img.is-wide {
    height: 2.4rem;
  }
}

/* ================= Hero announcement ================= */

.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  background: var(--on-navy);
  border-radius: 999px;
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
  text-shadow: none;
}

.hero-notice i {
  position: relative;
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--save);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero:not(.is-collapsed) .hero-notice:not([hidden]) {
    animation: rise 0.8s var(--ease-out) both;
  }

  /* A slow ring off the dot: something is on its way. */
  .hero-notice i::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--save);
    border-radius: 50%;
    animation: ping 2.4s var(--ease-out) infinite;
  }
}

@keyframes ping {
  from {
    opacity: 0.9;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* Ambetter's white wordmark needs a little more size inside its chip. */
.logo-list img.has-bg {
  height: 1.8rem;
}

.plan-logo.has-bg {
  height: 1.8rem;
}

/* ================= How it works: a full brand-blue field so the white step cards stand out ================= */

.how-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  color: oklch(0.99 0.005 256);
}

/* The emblem's rings again, large and faint, cropped by the band's edges. */
.how-band::before,
.how-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 2px solid oklch(1 0 0 / 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.how-band::before {
  width: 46rem;
  height: 46rem;
  left: -16rem;
  bottom: -30rem;
}

.how-band::after {
  width: 34rem;
  height: 34rem;
  right: -11rem;
  top: -20rem;
}

.how-band .eyebrow {
  color: oklch(0.93 0.05 256);
}

.how-band .how-head h2 {
  color: inherit;
}

.how-band .how-head p:not(.eyebrow) {
  color: oklch(0.94 0.035 256);
}

.how-band .steps li {
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 16px 34px -20px oklch(0 0 0 / 0.55);
}

.how-band .steps li:not(:last-child)::after {
  border-color: oklch(1 0 0 / 0.6);
}

.how-band :focus-visible {
  outline-color: oklch(0.95 0.04 256);
}

/* ================= Plan levels: each card carries its metal ================= */

.level {
  --metal: var(--navy);
  --metal-deep: var(--navy);
  --metal-tint: var(--tint);
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.level-bronze { --metal: oklch(0.64 0.12 55); --metal-deep: oklch(0.47 0.11 50); --metal-tint: oklch(0.935 0.045 62); }
.level-silver { --metal: oklch(0.74 0.018 250); --metal-deep: oklch(0.46 0.03 255); --metal-tint: oklch(0.94 0.012 250); }
.level-gold { --metal: oklch(0.82 0.15 88); --metal-deep: oklch(0.52 0.11 78); --metal-tint: oklch(0.955 0.075 95); }
.level-platinum { --metal: oklch(0.8 0.05 215); --metal-deep: oklch(0.47 0.07 235); --metal-tint: oklch(0.945 0.03 215); }

.level-top {
  padding: 1.5rem 1.5rem 1.3rem;
  background: var(--metal-tint);
}

.level-body {
  padding: 0.2rem 1.5rem 1.6rem;
}

.level .medal {
  width: 2.3rem;
  height: 2.3rem;
  background: var(--metal);
  box-shadow: inset 0 0 0 3px oklch(1 0 0 / 0.6), inset 0 0 0 4px oklch(0.2 0.03 260 / 0.12), 0 2px 6px -2px oklch(0 0 0 / 0.35);
}

.level-pays strong {
  color: var(--metal-deep);
}

.level-pays span {
  color: var(--ink);
}

.level .split {
  height: 0.7rem;
  background: oklch(1 0 0 / 0.75);
}

.level .split i {
  background: var(--metal-deep);
}

.level-split,
.level-split span:first-child {
  color: var(--metal-deep);
}

.level-facts {
  margin-top: 0;
  border-top: 0;
}

.level .pips-1 i:nth-child(-n + 1),
.level .pips-2 i:nth-child(-n + 2),
.level .pips-3 i:nth-child(-n + 3),
.level .pips-4 i:nth-child(-n + 4) {
  background: var(--metal-deep);
}

/* ================= Footer ================= */

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 44rem;
  height: 44rem;
  right: -16rem;
  top: -24rem;
  border: 2px solid oklch(1 0 0 / 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.footer-top {
  display: grid;
  gap: 2.25rem;
}

.footer-brand .brand {
  font-size: 1.3rem;
}

.footer-blurb {
  margin-top: 0.9rem;
  max-width: 30ch;
  line-height: 1.5;
}

.footer-cta {
  margin: 1.25rem 0 0;
}

.footer-col h2 {
  margin-bottom: 0.85rem;
  color: var(--on-navy);
  font-size: 0.82rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer .footer-col a {
  color: var(--on-navy-soft);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.site-footer .footer-col a:hover {
  color: var(--on-navy);
  text-decoration: underline;
}

.footer-states {
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 1.5rem;
}

.footer-bottom {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.14);
  font-size: 0.84rem;
}

.footer-bottom .footer-notes {
  max-width: 78ch;
}

.footer-copy {
  color: var(--on-navy);
}

.footer-copy .footer-legal {
  margin: 0;
  color: var(--on-navy-soft);
}

@media (min-width: 40rem) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .footer-top {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (pointer: coarse) {
  .site-footer .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }

  .footer-col ul {
    gap: 0.1rem;
  }
}
