/* UltimateMed home page.
   Colour in 60 / 30 / 10: warm off-white ground, grass green as the primary,
   sunflower yellow for highlights. Sections are sheets that slide over one
   another. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --base: #fbf8ef;        /* 60: warm off-white */
  --sand: #f3eedd;
  --ink: #1e2419;
  --ink-soft: #50584a;
  --rule: #e4ddc9;
  --green: #46771f;       /* 30: grass */
  --green-deep: #2b4a14;
  --on-green-soft: #f0f5e6;
  --yellow: #ffcf33;      /* 10: highlight */
  --yellow-wash: #fff0bd;
  --logo-a: #2f5616;      /* "Ultimate" */

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --page: 80rem;
  --gutter: clamp(1.125rem, 3.5vw, 3rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header: 4.5rem;
  --sheet-radius: clamp(1.5rem, 3.5vw, 3rem);
  /* type: every section heading, sub-heading and card title uses these */
  --h2: clamp(2rem, 4.4vw, 3.25rem);
  --h-sub: 1.625rem;
  --card-title: 1.3125rem;
  /* the gray layer over a background photograph */
  --scrim: rgb(31 34 31 / 0.64);
  --radius: 1.125rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 28px -12px rgb(0 0 0 / 0.18);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  accent-color: var(--green);
}

h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
p, figure { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
img, video { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.site-footer :focus-visible,
.feature-alerts :focus-visible { outline-color: var(--yellow); }
section:focus, .seller:focus:not(:focus-visible) { outline: none; }

button, select { font: inherit; color: inherit; }
button, a, label, select, summary { touch-action: manipulation; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 0.5rem;
  top: -5rem;
  z-index: 50;
  padding: 0.7rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus { top: 0.5rem; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.65rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.button-large { min-height: 3.375rem; padding-inline: 1.75rem; font-size: 1.0625rem; }
.button-sun { background: var(--yellow); color: var(--ink); }
.button-ghost { border-color: var(--green); background: transparent; color: var(--green-deep); }
.button:active, .pill:active, .menu-button:active, .details-toggle:active, .video-toggle:active { transform: scale(0.97); }

.text-button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
}
/* The solid bar fades in behind the links once the page moves. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--base);
  box-shadow: 0 10px 30px -20px rgb(0 0 0 / 0.4);
  opacity: 0;
  transition: opacity 240ms ease;
}
.site-header.is-solid::before, .site-header.menu-open::before, html:not(.js) .site-header::before { opacity: 1; }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  min-height: var(--header);
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

/* The logo is the name in two warm colours. */
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.625rem;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wm-a { color: var(--logo-a); font-weight: 800; }
/* "Med" is the highlight yellow. A thin gold edge, drawn behind the fill,
   keeps its shape clear on the light header. */
.wm-b { color: var(--yellow); font-weight: 900; -webkit-text-stroke: 0.07em #b98a00; paint-order: stroke fill; }
.wordmark-footer { min-height: 0; font-size: 1.875rem; }
.site-footer .wordmark-footer { margin: 0 0 1rem; }
.site-footer .wordmark-footer .wm-a { color: #fbf8ef; }
.site-footer .wordmark-footer .wm-b { color: var(--yellow); -webkit-text-stroke: 0; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.45rem;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- banner: headline, the opening film, the price line ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--sheet-radius) + clamp(2.75rem, 6vw, 4.5rem));
  background: var(--base);
}

/* The words take the first 85% of the screen; the film shows its top 15%. */
.stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(85vh - var(--header) - env(safe-area-inset-top, 0px));
  min-height: calc(85svh - var(--header) - env(safe-area-inset-top, 0px));
  padding-block: 0.75rem clamp(1rem, 3vh, 2rem);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, min(7.6vw, 10vh), 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.03em 0.1em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: block; }
/* The highlighter stroke is the one place yellow shouts. */
.hero h1 mark {
  padding-inline: 0.12em;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 82% / 100% 0.34em no-repeat;
  color: var(--green-deep);
}
.lead {
  max-width: 40rem;
  margin: clamp(1rem, 3vh, 1.75rem) auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: clamp(1.25rem, 3.5vh, 2.25rem); }
.dateline { margin-top: clamp(0.75rem, 2vh, 1.25rem); color: var(--ink-soft); font-size: 0.875rem; }
.dateline strong { font-weight: 700; }

.film {
  position: relative;
  width: calc(100% - var(--gutter) * 2);
  max-width: calc(var(--page) - var(--gutter) * 2);
  margin-inline: auto;
  aspect-ratio: 21 / 10;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--green-deep);
}
.film video, .film-still { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.film-still { position: absolute; inset: 0; }
/* the wrapper that offers WebP takes no part in the layout */
picture { display: contents; }

/* Nothing sits on the film. Clicking it pauses or plays; keyboard users also get
   this button, which appears only while it has focus. */
.video-toggle {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  background: rgb(18 28 10 / 0.82);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}
.video-toggle:focus-visible { opacity: 1; pointer-events: auto; }

.price-wrap { position: relative; z-index: 2; margin-top: 1.25rem; }

/* Pinned: the script grows the film as you scroll, then lifts in the price line. */
.hero.is-pinned { height: 215svh; padding: 0; }
.is-pinned .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.is-pinned .stage-copy {
  position: absolute;
  top: var(--header);
  right: 0;
  left: 0;
  height: calc(85svh - var(--header));
  min-height: 0;
}
.is-pinned .film {
  position: absolute;
  top: 85%;
  right: 8%;
  bottom: 0;
  left: 8%;
  width: auto;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 2rem 2rem 0 0;
}
/* The empty box around the price line must not block clicks on the film. */
.is-pinned .price-wrap { position: absolute; left: 0; right: 0; bottom: clamp(2.25rem, 6vh, 4rem); margin: 0 auto; pointer-events: none; }
.is-pinned .price-line-card { pointer-events: auto; }
.is-pinned .price-line-card { opacity: 0; }
.hero.is-pinned + main > .sheet:first-child { margin-top: 0; }

@media (max-height: 53.75rem) {
  .price-line-card { padding-top: 0.7rem; padding-bottom: 0.15rem; }
  .plot { --step: 1.4rem; margin-top: 0; }
  .plc-readout { margin-top: 0; padding-top: 0; }
}

@media (max-width: 48rem) {
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3.75rem); }
  .film { aspect-ratio: 4 / 3; border-radius: 1.5rem; }
  .film video { object-position: 50% 55%; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; }
  .plot { --step: 2.1rem; margin-inline: 0.5rem; }
  .plot::before { left: -0.5rem; right: -0.5rem; }
  .plc-readout { padding-block: 0.5rem 0; }
}

