/* =========================================================================
   Model Y Insurance Compare — stylesheet
   Light theme, no external dependencies.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;

  --bg:            #ffffff;
  --bg-alt:        #f5f6f8;
  --bg-raised:     #ffffff;
  --bg-sunken:     #eef0f3;
  --border:        #e2e5ea;
  --border-strong: #c9ced7;

  --text:          #14171c;
  --text-soft:     #4b5361;
  --text-faint:    #737d8c;

  --accent:        #d8232a;
  --accent-hover:  #b81c22;
  --accent-soft:   #fdeced;
  --accent-text:   #ffffff;

  --ink:           #0e1116;
  --pos:           #0f7a4d;
  --pos-soft:      #e6f5ee;
  --neg:           #b03a1e;
  --neg-soft:      #fdeee9;

  --shadow-sm: 0 1px 2px rgba(16, 20, 28, .06), 0 1px 3px rgba(16, 20, 28, .05);
  --shadow-md: 0 4px 10px rgba(16, 20, 28, .06), 0 10px 30px rgba(16, 20, 28, .07);
  --shadow-lg: 0 10px 20px rgba(16, 20, 28, .07), 0 24px 60px rgba(16, 20, 28, .10);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --wrap: 1200px;
  --wrap-narrow: 740px;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 66px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.4rem); letter-spacing: -.033em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); letter-spacing: -.025em; }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-sunken);
       padding: .12em .38em; border-radius: 5px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-text);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding: clamp(2.75rem, 5vw, 4.75rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-lede {
  max-width: 68ch; color: var(--text-soft); font-size: 1.06rem; margin-bottom: 1.9rem;
}
.center-link { text-align: center; margin-top: 2rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7a1016));
  color: #fff; font-weight: 800; font-size: .84rem; letter-spacing: -.03em;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: .97rem; letter-spacing: -.02em; }
.brand-text span { font-size: .72rem; color: var(--text-faint); letter-spacing: .09em;
                   text-transform: uppercase; font-weight: 600; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 9px;
  color: var(--text-soft); font-size: .93rem; font-weight: 550;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.site-nav a.is-active { color: var(--text); background: var(--bg-alt); font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: .4rem; }

/* Hidden on desktop; the media query below shows it on narrow viewports. */
.nav-toggle {
  display: none;
  width: 38px; height: 38px; padding: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text-soft);
}
.nav-toggle:hover { background: var(--bg-alt); color: var(--text); }

.nav-toggle span { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 900px) {
  .site-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none; padding: .6rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .75rem .5rem; border-radius: 8px; font-size: 1rem; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px;
                 align-items: center; justify-content: center; }
  .brand-text span { display: none; }
}

/* ---------------------------------------------------------- breadcrumbs */
.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none;
  margin: 0; padding: .65rem 0; font-size: .82rem; color: var(--text-faint);
}
.breadcrumbs li + li::before { content: "›"; margin-right: .45rem; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs [aria-current] { color: var(--text-faint); }

/* ---------------------------------------------------------------- hero */
.hero, .page-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(900px 380px at 12% -8%, var(--accent-soft), transparent 65%),
    radial-gradient(700px 320px at 88% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
}
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .85rem;
}
.hero h1, .page-hero h1 { max-width: 20ch; }
.hero-lede {
  max-width: 62ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  color: var(--text-soft); line-height: 1.6;
}
.hero-lede strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 0; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; margin: 2.6rem 0 0; padding: 0;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.hero-stats > div { background: var(--bg); padding: 1.1rem 1.2rem; }
.hero-stats dt {
  font-size: .78rem; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 650; margin-bottom: .35rem;
}
.hero-stats dd {
  margin: 0; font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stats dd span { font-size: .8rem; font-weight: 550; color: var(--text-faint); margin-left: .15rem; }
.hero-stats dd.small { font-size: 1.02rem; font-weight: 650; line-height: 1.35; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.25rem; border-radius: 10px;
  font-size: .95rem; font-weight: 650; letter-spacing: -.01em;
  border: 1px solid var(--border-strong); background: var(--bg-raised); color: var(--text);
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; color: var(--text); border-color: var(--text-faint); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; }
.btn-sm { padding: .45rem .85rem; font-size: .86rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }

.pill {
  display: inline-block; padding: .22rem .6rem; border-radius: 999px;
  font-size: .74rem; font-weight: 650; letter-spacing: .01em;
  background: var(--bg-sunken); color: var(--text-soft); border: 1px solid var(--border);
  white-space: nowrap;
}
.pill-best { background: var(--pos-soft); color: var(--pos); border-color: transparent; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip {
  display: inline-block; padding: .35rem .75rem; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: .85rem; color: var(--text-soft);
}

/* ---------------------------------------------------------------- badges */
.badge {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--badge); color: #fff;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

/* ---------------------------------------------------------- disclaimer */
.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem; margin: 1.8rem 0;
}
.callout h2, .callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--accent); }

