/* Redesigned pages only (home, insurance value check). Loads after shell.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  overflow-wrap: break-word;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, select, input { font-family: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); }
/* ------------------------------------------------------------- shared */
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.section { padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.section h2, .h2 { margin: 0; font-size: 1.5625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.lede { margin: 0; color: var(--muted); }
.note { margin: 0; font-size: 1rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.text-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend, .field-label { padding: 0; font-weight: 600; font-size: 1rem; margin-bottom: var(--space-2); display: block; }
.field-stack { display: flex; flex-direction: column; gap: var(--space-2); }
.field-stack .field-label { margin-bottom: 0; }
.help { margin: var(--space-2) 0 0; font-size: var(--text-base); color: var(--muted); }
.field-stack .help { margin: 0; }

.chips { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.chips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.chips--list { display: flex; flex-direction: column; }

.chip {
  min-height: 48px; padding: var(--space-2) var(--space-3); border-radius: 10px;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--control);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__sub { font-family: var(--mono); font-weight: 400; font-size: 0.8125rem; opacity: 0.85; }
.chip__sub--sans { font-family: var(--sans); }
.chip--tall { min-height: 60px; }
.chip--center { align-items: center; text-align: center; padding-left: var(--space-2); padding-right: var(--space-2); }
.chip--row { min-height: 52px; padding: var(--space-2) var(--space-3); flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-2); }
.chip--row .chip__sub { white-space: nowrap; }
.chip--mono { font-family: var(--mono); padding: 0; align-items: center; }

.select, .input {
  width: 100%; min-height: 48px; padding: 0 var(--space-3); font-size: 1rem;
  border: 1.5px solid var(--control); border-radius: 10px; background: var(--card); color: var(--ink);
}
.input { min-height: 52px; font-size: 1.25rem; font-family: var(--mono); }
.select--lg { min-height: 52px; }

/* ----------------------------------------------------------- home: hero */
.hero { padding-top: var(--space-5); padding-bottom: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; }
.hero__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.hero h1 {
  margin: 0; font-size: clamp(1.9375rem, 7vw + 0.25rem, 3.0625rem); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.03em; text-wrap: balance;
}
.hero__answer { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.price-tag {
  font-family: var(--mono); font-weight: 600; background: var(--ink); color: #fff;
  padding: 2px var(--space-2); border-radius: 4px; white-space: nowrap;
}
.trust { margin: var(--space-1) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-size: 1rem; }
.trust li { display: flex; gap: var(--space-2); align-items: flex-start; }
.trust svg { flex: none; margin-top: 2px; }

/* ------------------------------------------------------ home: calculator */
.calc { flex: 1 1 340px; min-width: 0; overflow: hidden; scroll-margin-top: 12px; }
.calc__form { padding: var(--space-3) var(--space-3) var(--space-2); display: flex; flex-direction: column; gap: var(--space-3); }
.calc__form h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.calc__group { display: flex; flex-direction: column; gap: var(--space-2); }

.result {
  margin-top: var(--space-3); background: var(--ink); color: #fff; padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.result__label {
  font-size: 0.8125rem; color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono);
}
.result__head { display: flex; flex-direction: column; gap: 2px; }
.result__range {
  font-family: var(--mono); font-weight: 600; font-size: clamp(1.5625rem, 6vw, 1.9375rem);
  letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.result__basis { font-size: 1rem; color: var(--muted-on-ink); }
.result a { color: #fff; }
.result a:hover { color: var(--pay-on-ink); }
.rows { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 1rem; }
.rows > div { display: flex; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--rule-on-ink); padding-top: var(--space-2); }
.rows dt { color: var(--border); }
.rows dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__fine { margin: 0; font-size: var(--text-base); color: var(--muted-on-ink); }
.btn-light {
  min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-2) var(--space-3); background: #fff; color: var(--ink) !important; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.btn-light:hover { background: var(--track); }

/* ------------------------------------------------------------ home: rest */
.link-cards { padding-top: var(--space-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-3); }
.link-card {
  display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; color: var(--ink); text-decoration: none;
}
.link-card:hover { border-color: var(--accent); color: var(--ink); }
.link-card__title { font-weight: 700; font-size: 1rem; }
.link-card__body { font-size: 1rem; color: var(--muted); }

.mat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.mat {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: var(--space-3) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.mat__top, .mat__bottom { display: flex; justify-content: space-between; gap: var(--space-3); }
.mat__top { align-items: baseline; }
.mat__name { font-weight: 700; }
.mat__name a { color: inherit; }
.mat__price { font-family: var(--mono); font-size: 1rem; white-space: nowrap; }
.mat__bottom { font-size: 1rem; color: var(--muted); }

.shares { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); border-radius: 12px; }
.share { display: flex; flex-direction: column; gap: var(--space-2); }
.share__top { display: flex; justify-content: space-between; gap: var(--space-3); }
.share__label { font-weight: 600; }
.share__range { font-family: var(--mono); font-size: 1rem; }
.bar { height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; }
.bar > span { display: block; height: 10px; background: var(--accent); }

.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-2); }
.cost {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-1);
}
.cost__name { font-weight: 700; }
.cost__price { font-family: var(--mono); font-size: 1rem; color: var(--cost); }
.cost__body { font-size: 1rem; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pill {
  min-height: 44px; display: flex; align-items: center; padding: 0 var(--space-3); background: var(--card);
  border: 1px solid var(--control); border-radius: 22px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }

.faq { max-width: 760px; margin: 0 auto; padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.faq h2 { margin-bottom: var(--space-1); }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0 var(--space-3); }
.faq summary {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 1.25rem; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 var(--space-3); color: var(--muted); }

.sources { padding-top: var(--space-5); }
.sources ol { margin: 0; padding-left: var(--space-4); font-size: 1rem; color: var(--muted); display: flex; flex-direction: column; gap: var(--space-2); }

/* ------------------------------------------------------------ sticky bar */
.sticky-est {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--ink); color: #fff; border-top: 1px solid var(--rule-on-ink);
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  transform: translateY(110%); transition: transform 0.2s ease; visibility: hidden;
}
.sticky-est.is-on { transform: none; visibility: visible; }
.sticky-est__val { font-family: var(--mono); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.sticky-est__lbl { display: block; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.sticky-est a { color: #fff; font-weight: 700; min-height: 44px; display: flex; align-items: center; white-space: nowrap; }
@media (min-width: 720px) { .sticky-est { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-est { transition: none; } }

/* ------------------------------------------------- insurance value check */
.checker { padding-top: var(--space-4); padding-bottom: var(--space-2); display: flex; flex-direction: column; gap: var(--space-4); }
.checker__intro { display: flex; flex-direction: column; gap: var(--space-2); max-width: 720px; }
.checker__intro h1 {
  margin: 0; font-size: clamp(1.9375rem, 6vw, 2.4375rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance;
}
.checker__cols { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.checker__col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.step { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.step h2, .panel h2 { margin: 0; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }
.step__num {
  width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: #fff; flex: none;
  font-family: var(--mono); font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack[hidden] { display: none; }

.rcv { border-radius: 14px; padding: var(--space-4) var(--space-3); margin-top: 0; gap: var(--space-3); }
.rcv__value {
  font-family: var(--mono); font-weight: 600; font-size: clamp(1.9375rem, 9vw, 3.0625rem);
  letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.rows--payout { gap: var(--space-2); font-size: 1rem; }
.rows--payout > div { align-items: baseline; padding-top: var(--space-2); }
.rows--payout dt { display: flex; flex-direction: column; }
.rows--payout dt small { font-size: 0.8125rem; color: var(--muted-on-ink); }
.rows--payout .is-pay, .rows--payout .is-pay dt span, .rows--payout .is-pay dd { color: var(--pay-on-ink); font-weight: 700; }

.panel { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.panel p { margin: 0; font-size: 1rem; color: var(--muted); }
.lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--track); }
.lines__name { display: flex; flex-direction: column; }
.lines__name b { font-weight: 600; font-size: 1rem; }
.lines__name span { font-size: 0.8125rem; color: var(--muted); }
.lines__qty { font-family: var(--mono); font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.btn-primary {
  min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-2) var(--space-3); background: var(--accent); color: #fff; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

/* Footnote links: larger tap area without moving the text. */
.note a[href^="#ref-"] { padding: var(--space-2) var(--space-1); margin: calc(var(--space-2) * -1) 0; }
/* Inline field validation (insurance value check). */
.field-error { margin: 0; font-size: var(--text-base); color: var(--cost); font-weight: 600; }
.input[aria-invalid='true'] { border-color: var(--cost); }

/* Text scaling to 200%: price labels wrap instead of pushing the page sideways. */
.price-tag, .mat__price, .chip__sub, .chip--row .chip__sub, .lines__qty, .rows dd, .sticky-est__val, .sticky-est a, .rcv__value { white-space: normal; }
.mat__top, .mat__bottom, .chip--row, .lines li, .rows > div, .share__top { flex-wrap: wrap; }
.rows dd, .lines__qty { text-align: right; margin-left: auto; }
main a { overflow-wrap: anywhere; }
@media (max-width: 719px) { .checker__intro .lede { font-size: 1.125rem; } }
