:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #64748b;
  --soft: #f8fafc;
  --panel: #ffffff;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --teal: #0f766e;
  --gold: #f59e0b;
  --green: #16a34a;
  --red: #b45309;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 42%, #f8fafc 100%);
  line-height: 1.65;
}

a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, p, li { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 860px; font-size: clamp(2.35rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.22rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--brand-dark); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  font-weight: 950;
}

.brand__text {
  display: grid;
  gap: 1px;
}

.brand__text strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand__text small {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle__box {
  display: grid;
  gap: 5px;
  width: 20px;
}

.menu-toggle__line {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open .menu-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__line:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav__link {
  padding: 8px 10px;
  border-radius: 999px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.main-nav__link:hover,
.main-nav__link.is-active {
  background: #eef4ff;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.breadcrumbs {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: #94a3b8;
}

.breadcrumbs a {
  color: #475569;
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--brand-dark); }

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 96px;
}

section { margin: 22px 0; }

.hero {
  position: relative;
  margin: 26px 0 24px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(15, 118, 110, 0.08));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 280px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(15, 118, 110, 0.12));
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dek {
  max-width: 820px;
  margin: 18px 0 0;
  color: #334155;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary,
.button.light {
  color: var(--brand-dark);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: none;
}

.score-card,
.br-card,
.rank-card,
.category-card a {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.score-card { padding: 22px; }
.score-card strong { display: block; margin: 14px 0 8px; font-size: 1.9rem; line-height: 1.1; }
.score-card p { margin: 0 0 16px; color: var(--muted); }
.score-card dl { display: grid; gap: 10px; margin: 0; }
.score-card dl div { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.score-card dt { color: var(--muted); }
.score-card dd { margin: 0; font-weight: 900; text-align: right; }

.pill,
.trust-strip span,
.badge-row span,
.score-badge,
.rank-card__meta span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.pill { padding: 7px 11px; border: 1px solid var(--line); background: #ffffff; color: var(--muted); }
.pill.gold { border-color: #fde68a; background: #fffbeb; color: #92400e; }

.trust-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.trust-strip span {
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  text-align: center;
}

.br-card { padding: clamp(20px, 3vw, 30px); }
.section-heading { margin-bottom: 18px; }

.disclosure-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.disclosure-card h2 { font-size: 1.35rem; }
.disclosure-card p:last-child { margin: 0; color: var(--muted); }

.comparison-wrap { overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
td:first-child { font-weight: 900; }
.table-cta { font-weight: 900; text-decoration: none; }

.score-badge {
  padding: 5px 9px;
  background: #ecfdf5;
  color: #166534;
}

.best-pick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e40af 54%, #0f766e);
  box-shadow: var(--shadow);
}

.best-pick-card p { max-width: 760px; margin: 10px 0 0; color: #dbeafe; }
.best-pick-card .eyebrow { color: #bfdbfe; }

.buyer-guidance p:not(.eyebrow),
.br-card li,
.faq p,
.rank-card p,
.category-card p {
  color: var(--muted);
}

.buyer-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 800;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.point-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.point-list p {
  position: relative;
  margin: 0;
  padding: 12px 12px 12px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--muted);
  font-weight: 750;
}

.point-list p::before {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1;
}

.point-list.positive p::before {
  content: "+";
  background: var(--green);
}

.point-list.caution p::before {
  content: "!";
  background: var(--red);
}

.rankings { display: grid; gap: 16px; }

.rank-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(18px, 2.6vw, 26px);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #eef4ff;
  color: var(--brand-dark);
  font-weight: 950;
}

.rank-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.rank-card__meta span:not(.score-badge) {
  padding: 5px 9px;
  background: #f1f5f9;
  color: #475569;
}

.best-for { margin: 7px 0 8px; color: var(--brand-dark); font-weight: 850; }
.badge-row span { padding: 6px 10px; border: 1px solid var(--line); background: #f8fafc; color: #475569; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 16px 18px;
}

.faq details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 900; }
details p { margin-bottom: 0; }

.internal-links div,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.internal-links a,
.category-card a {
  display: block;
  padding: 16px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(920px, calc(100% - 28px));
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sticky-cta span { font-weight: 950; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 8px auto 28px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

footer p { flex-basis: 100%; margin: 0; text-align: center; }

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    border-radius: var(--radius);
  }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .main-nav.is-open { display: flex; }

  .main-nav__link {
    width: 100%;
    padding: 10px 12px;
  }

  .brand__text small { display: none; }

  .hero-grid,
  .disclosure-card,
  .best-pick-card,
  .pros-cons,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .trust-strip { grid-template-columns: 1fr 1fr; }
  .rank-number { width: 44px; height: 44px; border-radius: 14px; }
  .button { width: 100%; }
  .sticky-cta { align-items: stretch; flex-direction: column; border-radius: var(--radius); }
}

@media (max-width: 640px) {
  main,
  .site-header,
  footer {
    width: min(100% - 24px, var(--max));
  }

  .hero { padding: 24px; border-radius: 24px; }
  .trust-strip { grid-template-columns: 1fr; }
  .table-scroll { overflow: visible; }
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .comparison-table thead { display: none; }
  .comparison-table tr {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafc;
  }

  .comparison-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }

  .comparison-table td:last-child { border-bottom: 0; }
  .comparison-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--muted);
    font-weight: 900;
  }
}
