/* ================================================================
   Advertorial — Product Comparison v1
   Chrome:     Classic News (topbar, sitehead, nav, offerbar, footer)
   Colour:     Emerald green (#16a34a) — ties to winner-column tint,
               distinct from slate teal, indigo, crimson, amber, blue
   Typography: Serif → h1, h2, h3, section headings, pullquote,
               brand-mark, modal h3
               Sans  → body, subhead, chips, nav, buttons, table,
               pros/cons, meta, captions
   Layout:     1080px chrome; two-column article + sticky aside;
               footer outside main
   Unique:     Comparison table with winner column, 4 product blocks
               with pros/cons grids, sidebar summary + winner card
   ================================================================ */

:root {
  --bg:           #ffffff;
  --ink:          #0b1220;
  --muted:        #5b6472;
  --border:       #e6e8ee;
  --paper:        #f8fafb;

  --link:         #15803d;
  --link-hover:   #166534;

  /* Emerald green CTA */
  --cta:          #16a34a;
  --cta-hover:    #15803d;
  --cta-bg:       #f0fdf4;
  --cta-border:   #86efac;

  /* Winner column highlight — same green family */
  --winnerBg:     rgba(22,163,74,0.07);
  --winnerBorder: rgba(22,163,74,0.24);

  --star:         #f59e0b;

  --max:    1080px;
  --prose:   720px;
  --radius:   14px;
  --shadow:  0 14px 40px rgba(2,6,23,.10);

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.80;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: 80px;
}
a { color: var(--link); text-decoration: none }
a:hover { color: var(--link-hover); text-decoration: underline }
img { max-width: 100%; display: block }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto }
.prose { max-width: var(--prose); margin-inline: auto }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: #111; color: #fff; border-bottom: 1px solid #222 }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 }
.adv-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: 12px }
.adv-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffcc00; flex-shrink: 0 }
.topbar-right { font-family: var(--sans); font-size: 12px; color: #cfcfcf; white-space: nowrap }
.topbar-right a { color: #cfcfcf; text-decoration: underline; text-underline-offset: 2px }
.topbar-right a:hover { color: #fff }
@media (max-width: 600px) { .topbar-detail { display: none } }

/* ── Sitehead ───────────────────────────────────────────────── */
.sitehead { border-bottom: 1px solid var(--border); background: #fff }
.sitehead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; flex-wrap: nowrap }
@media (max-width: 600px) { .sitehead-inner { justify-content: center } }
.brand { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0 }
@media (max-width: 600px) { .brand { flex-direction: column; align-items: center; gap: 2px } }
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 800; font-size: 24px;
  letter-spacing: -.02em; white-space: nowrap; color: #0d0d0d;
}
.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(0,0,0,.06); color: var(--cta); flex-shrink: 0;
}
.brand-icon svg { display: block }
.brand-tag { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap }

/* ── Nav ────────────────────────────────────────────────────── */
.nav { display: flex; gap: 4px; align-items: center; font-family: var(--sans); flex-shrink: 0; flex-wrap: nowrap }
.nav a { font-size: 13px; color: #333; padding: 6px 9px; border-radius: 10px; text-decoration: none; white-space: nowrap }
.nav a:hover { background: var(--paper); color: #111; text-decoration: none }
.nav a.nav-cta { background: var(--cta); color: #fff !important; padding: 7px 15px; border-radius: 999px; font-weight: 750; margin-left: 6px }
.nav a.nav-cta:hover { background: var(--cta-hover) }
@media (max-width: 600px) { .nav { display: none } }

/* ── Page shell ─────────────────────────────────────────────── */
.main { padding: 0 0 32px }
.breadcrumb { margin: 18px 0 10px; font-family: var(--sans); font-size: 13px; color: var(--muted) }
.breadcrumb span { color: #bbb }

/* ── Meta chips ─────────────────────────────────────────────── */
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; font-family: var(--sans); font-size: 13px; color: var(--muted) }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff }
.chip .pin { width: 15px; height: 15px; display: inline-flex; color: var(--cta) }
.chip .pin svg { display: block }

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-family: var(--serif); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.08; font-size: clamp(30px, 4vw, 52px); margin: 10px 0 12px; color: #0d0d0d;
}
/* All h2 and h3 serif — matches bundle standard */
h2 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.015em;
  font-size: 24px; line-height: 1.22; margin: 28px 0 12px; color: #0d0d0d;
}
h3 {
  font-family: var(--serif); font-weight: 700; font-size: 17px;
  letter-spacing: -.01em; line-height: 1.28; margin: 0 0 8px; color: #0d0d0d;
}
.subhead {
  font-family: var(--sans); font-weight: 400; color: #3b4556;
  font-size: 17.5px; line-height: 1.68; margin: 0 0 18px;
}
p { font-family: var(--sans); font-size: 16px; line-height: 1.80; color: #252525; margin: 0 0 14px }
p:last-child { margin-bottom: 0 }
.small { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 }
.lede { font-size: 17px; color: #1a1a1a; line-height: 1.75; margin-bottom: 16px }

hr.sep { border: 0; border-top: 1px solid var(--border); margin: 28px 0 }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper) }
.hero img { width: 100%; height: auto; display: block }
.caption { padding: 9px 13px; border-top: 1px solid var(--border); font-family: var(--sans); font-size: 12px; color: var(--muted) }

/* ── Lede grid (2-col intro boxes) ─────────────────────────── */
.lede-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 }
@media (max-width: 640px) { .lede-grid { grid-template-columns: 1fr } }
.note { border: 1px solid var(--border); border-radius: 13px; padding: 14px; background: #fff }
.note strong { display: block; margin-bottom: 6px; font-family: var(--sans); font-weight: 750; font-size: 14px; color: #111 }
.note p { margin: 0; font-size: 14px; color: #333 }

/* ── Two-column layout ──────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; margin-top: 22px }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr } }
aside { display: flex; flex-direction: column; gap: 14px }
.sticky-aside { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 14px }

/* ── Cards (sidebar) ────────────────────────────────────────── */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff }
.card.pad { padding: 16px }
.kicker { font-family: var(--sans); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 11px; color: var(--muted); margin: 0 0 8px }

/* ── Comparison table ───────────────────────────────────────── */
.table-wrap { margin-top: 14px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius) }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  min-width: 760px; background: #fff; font-family: var(--sans);
}
.compare th, .compare td {
  padding: 11px 13px; border-bottom: 1px solid var(--border);
  vertical-align: middle; font-size: 14px;
}
.compare tr:last-child td { border-bottom: 0 }
.compare thead th {
  position: sticky; top: 0; background: var(--paper); z-index: 1;
  font-family: var(--sans); font-weight: 750; text-align: left; font-size: 13px;
}
.compare thead th:nth-child(n+2) { text-align: center }
.compare td:nth-child(n+2) { text-align: center }

