:root {
  color-scheme: light dark;
  --bg: #fcfcfb; --surface: #ffffff; --surface-2: #f3f2ef; --border: #e2e0da;
  --text: #0b0b0b; --text-2: #52514e; --text-3: #7a7872;
  --accent: #d11f17; --accent-ink: #ffffff; --accent-hover: #b01912; --link: #b01912;
  --good: #0a6b3d; --good-bg: #e3f4ea;
  --series-1: #2a78d6; --track: #ecebe7;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --surface: #1c1c1a; --surface-2: #252522; --border: #34332f;
    --text: #ffffff; --text-2: #c3c2b7; --text-3: #918f86;
    --accent: #e5352c; --accent-hover: #f0524a; --link: #ff8079;
    --good: #6fd6a0; --good-bg: #12301f;
    --series-1: #3987e5; --track: #2b2a27;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.025em; }
h2 { font-size: 1.4rem; } h3 { font-size: 1.02rem; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .08em .38em; font-size: .9em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 20px; } .section .section { padding: 36px 0 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
.lede { font-size: 1.12rem; color: var(--text-2); max-width: 62ch; }
.fine, .meta { font-size: .875rem; color: var(--text-3); } .meta a { color: inherit; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--link); margin: 0 0 .6em; }
.note { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--text-2); }

