/* CompareInsurance.agency
   VOICE: confident, clear, consumer-advocate.
   IDEA: a side-by-side quote sheet — two columns, ticks and crosses, a verdict.
   COLOUR: deep forest #0f3d32, mint signal #3ddc97, warm paper #f7f6f1, one coral for the verdict.
   TYPE: Sora (display) + DM Sans (text).
   LAYOUT: light hero with a live "versus" card; flat bands to the edges; cards with a coloured top rule per category. */
:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #102a23;
  --ink-2: #3c524b;
  --muted: #6d7f78;
  --line: #e3e1d8;
  --forest: #0f3d32;
  --forest-2: #15503f;
  --mint: #3ddc97;
  --mint-soft: #e3f7ee;
  --coral: #ff6b4a;
  --c: var(--forest-2);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 42, 35, .05), 0 8px 24px -14px rgba(16, 42, 35, .18);
  --shadow-lg: 0 2px 4px rgba(16, 42, 35, .06), 0 22px 44px -20px rgba(16, 42, 35, .32);
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--mint) 70%, transparent); }
a:hover { color: var(--forest); text-decoration-color: var(--mint); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 241, .86); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.03em; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand i { font-style: normal; font-weight: 600; color: var(--muted); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--mint-soft); color: var(--forest); }
.site-nav a[aria-current="page"] { background: var(--forest); color: #fff; }
.nav-toggle { display: none; font: inherit; font-weight: 700; background: var(--forest); color: #fff; border: 0; border-radius: 10px; padding: 9px 18px; min-height: 44px; cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-family: var(--display); font-size: .98rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 10px 22px -12px rgba(15, 61, 50, .8); }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

/* Home hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 80px 0 88px; background: linear-gradient(180deg, #eaf6ef 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 220, 151, .28), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.kicker { display: inline-block; font-family: var(--display); font-size: .85rem; font-weight: 600; color: var(--forest-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin: 0 0 22px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 20px; color: var(--forest); text-wrap: balance; }
.hero .lede { color: var(--ink-2); font-size: 1.14rem; max-width: 46ch; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 30px 0 0; color: var(--ink-2); font-size: .95rem; }
.hero-facts strong { font-family: var(--display); font-weight: 800; color: var(--forest); font-size: 1.15rem; margin-right: 4px; }

/* Versus card */
.versus { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 10px 10px 16px; font-size: .95rem; position: relative; }
.vs-head, .vs-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: center; }
.vs-head { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--muted); padding: 12px 14px; }
.vs-head span:nth-child(2) { color: var(--forest); }
.vs-row { padding: 12px 14px; border-top: 1px solid var(--line); }
.vs-row span:first-child { color: var(--ink-2); }
.vs-row span:not(:first-child) { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-row .yes::before, .vs-row .no::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.vs-row .yes::before { background: var(--mint); box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.vs-row .no::before { background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 74, .18); }
.vs-head span:nth-child(2), .vs-row span:nth-child(2) { background: rgba(61, 220, 151, .08); margin: -12px 0; padding: 12px 10px; }
.vs-head span:nth-child(2) { border-radius: 10px 10px 0 0; }
.vs-price { font-family: var(--display); }
.vs-price span:not(:first-child) { font-size: 1.15rem; font-weight: 800; color: var(--forest); }
.vs-price span:nth-child(2) { border-radius: 0 0 10px 10px; }
.vs-badge { position: absolute; top: -14px; right: 18px; background: var(--coral); color: #fff; font-family: var(--display); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(255, 107, 74, .8); }
.versus figcaption { font-size: .8rem; color: var(--muted); padding: 10px 14px 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 56px 0 64px; } }
@media (max-width: 480px) { .versus { font-size: .85rem; } .vs-row, .vs-head { padding-inline: 8px; } .vs-head span:nth-child(2), .vs-row span:nth-child(2) { padding-inline: 6px; } }

/* Sections */
.section { padding: 80px 0; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.035em; margin: 0 0 10px; line-height: 1.12; color: var(--forest); text-wrap: balance; }
.section-title.small { font-size: 1.25rem; letter-spacing: -.02em; }
.section-sub { color: var(--muted); margin: 0 0 34px; max-width: 62ch; font-size: 1.05rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 72px 0; }
.band .section-title { margin-bottom: 24px; }
.band .section-sub { margin-top: -16px; }
.band-dark { background: var(--forest); color: #fff; border: 0; }
.band-dark .section-title { color: #fff; }

/* Grids & cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.6; flex: 1; }
.card .meta { color: var(--c); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.card .meta span { transition: transform .2s; }
.card:hover .meta span { transform: translateX(4px); }
.band .card { background: var(--bg); box-shadow: none; }
.band .card:hover { background: var(--surface); box-shadow: var(--shadow-lg); }
.cat-card { flex-direction: column; }
.cat-icon { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--c); display: grid; place-items: center; margin-bottom: 4px; transition: background .2s, color .2s; }
.cat-card:hover .cat-icon { background: var(--c); color: #fff; }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); padding: 5px 12px; border-radius: 8px; width: fit-content; }

/* Topic lists (home) */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.topic-list { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px 22px 10px; }
.topic-list h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.02rem; letter-spacing: -.01em; }
.topic-list h3 a { color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.topic-list h3 a .icon { color: var(--mint); }
.topic-list h3 a:hover { color: var(--mint); }
.topic-list ul { list-style: none; margin: 0; padding: 0; }
.topic-list li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.topic-list li a { display: block; padding: 10px 0; color: #cfe3da; text-decoration: none; font-size: .95rem; line-height: 1.45; }
.topic-list li a:hover { color: #fff; }
.intro-split .prose { max-width: 820px; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--bg)), var(--bg)); padding: 38px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 65%); }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.95rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -.04em; margin: 14px 0 16px; max-width: 24ch; color: var(--forest); text-wrap: balance; }
.article-hero h1 { max-width: none; }
.page-hero .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 14px; }
.byline { color: var(--muted); font-size: .9rem; margin: 0; }
.hero-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; margin-top: 18px; }
.hero-icon .icon { width: 28px; height: 28px; }
.article-hero .eyebrow { margin-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9b6aa; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--forest); }

