@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --ink: #101827;
  --muted: #5c6574;
  --line: #dce2ea;
  --paper: #f6f3ec;
  --white: #ffffff;
  --navy: #07101f;
  --navy-2: #0c1b34;
  --blue: #1769ff;
  --blue-2: #0c55dd;
  --blue-soft: #eaf1ff;
  --coral: #ff7557;
  --cream: #fff8e9;
  --green: #197a5b;
  --shadow-sm: 0 8px 28px rgba(9, 24, 48, .08);
  --shadow-lg: 0 30px 80px rgba(0, 10, 29, .28);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; left: 1rem; top: -6rem; background: var(--white); color: var(--ink); padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(7, 16, 31, .9);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand em { color: #92b8ff; font-style: normal; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; }
.primary-nav > a { color: rgba(255,255,255,.75); text-decoration: none; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: white; }
.primary-nav .nav-cta { padding: 9px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; color: white; background: rgba(255,255,255,.07); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 4px; background: white; border-radius: 2px; }

.hero { position: relative; overflow: hidden; min-height: 740px; background: var(--navy); color: white; }
.hero-image { position: absolute; inset: 0; background: url('/assets/generated/ai-routing-hero.webp') center / cover no-repeat; opacity: .96; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,10,22,.98) 0%, rgba(4,10,22,.84) 38%, rgba(4,10,22,.12) 72%, rgba(4,10,22,.2) 100%), linear-gradient(0deg, rgba(4,10,22,.88) 0%, transparent 34%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(101,160,255,.7), transparent); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 365px; align-items: center; gap: 80px; min-height: 740px; padding-block: 80px; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; color: #aec8f4; font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.hero h1 { max-width: 780px; margin: 0 0 24px; font-size: clamp(46px, 6vw, 78px); line-height: .99; letter-spacing: -.065em; font-weight: 750; }
.hero h1 span { color: #7eadff; }
.hero-deck { max-width: 680px; margin: 0; color: rgba(255,255,255,.73); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 12px 30px rgba(23, 105, 255, .25); }
.button-primary:hover { background: var(--blue-2); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.06); }
.button-light { color: var(--navy); background: white; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; }
.hero-proof > div { min-width: 135px; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-proof > div:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-size: 20px; letter-spacing: -.03em; }
.hero-proof span { color: rgba(255,255,255,.54); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }

.winner-card { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(7,16,31,.76); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); }
.winner-ribbon { position: absolute; top: 0; right: 18px; transform: translateY(-50%); padding: 6px 10px; border-radius: 999px; background: var(--coral); color: #1e110f; font-family: "DM Mono", monospace; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.provider-title { display: flex; align-items: center; gap: 14px; }
.provider-title h2, .provider-title h3 { margin: 0; line-height: 1.1; letter-spacing: -.04em; }
.provider-title h2 { font-size: 26px; }
.provider-title h3 { font-size: 32px; }
.kicker { display: block; margin-bottom: 5px; color: var(--blue); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.winner-card .kicker { color: #8ab3ff; }
.logo-frame { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 4px 14px rgba(11,31,63,.08); }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.logo-frame-lg { width: 56px; height: 56px; padding: 9px; border-radius: 14px; }
.winner-card > p { color: rgba(255,255,255,.65); font-size: 14px; }
.mini-specs { margin: 20px 0; }
.mini-specs > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.mini-specs dt { color: rgba(255,255,255,.55); font-size: 12px; }
.mini-specs dd { margin: 0; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 600; }
.winner-link { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 10px; background: white; color: var(--navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.winner-card .fine-print { margin: 16px 0 0; color: rgba(255,255,255,.44); font-size: 11px; line-height: 1.55; }

.article-shell { display: grid; grid-template-columns: 190px minmax(0, 860px); justify-content: space-between; gap: 72px; padding-block: 64px 110px; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 11px; padding-left: 18px; border-left: 1px solid #cbd3df; font-size: 12px; }
.toc-label { margin-bottom: 4px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.article-content { min-width: 0; }

.author-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 78px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.author-avatar { align-self: center; overflow: hidden; width: 70px; height: 70px; border-radius: 16px; background: var(--navy); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.author-card h2 { margin: 2px 0 3px; font-size: 16px; letter-spacing: -.02em; }
.author-card h2 a { text-decoration: none; }
.author-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.author-card p a { color: var(--blue); font-weight: 700; }
.author-card .author-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
.author-meta { display: flex; flex-direction: column; gap: 3px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-align: right; }

.prose-section { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 26px; margin-bottom: 96px; }
.section-number { color: #abb4c0; font-family: "DM Mono", monospace; font-size: 12px; padding-top: 10px; }
.section-kicker { margin: 0 0 10px; color: var(--blue); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prose-section h2, .section-heading h2, .calculator-section h2, .methodology-section h2, .verdict-section h2, .sources-section h2 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
.prose-section h2 em { font-family: "Playfair Display", serif; font-weight: 600; color: var(--blue); }
.prose-section p { color: #333d4b; font-size: 17px; }
.content-section { margin-bottom: 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 30px; }
.section-heading > p { max-width: 320px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.45; }
thead { background: var(--navy); color: white; }
th { padding: 14px 16px; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 16px; border-bottom: 1px solid #e8ecf1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
.featured-row { background: #f0f5ff; }
.featured-row:hover { background: #eaf2ff; }
.provider-cell { display: grid; grid-template-columns: 22px 34px minmax(110px, 1fr); align-items: center; gap: 9px; text-decoration: none; }
.provider-cell .rank { color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }
.provider-cell strong, .provider-cell small, td > strong, td > small { display: block; }
.provider-cell small, td > small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 5px 7px; border-radius: 8px; background: var(--navy); color: white; font-family: "DM Mono", monospace; }
.table-note { margin: 12px 4px 0; color: var(--muted); font-size: 10px; }

.calculator-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 30px; margin-bottom: 104px; padding: 34px; border-radius: 22px; background: var(--navy); color: white; box-shadow: var(--shadow-lg); }
.calculator-copy > p:not(.section-kicker) { color: rgba(255,255,255,.62); }
.calculator-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.calculator-form label { display: flex; flex-direction: column; gap: 7px; color: rgba(255,255,255,.55); font-size: 10px; }
.calculator-form label:last-child { grid-column: 1 / -1; }
.calculator-form input, .calculator-form select { width: 100%; padding: 12px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; outline: none; background: rgba(255,255,255,.08); color: white; font-family: "DM Mono", monospace; font-size: 12px; }
.calculator-form select option { color: var(--ink); }
.calculator-form input:focus, .calculator-form select:focus { border-color: #7dadff; box-shadow: 0 0 0 3px rgba(23,105,255,.18); }
.calculator-result { display: flex; flex-direction: column; justify-content: center; padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.07); }
.calculator-result > span { color: rgba(255,255,255,.56); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.calculator-result > strong { margin-block: 10px 16px; color: #8fb7ff; font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.cost-breakdown { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.cost-breakdown span { color: rgba(255,255,255,.55); }
.cost-breakdown b { color: white; margin-left: 5px; }
.calculator-result p { margin: 18px 0 0; color: rgba(255,255,255,.42); font-size: 9px; line-height: 1.5; }

.stack-heading { display: block; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.filter-button { padding: 8px 12px; border: 1px solid #cad2df; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--navy); background: var(--navy); color: white; }
.provider-list { display: flex; flex-direction: column; gap: 18px; }
.provider-review { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.76); box-shadow: var(--shadow-sm); transition: opacity .2s ease, transform .2s ease; }
.provider-review[hidden] { display: none; }
.featured-review { border-color: #aac5fa; background: linear-gradient(135deg, #fff 0%, #edf3ff 100%); }
.review-rank { color: #a6afbd; font-family: "DM Mono", monospace; font-size: 12px; }
.review-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.score-pill { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; background: var(--navy); color: white; font-family: "DM Mono", monospace; font-size: 10px; }
.review-lede { margin: 20px 0; color: #3e4855; font-size: 15px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.65); }
.review-grid h4 { margin: 0 0 10px; font-size: 12px; }
.check-list, .minus-list { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.check-list li, .minus-list li { position: relative; padding-left: 18px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.minus-list li::before { content: "–"; position: absolute; left: 1px; color: var(--coral); font-weight: 800; }
.verdict-strip { display: grid; grid-template-columns: 85px 1fr; gap: 16px; margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--blue); background: white; font-size: 11px; }
.verdict-strip span { font-weight: 800; }
.verdict-strip p { margin: 0; color: var(--muted); }
.review-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.text-link { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.compact-facts { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: white; }
.compact-facts span { padding: 13px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.compact-facts span:last-child { border-right: 0; }
.compact-facts b { display: block; margin-bottom: 3px; color: var(--ink); font-family: "DM Mono", monospace; font-size: 10px; }
.provider-review > .review-main > p:not(.review-lede) { color: var(--muted); font-size: 11px; }

.inline-provider { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.inline-provider img { width: 22px; height: 22px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: white; object-fit: contain; }
.featured-inline { color: var(--blue); }
.decision-table td:first-child { font-weight: 700; }

.methodology-section { margin-bottom: 104px; padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.methodology-intro > p:last-child { max-width: 660px; color: var(--muted); }
.weight-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 30px; }
.weight-grid > div { min-height: 180px; padding: 16px; border-radius: 12px; background: #f3f5f8; }
.weight-grid span { display: block; margin-bottom: 35px; color: var(--blue); font-family: "DM Mono", monospace; font-size: 18px; }
.weight-grid strong { display: block; font-size: 11px; }
.weight-grid p { color: var(--muted); font-size: 9px; line-height: 1.55; }
.disclosure { display: grid; grid-template-columns: 140px 1fr; gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; }
.disclosure p { margin: 0; color: var(--muted); }

.verdict-section { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 36px; margin-bottom: 104px; padding: 40px; border-radius: 24px; background: var(--blue); color: white; box-shadow: 0 26px 70px rgba(23,105,255,.22); }
.verdict-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 20px; background: rgba(255,255,255,.1); }
.verdict-art img { width: 120px; height: 120px; object-fit: contain; }
.verdict-section .section-kicker { color: #d6e5ff; }
.verdict-section p { color: rgba(255,255,255,.76); }
.verdict-section .button { margin-top: 8px; }

.faq-section { margin-bottom: 104px; }
.faq-list { border-top: 1px solid #cbd3df; }
.faq-list details { border-bottom: 1px solid #cbd3df; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 0; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--blue); font-family: "DM Mono", monospace; font-size: 20px; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 700px; margin: -5px 0 22px; color: var(--muted); font-size: 13px; }

.sources-section { margin-bottom: 30px; padding-top: 40px; border-top: 1px solid #cbd3df; }
.sources-section ol { columns: 2; gap: 40px; padding-left: 22px; color: var(--muted); font-size: 11px; }
.sources-section li { break-inside: avoid; margin-bottom: 7px; }
.sources-section > p:last-child { color: var(--muted); font-size: 10px; }

.site-footer { background: var(--navy); color: white; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.35fr; gap: 50px; padding-block: 64px; }
.footer-brand p, .footer-main > div > p { color: rgba(255,255,255,.5); font-size: 11px; }
.footer-main h2 { margin: 0 0 14px; color: rgba(255,255,255,.42); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.footer-main > div:not(.footer-brand) > a { display: block; margin: 8px 0; color: rgba(255,255,255,.72); font-size: 11px; text-decoration: none; }
.footer-cta { padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); }
.footer-cta > a { color: #8fb7ff !important; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 17px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-family: "DM Mono", monospace; font-size: 9px; }
.footer-bottom a { color: rgba(255,255,255,.65); text-decoration: none; }

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 920px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(7,16,31,.97);
  color: white;
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
}
.consent-banner strong { display: block; margin-bottom: 3px; font-size: 14px; }
.consent-banner p { margin: 0; color: rgba(255,255,255,.68); font-size: 11px; }
.consent-banner a { color: #9fc0ff; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.consent-actions .button { min-height: 38px; padding: 10px 14px; font-size: 10px; }

/* Supporting pages */
.page-hero { padding: 78px 0 58px; background: var(--navy); color: white; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { max-width: 820px; margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -.06em; }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.64); font-size: 17px; }
.page-content { max-width: 800px; padding-block: 70px 100px; }
.page-content h2 { margin: 50px 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.page-content h3 { margin: 28px 0 8px; font-size: 18px; }
.page-content p, .page-content li { color: #46505d; font-size: 14px; }
.page-content a { color: var(--blue); }
.page-note { padding: 18px; border-left: 3px solid var(--blue); background: white; color: var(--muted); font-size: 12px; }
.author-page-card { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; margin: 32px 0; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.author-page-card img { border-radius: 20px; background: var(--navy); }
.author-page-card h2 { margin-top: 0; }

@media (max-width: 1060px) {
  .primary-nav { gap: 16px; }
  .primary-nav > a:not(.nav-cta) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; }
  .article-shell { grid-template-columns: 1fr; }
  .toc { display: none; }
  .weight-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  :root { --shell: min(100% - 28px, 680px); }
  .nav-wrap { min-height: 64px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 14px; right: 14px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #0a1528; box-shadow: var(--shadow-lg); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.nav-cta), .primary-nav > a { display: block; padding: 11px; }
  .primary-nav.support-nav { position: static; display: flex; width: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .primary-nav.support-nav > a:not(.nav-cta) { display: none; }
  .primary-nav.support-nav .nav-cta { padding: 8px 11px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 64px; }
  .hero-copy { padding-top: 30px; }
  .hero-image { background-position: 68% center; opacity: .56; }
  .hero-vignette { background: linear-gradient(90deg, rgba(4,10,22,.98), rgba(4,10,22,.78)), linear-gradient(0deg, rgba(4,10,22,.9), transparent); }
  .hero h1 { font-size: clamp(44px, 13vw, 66px); }
  .winner-card { max-width: 480px; }
  .article-shell { padding-top: 36px; }
  .author-card { grid-template-columns: auto 1fr; margin-bottom: 64px; }
  .author-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .prose-section { grid-template-columns: 1fr; gap: 8px; }
  .section-number { display: none; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 14px; }
  .calculator-section { grid-template-columns: 1fr; padding: 25px; }
  .provider-review { grid-template-columns: 1fr; padding: 22px; }
  .review-rank { display: none; }
  .review-grid { grid-template-columns: 1fr; }
  .compact-facts { grid-template-columns: 1fr; }
  .compact-facts span { border-right: 0; border-bottom: 1px solid var(--line); }
  .compact-facts span:last-child { border-bottom: 0; }
  .weight-grid { grid-template-columns: 1fr 1fr; }
  .verdict-section { grid-template-columns: 1fr; padding: 28px; }
  .verdict-art { width: 130px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-cta { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .author-page-card { grid-template-columns: 120px 1fr; }
  .consent-banner { align-items: stretch; flex-direction: column; gap: 14px; }
  .consent-actions { justify-content: flex-end; }
}

@media (max-width: 520px) {
  .brand span { font-size: 14px; }
  .hero-grid { padding-block: 46px; }
  .hero h1 { font-size: 43px; }
  .hero-deck { font-size: 15px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-proof { gap: 18px; }
  .hero-proof > div { min-width: auto; margin: 0; padding: 0; border: 0; }
  .winner-card { padding: 22px; }
  .author-avatar { width: 58px; height: 58px; }
  .author-card { padding: 14px; }
  .prose-section h2, .section-heading h2, .calculator-section h2, .methodology-section h2, .verdict-section h2, .sources-section h2 { font-size: 34px; }
  .calculator-form { grid-template-columns: 1fr; }
  .calculator-form label:last-child { grid-column: auto; }
  .review-header { align-items: start; }
  .provider-title h3 { font-size: 25px; }
  .score-pill { font-size: 9px; }
  .verdict-strip { grid-template-columns: 1fr; gap: 4px; }
  .review-actions { align-items: stretch; flex-direction: column; }
  .review-actions .button { width: 100%; }
  .methodology-section { padding: 24px; }
  .weight-grid { grid-template-columns: 1fr; }
  .weight-grid > div { min-height: auto; }
  .weight-grid span { margin-bottom: 16px; }
  .disclosure { grid-template-columns: 1fr; gap: 6px; }
  .sources-section ol { columns: 1; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand, .footer-cta { grid-column: auto; }
  .page-hero { padding-top: 52px; }
  .author-page-card { grid-template-columns: 1fr; }
  .author-page-card img { width: 130px; }
  .consent-banner { right: 12px; bottom: 12px; left: 12px; padding: 16px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
