/* Plan Tally. Mobile-first. Bands alternate (ink, paper, lime) so the page reads as a story, not a document. */
:root {
  --ink: #10221f;
  --ink-2: #1a3330;
  --ink-3: #27443f;
  --paper: #f6f4ec;
  --card: #ffffff;
  --text: #10221f;
  --muted: #55665f;
  --line: #e2e2d6;
  --lime: #d6f583;
  --lime-deep: #b8e04a;
  --mint: #e6f4e9;
  --coral: #ff7a59;
  --coral-soft: #ffe7df;
  --warn: #9a4a00;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 34, 31, .06), 0 10px 30px rgba(16, 34, 31, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1b19;
    --card: #162b28;
    --text: #eef3ee;
    --muted: #a6b8b1;
    --line: #2a4440;
    --mint: #1d3a33;
    --coral-soft: #3a2420;
    --warn: #ffb27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
  .eyebrow { background: var(--lime); color: var(--ink); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.5 var(--font); }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid #7aa2ff; outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: var(--ink); padding: 12px 16px; border-radius: 10px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }
.logo { width: 34px; height: 34px; flex: none; }
.logo rect { fill: var(--lime); }
.logo path { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; fill: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #24524a 0%, transparent 60%), var(--ink); color: #eef3ee; padding-bottom: 48px; }
.tally-bg { position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, var(--lime) 22px 26px, transparent 26px 44px);
  mask-image: linear-gradient(160deg, transparent 30%, #000 75%); -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000 75%); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; min-height: 44px; }
nav { display: flex; gap: 2px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; color: #cfe0d9; }
nav a:hover { background: var(--ink-2); color: #fff; }
nav a.nav-cta { background: var(--lime); color: var(--ink); padding: 10px 14px; margin-left: 6px; }
nav a.nav-cta:hover { background: #e4fa9f; }
.hero-grid { position: relative; display: grid; gap: 28px; padding-top: 18px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 48px; padding-top: 36px; } }
.kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.kicker span { color: #fff; opacity: .6; }
h1 { font-size: clamp(40px, 8.5vw, 64px); font-weight: 900; letter-spacing: -.045em; }
h1 em { font-style: normal; color: var(--ink); background: var(--lime); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 19px; color: #c6d6cf; max-width: 36ch; margin: 16px 0 22px; }

/* Controls */
.controls { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 18px; }
.controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.controls legend { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chips button { min-height: 56px; border-radius: 12px; border: 1px solid var(--ink-3); background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; display: grid; place-content: center; line-height: 1.15; transition: transform .15s, background .15s; }
.chips button small { font-weight: 500; font-size: 12px; color: #9fb7ae; }
.chips button:hover { transform: translateY(-1px); border-color: var(--lime); }
.chips button[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chips button[aria-pressed="true"] small { color: var(--ink-3); }
.slider { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.slider input { flex: 1; appearance: none; -webkit-appearance: none; height: 44px; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--lime) var(--fill, 6%), var(--ink-3) var(--fill, 6%)); }
.slider input::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--lime) var(--fill, 6%), var(--ink-3) var(--fill, 6%)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--lime); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.slider input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--lime); }
.slider output { min-width: 78px; text-align: right; font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--lime); }
.feel { margin: 2px 0 0; font-size: 14px; color: #9fb7ae; }
.data-help { margin-top: 6px; font-size: 14px; color: #c6d6cf; }
.data-help summary { color: var(--lime); min-height: 40px; }
.data-help ul { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.data-help p { margin: 0 0 6px; color: #9fb7ae; }
.data-help b { color: #fff; }
.toggles { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-3); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--ink-3); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--lime-deep); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid #7aa2ff; outline-offset: 3px; }
.switch small { display: block; color: #9fb7ae; font-size: 13px; }

/* Scoreboard */
.scoreboard { background: var(--paper); color: var(--text); border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.score-label { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.versus { display: grid; grid-template-columns: 1fr; gap: 10px; position: relative; }
@media (min-width: 560px) { .versus { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.vs { align-self: center; justify-self: center; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); margin: -22px 0; z-index: 1; }
@media (min-width: 560px) { .vs { margin: 0 -18px; } }
/* Three or more networks: equal columns, no vs badges, smaller totals. */
.versus.multi .vs { display: none; }
@media (min-width: 560px) { .versus.multi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.versus.multi .total { font-size: clamp(36px, 4.4vw, 46px); }
.versus.multi .side { padding: 14px 14px 12px; }
.side { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; position: relative; transition: border-color .3s, transform .3s; }
.side.winner { border-color: var(--lime-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 45%, transparent); }
.who { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.who::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
/* Each provider (.p-<id>) and network (.n-<id>) sets --brand in brands.css, generated from the data files. */
[data-provider] .who, .side .who { color: var(--brand, var(--muted)); }
.crown { display: none; margin-left: auto; font-size: 11px; letter-spacing: .06em; background: var(--lime); color: var(--ink); padding: 3px 8px; border-radius: 99px; }
.winner .crown { display: inline-block; }
.plan-name { display: inline-block; margin-top: 6px; font-size: 20px; font-weight: 800; text-decoration: none; }
.plan-name span { font-weight: 500; color: var(--muted); font-size: 15px; }
.total { margin: 6px 0 0; font-size: clamp(44px, 8vw, 58px); font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.next { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.none { color: var(--muted); }
.verdict { margin: 16px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 14px; }
.verdict::before { content: "→ "; color: var(--lime); }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cta-row .btn-go { grid-column: 1 / -1; min-height: 56px; font-size: 17px; background: var(--lime); color: var(--ink); box-shadow: inset 0 -3px 0 var(--lime-deep); }
.cta-row .btn-ink { font-size: 14px; }
.cta-row .btn-plain { font-size: 14px; }
@media (min-width: 560px) { .cta-row { grid-template-columns: 1.4fr 1fr; } .cta-row .btn-go { grid-column: auto; grid-row: span 2; height: 100%; } }
.checked { margin: 14px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb36d; box-shadow: 0 0 0 4px rgba(47, 179, 109, .2); }

/* Payment dots: one per charge in year one */
.dots { display: flex; gap: 3px; }
.dots i { flex: 1; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.dots i.on { background: var(--lime-deep); }

/* ---------- Bands ---------- */
.band { padding: 56px 0; }
.band.dark { background: var(--ink); color: #eef3ee; }
.band.lime { background: var(--lime); color: var(--ink); --muted: #3d5a3a; --line: #c2e06d; --card: #fff; }
.eyebrow { display: inline-block; margin: 0 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--lime); padding: 5px 10px; border-radius: 99px; }
.dark .eyebrow { background: var(--lime); color: var(--ink); }
.band h2 { font-size: clamp(30px, 5.5vw, 48px); font-weight: 900; letter-spacing: -.04em; max-width: 20ch; }
.intro { color: var(--muted); max-width: 60ch; margin: 14px 0 28px; font-size: 17px; }
.intro a { color: var(--text); font-weight: 700; }
.dark .intro { color: #a9c0b8; }

/* The year race */
.key { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); white-space: nowrap; }
.key::before { content: ""; width: 14px; height: 14px; border-radius: 4px; }
.key.promo::before { background: repeating-linear-gradient(135deg, var(--lime-deep) 0 4px, var(--lime) 4px 8px); }
.key.full::before { background: linear-gradient(90deg, var(--c-n-telstra, #4b74ff) 33%, var(--c-n-optus, #13b39b) 33% 66%, var(--c-n-vodafone, #e60000) 66%); }
.key.tickkey::before { width: 3px; height: 16px; border-radius: 2px; background: var(--coral); }
.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: -10px 0 18px; font-size: 14px; }
.race { display: grid; gap: 8px; }
.race-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name val" "track track"; gap: 6px 12px; align-items: center; text-decoration: none; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
@media (min-width: 760px) { .race-row { grid-template-columns: 250px 1fr 130px; grid-template-areas: "name track val"; } }
.race-row:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.race-row.top { border: 2px solid var(--lime-deep); }
.race-row.misfit { opacity: .45; }
.race-name { grid-area: name; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.race-name::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--muted); }
.race-row .race-name::before { background: var(--brand, var(--muted)); }
.race-name b { font-weight: 800; }
.race-name small { margin-left: 2px; color: var(--muted); font-weight: 600; }
.track { grid-area: track; position: relative; display: flex; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--muted) 10%, transparent); overflow: visible; }
.seg { height: 100%; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.seg:first-child { border-radius: 7px 0 0 7px; }
.seg:last-of-type { border-radius: 0 7px 7px 0; }
.seg.promo { background: repeating-linear-gradient(135deg, var(--lime-deep) 0 6px, var(--lime) 6px 12px); }
.seg.full { background: var(--brand, var(--muted)); }
.tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--coral); border-radius: 2px; }
.race-val { grid-area: val; text-align: right; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.race-val small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.race-controls { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--muted); }

select { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 12px; font-weight: 600; }

/* Charts */
.chart-wrap { margin: 0; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 14px 10px 16px; min-width: 0; }
.chart { width: 100%; }
.chart-wrap.light { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.grid { stroke: currentColor; opacity: .12; }
.axis { font-size: 12px; fill: currentColor; opacity: .7; }
.axis.strong { opacity: 1; font-weight: 700; }
.run { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.deal-zone { fill: var(--lime); opacity: .07; }
.promo-end { stroke: var(--lime); stroke-dasharray: 4 4; stroke-width: 1.5; }
.end-name { font-size: 13px; font-weight: 800; fill: currentColor; }
.end-val { font-size: 12px; fill: currentColor; opacity: .75; }
.callout { margin: 10px 6px 0; font-size: 17px; font-weight: 700; color: var(--lime); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 44px; border-radius: 99px; padding: 0 14px 0 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink-3); background: transparent; color: #cfe0d9; font-weight: 600; cursor: pointer; font-size: 14px; }
.chip i { width: 12px; height: 12px; border-radius: 4px; background: var(--ink-3); }
.chip[aria-pressed="true"] i { background: var(--brand, #fff); }
.chip[aria-pressed="true"] { background: var(--ink-2); color: #fff; border-color: #fff; }
.chip.misfit { opacity: .6; }

/* Value map */
.map-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .map-grid { grid-template-columns: 1fr 1.4fr; align-items: center; } }
.too-little { fill: var(--coral); opacity: .08; }
.need { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 5 4; }
.bubble circle { stroke: var(--card); stroke-width: 3; transition: r .2s; }
.bubble:hover circle, .bubble:focus circle { r: 13; }
.bubble.misfit { opacity: .4; }
.bubble-label { font-size: 12px; font-weight: 700; fill: currentColor; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.map-notes { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.map-notes li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; }
.map-notes li { border-left-color: var(--brand, var(--line)); }
.map-notes span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.map-notes b { font-size: 19px; }
.map-notes small { color: var(--muted); font-size: 14px; }

/* ---------- Cards ---------- */
.mine { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px; margin: 24px 0 28px; display: grid; gap: 10px; max-width: 560px; }
.mine > label { font-weight: 800; font-size: 17px; }
.mine-row { display: flex; gap: 8px; }
.money-input { flex: 1; display: flex; align-items: center; gap: 4px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 12px; padding: 0 12px; font-weight: 800; font-size: 20px; }
.money-input input { width: 100%; min-height: 50px; border: 0; background: transparent; font-weight: 800; font-size: 20px; outline-offset: 6px; }
.mine select { background: var(--ink-2); border-color: var(--ink-3); color: #fff; min-height: 52px; }
.mine-out { margin: 0; color: var(--lime); font-weight: 600; }
.count { font-weight: 700; margin: 0 0 16px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); color: var(--text); border-radius: 22px; padding: 0 18px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; overflow: hidden; scroll-margin-top: 20px; position: relative; }
.card.top { box-shadow: 0 0 0 3px var(--ink), var(--shadow); }
.card > header + * { margin-top: 4px; }
.ribbon { margin: 0; align-self: flex-start; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--lime); padding: 5px 10px; border-radius: 99px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills:empty { display: none; }
.fitbar { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--muted) 7%, transparent); }
@media (prefers-color-scheme: dark) { .band.lime .card { --text: #10221f; --muted: #55665f; --line: #e2e2d6; } }
.card header { margin: 0 -18px; padding: 16px 18px 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; color: #fff; }
.card header { background: linear-gradient(135deg, var(--brand, var(--ink)), var(--brand-deep, var(--ink))); }
.card header .who { color: #fff; opacity: .9; }
.card header h3 { font-size: 30px; font-weight: 900; margin-top: 2px; }
.card .gb { margin: 0; text-align: right; font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.card .gb small { display: block; font-size: 12px; letter-spacing: 0; font-weight: 600; opacity: .9; margin-top: 4px; }
.fitbar p { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.gauge { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 15%, transparent); overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .4s; }
.money { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.first { margin: 0; font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.first small { font-size: 14px; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-left: 6px; }
.monthly { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.card .next { margin: 0; }
.pill { margin: 0; display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; line-height: 1.35; }
.pill.deal { background: var(--lime); color: var(--ink); }
.pill.deal span { font-weight: 500; }
.pill.off { background: var(--coral-soft); color: var(--warn); }
.pill.save { background: var(--mint); color: #17734a; }
.pill.more { background: var(--coral-soft); color: var(--warn); }
.pill.same { background: var(--line); }
.facts { list-style: none; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: 14px; }
.facts li::before { content: "✓"; color: #2fb36d; font-weight: 900; margin-right: 8px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; background: var(--paper); border-radius: 99px; padding: 4px 10px 4px 7px; }
@media (prefers-color-scheme: dark) { .band.lime .tags li { background: #f1f1ea; } }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more { font-size: 14px; }
.more { border-top: 1px solid var(--line); }
.more summary, .nofit summary, .fine summary, .data-help summary, .faq-list summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
.more summary::-webkit-details-marker, .nofit summary::-webkit-details-marker, .fine summary::-webkit-details-marker, .data-help summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.more summary::after, .nofit summary::after, .fine summary::after, .data-help summary::after, .faq-list summary::after { content: ""; flex: none; margin-left: auto; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; opacity: .7; }
details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.more dl { margin: 0 0 8px; }
.more dt { font-weight: 800; margin-top: 8px; }
.more dd { margin: 2px 0 0; color: var(--muted); }
.more dd ul { margin: 0; padding-left: 18px; }
.caution { background: var(--coral-soft); color: var(--warn); border-radius: 10px; padding: 8px 10px; }
.src { color: var(--muted); }
.src a { display: inline-block; padding: 6px 0; font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 4px; }
.actions .full { grid-column: 1 / -1; }
.pick[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime-deep); }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; border-radius: 12px; padding: 0 16px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; text-align: center; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn-go { background: var(--ink); color: #fff; }
.btn-go:hover { box-shadow: 0 8px 20px rgba(16, 34, 31, .25); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 8px 20px rgba(184, 224, 74, .35); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-line { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 80%, transparent); font-size: 14px; padding: 0 10px; }
.btn-plain { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.nofit { margin-top: 24px; font-size: 15px; max-width: 760px; border-top: 1px solid var(--line); }
.notice { background: var(--coral-soft); color: var(--warn); padding: 12px 14px; border-radius: 12px; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.compare { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 14px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 20px; font-weight: 900; color: #fff; background: var(--ink); }
.compare thead th[class] { background: var(--brand, var(--ink)); }
.compare thead .who { color: #fff; opacity: .85; font-size: 11px; }
.compare thead .who::before { display: none; }
.compare tbody th { color: var(--muted); font-weight: 700; width: 20%; position: sticky; left: 0; background: var(--card); }
.compare td.win { font-weight: 800; }
.badge { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 2px 6px; border-radius: 6px; vertical-align: 1px; }
.link { background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; font-weight: 700; }

/* ---------- How it works ---------- */
.how { border-top: 1px solid var(--line); }
.rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li { background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.rules .num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--lime); color: var(--ink); font-size: 26px; font-weight: 900; margin-bottom: 14px; }
.rules h3 { font-size: 20px; font-weight: 900; }
.rules p { margin: 8px 0 0; color: var(--muted); }
.fine { margin-top: 28px; max-width: 760px; color: var(--muted); font-size: 15px; }
.fine { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fine summary { color: var(--text); }
.fine ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9cbc4; padding: 48px 0 96px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.watch { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 20px; }
.watch h2 { color: #fff; font-size: 24px; font-weight: 900; }
.site-footer .watch > p { margin: 10px 0 16px; }
.watch-form { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-form input[type=email] { flex: 1 1 220px; }
.watch-form .btn { flex: 1 0 auto; }
.watch-done { margin: 0; color: var(--lime); font-weight: 700; }
.foot-links { margin-top: 14px !important; }
.site-footer p { max-width: 70ch; margin: 0 0 10px; }
.site-footer a { color: #fff; display: inline-block; padding: 4px 0; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 900; }
.foot-brand span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 3px 8px; border-radius: 99px; }

@media (max-width: 480px) {
  .band { padding: 44px 0; }
  .chips button { font-size: 15px; }
  .race-val { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Forms ---------- */
input[type=email], input[type=date] { min-height: 50px; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font-size: 16px; color: var(--text); }
.site-footer input[type=email] { background: var(--ink); border-color: var(--ink-3); color: #fff; }
input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; color: var(--warn); font-weight: 700; font-size: 14px; }
.form-status:empty { display: none; }
.site-footer .form-status { color: #ffb27a; margin-top: 10px; }

/* ---------- Deal-end reminder ---------- */
.remind { background: var(--coral-soft); }
.remind .eyebrow { background: var(--coral); color: var(--ink); }
.remind-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .remind-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.remind .intro { margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 13px; }
.remind-card { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.alert-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .alert-form { grid-template-columns: 1.4fr 1fr; } .alert-form .wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 800; font-size: 14px; }
.field select { width: 100%; min-height: 50px; }
.preview { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mint); font-size: 15px; }
.preview:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; min-height: 44px; padding-top: 2px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.alert-form .btn { min-height: 54px; font-size: 17px; background: var(--ink); color: var(--lime); }
.consent { margin: 0; font-size: 13px; color: var(--muted); }
.done { text-align: center; padding: 8px 4px; outline: none; }
.done-mark { margin: 0 auto 10px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 28px; font-weight: 900; }
.done h3 { font-size: 26px; font-weight: 900; }
.done > p { color: var(--muted); }
.share-box { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.share-box p { margin: 0 0 12px; }
.share-row { display: flex; justify-content: center; }
.small { font-size: 14px; }

/* ---------- Switching FAQ ---------- */
.faq-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; } }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.faq-list summary { font-size: 17px; min-height: 56px; }
.faq-list p { margin: 0 0 16px; color: var(--muted); }
.faq-list a { color: var(--text); font-weight: 700; }

/* ---------- Sticky best match ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; transform: translateY(120%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sticky.show:not(.empty) { transform: none; }
.sticky-inner { pointer-events: auto; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 10px 10px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border: 1px solid var(--ink-3); }
.sticky-text { margin: 0; flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.sticky-text small { display: block; color: var(--lime); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sticky-text b { margin-right: 4px; }
.sticky-actions { display: flex; gap: 8px; flex: none; }
.sticky .btn { min-height: 46px; font-size: 14px; padding: 0 14px; }
@media (max-width: 480px) { #sticky-remind { display: none; } .sticky-text { font-size: 13px; } }

.toast:empty { visibility: hidden; }
.toast { position: fixed; left: 50%; top: 16px; z-index: 30; margin: 0; transform: translate(-50%, -150%); background: var(--lime); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s; }
.toast.show { transform: translate(-50%, 0); }

.table-hint { display: none; font-size: 13px; color: var(--muted); margin: -16px 0 10px; }
@media (max-width: 720px) { .table-hint { display: block; } }
@media (max-width: 480px) { nav a:not(.nav-cta) { display: none; } }

/* ---------- Simple pages (privacy, remove) ---------- */
.page-top { background: var(--ink); color: #fff; padding: 14px 0; }
.prose { max-width: 720px; padding: 40px 0 72px; }
.prose h1 { font-size: clamp(36px, 7vw, 52px); font-weight: 900; letter-spacing: -.04em; }
.prose h2 { font-size: 22px; font-weight: 900; margin-top: 32px; }
.prose .lead { font-size: 19px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Bill check (/check) ---------- */
.check-hero { padding-bottom: 56px; }
.check-grid { position: relative; display: grid; gap: 28px; padding-top: 18px; }
@media (min-width: 980px) { .check-grid { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 40px; align-items: start; } }
.ticks.light li::before { background: var(--lime); color: var(--ink); }
.ticks.light { color: #dfe9e4; }
.referral { display: inline-block; margin: 0 0 16px; background: var(--coral); color: var(--ink); font-weight: 800; padding: 8px 14px; border-radius: 12px; }
.bill-form { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
.bill-form .field { border: 0; margin: 0; padding: 0; }
.bill-form .field > label, .bill-form legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; }
.bill-form select, .bill-form input[type=date] { background: var(--ink); border: 1px solid var(--ink-3); color: #fff; min-height: 52px; width: 100%; color-scheme: dark; }
.bill-form .mine-row select { width: auto; flex: none; }
.gb-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: #9fb7ae; }
.gb-row input { width: 90px; min-height: 44px; border-radius: 10px; border: 1px solid var(--ink-3); background: var(--ink); color: #fff; padding: 0 10px; font-weight: 800; font-size: 17px; }
.cliff-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 122, 89, .12); border: 1px solid rgba(255, 122, 89, .4); }
.cliff-fields .money-input { background: var(--ink); }
.hint { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #b9cbc4; }
.btn.big { min-height: 60px; font-size: 19px; background: var(--lime); color: var(--ink); box-shadow: inset 0 -3px 0 var(--lime-deep); }

.result-band { padding-top: 40px; outline: none; scroll-margin-top: 0; }
.result-card { background: var(--card); border-radius: 26px; padding: 26px 22px; box-shadow: var(--shadow); }
.result-card h2 { font-size: clamp(34px, 7vw, 60px); font-weight: 900; letter-spacing: -.045em; max-width: 18ch; }
.big-num { display: inline-block; background: var(--lime); color: var(--ink); padding: 0 .14em; border-radius: .14em; font-variant-numeric: tabular-nums; }
.result-card[data-tier="ouch"] .big-num { background: var(--coral); }
.result-card[data-tier="good"] .eyebrow { background: var(--lime); color: var(--ink); }
.result-sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 14px 0 22px; }
.duel { display: grid; gap: 12px; margin-bottom: 14px; }
.duel-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label val" "track track"; gap: 6px 12px; align-items: end; }
@media (min-width: 720px) { .duel-row { grid-template-columns: 230px 1fr 110px; grid-template-areas: "label track val"; align-items: center; } }
.duel-label { grid-area: label; margin: 0; line-height: 1.25; }
.duel-label small { display: block; color: var(--muted); font-size: 13px; }
.duel-track { grid-area: track; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--muted) 12%, transparent); overflow: hidden; }
.duel-track span { display: block; height: 100%; border-radius: 9px; background: var(--coral); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.duel-row.best .duel-track span { background: var(--brand, var(--ink)); }
.duel-val { grid-area: val; margin: 0; font-weight: 900; font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.result-two { margin: 0 0 18px; font-weight: 700; }
.result-two:empty { display: none; }
.result-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.result-cta .btn-go { flex: 1 1 260px; min-height: 56px; font-size: 17px; background: var(--lime); color: var(--ink); box-shadow: inset 0 -3px 0 var(--lime-deep); }
.result-cta .btn-plain { flex: 1 1 160px; }

.cliff-card { margin-top: 18px; display: grid; gap: 20px; background: var(--coral-soft); border-radius: 26px; padding: 24px 22px; border: 2px solid var(--coral); }
@media (min-width: 900px) { .cliff-card { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; } }
.cliff-card .eyebrow { background: var(--coral); color: var(--ink); }
.cliff-card h3 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -.03em; }
.cliff-card p { margin: 10px 0 0; }
.cliff-line { position: relative; height: 4px; background: var(--coral); border-radius: 2px; margin: 34px 12px 30px; }
.cliff-line i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--card); border: 3px solid var(--coral); }
.cliff-line i span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 800; }
.cliff-line .cl-alarm { background: var(--ink); border-color: var(--ink); }
.cliff-line .cl-alarm span { top: -26px; }
.cliff-line .cl-today span { transform: none; left: -6px; }
.cliff-line .cl-rise { background: var(--coral); }
.cliff-line .cl-rise span { transform: none; left: auto; right: -6px; }
.cliff-card .alert-form { background: var(--card); border-radius: 18px; padding: 18px; }
.cliff-card .watch-done { color: var(--text); }

.share-card { margin-top: 18px; display: grid; gap: 16px; align-items: center; background: var(--ink); color: #fff; border-radius: 26px; padding: 22px; }
@media (min-width: 900px) { .share-card { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.share-card h3 { font-size: 24px; font-weight: 900; }
.share-card p { margin: 8px 0 0; color: #b9cbc4; }
.share-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

.more-options { margin-top: 26px; }
.more-options h3 { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .mini-list { grid-template-columns: repeat(3, 1fr); } }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); border-left: 6px solid var(--brand, var(--ink)); }
.mini-list a { text-decoration: none; display: grid; line-height: 1.25; }
.mini-list a b { font-size: 18px; }
.mini-who, .mini-list small { color: var(--muted); font-size: 13px; }
.mini-save { flex: none; background: var(--mint); color: #17734a; font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { .mini-save { color: #8fe0b0; } }

.watch-card { margin-top: 18px; display: grid; gap: 14px; background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .watch-card { grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; } }
.watch-card h3 { font-size: 22px; font-weight: 900; }
.watch-card p { margin: 6px 0 0; color: var(--muted); }
.watch-card .watch-done { color: var(--text); }
.fine-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); max-width: 80ch; }
.site-footer.slim { padding: 28px 0 40px; }

/* Bill check promo on the comparison */
.check-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(214, 245, 131, .1); border: 1px solid rgba(214, 245, 131, .35); }
.check-promo p { margin: 0; font-weight: 700; }
.check-promo .btn { min-height: 44px; }

/* ---------- Generated pages: plans, providers, matchups, guides ---------- */
.guide-top { background: var(--ink); color: #fff; }
.guide-main { padding: 22px 0 56px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--text); font-weight: 700; }
.stale-note { background: var(--coral-soft); color: var(--warn); font-weight: 700; padding: 12px 14px; border-radius: 12px; }
.guide-hero { background: var(--card); border-radius: 26px; padding: 26px 22px; box-shadow: var(--shadow); border-top: 8px solid var(--brand, var(--lime-deep)); display: grid; gap: 14px; }
.guide-hero .who { color: var(--brand, var(--muted)); }
.guide-hero h1 { font-size: clamp(34px, 6.5vw, 56px); font-weight: 900; letter-spacing: -.045em; color: var(--text); }
.guide-hero .lede { color: var(--muted); margin: 0; max-width: 62ch; font-size: 18px; }
.guide-hero .next { margin: 0; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 0; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: color-mix(in srgb, var(--muted) 8%, transparent); border-radius: 14px; padding: 12px 14px; }
.stats dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.stats dd { margin: 2px 0 0; font-size: clamp(24px, 4vw, 32px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats div:first-child { background: var(--lime); color: var(--ink); }
.stats div:first-child dt { color: var(--ink-3); }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.guide-cta .btn-go { flex: 1 1 240px; min-height: 54px; font-size: 16px; }
.guide-cta .btn-plain { flex: 1 1 200px; }
.guide-block { margin-top: 34px; }
.guide-block h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; }
.guide-block h2 a { text-decoration: none; }
.guide-block h3 { font-size: 18px; font-weight: 900; margin: 22px 0 10px; }
.guide-block > p { color: var(--muted); max-width: 70ch; }
.guide-block > p a, .deal-block a { color: var(--text); font-weight: 700; }
.deal-block { background: var(--mint); border-radius: 20px; padding: 20px; }
.deal-block > p { color: var(--text); }
.facts-list { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0; background: var(--card); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .facts-list { grid-template-columns: 200px 1fr; } }
.facts-list dt { font-weight: 800; padding-top: 10px; }
.facts-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .facts-list dt { border-bottom: 1px solid var(--line); padding-bottom: 10px; } }
.facts-list dd:last-of-type, .facts-list dt:last-of-type { border-bottom: 0; }
.facts-list ul { margin: 0; padding-left: 18px; }
.guide-block .caution { margin: 12px 0 0; }
.rank-table { min-width: 520px; }
.rank-table thead th { font-size: 14px; }
.rank-table tbody th { width: auto; color: var(--text); }
.rank-table tbody th a { text-decoration: none; font-weight: 800; display: grid; }
.rank-table tbody th .who { color: var(--brand, var(--muted)); font-size: 11px; }
.rank-table td { font-variant-numeric: tabular-nums; }
.rank-table td:first-child { color: var(--muted); width: 36px; }
.rank-table tr.here > * { background: color-mix(in srgb, var(--lime) 35%, var(--card)); }
.vs-table tbody th { width: 22%; }
.vs-table td a { font-weight: 900; font-size: 17px; }
.vs-table td small { display: block; color: var(--muted); font-weight: 500; }
.vs-table td.win { background: color-mix(in srgb, var(--lime) 30%, var(--card)); }
.link-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; text-decoration: none; }
.link-chips a:hover { border-color: var(--text); }
.cards.one { grid-template-columns: minmax(0, 420px); }
.card h3 a { color: inherit; text-decoration: none; }
.check-band { margin-top: 44px; display: grid; gap: 16px; align-items: center; background: var(--ink); color: #fff; border-radius: 26px; padding: 24px 22px; }
@media (min-width: 800px) { .check-band { grid-template-columns: 1fr auto; gap: 32px; } }
.check-band h2 { font-size: 26px; font-weight: 900; }
.check-band p { margin: 8px 0 0; color: #b9cbc4; }
.check-band .btn { background: var(--lime); color: var(--ink); min-height: 56px; font-size: 17px; padding: 0 26px; }
.mine-more { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
nav.crumbs { display: block; }
nav.crumbs a { display: inline; padding: 0; min-height: 0; color: var(--text); border-radius: 0; font-size: 14px; }
nav.crumbs a:hover { background: none; text-decoration: underline; }

/* ---------- Narrow phones (down to 290px wide) ---------- */
.hero-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
.hero-grid > *, .check-grid > *, .remind-grid > *, .map-grid > *, .faq-grid > *, .footer-grid > * { min-width: 0; }
.card header > div { min-width: 0; }
.card header h3 { overflow-wrap: anywhere; }

/* Ranked and head-to-head tables become stacked cards on phones, so nothing hides off to the side. */
@media (max-width: 559px) {
  .table-wrap:has(.rank-table, .vs-table) { overflow: visible; background: none; box-shadow: none; border: 0; }
  .rank-table, .vs-table { min-width: 0; display: block; }
  .rank-table thead, .vs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rank-table tbody, .vs-table tbody { display: grid; gap: 10px; }
  .rank-table tr, .vs-table tr { display: grid; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
  .rank-table tr { grid-template-columns: 34px repeat(3, minmax(0, 1fr)); }
  .rank-table td, .rank-table th, .vs-table td, .vs-table th { border: 0; padding: 8px 12px; position: static; width: auto; background: none; }
  .rank-table td:first-child { grid-row: span 2; padding-top: 14px; font-weight: 900; }
  .rank-table tbody th { grid-column: 2 / -1; padding-top: 12px; padding-bottom: 2px; }
  .rank-table td[data-label] { padding-left: 0; padding-bottom: 12px; font-weight: 800; }
  .rank-table td[data-label]::before, .vs-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .rank-table tr.here { box-shadow: 0 0 0 3px var(--lime-deep), var(--shadow); }
  .rank-table tr.here > * { background: none; }
  .rank-table tbody th, .vs-table tbody th { width: auto; position: static; }
  .vs-table tbody th { background: var(--ink); color: #fff; padding: 10px 14px; }
  .vs-table tbody th a { color: #fff; }
  .vs-table td { padding: 10px 14px; border-top: 1px solid var(--line); }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  h1 { font-size: 34px; }
  .lede { font-size: 17px; }
  .band { padding: 36px 0; }
  .band h2 { font-size: 28px; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .controls, .bill-form { padding: 14px; }
  .card { padding: 0 14px 14px; }
  .card header { margin: 0 -14px; padding: 14px 14px 12px; flex-wrap: wrap; align-items: flex-start; }
  .card header h3 { font-size: 26px; }
  .card .gb { font-size: 26px; text-align: left; }
  .card .first { font-size: 34px; }
  .actions { grid-template-columns: 1fr; }
  .cliff-fields { grid-template-columns: 1fr; }
  .share-actions { grid-template-columns: 1fr; }
  .result-card, .cliff-card, .share-card, .watch-card, .guide-hero, .check-band { padding: 20px 16px; border-radius: 20px; }
  .result-card h2 { font-size: 32px; }
  .duel-val { font-size: 19px; }
  .guide-hero h1 { font-size: 30px; }
  .stats dd { font-size: 22px; }
  .stats div { padding: 10px; }
  .facts-list { padding: 14px 16px; }
  .remind-card { padding: 16px; }
  .scoreboard { padding: 14px; }
  .sticky { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .sticky-inner { gap: 8px; padding: 8px 8px 8px 12px; }
  .sticky-text small { display: none; }
  .sticky-text { font-size: 12px; }
  .sticky .btn { padding: 0 10px; font-size: 13px; min-height: 44px; }
  .brand { font-size: 18px; }
  nav a.nav-cta { padding: 10px 12px; }
  .foot-brand span { display: none; }
  .mini-list li { flex-wrap: wrap; }
  .bill-form .mine-row, .mine .mine-row { flex-wrap: wrap; }
  .bill-form .mine-row select, .mine .mine-row select { flex: 1 1 100%; width: 100%; }
  .cta-row { grid-template-columns: 1fr; }
  .cta-row .btn-go { grid-column: auto; }
}

/* Many providers: filters, capped lists, the network directory */
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; flex: 1 1 130px; min-width: 0; }
.filters select, .legend-add select { background: var(--ink); border: 1px solid var(--ink-3); color: #fff; color-scheme: dark; }
.filters select { width: 100%; min-height: 44px; }
.side .via { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.show-more { margin-top: 14px; }
.legend-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 14px; color: #a9c0b8; }
.legend-add select { min-height: 40px; max-width: 100%; }
.directory { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.directory li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand, var(--line)); border-radius: 14px; padding: 10px 14px; display: grid; gap: 2px; min-width: 0; }
.directory a { font-weight: 800; color: var(--text); overflow-wrap: anywhere; display: grid; gap: 2px; text-decoration: none; }
.directory a b { text-decoration: underline; text-underline-offset: 3px; }
.directory span { font-size: 15px; }
.directory small { color: var(--muted); font-size: 13px; }
.net-winners { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.net-winners li { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--brand, var(--line)); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.net-winners span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.net-winners a { font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.net-table td, .net-table th { overflow-wrap: anywhere; }

/* Deep pages: our own illustrations, month-by-month tables, questions */
.illo { display: block; max-width: 100%; height: auto; }
.illo-tower { width: 120px; color: var(--muted); }
.hero-art { display: flex; align-items: center; gap: 16px; }
.illustrated { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); margin: 0; display: grid; gap: 12px; }
.illustrated figcaption { color: var(--muted); font-size: 15px; }
.illo-bars { width: 100%; color: var(--text); }
.illo-bars .full { fill: color-mix(in srgb, var(--muted) 40%, transparent); }
.illo-bars .deal { fill: var(--brand, var(--lime-deep)); }
.illo-data { width: min(100%, 320px); color: var(--text); }
.illo-ladder { width: 100%; max-width: 420px; color: var(--text); }
.explain { display: grid; gap: 16px; align-items: center; }
@media (min-width: 720px) { .explain { grid-template-columns: 1fr 1fr; } .explain.flip .illustrated { order: 2; } }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: color-mix(in srgb, var(--muted) 40%, transparent); }
.key i.deal { background: var(--brand, var(--lime-deep)); }
.bars { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.bars li { display: grid; gap: 4px; }
.bars a { font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.bars span { display: block; height: 14px; border-radius: 7px; background: var(--brand, var(--lime-deep)); min-width: 6px; }
.bars small { color: var(--muted); font-size: 13px; }
.pay-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pay-table th, .pay-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.pay-table tr.on td { font-weight: 800; }
.guide-block .faq-list { margin-top: 8px; }
.guide-block .faq-list p { margin: 0 0 14px; color: var(--muted); }
.fit-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 380px) { .pay-table th, .pay-table td { padding: 6px 4px; font-size: 14px; } .hero-art { flex-wrap: wrap; } .illo-tower { width: 90px; } }
.pay-table td:nth-child(-n+2), .pay-table th:nth-child(-n+2) { white-space: nowrap; overflow-wrap: normal; }
