:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --blue: #2563eb;
  --blue-ink: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --orange: #ea580c;
  --orange-ink: #c2410c;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --green: #15803d;
  --green-50: #f0fdf4;
  --amber-50: #fffbeb;
  --c-rep: #2563eb;
  --c-cred: #0891b2;
  --c-local: #7c3aed;
  --c-terms: #ea580c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, .07) 0, transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(234, 88, 12, .05) 0, transparent 38%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand span { color: var(--blue); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--blue); }

/* hero */
.hero { padding: 64px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; max-width: 17ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 64ch; margin: 22px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.chip svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

.disclosure {
  margin-top: 28px; padding: 16px 20px; border-radius: 12px;
  background: var(--orange-50); border: 1px solid #fdba74;
  font-size: 15px; color: var(--text); max-width: 900px;
}
.disclosure strong { color: var(--orange-ink); }

/* sections */
section.block { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 10px; display: block; }

/* quick picks */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pick { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pick.is-featured { border-color: #fdba74; background: linear-gradient(180deg, #fff 0, var(--orange-50) 100%); }
.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pick-rank { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue); }
.is-featured .pick-rank { background: var(--orange); }
.pick-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: right; }
.is-featured .pick-label { color: var(--orange-ink); }
.pick h3 { font-size: 1.2rem; font-weight: 700; }
.pick .where { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.pick p { font-size: 15px; margin-bottom: 16px; }
.pick .btn { margin-top: auto; align-self: flex-start; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--blue-ink); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(234, 88, 12, .25); }
.btn-orange:hover { color: #fff; background: var(--orange-ink); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--orange-ink); border-color: #fdba74; }
.btn-ghost:hover { color: var(--orange-ink); background: var(--orange-50); }

/* stats + dimensions */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--blue); letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.dim-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dim-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.dim-icon svg { width: 22px; height: 22px; }
.dim-weight { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.dim h3 { font-size: 1.1rem; margin-bottom: 8px; }
.dim p { font-size: 14.5px; color: var(--muted); margin: 0; }
.dim ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.dim li { margin: 3px 0; }

.steps { counter-reset: s; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 14.5px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-50); color: var(--blue-ink); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.steps b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 15px; }

.note { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--blue-100); font-size: 15px; }