/* Price line card */
.price-line-card {
  position: relative;
  z-index: 2;
  padding: 1.1rem clamp(1rem, 2.5vw, 1.75rem) 0.6rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.4);
}
.price-line-card :focus-visible { outline-color: var(--green); }
.plc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.plc-head h2 { font-size: 1.1875rem; font-weight: 800; }
.plc-hint { color: var(--ink-soft); font-size: 0.875rem; }

.plot {
  touch-action: pan-y;
  --levels: 2;
  --step: 1.75rem;
  position: relative;
  height: calc(var(--levels) * var(--step) + 2.1rem);
  margin: 0.35rem 0.9rem 0;
}
.plot::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  right: -0.9rem;
  bottom: 1.65rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  transform-origin: left;
}
.plot-axis span {
  position: absolute;
  bottom: 0;
  translate: -50% 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.dot {
  position: absolute;
  bottom: calc(1.8rem + var(--level) * var(--step) - 0.55rem);
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0.375rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #fff;
  transition: transform 180ms var(--ease-out), background-color 160ms ease;
}
.dot[aria-pressed="true"] { z-index: 2; }
.dot[aria-pressed="true"]::after { background: var(--yellow); box-shadow: 0 0 0 3px var(--ink); transform: scale(1.35); }

.plc-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.25rem;
  padding-top: 0.15rem;
  font-size: 0.9375rem;
}
.plc-readout strong { margin-right: 0.35rem; font-size: 1.0625rem; font-weight: 900; }

/* ---------- sheets: each section slides over the one before ---------- */