/* ---------------------------------------------------------- winner cards */
.winner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.35rem;
}
.winner-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
}
.winner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.winner-tag {
  position: absolute; top: -11px; left: 1.4rem;
  background: var(--accent); color: var(--accent-text);
  font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.winner-head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: .9rem; }
.winner-head h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.winner-head h3 a { color: var(--text); }
.winner-tagline { margin: 0; font-size: .87rem; color: var(--text-faint); line-height: 1.4; }
.winner-price { margin: 0 0 .4rem; font-size: .9rem; color: var(--text-soft); }
.winner-price span {
  font-size: 1.85rem; font-weight: 780; color: var(--text);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-right: .3rem;
}
.winner-score { font-size: .87rem; color: var(--text-soft); font-weight: 600; margin-left: .3rem; }
.winner-points { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; flex: 1; }
.winner-points li {
  position: relative; padding-left: 1.5rem; font-size: .91rem;
  color: var(--text-soft); margin-bottom: .55rem; line-height: 1.45;
}
.winner-points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--pos); font-weight: 800;
}

/* ---------------------------------------------------------------- table */
.table-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
  margin-bottom: 1.1rem;
}
.toolbar-group { display: flex; flex-direction: column; gap: .3rem; }
.toolbar-group label {
  font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint);
}
.toolbar-count { margin: 0 0 .2rem auto; font-size: .85rem; color: var(--text-faint); }

select, input[type="search"], input[type="text"] {
  font: inherit; font-size: .93rem;
  padding: .55rem .8rem; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--bg-raised); color: var(--text);
  min-width: 210px;
}
select:hover, input[type="search"]:hover { border-color: var(--text-faint); }

.table-scroll {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised); box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.compare-table { font-size: .93rem; min-width: 860px; }
.compare-table.simple { min-width: 620px; }
.compare-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-sunken); color: var(--text-faint);
  font-size: .75rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table td {
  padding: .95rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--bg-alt); }
.col-rank { color: var(--text-faint); font-weight: 700; font-variant-numeric: tabular-nums; width: 46px; }

.company-cell { display: flex; align-items: center; gap: .7rem; color: var(--text); min-width: 190px; }
.company-cell:hover { text-decoration: none; }
.company-cell:hover strong { color: var(--accent); }
.company-cell span { display: flex; flex-direction: column; line-height: 1.25; }
.company-cell small { font-size: .78rem; color: var(--text-faint); }