/* Layout with TOC */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 50px 0 80px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: .92rem; max-height: calc(100vh - 108px); overflow: auto; padding: 4px 0; }
.toc summary { font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--forest); cursor: pointer; margin-bottom: 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 10px 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--forest); border-left-color: var(--mint); }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
  .toc summary { margin: 0; }
  .toc summary::after { content: " +"; color: var(--muted); }
  .toc details[open] summary::after { content: " −"; }
  .toc details[open] summary { margin-bottom: 10px; }
}

/* Prose */
.prose { max-width: 720px; }
.narrow .prose { padding: 42px 0 8px; max-width: none; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.62rem; line-height: 1.2; letter-spacing: -.03em; margin: 2.2em 0 .6em; color: var(--forest); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 1.14rem; letter-spacing: -.015em; margin: 1.8em 0 .4em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; color: #24392f; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--c); }
.prose ol li::marker { color: var(--c); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 1.5em 0 1.9em; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--forest); color: #fff; font-family: var(--display); font-weight: 600; font-size: .86rem; }
.prose th:first-child { background: var(--forest-2); }
.prose td:first-child { font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: #fbfaf6; }
.callout { background: var(--mint-soft); border: 1px solid #c4ecd9; padding: 16px 20px; border-radius: 12px; }
.article-foot { padding: 16px 0 72px; }

/* Chips */
.other-cats { padding: 54px 0 80px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .15s, border-color .15s; }
.chip .icon { color: var(--c); }
.chip:hover { transform: translateY(-2px); border-color: var(--c); color: var(--ink); }

/* Affiliate / sponsored slot */
.affiliate-box { position: relative; margin: 1.6em 0 2em; padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.affiliate-box .ad-label { position: absolute; top: 8px; right: 12px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.affiliate-box iframe { max-width: 100%; }

/* Footer */
.site-footer { background: #0b2c24; color: #a9c2b8; padding: 62px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--display); font-size: .9rem; font-weight: 700; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfe3da; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.brand-light { color: #fff !important; font-size: 1.2rem; }
.brand-light i { color: #8fb3a5; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: #84a196; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { body { font-size: 16px; } .footer-grid { grid-template-columns: 1fr; } .card { padding: 20px; } .brand { font-size: 1.05rem; } }