/* header and footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--text); text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-header nav a:not(.btn):hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 32px 0 44px; background: var(--surface); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
.site-footer nav a { color: var(--text-2); font-size: .92rem; }
.disclosure { font-size: .9rem; color: var(--text-2); max-width: 86ch; margin: 0; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 650;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn-small { padding: 8px 14px; font-size: .9rem; } .btn-big { padding: 15px 26px; font-size: 1.06rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); } .btn-ghost:hover { background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 60px; padding-bottom: 60px; }

/* discord message mock: always dark, like the app */
.discord { background: #313338; border-radius: 14px; padding: 18px 18px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.22); color: #dbdee1; font-size: .93rem; }
.dc-msg { display: flex; gap: 14px; } .dc-avatar { border-radius: 50%; background: #1e1f22; flex: none; padding: 5px; width: 40px; height: 40px; align-self: flex-start; }
.dc-main { min-width: 0; flex: 1; } .dc-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dc-name { color: #fff; font-weight: 600; } .dc-time { color: #949ba4; font-size: .75rem; }
.dc-tag { background: #5865f2; color: #fff; font-size: .62rem; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.dc-embed { background: #2b2d31; border-left: 4px solid #e2231a; border-radius: 4px; padding: 11px 14px 13px; margin-top: 6px; display: grid; gap: 7px; }
.dc-author { font-size: .8rem; font-weight: 600; color: #fff; }
.dc-title { color: #00a8fc; font-weight: 650; text-decoration: none; } .dc-title:hover { text-decoration: underline; }
.dc-price s { color: #949ba4; } .dc-desc { color: #dbdee1; font-size: .88rem; }
.dc-image { border-radius: 6px; width: 100%; max-height: 300px; object-fit: contain; background: #fff; }
.dc-footer { color: #949ba4; font-size: .74rem; } .dc-caption { color: #949ba4; font-size: .78rem; margin: 10px 0 0; text-align: center; }

/* steps, commands, faq */
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.two-col + .two-col, .two-col + section, .tiles + .two-col, .note + .two-col { margin-top: 40px; }
.commands { width: 100%; border-collapse: collapse; } .commands th { text-align: left; white-space: nowrap; padding: 10px 16px 10px 0; vertical-align: top; font-weight: 500; }
.commands td { padding: 10px 0; color: var(--text-2); } .commands tr + tr { border-top: 1px solid var(--border); }
.plain { padding-left: 1.1em; color: var(--text-2); } .plain li { margin: .45em 0; } .plain code { word-break: break-all; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; } .faq p { margin: 0 0 16px; color: var(--text-2); }

/* cards and grids */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.section-head h2 { margin: 0; } .section-head a { font-size: .95rem; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--text-3); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-body { padding: 14px 16px 16px; display: grid; gap: 6px; border-top: 1px solid var(--border); }
.card h3 { margin: 0; font-size: .98rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 750; font-size: 1.05rem; } .was { color: var(--text-3); font-size: .9rem; }
.off { color: var(--good); background: var(--good-bg); font-size: .78rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.badge { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge.live { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.card-img .badge { position: absolute; top: 10px; left: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--text); font-size: .9rem; }
.chip span { color: var(--text-3); margin-left: 4px; } .chip:hover { border-color: var(--text-3); } .chips.big .chip { font-size: 1rem; padding: 8px 16px; }
.pager, .prevnext { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; color: var(--text-3); }
.prevnext a { flex: 1; max-width: 48%; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--text); background: var(--surface); font-size: .92rem; }
.prevnext a span { display: block; color: var(--text-3); font-size: .8rem; margin-bottom: 2px; } .prevnext .right { text-align: right; margin-left: auto; }

/* deal page */
.crumbs { font-size: .9rem; color: var(--text-3); margin-bottom: 20px; } .crumbs span { margin: 0 4px; }
.deal { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.deal-img { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.deal-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 14px; } .deal-info h2 { margin-top: 30px; font-size: 1.1rem; }
.deal-price { margin: 14px 0 20px; } .deal-price .price { font-size: 2rem; } .deal-price .was { font-size: 1.1rem; }
.features { padding-left: 1.1em; color: var(--text-2); } .features li { margin: .4em 0; }

/* call to action */
.cta { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow); }
.cta h2 { margin: 0 0 4px; } .cta p { margin: 0; color: var(--text-2); }

/* stats: tiles, bar tables, data tables */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 26px 0; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.tile-label { color: var(--text-2); font-size: .88rem; } .tile-value { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-note { color: var(--text-3); font-size: .8rem; }
.bars { width: 100%; border-collapse: collapse; }
.bars thead { position: absolute; left: -9999px; }
.bars th[scope=row] { text-align: right; font-weight: 500; padding: 5px 12px 5px 0; white-space: nowrap; width: 1%; color: var(--text); font-size: .93rem; }
.bars th[scope=row] a { color: inherit; text-decoration: none; } .bars th[scope=row] a:hover { text-decoration: underline; }
.bars td { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.bar-track { flex: 1; height: 16px; display: block; }
.bar { display: block; height: 100%; min-width: 2px; background: var(--series-1); border-radius: 0 4px 4px 0; }
.bars tr:hover .bar { filter: brightness(1.12); } .bars tr:hover th[scope=row] { text-decoration: underline; }
.bar-value { color: var(--text-2); font-size: .88rem; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th { text-align: left; color: var(--text-3); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 0; border-bottom: 1px solid var(--border); }
.data td { padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; } .data .num { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.data tr.current td { font-weight: 650; }

/* legal */
.prose { max-width: 760px; } .prose h2 { margin-top: 1.8em; font-size: 1.2rem; } .prose li { margin: .35em 0; } .prose p, .prose li { color: var(--text-2); } .prose strong { color: var(--text); }

@media (max-width: 820px) {
  .hero-grid, .two-col, .deal { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { padding-top: 40px; padding-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; } .site-header nav a:not(.btn) { font-size: .88rem; }
  .brand { font-size: .98rem; } .brand img { width: 24px; height: 24px; }
}
@media (max-width: 560px) { .site-header nav a[href="/brands"], .site-header nav a[href="/stats"] { display: none; } .prevnext a { max-width: none; } .prevnext { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* let grid columns shrink below their content width on small screens */
.two-col > *, .hero-grid > *, .deal > * { min-width: 0; }
.data td:first-child { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .bars th[scope=row] { white-space: normal; max-width: 8.5em; }
  .tiles { grid-template-columns: 1fr 1fr; } .tile-value { font-size: 1.6rem; }
}

/* guides and picks */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.guide-card:hover { border-color: var(--text-3); } .guide-card h2 { font-size: 1.2rem; } .guide-card p { margin: 0; color: var(--text-2); font-size: .95rem; }
.guide { max-width: 820px; } .guide > section { margin-top: 44px; scroll-margin-top: 80px; } .guide > section > p { color: var(--text-2); max-width: 68ch; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin-top: 24px; font-size: .95rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; } .toc li { margin: .25em 0; break-inside: avoid; }
.items { display: grid; gap: 12px; margin-top: 18px; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.item h3 { margin-bottom: .35em; } .item p { margin: 0; color: var(--text-2); font-size: .96rem; }
.item-product { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.item-img, .pick-img { display: block; background: #fff; border-radius: 8px; border: 1px solid var(--border); aspect-ratio: 1; overflow: hidden; }
.item-img img, .pick-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.item .item-link, .pick .item-link { margin-top: 10px; font-size: .93rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.src { color: var(--text-3); font-size: .85rem; }
.pick-list { display: grid; gap: 16px; margin-top: 16px; }
.pick { display: grid; grid-template-columns: 180px 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pick h3 { font-size: 1.12rem; margin-top: 6px; } .pick .meta { margin: 0 0 10px; }
.why { margin: 0; font-size: 1.02rem; border-left: 3px solid var(--accent); padding-left: 14px; }
.why.empty { color: var(--text-3); border-left-style: dashed; font-style: italic; }
.draft-note { border-color: var(--accent); }
@media (max-width: 560px) { .item-product { grid-template-columns: 72px 1fr; gap: 12px; } .pick { grid-template-columns: 1fr; } .pick-img { max-width: 200px; } .toc ol { columns: 1; } .site-header nav a[href="/guides"] { display: none; } }