.price {
  font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.price-range { display: block; font-size: .76rem; color: var(--text-faint); margin-top: .1rem; }
.col-month { font-variant-numeric: tabular-nums; color: var(--text-soft); }

.delta { font-size: .84rem; font-weight: 620; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.delta.pos { color: var(--pos); background: var(--pos-soft); }
.delta.neg { color: var(--neg); background: var(--neg-soft); }

.col-score .score { font-weight: 750; margin-right: .4rem; font-variant-numeric: tabular-nums; }
.col-avail { color: var(--text-soft); font-size: .87rem; }

@media (max-width: 720px) {
  .compare-table, .compare-table.simple { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem;
    padding: 1rem; border-bottom: 1px solid var(--border);
  }
  .compare-table td { border: 0; padding: .2rem 0; }
  .compare-table td::before {
    content: attr(data-label); display: block;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-faint); font-weight: 700;
  }
  .compare-table td:empty { display: none; }
  /* The rank number reads fine on its own; drop the "Rank" label on cards. */
  .col-rank { grid-column: 1 / -1; font-size: .82rem; color: var(--text-faint); }
  .col-rank::before { display: none; }
  .col-name { grid-column: 1 / -1; }
  .col-cta  { grid-column: 1 / -1; margin-top: .6rem; }
  .col-cta .btn { width: 100%; }
  .table-scroll { overflow-x: visible; }
}

/* Carriers with no published average, and inline source attribution. */
.price-na, .na { color: var(--text-faint); font-weight: 600; }
.price-na { font-size: .98rem; }
.card-price-na { font-size: 1.6rem; color: var(--text-faint); letter-spacing: -.02em; }

/* Tesla prices from Safety Score rather than a fixed rate — shown as a
   feature of the product, not as missing data. */
.price-score { color: var(--accent); font-weight: 700; font-size: .98rem; }
.card-price-score {
  font-size: 1.72rem; color: var(--accent); letter-spacing: -.025em; line-height: 1.15;
}
.pill-score {
  background: var(--accent-soft); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.table-source {
  margin: .85rem 0 0; font-size: .8rem; color: var(--text-faint);
  line-height: 1.55; max-width: 90ch;
}

/* ------------------------------------------------------------- profile */
.profile-box {
  margin-top: 1.6rem; padding: 1.35rem 1.5rem;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.profile-box h3 { font-size: .95rem; margin-bottom: .9rem; }
.profile-box dl { margin: 0; display: grid; gap: .55rem; }
.profile-box dl > div { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .88rem; }
.profile-box dt {
  min-width: 92px; color: var(--text-faint); font-weight: 650;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .12rem;
}
.profile-box dd { margin: 0; color: var(--text-soft); flex: 1; min-width: 220px; }

/* --------------------------------------------------------------- chart */
.chart { margin: 0; }
.chart-inner {
  position: relative; display: grid; gap: .55rem;
  padding: 1.4rem 1.4rem 1.4rem; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.bar-row { display: grid; grid-template-columns: 150px 1fr 78px; align-items: center; gap: .8rem; }
.bar-label { font-size: .87rem; color: var(--text); font-weight: 600; }
.bar-track { height: 26px; background: var(--bg-sunken); border-radius: 7px; overflow: hidden; }
.bar-fill {
  height: 100%; width: var(--w);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 78%, transparent), var(--c));
  border-radius: 7px;
  animation: grow .7s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes grow { from { width: 0; } to { width: var(--w); } }
.bar-value {
  text-align: right; font-size: .87rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text-soft);
}
.chart-avg-line {
  position: absolute; top: 1rem; bottom: 1rem;
  left: calc(1.4rem + 150px + .8rem + (100% - 1.4rem - 1.4rem - 150px - 78px - 1.6rem) * var(--avg) / 100);
  border-left: 2px dashed var(--border-strong); pointer-events: none;
}
.chart-avg-line span {
  position: absolute; top: -.35rem; left: .4rem; white-space: nowrap;
  font-size: .7rem; font-weight: 700; color: var(--text-faint);
  background: var(--bg-raised); padding: 0 .3rem;
}
.chart figcaption { margin-top: .9rem; font-size: .82rem; color: var(--text-faint); }
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 108px 1fr 66px; gap: .5rem; }
  .bar-label { font-size: .8rem; }
  .chart-avg-line { display: none; }
}