main { position: relative; z-index: 1; }
.sheet {
  position: relative;
  margin-top: calc(var(--sheet-radius) * -1);
  padding-block: var(--section) calc(var(--section) + var(--sheet-radius));
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--base);
  box-shadow: 0 -18px 40px -28px rgb(0 0 0 / 0.22);
  scroll-margin-top: calc(var(--header) - 1.5rem);
}
.how, .start, .guides { background: var(--sand); }
.compare { background: var(--base); }
.estimate { color: #fff; }

.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.how h2, .section-head h2, .questions h2, .feature h2 {
  font-size: var(--h2);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.intro { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.1875rem; }
.photo-section .intro { color: #f2f3ef; }

/* ---------- how the number adds up: a worked receipt ---------- */

.how-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.receipt {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 24px 48px -28px rgb(0 0 0 / 0.35);
}
.receipt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px dashed #cfc4a4;
  font-size: 0.9375rem;
  font-weight: 700;
}
.receipt-head a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.receipt-lines { padding: 0.5rem 1.5rem; }
.receipt-lines li {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0 1rem;
  align-items: center;
  padding-block: 0.9rem;
}
.receipt-lines li + li { border-top: 1px solid var(--rule); }
/* The plus sits on the rule between two lines: each line is added to the one above. */
.receipt-lines li + li::before {
  content: "+";
  position: absolute;
  top: -0.8rem;
  left: 0.82rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}
.receipt-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--base);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.receipt-icon svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.receipt-what { display: grid; }
.receipt-what strong { font-size: 1.1875rem; font-weight: 800; }
.receipt-what span { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.4; }
.receipt-amount { text-align: right; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.receipt-amount small { display: block; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; }

.receipt-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--green-deep);
  color: #fff;
}
.receipt-total p:first-child { display: grid; }
.receipt-total strong { font-size: 1.25rem; font-weight: 800; }
.receipt-total span { color: var(--on-green-soft); font-size: 0.9375rem; }
.receipt-sum { text-align: right; }
.receipt-sum b { display: block; color: var(--yellow); font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 900; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.receipt-sum small { color: var(--on-green-soft); font-size: 0.8125rem; }

/* Narrow phones: each price drops under its description, so the words keep their width. */
@media (max-width: 36rem) {
  .receipt-head, .receipt-lines, .receipt-total { padding-inline: 1.125rem; }
  .receipt-lines li { grid-template-columns: 3.25rem minmax(0, 1fr); row-gap: 0.35rem; }
  .receipt-lines li + li::before { left: 0.82rem; }
  .receipt-icon { grid-row: 1 / span 2; align-self: start; }
  .receipt-amount { grid-column: 2; text-align: left; }
  .receipt-amount small { display: inline; margin-left: 0.4rem; }
  .receipt-amount br { display: none; }
  .receipt-sum { width: 100%; text-align: left; }
}
.how-more { margin-top: 1.25rem; font-weight: 700; }
.how-more a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* The lines arrive in the order they are added; the total lands last. */
.motion .receipt-lines li, .motion .receipt-total { opacity: 0; translate: 0 0.9rem; transition: opacity 420ms var(--ease-out), translate 520ms var(--ease-out); }
.motion .receipt.is-in li:nth-child(1) { transition-delay: 160ms; }
.motion .receipt.is-in li:nth-child(2) { transition-delay: 420ms; }
.motion .receipt.is-in li:nth-child(3) { transition-delay: 660ms; }
.motion .receipt.is-in .receipt-total { transition-delay: 940ms; }
.motion .receipt.is-in li, .motion .receipt.is-in .receipt-total { opacity: 1; translate: 0 0; }

.photo { overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.how-photo { align-self: stretch; min-height: 22rem; max-height: 40rem; }
.how-photo img { object-position: 42% 40%; }

/* ---------- comparison ---------- */

.toolbar { position: sticky; top: calc(var(--header) + env(safe-area-inset-top, 0px)); z-index: 5; margin-inline: -0.5rem; padding: 0.65rem 0.5rem; background: var(--sand); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid #d6cdb4;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.pill[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); font-weight: 800; }

.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; min-height: 3.25rem; margin-top: 0.5rem; }
.status { font-size: 0.9375rem; font-weight: 700; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-left: auto; }
.sort-select { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
.sort-select select {
  min-height: 2.75rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d6cdb4;
  border-radius: 0.75rem;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 500;
}
.filter-note { flex-basis: 100%; padding-block: 0.25rem; color: var(--ink-soft); font-size: 0.9375rem; }

.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-block: 0.25rem 1rem; color: var(--ink-soft); font-size: 0.875rem; }
.key { display: inline-block; width: 1.75rem; height: 0.625rem; margin-right: 0.4rem; border-radius: 3px; }
.key-region { background: repeating-linear-gradient(135deg, var(--green) 0 2px, transparent 2px 5px); }
.key-open { background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 7px); }

.sellers { display: grid; gap: 0.75rem; }
.seller {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 2.4fr) minmax(0, 0.9fr);
  gap: 0 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  scroll-margin-block: 9rem 2rem;
  transition: box-shadow 220ms var(--ease-out), translate 220ms var(--ease-out), background-color 300ms ease;
  min-width: 0;
  overflow-wrap: anywhere;
}
.seller:focus-within { box-shadow: var(--shadow); }
.seller.is-found { background: var(--yellow-wash); box-shadow: 0 0 0 3px var(--yellow), var(--shadow); }
.s-who h3 { font-size: var(--card-title); font-weight: 900; letter-spacing: -0.015em; overflow-wrap: break-word; }
.s-checked { margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.8125rem; }

.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.price { font-size: 2.125rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums lining-nums; }
.price-tag { color: var(--ink-soft); font-size: 0.875rem; font-weight: 700; }
.basis { display: block; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.35; }

.bar {
  position: relative;
  display: block;
  height: 0.625rem;
  margin-block: 0.45rem;
  border-radius: 0 5px 5px 0;
  background: #ece6d3;
}
.s-cost .bar {
  background:
    linear-gradient(#d5ccb2, #d5ccb2) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(#d5ccb2, #d5ccb2) 66.666% 0 / 1px 100% no-repeat,
    #ece6d3;
}
.bar > span { position: absolute; top: 0; bottom: 0; }
.bar-fill { left: 0; background: var(--green); border-radius: 0 5px 5px 0; }
.bar-region { margin-left: 2px; border-radius: 0 5px 5px 0; background: repeating-linear-gradient(135deg, var(--green) 0 2px, transparent 2px 5px); }
.bar-open {
  width: 2.25rem;
  margin-left: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 7px);
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent);
  mask-image: linear-gradient(90deg, #000 20%, transparent);
}

