@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/publicsans-latin-var.woff2) format("woff2");
}

:root {
  --ink: #0e1e38;
  --ink-2: #33435c;
  --muted: #5b6980;
  --line: #e2e7ee;
  --line-2: #d3dae5;
  --bg: #ffffff;
  --soft: #f4f7fb;
  --soft-2: #eaf0f7;
  --teal: #0e9f80;
  --teal-ink: #0a6f5a;
  --teal-soft: #e3f6f1;
  --blue: #2356d4;
  --blue-soft: #e8eefc;
  --gold: #a76a0c;
  --gold-soft: #fff3dc;
  --red: #b4423b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 30, 56, .05), 0 6px 20px rgba(14, 30, 56, .06);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-size: 11.5px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 550; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--ink); }

/* hero */
.hero { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.kicker svg { width: 15px; height: 15px; flex: none; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.03em; max-width: 880px; }
.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-2); max-width: 780px; margin: 18px 0 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--muted); }

.disclosure { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border: 1px solid #f0d9ae; background: var(--gold-soft); border-radius: 12px; font-size: 14.5px; color: #5b4310; max-width: 880px; }
.disclosure svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.disclosure p { margin: 0; }

/* sections */
section.block { padding: 64px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
section.tint { background: var(--soft); }
.sec-head { max-width: 780px; margin-bottom: 32px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 780; letter-spacing: -.025em; }
.sec-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 17px; }

/* at a glance */
.glance { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.glance-row { display: grid; grid-template-columns: 56px 1.4fr 2fr 92px; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.glance-row:first-child { border-top: 0; }
.glance-row.head { background: var(--soft); font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-top: 11px; padding-bottom: 11px; }
.glance-row .r { font-weight: 800; font-size: 20px; color: var(--muted); }
.glance-row .n { font-weight: 700; }
.glance-row .n a { color: var(--ink); text-decoration: none; }
.glance-row .n a:hover { text-decoration: underline; }
.glance-row .d { color: var(--ink-2); font-size: 15px; }
.glance-row .s { justify-self: end; }

.score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 6px 10px; border-radius: 12px; background: var(--ink); color: #fff; line-height: 1; }
.score b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.score small { font-size: 10.5px; opacity: .75; margin-top: 4px; font-weight: 600; }
.score.sm { min-width: 52px; padding: 5px 8px; border-radius: 10px; }
.score.sm b { font-size: 18px; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.tag.partner { background: var(--gold-soft); color: var(--gold); border: 1px solid #f0d9ae; }
.tag.best { background: var(--teal-soft); color: var(--teal-ink); }
.tag.plain { background: var(--soft-2); color: var(--ink-2); }

/* ranking cards */
.ranks { display: grid; gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.card.first { border: 2px solid var(--teal); }
.card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.card.first .card-head { background: linear-gradient(90deg, var(--teal-soft), #fff 70%); }
.rank-no { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: var(--soft-2); color: var(--ink); }
.card.first .rank-no { background: var(--teal); color: #fff; }
.card-title h3 { font-size: 23px; font-weight: 780; letter-spacing: -.02em; }
.card-title p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.card-title .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-body { padding: 22px 26px 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.fact { background: #fff; padding: 12px 14px; }
.fact dt { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-weight: 650; font-size: 15px; }
.fact dd small { font-weight: 500; color: var(--muted); font-size: 13px; }
.why h4, .pc h4 { font-size: 15px; font-weight: 750; margin-bottom: 10px; }
.why ul, .pc ul { margin: 0; padding: 0; list-style: none; }
.why li, .pc li { position: relative; padding-left: 26px; margin: 0 0 9px; color: var(--ink-2); font-size: 15.5px; }
.why li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a6f5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.pc > div { border-radius: 12px; padding: 14px 16px; }
.pc .pro { background: var(--teal-soft); }
.pc .con { background: #fbf1f0; }
.pc .pro li::before, .pc .con li::before { position: absolute; left: 4px; top: 0; font-weight: 800; }
.pc .pro li::before { content: "+"; color: var(--teal-ink); }
.pc .con li::before { content: "–"; color: var(--red); }
.subscores { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.sub { font-size: 13px; color: var(--muted); }
.sub .bar { height: 6px; background: var(--soft-2); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.sub .bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.sub b { color: var(--ink); font-weight: 700; float: right; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 15px; border-radius: 10px; padding: 11px 18px; text-decoration: none; border: 1px solid transparent; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-ink); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn.ghost:hover { background: var(--soft); }
.card-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 900px; }
table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { border-top: 0; background: var(--soft); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
table.cmp td.c, table.cmp th.c { text-align: center; }
table.cmp td.r { text-align: right; }
table.cmp tr.top5 td { background: #fbfdfc; }
table.cmp td .co { font-weight: 700; }
table.cmp td small { display: block; color: var(--muted); font-size: 12.5px; }
table.cmp td.num { white-space: nowrap; }
table.cmp .yes { color: var(--teal-ink); font-weight: 700; }
table.cmp .no { color: var(--muted); }
.tbl-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* methodology */
.criteria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.crit:first-child { grid-column: span 2; }
.crit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.crit-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.crit h3 { font-size: 17px; font-weight: 750; }
.crit .w { font-size: 22px; font-weight: 800; color: var(--teal-ink); letter-spacing: -.02em; }
.crit .wbar { height: 6px; background: var(--soft-2); border-radius: 3px; margin: 10px 0 14px; }
.crit .wbar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.crit p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.crit .rule { font-size: 13.5px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.step { position: relative; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 750; font-size: 14px; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.formula { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #dfe7f3; font-size: 14.5px; }
.formula b { color: #fff; }

/* market charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.chart h3 { font-size: 16.5px; font-weight: 750; }
.chart .cap { font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; margin: 7px 0; }
.hbar .l { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .l.hi { font-weight: 700; color: var(--ink); }
.hbar .t { height: 14px; background: var(--soft); border-radius: 4px; display: flex; overflow: hidden; }
.hbar .t i { display: block; height: 100%; }
.hbar .t i.g { background: var(--blue); }
.hbar .t i.y { background: #d9534f; }
.hbar .t i.k { background: var(--teal); }
.hbar .t i.m { background: #9aa8bd; }
.hbar .v { font-weight: 700; min-width: 44px; text-align: right; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.insights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.insight { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.insight .fig { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--teal-ink); line-height: 1.1; margin-bottom: 6px; }
.insight h3 { font-size: 16px; margin-bottom: 6px; }
.insight p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* article */
.article { max-width: 780px; }
.article h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 780; margin: 0 0 16px; }
.article h3 { font-size: 20px; font-weight: 750; margin: 30px 0 10px; }
.article p, .article li { font-size: 17px; color: var(--ink-2); }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1em; }
.article li { margin-bottom: 8px; }
.article .src { font-size: 14px; color: var(--muted); }
.callout { border-radius: 12px; background: var(--blue-soft); padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 0; font-size: 16px; color: #1b3a86; }

/* faq */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%235b6980' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); font-size: 16px; }
.faq details > div p:last-child { margin: 0; }

/* about + footer */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.about h3 { font-size: 18px; margin-bottom: 10px; }
.about p, .about li { font-size: 15.5px; color: var(--ink-2); }
.about ul { padding-left: 20px; margin: 0; }
.foot { background: var(--ink); color: #b8c4d6; padding: 40px 0 34px; font-size: 14px; }
.foot a { color: #dfe7f3; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot .brand { color: #fff; }
.foot p { margin: 12px 0 0; max-width: 760px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .charts, .insights, .about { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .subscores { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 58px; }
  .hero { padding: 30px 0 28px; }
  section.block { padding: 44px 0; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 24px; }
  .glance-row { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px 14px; }
  .glance-row .d { grid-column: 2 / 4; grid-row: 2; font-size: 14px; margin-top: -4px; }
  .glance-row.head { display: none; }
  .glance-row .r { font-size: 17px; }
  .card-head { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; }
  .card-head .score { grid-column: 1 / 3; justify-self: start; flex-direction: row; gap: 8px; padding: 8px 12px; }
  .card-head .score small { margin: 0; }
  .rank-no { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }
  .card-title h3 { font-size: 20px; }
  .card-body { padding: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .pc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .criteria { grid-template-columns: 1fr; }
  .crit:first-child { grid-column: auto; }
  .subscores { grid-template-columns: repeat(2, 1fr); }
  .btn { flex: 1 1 100%; }
  .hbar { grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; margin: 9px 0; }
  .hbar .l { grid-column: 1 / 3; white-space: normal; }
  .card-head { align-items: start; }
  .article p, .article li { font-size: 16px; }
}