/* --------------------------------------------------------------- states */
.state-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem;
}
.state-chip {
  display: flex; align-items: center; gap: .65rem;
  padding: .8rem .95rem; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .14s ease, transform .14s ease;
}
.state-chip:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.state-abbr {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px; background: var(--bg-sunken);
  font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--text-soft);
}
.state-name { flex: 1; font-size: .9rem; font-weight: 600; }
.state-price {
  font-size: .85rem; font-weight: 700; color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- link cards */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.link-card {
  display: flex; flex-direction: column; gap: .45rem;
  padding: 1.35rem 1.35rem 1.25rem; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.link-card:hover { text-decoration: none; transform: translateY(-3px);
                   box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.link-card-tag {
  font-size: .7rem; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.link-card strong { font-size: 1.06rem; line-height: 1.3; letter-spacing: -.02em; }
.link-card-desc { font-size: .89rem; color: var(--text-soft); line-height: 1.5; }
.link-card-meta { font-size: .78rem; color: var(--text-faint); margin-top: auto; padding-top: .5rem; }

/* --------------------------------------------------------------- steps */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.step { position: relative; padding-left: 3.1rem; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-weight: 800; font-size: .95rem;
}
.step h3 { font-size: 1.03rem; margin-bottom: .35rem; }
.step p { font-size: .91rem; color: var(--text-soft); margin: 0; line-height: 1.55; }

/* ------------------------------------------------------- company review */
.company-hero { padding: clamp(2.25rem, 4vw, 3.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
                background: radial-gradient(900px 400px at 8% -10%, var(--accent-soft), transparent 62%); }
.company-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2.2rem; align-items: start; }
.company-hero-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.company-hero-head .badge { width: 54px; height: 54px; border-radius: 14px; font-size: 1.4rem; }
.company-hero h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin: 0; max-width: 22ch; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.rating-row strong { font-size: .95rem; margin-right: .4rem; }

.company-hero-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.card-price {
  margin: 0; font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.card-price span { display: block; font-size: .78rem; font-weight: 600; color: var(--text-faint);
                   letter-spacing: .04em; text-transform: uppercase; margin-top: .3rem; }
.card-sub { margin: .55rem 0 1.15rem; font-size: .85rem; color: var(--text-faint); }
.company-hero-card dl { margin: 0 0 1.3rem; display: grid; gap: .7rem; }
.company-hero-card dl > div { display: flex; justify-content: space-between; gap: 1rem;
                              font-size: .86rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.company-hero-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.company-hero-card dt { color: var(--text-faint); flex-shrink: 0; }
.company-hero-card dd { margin: 0; text-align: right; font-weight: 600; }
.company-hero-card dd.pos { color: var(--pos); }
.company-hero-card dd.neg { color: var(--neg); }

@media (max-width: 900px) {
  .company-hero-inner { grid-template-columns: 1fr; }
  .company-hero-card { position: static; }
}

/* ---------------------------------------------------------------- prose */
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose p { color: var(--text-soft); }
.prose p strong, .prose li strong { color: var(--text); font-weight: 650; }
.prose > ul li, .prose > ol li { color: var(--text-soft); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--text-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--pos); font-weight: 800;
}

.numbered { counter-reset: n; list-style: none; padding: 0; }
.numbered li { counter-increment: n; position: relative; padding-left: 2.3rem; margin-bottom: .8rem; color: var(--text-soft); }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: .1rem;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--bg-sunken); color: var(--text);
  font-size: .8rem; font-weight: 750;
}

.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2rem; }
.pros, .cons { padding: 1.25rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--border); }
.pros { background: var(--pos-soft); border-color: color-mix(in srgb, var(--pos) 22%, transparent); }
.cons { background: var(--neg-soft); border-color: color-mix(in srgb, var(--neg) 22%, transparent); }
.pros h3, .cons h3 { margin-top: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.pros h3 { color: var(--pos); }
.cons h3 { color: var(--neg); }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { position: relative; padding-left: 1.5rem; font-size: .92rem; margin-bottom: .6rem;
                     color: var(--text-soft); line-height: 1.5; }
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--pos); font-weight: 800; }
.cons li::before { content: "−"; position: absolute; left: 0; color: var(--neg); font-weight: 800; }

/* ---------------------------------------------------------- carrier grid */
.carrier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; }
.carrier-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.carrier-card-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .9rem; }
.carrier-card-head h2 { font-size: 1.15rem; margin: 0 0 .1rem; }
.carrier-card-head h2 a { color: var(--text); }
.carrier-tagline { margin: 0; font-size: .84rem; color: var(--text-faint); line-height: 1.4; }
.carrier-rank { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--text-faint); }
.carrier-price { margin: 0 0 .35rem; font-size: .87rem; color: var(--text-soft); }
.carrier-price strong { font-size: 1.35rem; color: var(--text); letter-spacing: -.025em;
                        font-variant-numeric: tabular-nums; }
.carrier-meta { margin: 0 0 .8rem; font-size: .83rem; color: var(--text-faint); }
.carrier-summary { font-size: .9rem; color: var(--text-soft); line-height: 1.55; flex: 1; }
.carrier-card .btn { align-self: flex-start; }