.s-facts { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.15fr) minmax(0, 1.15fr); gap: 1rem; }
dt { margin-bottom: 0.15rem; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; }
dd { font-size: 0.9375rem; line-height: 1.4; }
.fact.count { font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.fact.missing { color: var(--ink-soft); }
.fact.missing::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.4em; border: 1.5px dashed currentColor; }

.s-actions { display: grid; gap: 0.25rem; justify-items: stretch; }
.s-actions .button { white-space: nowrap; padding-inline: 0.75rem; }
.details-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.25rem;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  transition: transform 140ms var(--ease-out);
}
.details-toggle::after {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  transition: rotate 220ms var(--ease-out), margin 220ms var(--ease-out);
}
.details-toggle[aria-expanded="true"]::after { rotate: 225deg; margin-top: 0.2rem; }

.s-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 240ms var(--ease-out), visibility 0s 240ms; }
.s-more > div { overflow: hidden; min-height: 0; }
.s-more dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.seller.is-open .s-more { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 240ms var(--ease-out), visibility 0s; }

.table-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; margin-top: 1.75rem; color: var(--ink-soft); font-size: 0.875rem; }
.noscript { padding-block: 2rem; font-weight: 700; }

/* ---------- annual cost estimate ---------- */

.controls { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-bottom: 1.75rem; }
.controls fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.controls legend { margin-bottom: 0.5rem; padding: 0; font-size: 0.9375rem; font-weight: 700; }
.segments { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; border-radius: 1.75rem; background: var(--green-deep); }
.photo-section .segments { background: rgb(18 21 18 / 0.72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.segments label { position: relative; display: flex; cursor: pointer; }
.segments input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segments span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.segments input:checked + span { background: var(--yellow); color: var(--ink); font-weight: 800; }
.segments input:active + span { transform: scale(0.96); }
.segments input:focus-visible + span { outline: 3px solid #fff; outline-offset: 1px; }

.estimate-panel { overflow: hidden; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.45); }
.estimate-status { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--rule); font-size: 1rem; font-weight: 700; }
.estimate-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.estimate-table th, .estimate-table td { padding: 0.9rem 0.75rem; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.e-seller { width: 19%; }
.e-total { width: 29%; }
.e-fee { width: 12%; }
.e-extra { width: 15%; }
.e-basis { width: 25%; }
.estimate-table thead th { padding-block: 0.65rem; border-bottom: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.8125rem; }
.estimate-table tbody th, .estimate-table tbody td { border-bottom: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.4; }
.estimate-table thead th:first-child, .estimate-table tbody th:first-child { padding-left: 1.5rem; }
.estimate-table th.col-seller { font-size: 1.0625rem; font-weight: 800; }
.estimate-table .price { font-size: 1.625rem; }
.estimate-table .bar { margin-bottom: 0; }
.estimate-table .col-basis { padding-right: 1.5rem; color: var(--ink-soft); font-size: 0.875rem; }
.estimate-table .partial .bar-fill { background: repeating-linear-gradient(135deg, var(--green) 0 2px, transparent 2px 5px); }
.group-row th { background: var(--sand); }
.group-row strong { display: inline-block; margin-right: 0.75rem; font-size: 1.0625rem; font-weight: 800; }
.group-row span { color: var(--ink-soft); font-size: 0.875rem; font-weight: 400; }
.excluded { padding: 1rem 1.5rem 1.25rem; font-size: 0.9375rem; font-weight: 700; }
.section-note { max-width: 75ch; margin-top: 1.25rem; color: var(--ink-soft); font-size: 0.875rem; }

/* ---------- guides ---------- */

.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-list li { display: flex; }
.guide-list a {
  position: relative;
  flex: 1;
  display: block;
  padding: 1.75rem 4.5rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  transition: box-shadow 220ms var(--ease-out), translate 220ms var(--ease-out);
}
.guide-list h3 { font-size: var(--card-title); font-weight: 800; letter-spacing: -0.015em; }
.guide-list p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 1rem; }
/* Arrow in a circle, drawn */
.guide-list a::before, .guide-list a::after { content: ""; position: absolute; right: 1.5rem; bottom: 1.5rem; }
.guide-list a::before { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sand); transition: background-color 200ms ease; }
.guide-list a::after { right: 2.55rem; bottom: 2.47rem; width: 0.55rem; height: 0.55rem; border: solid var(--green); border-width: 2px 2px 0 0; rotate: 45deg; transition: translate 220ms var(--ease-out), border-color 200ms ease; }

/* ---------- price alerts and match ---------- */