/* Winner column */
.compare .winner-col { background: var(--winnerBg); border-left: 1px solid var(--winnerBorder); border-right: 1px solid var(--winnerBorder) }
.compare thead .winner-col { border-top: 1px solid var(--winnerBorder) }
.compare tr:last-child .winner-col { border-bottom: 1px solid var(--winnerBorder) }

/* Column header badges */
.pbadge { display: inline-flex; align-items: center; gap: 7px; justify-content: center; font-family: var(--sans); font-weight: 750; font-size: 13px }
.pbadge .tag {
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(22,163,74,.30); background: rgba(22,163,74,.09); color: #14532d;
}
.pbadge .tag.win { border-color: rgba(22,163,74,.40); background: rgba(22,163,74,.14); color: #14532d }
/* Runner-up tag */
.pbadge .tag.runner { border-color: rgba(100,116,139,.25); background: rgba(100,116,139,.07); color: #475569 }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 2px }
.star { width: 13px; height: 13px; display: inline-block }
.star svg { display: block }
.star.on  { color: var(--star) }
.star.off { color: rgba(100,116,139,.30) }
.score { display: inline-flex; align-items: center; gap: 7px; justify-content: center }
.score .num { font-family: var(--sans); font-weight: 750; color: #111; font-size: 13px }

/* Price / text rows in table */
.compare td.winner-col { font-weight: 650 }

/* ── CTA box ────────────────────────────────────────────────── */
.cta-box {
  border: 1px solid var(--cta-border); background: var(--cta-bg);
  border-radius: var(--radius); padding: 18px; margin: 20px 0;
}
.cta-box h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: #14532d; margin: 0 0 8px }
.cta-box p { font-family: var(--sans); font-size: 14.5px; color: #333; line-height: 1.55; margin: 0 0 14px }
.cta-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap }
.cta-row > p { flex: 1; margin: 0 }

/* ── Button ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta); color: #fff !important;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-family: var(--sans); font-weight: 750; font-size: 14px;
  letter-spacing: .01em; text-decoration: none !important; white-space: nowrap;
  cursor: pointer; flex-shrink: 0; transition: background .12s ease, transform .08s ease;
}
.btn:hover { background: var(--cta-hover); color: #fff !important }
.btn:active { transform: translateY(1px) }
.btn.secondary {
  background: transparent; color: var(--cta) !important;
  border: 1px solid var(--cta-border);
}
.btn.secondary:hover { background: var(--cta-bg) }
.btn-full { width: 100%; justify-content: center }

/* ── Product blocks ─────────────────────────────────────────── */
.product-block {
  margin: 18px 0; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
}
/* Winner block gets green tint */
.product-block.winner-block {
  border-color: var(--winnerBorder);
  background: var(--winnerBg);
}
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px }
.product-head .name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: #0d0d0d }
.product-meta { margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: 13px }
.ribbon {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid rgba(22,163,74,.35); background: rgba(22,163,74,.10);
  color: #14532d; font-family: var(--sans); font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}

/* Product images */
.pimg {
  aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: 12px;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 12px;
}
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block }
.pimg-cap { margin-top: 6px; color: var(--muted); font-family: var(--sans); font-size: 12px }

.bullets { margin: 10px 0 0; padding-left: 18px }
.bullets li { margin: 6px 0; font-family: var(--sans); font-size: 15px; color: #1f2937 }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr } }
.pc { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff }
.pc .t {
  font-family: var(--sans); font-weight: 800; font-size: 11px;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; color: #334155;
}
.pc ul { margin: 0; padding-left: 18px; font-family: var(--sans); font-size: 14px; color: #1f2937 }
.pc li { margin: 5px 0 }

/* Subtle competitor link */
.learn { color: var(--muted); font-family: var(--sans); font-weight: 700; font-size: 14px; text-decoration: none }
.learn:hover { text-decoration: underline; color: #111 }

/* ── Offerbar ───────────────────────────────────────────────── */
.offerbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 70; transition: transform .22s ease; padding: 10px 0;
}
.offerbar.hide { transform: translateY(100%) }
.offerbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px }
.offerbar-txt { font-family: var(--sans); font-size: 13px; color: #333; line-height: 1.25 }
.offerbar-txt strong { color: #111 }
@media (max-width: 480px) { .offerbar-txt { font-size: 12px } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 22px 0 34px; color: var(--muted); font-family: var(--sans); font-size: 12px }
.footer .cols { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px }
.footer a:hover { color: #111 }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(6,6,12,.55); display: none; z-index: 80; align-items: center; justify-content: center; padding: 18px }
.modal-backdrop.open { display: flex }
.modal { width: min(520px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 22px 20px; font-family: var(--sans) }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px }
.modal-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: -.01em }
.modal-brand .brand-icon { color: var(--cta) }
.modal h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 10px 0 6px; color: #111 }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55 }
.progress { height: 10px; background: rgba(22,163,74,.09); border-radius: 999px; overflow: hidden; border: 1px solid rgba(22,163,74,.20) }
.bar { width: 0%; height: 100%; background: var(--cta); border-radius: 999px; transition: width .08s linear }
.modal-steps { margin-top: 12px; font-family: var(--sans); font-weight: 700; font-size: 14px; color: #222 }
.modal-actions { margin-top: 14px; display: flex; justify-content: flex-end }

/* ── Availability page ──────────────────────────────────────── */
.av-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px }
.av-card { width: min(520px, 100%); border: 1px solid var(--border); border-radius: 18px; background: var(--bg); padding: 24px 22px 20px; box-shadow: 0 8px 30px rgba(0,0,0,.07) }