/* ----------------------------------------------------------------- toc */
.toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2.4rem;
}
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
          color: var(--text-faint); margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { font-size: .9rem; margin-bottom: .4rem; break-inside: avoid; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ----------------------------------------------------------------- faq */
.faq { background: var(--bg-alt); border-top: 1px solid var(--border); }
.faq-list { display: grid; gap: .6rem; }
.faq-item {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 650; font-size: 1rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--text-faint); line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--bg-alt); }
.faq-answer { padding: 0 1.25rem 1.2rem; }
.faq-answer p { margin: 0; color: var(--text-soft); font-size: .96rem; }

/* ---------------------------------------------------------- calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.calc-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
}
.calc-field { display: flex; flex-direction: column; gap: .4rem; }
.calc-field > label, .calc-field legend {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-faint);
}
.calc-field select { min-width: 0; width: 100%; }
.calc-field output { color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-checks { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.calc-checks legend { padding: 0; margin-bottom: .6rem; }
.calc-checks label {
  display: flex; align-items: center; gap: .55rem;
  font-size: .92rem; color: var(--text-soft); margin-bottom: .45rem; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.calc-checks input { width: 17px; height: 17px; accent-color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px; background: var(--bg-sunken);
  border: 1px solid var(--border); cursor: pointer; margin-top: .5rem;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-raised); box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-raised);
}

.calc-result {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 1rem);
}
.calc-eyebrow { margin: 0 0 .3rem; font-size: .76rem; font-weight: 700;
                letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); }
.calc-amount {
  margin: 0; font-size: 3rem; font-weight: 820; letter-spacing: -.04em;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--text);
}
.calc-monthly { margin: .5rem 0 1.3rem; font-size: .95rem; color: var(--text-soft); }
.calc-monthly span { font-weight: 700; color: var(--text); }
.calc-range { display: flex; align-items: center; gap: .6rem; font-size: .78rem;
              color: var(--text-faint); font-variant-numeric: tabular-nums; }
.calc-range-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-sunken); position: relative; }
.calc-range-fill {
  position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); left: 50%; transform: translateX(-50%);
  transition: left .25s cubic-bezier(.2, .8, .3, 1);
}
.calc-note { margin: .8rem 0 1.4rem; font-size: .8rem; color: var(--text-faint); line-height: 1.5; }
.calc-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
            color: var(--text-faint); margin-bottom: .7rem; }
.calc-carriers { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.calc-carriers li { margin-bottom: .55rem; }
.calc-carriers a { display: flex; align-items: center; gap: .6rem; color: var(--text);
                   font-size: .9rem; padding: .45rem; border-radius: 8px; }
.calc-carriers a:hover { background: var(--bg-alt); text-decoration: none; }
.calc-carriers .badge { width: 30px; height: 30px; border-radius: 8px; font-size: .82rem; }
.calc-carriers .cc-price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-disclaimer { margin: 0; font-size: .74rem; color: var(--text-faint); line-height: 1.5;
                   padding-top: 1rem; border-top: 1px solid var(--border); }

@media (max-width: 940px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

/* -------------------------------------------------------------- footer */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 2rem; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 2rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--border);
}
.footer-about p { font-size: .87rem; color: var(--text-soft); margin: 1rem 0 0; max-width: 42ch; }
.footer-updated { font-size: .8rem !important; color: var(--text-faint) !important; }
.footer-grid h2 { font-size: .77rem; text-transform: uppercase; letter-spacing: .08em;
                  color: var(--text-faint); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid li a { font-size: .87rem; color: var(--text-soft); }
.footer-grid li a:hover { color: var(--accent); }

.footer-legal { padding-top: 1.6rem; }
.footer-legal p { font-size: .8rem; color: var(--text-faint); line-height: 1.6; max-width: 78ch; margin-bottom: .7rem; }
.footer-legal strong { color: var(--text-soft); }
.copyright { margin-top: 1.2rem !important; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-count { margin-left: 0; }
  select, input[type="search"] { min-width: 0; width: 100%; }
}

/* ------------------------------------------------------------- printing */
@media print {
  .site-header, .site-footer, .table-toolbar, .btn, .breadcrumbs, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .faq-item { break-inside: avoid; }
  .faq-answer { display: block !important; }
}