.next-steps .wrap { display: grid; gap: 1.25rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; border-radius: var(--sheet-radius); }
.feature-match { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.feature .photo { border-radius: 0; min-height: 24rem; }
.feature .photo img { position: relative; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 5vw, 4.5rem); }
.feature p { max-width: 30rem; margin-block: 1rem 2rem; font-size: 1.1875rem; }
.feature-alerts { background: var(--green-deep); color: #fff; }
.feature-alerts p { color: #f0f5e6; }
.feature-alerts img { object-position: 35% 40%; }
.feature-match { background: var(--yellow-wash); }
.feature-match img { object-position: 52% 55%; }

/* ---------- questions ---------- */

.questions-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 2.5rem 4rem; align-items: start; }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 1px solid var(--rule); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; padding-block: 1rem; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: var(--card-title); font-weight: 800; letter-spacing: -0.01em; }
.qa summary::after {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--green), var(--green)) center / 0.875rem 2px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 2px 0.875rem no-repeat,
    var(--sand);
  transition: rotate 260ms var(--ease-out);
}
.qa[open] summary::after { rotate: 45deg; }
.qa-body { max-width: 66ch; padding-bottom: 1.5rem; color: var(--ink-soft); }
/* Smooth opening where the browser supports it; elsewhere the answer simply appears. */
.qa::details-content { height: 0; overflow: clip; transition: height 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
.qa[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--sheet-radius) * -1);
  padding-top: 3.5rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.9375rem;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 2rem 3rem; }
.footer-about { max-width: 68ch; }
.footer-about p + p { margin-top: 1rem; color: var(--on-green-soft); }
.footer-links h2 { margin-bottom: 0.5rem; color: var(--yellow); font-size: 1.0625rem; font-weight: 800; }
.footer-explore ul { columns: 2; column-gap: 1.5rem; }
.footer-links li { break-inside: avoid; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; line-height: 1.3; text-decoration: none; }
.footer-date { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.25); font-weight: 700; }
.s-who h3 a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 2px; }

/* ---------- motion ----------
   Only with scripting on and no reduced-motion preference (class "motion").
   Without it everything is simply in place. */

@keyframes line-up { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes marker { from { background-size: 0% 0.34em; } to { background-size: 100% 0.34em; } }
.motion .hero h1 mark { animation: marker 750ms var(--ease-out) 720ms both; }
.motion .film video { animation: settle 1400ms var(--ease-out) 200ms both; }
@keyframes draw { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes drop { from { opacity: 0; translate: 0 -1.75rem; scale: 0.6; } to { opacity: 1; translate: 0 0; scale: 1; } }

.motion .hero h1 .line > span { animation: line-up 850ms var(--ease-out) both; }
.motion .hero h1 .line:nth-child(1) > span { animation-delay: 100ms; }
.motion .hero h1 .line:nth-child(2) > span { animation-delay: 200ms; }
.motion .hero h1 .line:nth-child(3) > span { animation-delay: 330ms; }
.motion .rise { animation: rise 700ms var(--ease-out) var(--d, 0ms) both; }
.motion .plot::before { scale: 0 1; }
.motion .dot { opacity: 0; }
.motion .price-line-card.is-up .plot::before { animation: draw 800ms var(--ease-out) 120ms both; }
.motion .price-line-card.is-up .dot { animation: drop 520ms var(--ease-out) var(--d, 400ms) both; }

.motion [data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 700ms var(--ease-out) var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion [data-wipe] { clip-path: inset(14% 10% 14% 10% round var(--sheet-radius)); transition: clip-path 1000ms var(--ease-out); }
.motion [data-wipe] img { scale: 1.2; transition: scale 1400ms var(--ease-out); }
.motion [data-wipe].is-in { clip-path: inset(0 0 0 0 round 0); }
.motion .how-photo.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.motion [data-wipe].is-in img { scale: 1; }

/* Price bars grow from the shared zero line when the list arrives. */
.motion .s-cost .bar > span { transition: clip-path 800ms var(--ease-out) 200ms; clip-path: inset(0 0 0 0); }
.motion .sellers:not(.is-in) .s-cost .bar > span { clip-path: inset(0 100% 0 0); }

/* ---------- hover: mouse and trackpad only ---------- */

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { transform: scaleX(1); }
  .button:hover { background: var(--green-deep); box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.5); translate: 0 -2px; }
  .button-sun:hover { background: #ffe14d; }
  .button-ghost:hover { background: var(--yellow-wash); border-color: var(--green-deep); color: var(--green-deep); }
  .pill:not([aria-pressed="true"]):hover { border-color: var(--green); background: var(--yellow-wash); }
  .dot:not([aria-pressed="true"]):hover::after { transform: scale(1.25); }
  .seller:hover { box-shadow: var(--shadow); translate: 0 -2px; }
  .segments input:not(:checked):hover + span { background: rgb(255 255 255 / 0.14); }
  .guide-list a:hover { box-shadow: var(--shadow); translate: 0 -3px; }
  .guide-list a:hover::before { background: var(--yellow); }
  .guide-list a:hover::after { translate: 3px 0; border-color: var(--ink); }
  .feature .photo img { transition: scale 1400ms var(--ease-out); }
  .qa summary:hover h3 { color: var(--green); }
}

/* ---------- smaller screens ---------- */

@media (max-width: 72rem) {
  .seller {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
    grid-template-areas: "who cost actions" "facts facts facts" "more more more";
    row-gap: 1rem;
  }
  /* Scoped to .seller: other cards reuse these class names. */
  .seller .s-who { grid-area: who; }
  .seller .s-cost { grid-area: cost; }
  .seller .s-actions { grid-area: actions; }
  .seller .s-facts { grid-area: facts; padding-top: 1rem; border-top: 1px solid var(--rule); }
  .seller .s-more { grid-area: more; margin-top: -1rem; }
  .toolbar { position: static; }
}

@media (max-width: 64rem) {
  .how-grid, .questions-grid, .table-notes { grid-template-columns: minmax(0, 1fr); }
  .how-photo { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .feature, .feature-match { grid-template-columns: minmax(0, 1fr); }
  .feature .photo { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }

  .estimate-table, .estimate-table tbody { display: block; }
  .estimate-table colgroup, .estimate-table thead { display: none; }
  .estimate-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "seller seller" "total total" "fee extra" "basis basis";
    gap: 0.6rem 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--rule);
  }
  .estimate-table tbody th, .estimate-table tbody td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .estimate-table tbody th.col-seller { grid-area: seller; padding: 0; font-size: 1.25rem; }
  .estimate-table .col-total { grid-area: total; }
  .estimate-table .col-fee { grid-area: fee; }
  .estimate-table .col-extra { grid-area: extra; }
  .estimate-table .col-basis { grid-area: basis; padding: 0; }
  .estimate-table td:not(.col-total)::before { content: attr(data-label); display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; }
  .estimate-table tbody tr.group-row { display: block; padding: 0; background: var(--sand); }
  .estimate-table tbody tr.group-row th { padding: 0.9rem 1.25rem; }
  .estimate-status, .excluded { padding-inline: 1.25rem; }
}

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

/* Phones */
@media (max-width: 48rem) {

  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .guide-list a { padding: 1.35rem 4.25rem 1.35rem 1.25rem; }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.5rem;
    padding-block: 5px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .pill { flex: none; scroll-snap-align: start; }
  .list-tools { width: 100%; margin-left: 0; }
  .sort-select { width: 100%; }
  .sort-select select { flex: 1; }

  .seller { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "cost" "facts" "actions" "more"; padding: 1.25rem; }
  .s-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-facts .f-draws { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.6rem; }
  .s-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0.75rem; }
  .s-more dl { grid-template-columns: minmax(0, 1fr); }
  .s-more { margin-top: -0.5rem; }
  .controls { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .button:active, .pill:active, .menu-button:active, .details-toggle:active { transform: none; }
}

@media print {
  .site-header, .film, .toolbar { display: none; }
  .hero { height: auto !important; }
}

/* ---------- links that leave the site ---------- */

/* Every button that opens a seller's own website carries this mark. */
.ext { flex: none; width: 0.95em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.plot-link { display: inline-flex; align-items: center; }

/* ---------- full list rows: two clear choices, then extras ---------- */

.s-actions { gap: 0.5rem; }
.s-actions .button { min-height: 2.75rem; padding-block: 0.4rem; }
.s-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  margin-top: 0.9rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--rule);
}
.compare-check { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; font-size: 0.875rem; font-weight: 700; }
.compare-check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--green); }
.s-more { margin-top: 0; }

