:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --ink: #10161f;
  --muted: #586273;
  --line: #e1e6ec;
  --brand: #0e6e64;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2ef;
  --cta: #f4a51c;
  --cta-hover: #e0930b;
  --cta-ink: #1d1404;
  --good: #137a3f;
  --bad: #b4232c;
  --star: #e29a0c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 22, 31, .05), 0 6px 20px rgba(16, 22, 31, .05);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --surface: #151b23; --surface-2: #1b232d; --ink: #e8edf2; --muted: #9aa6b4;
    --line: #2a3441; --brand: #3fb8a8; --brand-ink: #04211d; --brand-soft: #12302c;
    --good: #4cc584; --bad: #f07178; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --surface: #151b23; --surface-2: #1b232d; --ink: #e8edf2; --muted: #9aa6b4;
  --line: #2a3441; --brand: #3fb8a8; --brand-ink: #04211d; --brand-soft: #12302c;
  --good: #4cc584; --bad: #f07178; --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); }
img { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .95rem; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile ul { position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); border-bottom: 1px solid var(--line); list-style: none; margin: 0; padding: 8px 16px 16px; box-shadow: var(--shadow); }
.nav-mobile a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .nav { display: none; } .nav-mobile { display: block; } }

/* Disclosure */
.disclosure { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); padding: 6px 0; }
.disclosure a { color: inherit; }

/* Hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-badges span::before { content: "✓ "; color: var(--good); font-weight: 700; }
.page-head { padding: 28px 0 8px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: inherit; }
.updated { display: inline-block; font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }

/* Grid & cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
a.card { color: inherit; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.cat-icon svg { width: 24px; height: 24px; }
.card .more { font-weight: 600; color: var(--brand); font-size: .92rem; }
.section { padding: 8px 0 32px; }

/* Brand tile */
.tile { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem; }
.tile.lg { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 16px; }

/* Badges / score */
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge.top { background: var(--cta); color: var(--cta-ink); }
.score { flex: none; text-align: center; min-width: 64px; }
.score b { display: block; font-size: 1.6rem; line-height: 1; }
.score small { color: var(--muted); font-size: .75rem; }
.stars { color: var(--star); letter-spacing: 1px; font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2; text-align: center; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }

/* Ranking */
.rank { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px 20px; align-items: start; margin-bottom: 18px; }
.rank.is-top { border: 2px solid var(--cta); }
.rank-num { position: absolute; top: -12px; left: 16px; background: var(--ink); color: var(--surface); font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.rank h3 a { color: var(--ink); text-decoration: none; }
.rank .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rank .aside { display: grid; gap: 8px; min-width: 200px; text-align: center; }
.rank .price { font-size: .9rem; color: var(--muted); }
.rank .coupon { font-size: .82rem; color: var(--good); font-weight: 600; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 10px 0 0; font-size: .93rem; }
.pc ul { list-style: none; margin: 0; padding: 0; }
.pc li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.pc li.p::before { content: "+"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.pc li.c::before { content: "−"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
@media (max-width: 760px) {
  .rank { grid-template-columns: auto 1fr; }
  .rank .aside { grid-column: 1 / -1; min-width: 0; }
  .pc { grid-template-columns: 1fr; }
}

/* Table */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.price-cell { min-width: 150px; }
td .btn { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
.tname { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.tname .tile { width: 34px; height: 34px; font-size: .9rem; border-radius: 9px; }
.tname a { color: var(--ink); text-decoration: none; }

/* Score bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; font-size: .93rem; }
.bar .track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--brand); border-radius: 99px; }
.bar b { text-align: right; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr 40px; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }

/* Review layout */
.review-top { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.review-top .sticky { position: sticky; top: 76px; }
.spec { width: 100%; font-size: .93rem; }
.spec th { text-transform: none; letter-spacing: 0; font-size: .9rem; background: none; color: var(--muted); font-weight: 500; white-space: normal; padding-left: 0; }
.spec td { font-weight: 600; padding-right: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box-good h3 { color: var(--good); }
.box-bad h3 { color: var(--bad); }
.box-good ul, .box-bad ul { margin: 0; padding-left: 20px; }
@media (max-width: 860px) { .review-top { grid-template-columns: 1fr; } .review-top .sticky { position: static; } .two { grid-template-columns: 1fr; } }

/* VS */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.vs .mid { display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--muted); }
.vs .card { text-align: center; display: grid; gap: 10px; justify-items: center; }
.vs .winner { border: 2px solid var(--cta); }
@media (max-width: 680px) { .vs { grid-template-columns: 1fr; } .vs .mid { padding: 4px 0; } }
td.win { color: var(--good); font-weight: 700; }

/* Prose */
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .35em; }
.mini { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.mini .body { flex: 1; min-width: 0; }
.mini p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) { .mini { flex-wrap: wrap; } .mini .btn { width: 100%; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.method { columns: 2; column-gap: 32px; padding-left: 20px; }
@media (max-width: 640px) { .method { columns: 1; } }

/* Sticky mobile CTA */
.mcta { display: none; }
@media (max-width: 860px) {
  .mcta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mcta .btn { flex: 1; }
  .has-mcta { padding-bottom: 76px; }
}

/* Footer */
.site-foot { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--brand); }
.foot-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