/* ranking cards */
.rank-list { display: grid; gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.card.featured { border: 2px solid #fdba74; position: relative; overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge-orange { background: linear-gradient(90deg, var(--orange), #fb923c); color: #fff; }
.badge svg { width: 13px; height: 13px; }
.card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; }
.rank-num { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: var(--blue); box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.featured .rank-num { background: var(--orange); box-shadow: 0 6px 14px rgba(234, 88, 12, .3); }
.card-title h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; }
.card-title .where { color: var(--muted); margin-top: 4px; font-size: 15px; }
.score { text-align: right; }
.score b { display: block; font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.featured .score b { color: var(--orange); }
.score span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.score small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); max-width: 170px; margin-left: auto; line-height: 1.35; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 24px 0; }
.facts div { background: #fbfcfe; padding: 14px 16px; }
.featured .facts div { background: #fffdfb; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.facts > div:last-child:nth-child(3n+1) { grid-column: span 3; }
.facts > div:last-child:nth-child(3n+2) { grid-column: span 2; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.4; }

.card-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; }
.card-body h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.card-body p { font-size: 15.5px; }
.watch { background: var(--amber-50); border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.watch h4 { color: #92400e; }
.watch p { margin: 0; }
.related { margin-top: 12px; font-size: 14px; color: var(--muted); }

.breakdown { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 34px; align-items: center; gap: 10px; font-size: 13.5px; }
.bar-row span:first-child { color: var(--muted); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar-row b { text-align: right; font-weight: 700; color: var(--ink); }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.topic { font-size: 13px; background: var(--blue-50); color: var(--blue-ink); border-radius: 999px; padding: 4px 11px; font-weight: 600; }
.topic em { font-style: normal; opacity: .75; margin-left: 4px; }
.brands { font-size: 14px; color: var(--muted); margin-top: 14px; }
.brands b { color: var(--ink); }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.site-plain { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th { background: linear-gradient(90deg, var(--blue), #3b82f6); color: #fff; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 14px 16px; white-space: nowrap; }
tbody td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: #fbfcfe; }
tbody tr.is-featured td { background: var(--orange-50); }
td.rank { font-weight: 800; color: var(--blue); }
tr.is-featured td.rank { color: var(--orange-ink); }
td .sub { display: block; font-size: 12.5px; color: var(--muted); }
td.score-cell { font-weight: 800; color: var(--ink); }
.compare { min-width: 980px; }
.compare td:nth-child(2), .all-scores td:nth-child(2) { min-width: 210px; }
.all-scores { min-width: 760px; }
.excluded { min-width: 640px; }
.excluded td:nth-child(2) { white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--orange-100); color: var(--orange-ink); border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
.table-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* market charts */
.charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.chart h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chart .cap { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stack-row { display: grid; grid-template-columns: 236px 1fr 36px; gap: 10px; align-items: center; font-size: 13.5px; margin: 8px 0; }
.stack-row .nm { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack-row.is-featured .nm { color: var(--orange-ink); }
.stack { display: flex; height: 14px; border-radius: 5px; overflow: hidden; background: #eef2f7; }
.stack i { display: block; height: 100%; }
.stack-row b { text-align: right; }
.hbar-row { display: grid; grid-template-columns: 190px 1fr 48px; gap: 10px; align-items: center; font-size: 13.5px; margin: 9px 0; }
.hbar-row .nm { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar { height: 12px; border-radius: 5px; background: #eef2f7; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.hbar-row b { text-align: right; }
.chart-grid-2 { display: grid; gap: 20px; }

.insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.insight b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }
.insight h3 { font-size: 1rem; margin-bottom: 6px; }
.insight p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* guide */
.guide { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 14.5px; }
.toc b { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.prose { max-width: 740px; font-size: 16.5px; }
.prose h3 { font-size: 1.4rem; margin: 36px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.callout { border: 1px solid var(--blue-100); background: var(--blue-50); padding: 14px 18px; border-radius: 12px; margin: 18px 0; font-size: 15.5px; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; color: var(--ink); position: relative; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--text); font-size: 15.5px; }
.faq details > div p:last-child { margin: 0; }

/* about + footer */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-size: 15px; }
.about h3 { font-size: 1.1rem; margin-bottom: 10px; }
.about ul { margin: 0; padding-left: 18px; }
.about li { margin: 5px 0; }
.site-footer { background: var(--ink); color: #cbd5e1; padding: 48px 0 36px; margin-top: 40px; font-size: 14.5px; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid #334155; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #94a3b8; }

/* responsive */
@media (max-width: 1080px) {
  .dims, .insights { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .picks { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-body { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:last-child { grid-column: auto; }
  .facts > div:last-child:nth-child(odd) { grid-column: span 2; }
  .about, .site-footer .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero { padding: 40px 0 28px; }
  section.block { padding: 40px 0; }
  .brand { font-size: 17px; }
  .dims, .insights, .steps { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; border-radius: 16px; }
  .card-head { grid-template-columns: auto 1fr; gap: 14px; }
  .card-head .score { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .card-head .score b { font-size: 2.2rem; }
  .card-head .score span { margin: 0; }
  .card-head .score small { margin: 0; max-width: none; flex-basis: 100%; }
  .rank-num { width: 42px; height: 42px; font-size: 18px; }
  .facts div { padding: 11px 12px; }
  .facts dt { font-size: 11px; }
  .facts dd { font-size: 14px; }
  .bar-row { grid-template-columns: 104px 1fr 30px; font-size: 13px; }
  .breakdown { gap: 6px; }
  .card-body p { font-size: 15px; }
  .stack-row { grid-template-columns: 1fr 34px; }
  .stack-row .nm { grid-column: 1 / -1; }
  .hbar-row { grid-template-columns: 146px 1fr 44px; }
  .chip { font-size: 13px; padding: 7px 12px; }
  .chart { padding: 18px; }
}