@media (max-width: 72rem) {
  .seller { grid-template-areas: "who cost actions" "facts facts facts" "foot foot foot" "more more more"; }
  .s-foot { grid-area: foot; margin-top: 0; }
  .s-more { margin-top: -1rem; }
}
@media (max-width: 48rem) {
  .seller { grid-template-areas: "who" "cost" "facts" "actions" "foot" "more"; }
  .s-more { margin-top: -0.5rem; }
}

/* ---------- homepage: overview of the comparison ---------- */

.overview-list { display: grid; gap: 0.75rem; }
.ov-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 0.75rem 2rem;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  transition: box-shadow 220ms var(--ease-out), translate 220ms var(--ease-out);
}
.ov-who h3 { font-size: var(--card-title); font-weight: 900; letter-spacing: -0.015em; }
.ov-who p { color: var(--ink-soft); font-size: 0.9375rem; }
.ov-who .ov-checked { font-size: 0.8125rem; }
.ov-cost .bar {
  margin-bottom: 0;
  background:
    linear-gradient(#d5ccb2, #d5ccb2) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(#d5ccb2, #d5ccb2) 66.666% 0 / 1px 100% no-repeat,
    #ece6d3;
}
.ov-actions { display: flex; gap: 0.5rem; }
.ov-actions .button { white-space: nowrap; }
.motion .ov-cost .bar > span { transition: clip-path 800ms var(--ease-out) 200ms; clip-path: inset(0 0 0 0); }
.motion .overview-list:not(.is-in) .ov-cost .bar > span { clip-path: inset(0 100% 0 0); }


/* ---------- homepage: short cost estimate ---------- */

.teaser-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 1.5rem; }
.teaser-head .section-head, .teaser-head .controls { margin-bottom: 0; }
.teaser-status { margin-bottom: 0.9rem; color: #f2f3ef; font-size: 0.9375rem; font-weight: 600; }
.teaser-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.teaser-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.35rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.teaser-card h3 { font-size: var(--card-title); font-weight: 800; }
.teaser-card .price-line { margin-top: 0.5rem; }
.teaser-basis { margin-block: 0.35rem 1.25rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.4; }
.teaser-card .button { margin-top: auto; }
.estimate .teaser-card :focus-visible { outline-color: var(--green); }
.teaser-next { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.teaser-next p { color: #f2f3ef; }
.estimate .button:focus-visible, .estimate .segments input:focus-visible + span { outline-color: #fff; }
.estimate .estimate-panel :focus-visible { outline-color: var(--green); }

.after-guides { margin-top: 1.5rem; }
.qa-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 0.5rem; }
.qa-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9375rem; font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .ov-row:hover { box-shadow: var(--shadow); translate: 0 -2px; }
  .teaser-card .button-ghost:hover, .ov-row .button-ghost:hover { color: var(--green-deep); }
}

@media (max-width: 64rem) {
  .ov-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ov-actions { grid-column: 1 / -1; }
  .teaser-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .ov-row { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
  .ov-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ov-actions .button { padding-inline: 0.75rem; }
  .teaser-next .button { width: 100%; }
}

/* ---------- header: Compare button and the phone menu ---------- */

/* Compare is the page most visitors need, so it is the one filled button. */
.header-compare {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.55);
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.header-compare svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-compare[aria-current="page"] { background: var(--green-deep); }
.header-compare:active { transform: scale(0.97); }
.hc-long { display: none; }
@media (min-width: 80rem) { .hc-long { display: inline; } }
@media (hover: hover) and (pointer: fine) {
  .header-compare:hover { background: var(--green-deep); }
}

.header-row { flex-wrap: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { flex-wrap: nowrap; }
.site-nav a { padding-inline: 0.6rem; white-space: nowrap; }
.site-nav a::after { left: 0.6rem; right: 0.6rem; }

.menu-button { display: none; }
.menu-panel { display: none; }

@media (max-width: 68rem) {
  .js .site-nav { display: none; }
  .js .header-compare { margin-left: auto; }
  .js .menu-button {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1.5px solid var(--green);
    border-radius: 999px;
    background: var(--paper);
    color: var(--green-deep);
    transition: transform 140ms var(--ease-out);
  }
  .menu-button svg, .menu-close svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  /* Without scripting there is no menu to open, so the links stay on the page. */
  html:not(.js) .header-row { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  /* every link is showing, so the header is taller: let it take its own space */
  html:not(.js) .site-header { position: relative; }
  html:not(.js) :is(.hero, main) { --header: 0px; }

  .menu-panel[open] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(1.25rem + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: var(--base);
    color: var(--ink);
  }
  .menu-panel::backdrop { background: var(--base); }
  .motion .menu-panel[open] { animation: menu-in 260ms var(--ease-out) both; }
}
@keyframes menu-in { from { opacity: 0; translate: 0 -0.75rem; } to { opacity: 1; translate: 0 0; } }
html.menu-open { overflow: hidden; }

/* The close button sits exactly where the open button was. */
.menu-top { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: var(--header); }
.menu-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}
.menu-actions { display: grid; gap: 0.75rem; margin-block: 0.5rem 1.25rem; }
.menu-actions .button { width: 100%; }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}
.menu-links li:first-child a { border-top: 1px solid var(--rule); }
.menu-links a::after { content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.35rem; border: solid var(--green); border-width: 2px 2px 0 0; rotate: 45deg; }
.menu-links a[aria-current="page"] { color: var(--green-deep); }
.menu-links a[aria-current="page"]::before { content: ""; width: 0.55rem; height: 0.55rem; margin-right: -0.4rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1.5px #b98a00; order: -1; }
.menu-links a[aria-current="page"] span { margin-right: auto; }
.menu-foot { margin-top: auto; padding-top: 1.5rem; color: var(--ink-soft); font-size: 0.875rem; }

@media (max-width: 30rem) {
  .header-row { gap: 0 0.6rem; }
  .wordmark { font-size: 1.4375rem; }
  .header-compare { padding-inline: 0.95rem; }
}
@media (max-width: 22.5rem) {
  .header-row { gap: 0 0.4rem; }
  .wordmark { font-size: 1.1875rem; }
  .header-compare { gap: 0.3rem; padding-inline: 0.65rem; font-size: 0.875rem; }
  .header-compare svg { width: 1rem; height: 1rem; }
}

/* ---------- phones: tighter space between sections, nothing secondary under 14px ---------- */
@media (max-width: 48rem) {
  :root { --section: 3.25rem; --card-title: 1.1875rem; --h-sub: 1.375rem; }
  .ov-who .ov-checked, .receipt-amount small, .plot-axis span { font-size: 0.875rem; }
}
@media (max-width: 22.5rem) {
  .feature .feature-copy { padding-inline: 1.25rem; }
  :root { --h2: 1.75rem; }
}
@media (max-width: 22.5rem) {
  .segments label span { padding-inline: 0.7rem; font-size: 0.875rem; }
}
@media (max-width: 22.5rem) {
  /* the two long state choices get a full row each, rather than wrapping unevenly */
  #estimate-controls fieldset:last-of-type .segments { display: grid; width: 100%; }
  #estimate-controls fieldset:last-of-type .segments span { justify-content: center; width: 100%; }
}

/* ---------- a photograph behind a section, under a gray layer ---------- */

.photo-section { overflow: hidden; isolation: isolate; background: #2d312c; color: #fff; }
.photo-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.photo-section :focus-visible { outline-color: var(--yellow); }
.photo-section .teaser-card :focus-visible, .photo-section .paths :focus-visible { outline-color: var(--green); }
/* The photograph drifts a little as the page moves past it: transform only,
   tied to the scroll position, and off with reduced motion. */
@supports (animation-timeline: view()) {
  .motion .photo-bg img { animation: drift linear both; animation-timeline: view(); }
}
@keyframes drift { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }

.head-center { margin-inline: auto; text-align: center; }

/* ---------- onward links written as text ---------- */

.text-links { display: flex; flex-wrap: wrap; gap: 0.25rem 2.75rem; margin-top: 1.5rem; }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--green-deep);
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 160ms ease;
}
.arrow-link::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border: solid currentColor;
  border-width: 2.5px 2.5px 0 0;
  rotate: 45deg;
  transition: translate 220ms var(--ease-out);
}

/* ---------- homepage: start with what matters ---------- */

.start-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.start-list li { display: flex; }
.start-list a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  transition: box-shadow 220ms var(--ease-out), translate 220ms var(--ease-out), border-color 160ms ease, transform 140ms var(--ease-out);
}
.start-list a:active { transform: scale(0.98); }
.start-list a::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  margin: auto 0.35rem 0.25rem 0.1rem;
  border: solid var(--green);
  border-width: 2.5px 2.5px 0 0;
  rotate: 45deg;
  transition: translate 220ms var(--ease-out);
}
.start-icon { display: grid; flex: none; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--yellow-wash); color: var(--green-deep); transition: background-color 200ms ease; }
.start-icon svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.start-text { display: grid; gap: 0.4rem; }
.start-text strong { font-size: var(--card-title); font-weight: 800; line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
.start-text span { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }

@media (max-width: 68rem) {
  .start-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-list li:last-child { grid-column: 1 / -1; }
  .start-list a { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.1rem; }
  .start-list a::after { margin: 0 0.35rem 0 auto; flex: none; }
}
@media (max-width: 48rem) {
  .start-list { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .start-icon { width: 3rem; height: 3rem; }
  .start-icon svg { width: 1.5rem; height: 1.5rem; }
}

/* ---------- the last section on every page: two ways forward ---------- */

/* The photograph keeps its own side: nothing is laid over the people. */
.next-cta { background: #1f221f; }
.next-cta .photo-bg img { object-position: 46% 50%; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.paths li { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.35rem, 2.5vw, 2rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.5); }
.paths h3 { font-size: var(--h-sub); font-weight: 900; letter-spacing: -0.02em; }
.paths p { margin-block: 0.5rem 1.5rem; color: var(--ink-soft); }
.paths .button { margin-top: auto; }
@media (min-width: 64.01rem) {
  .next-cta .photo-bg img { width: 72%; -webkit-mask-image: linear-gradient(90deg, #000 66%, transparent); mask-image: linear-gradient(90deg, #000 66%, transparent); }
  .next-cta .photo-bg::after { background: linear-gradient(90deg, rgb(31 34 31 / 0.34) 0%, rgb(31 34 31 / 0.5) 36%, rgb(31 34 31 / 0.84) 52%, rgb(31 34 31 / 0.86) 100%); }
  .next-body { width: 48%; margin-left: auto; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .paths li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "text go"; align-items: center; column-gap: 1.5rem; }
  .paths h3 { grid-area: title; }
  .paths p { grid-area: text; margin-bottom: 0; }
  .paths .button { grid-area: go; min-width: 9.5rem; margin: 0; padding-inline: 1.25rem; }
}
/* narrower screens: the photograph on top, fading into the gray behind the words */
@media (max-width: 64rem) {
  .sheet.next-cta.photo-section { padding-top: 15rem; }
  .next-cta .photo-bg img { height: 21rem; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .next-cta .photo-bg::after { background: linear-gradient(180deg, rgb(31 34 31 / 0.18) 0, rgb(31 34 31 / 0.4) 10rem, rgb(31 34 31 / 0.82) 15rem, rgb(31 34 31 / 0.88) 100%); }
}
@media (max-width: 48rem) {
  .paths { grid-template-columns: minmax(0, 1fr); }
  .paths .button { width: 100%; }
}

@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover { text-decoration-color: var(--green); }
  .arrow-link:hover::after { translate: 3px 0; }
  .footer-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
  .start-list a:hover { translate: 0 -4px; border-color: var(--green); box-shadow: var(--shadow); }
  .start-list a:hover .start-icon { background: var(--yellow); }
  .start-list a:hover::after { translate: 3px 0; }
}

@media (max-width: 22.5rem) {
  .footer-explore ul { columns: 1; }
}
