
/* Layout: mobile-first masthead (menu, logo, search) that becomes an inline nav on laptops; top-stories slider, feed + trending rail, compare table, dark footer. */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --ink: #14161c;
  --muted: #5b6372;
  --line: #dde0e7;
  --accent: #2447f0;
  --win-bg: #e1f5e8;
  --win-ink: #176a3b;
  --s1: #ef4444; --s2: #f59e0b; --s3: #22c55e; --s4: #3b82f6; --s5: #8b5cf6;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1015; --surface: #161922; --ink: #eceef4; --muted: #9aa3b4; --line: #272c38;
    --accent: #8ea5ff; --win-bg: #12301f; --win-ink: #66d393;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1015; --surface: #161922; --ink: #eceef4; --muted: #9aa3b4; --line: #272c38;
  --accent: #8ea5ff; --win-bg: #12301f; --win-ink: #66d393;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 0;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }

/* masthead */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5)); }
.bar { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; min-height: 62px; gap: 8px; }
.iconbtn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; }
.iconbtn:hover { background: var(--bg); }
.iconbtn svg { width: 24px; height: 24px; }
.logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; line-height: 1; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo em { font-style: normal; color: var(--accent); }
.dnav, .dtools { display: none; }
.searchbar { padding: 0 0 12px; }
.searchbar input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }

/* drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--bg); overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
.drawer .top { display: flex; justify-content: space-between; align-items: center; }
.drawer .iconbtn:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
.drawer ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.drawer li > a, .drawer summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] .chev { transform: rotate(90deg); }
.chev { width: 20px; height: 20px; transition: transform .15s; }
.drawer .sub { display: grid; padding: 0 0 8px 4px; }
.drawer .sub button { text-align: left; background: none; border: 0; padding: 9px 0; font-size: 19px; font-weight: 500; color: inherit; opacity: .85; }
.drawer .soon { opacity: .45; font-family: var(--font-display); font-size: 26px; font-weight: 700; padding: 14px 0; display: block; }
.drawer .soon small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-left: 8px; }
.drawer .themebtn { margin-top: 28px; border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); background: transparent; border-radius: 10px; padding: 10px 16px; color: inherit; font-weight: 600; }

.notice { margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }

/* top stories slider */
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 16px; padding-bottom: 6px; scrollbar-width: thin; }
.slide { flex: 0 0 86%; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; max-width: 100%; }
.slide .glyph { position: absolute; right: 8%; top: 10%; width: 28%; opacity: .9; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 10, 16, .82)); }
.slide h3 { position: relative; z-index: 1; color: #fff; font-size: 20px; font-weight: 700; padding: 16px; }
.slide .k { position: absolute; z-index: 1; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(8, 10, 16, .55); padding: 4px 8px; border-radius: 6px; }

/* section labels */
.label { display: inline-block; position: relative; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; font-style: italic; padding: 9px 18px; margin: 28px 0 18px; }
.label::after { content: ""; position: absolute; left: 20px; bottom: -8px; border: 8px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 22px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* feed */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.art { position: relative; overflow: hidden; display: grid; place-items: center; }
.art svg { width: 38%; max-width: 120px; opacity: .92; }
.feature .art { aspect-ratio: 16 / 9; border-radius: 12px; max-width: 100%; }
.feature h3 { font-size: 28px; font-weight: 800; color: var(--accent); margin: 14px 0 8px; }
.feature p { margin: 8px 0 0; color: var(--muted); }
.date { color: var(--muted); font-size: 13px; }
.item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.item .art { aspect-ratio: 4 / 3; border-radius: 8px; }
.item .art svg { width: 44%; }
.item h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.empty { padding: 28px 0; color: var(--muted); }
.cta { display: block; width: 100%; margin-top: 8px; padding: 16px; background: var(--ink); color: var(--bg); border: 0; border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.rail { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.rail h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.trend { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.trend:first-of-type { border-top: 0; }
.trend b { display: block; font-weight: 600; }
.trend small { color: var(--muted); }
.mini { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.mini:hover { border-color: var(--accent); color: var(--accent); }

/* compare */
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cmp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 16px; }
.cmp-head h2 { font-size: 28px; font-weight: 800; }
.cmp-head p { margin: 0; color: var(--muted); font-size: 15px; }
.pickers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pickers label { display: grid; gap: 4px; font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 0; }
.vs { display: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--muted); }
select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 16px; font-family: var(--font-display); }
.tablewrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 460px; }
th, td { padding: 12px 10px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
tbody th { width: 22%; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
td { font-variant-numeric: tabular-nums; width: 39%; }
td.win { background: var(--win-bg); color: var(--win-ink); font-weight: 600; }
td.win::after { content: " ✓"; }
.verdict { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--bg); font-size: 15px; }

/* discover */
.disc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.disc h3 { padding: 16px 18px; font-size: 20px; font-weight: 800; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.disc button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 18px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 17px; }
.disc button:hover { background: var(--bg); }
.disc svg { width: 18px; height: 18px; color: var(--muted); }

/* footer */
footer { margin-top: 56px; background: var(--ink); color: var(--bg);
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding: 36px max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
footer .logo { justify-content: flex-start; }
footer .logo em { color: inherit; opacity: .75; }
footer p { margin: 12px 0 0; opacity: .75; max-width: 36ch; }
footer h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer li.soon { opacity: .5; }
footer a:hover { text-decoration: underline; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); opacity: .65; font-size: 14px; }

/* inner pages: reviews, guides, sign in */
.view-head { margin: 32px 0 8px; }
.view-head h1 { font-size: 34px; font-weight: 800; }
.view-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.card h3 { font-size: 20px; font-weight: 800; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.card details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.card summary { cursor: pointer; font-weight: 600; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.score { display: inline-grid; place-items: center; min-width: 58px; height: 52px; padding: 0 10px; border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; background: var(--win-bg); color: var(--win-ink); }
.score small { font-size: 12px; font-weight: 600; opacity: .7; }
.login-card { max-width: 440px; margin: 36px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.login-card h1 { font-size: 28px; font-weight: 800; text-align: center; }
.login-card .sub { text-align: center; color: var(--muted); margin: 8px 0 0; }
.perks { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.perks li::before { content: "✓"; color: var(--win-ink); font-weight: 700; margin-right: 10px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 16px; }
.gbtn:hover { background: var(--bg); }
.gbtn svg { width: 20px; height: 20px; }
.outbtn { width: 100%; margin-top: 16px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-weight: 600; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px; background: var(--bg); border-radius: 12px; }
.who b { display: block; }
.who small { color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--surface); display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.signin { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.signin .avatar { width: 22px; height: 22px; font-size: 12px; background: var(--bg); color: var(--ink); }
.mtools { display: flex; justify-content: flex-end; }
.mtools .avatar { width: 30px; height: 30px; font-size: 14px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .view-head h1 { font-size: 44px; } }

.prose { max-width: 68ch; margin-top: 20px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }

/* laptop and up */
@media (min-width: 900px) {
  body { font-size: 17px; }
  .bar { grid-template-columns: auto 1fr auto; gap: 28px; }
  .bar > .menubtn { display: none; }
  .bar > .logo { order: -1; justify-content: flex-start; }
  .dnav { display: flex; gap: 4px; }
  .dnav a, .dnav button { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--muted); background: none; border: 0; }
  .dnav a:hover, .dnav button:hover { color: var(--ink); background: var(--bg); }
  .dtools { display: flex; gap: 6px; align-items: center; }
  .dtools .themebtn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
  .bar > .mtools { display: none; }
  .slides { display: grid; grid-template-columns: 2fr 1fr 1fr; overflow: visible; }
  .slide { flex: none; aspect-ratio: auto; min-height: 300px; }
  .slide:first-child h3 { font-size: 28px; }
  .cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
  .feature h3 { margin-top: 0; font-size: 30px; }
  .item { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .item h3 { font-size: 21px; }
  .rail { position: sticky; top: 90px; }
  .pickers { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; }
  .vs { display: block; padding-bottom: 10px; }
  .cmp { padding: 28px; }
  th, td { padding: 14px 16px; }
  .fgrid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr 1.3fr; }
  .disc-wrap { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chev { transition: none; } }

/* static pages */
.sbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 62px; flex-wrap: wrap; padding-block: 6px; }
.snav { display: flex; gap: 2px; flex-wrap: wrap; }
.snav a { padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.snav a:hover { color: var(--ink); background: var(--bg); }
.article { max-width: 760px; margin: 0 auto; }
.crumbs { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--accent); }
.article h1 { font-size: 32px; font-weight: 800; margin: 12px 0 8px; }
.byline { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article h2 { font-size: 23px; font-weight: 800; margin: 34px 0 10px; }
.article p, .article li { font-size: 17px; }
.article p { margin: 0 0 14px; }
.article ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 14px; }
.article .tablewrap { margin: 8px 0 12px; }
.specs { min-width: 0; }
.specs tbody th { width: 30%; }
.specs td { width: auto; }
.callout { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.tags span { font-size: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); padding: 4px 10px; border-radius: 999px; }
.related { display: grid; gap: 10px; margin: 8px 0 14px; }
.related a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.related a b { display: block; color: var(--ink); }
.fine { font-size: 14px; color: var(--muted); }
.more { color: var(--accent); font-weight: 600; }
a.slide { color: #fff; }
.feature h3 a, .item h3 a { color: inherit; }
.trend b a:hover { color: var(--accent); }
@media (min-width: 900px) { .article h1 { font-size: 40px; } }

.hero{margin:18px 0}
.hero img{width:100%;height:auto;border-radius:14px;display:block}
.hero figcaption{font-size:13px;color:var(--muted);margin-top:8px}
.cardimg{width:100%;height:170px;object-fit:cover;border-radius:10px;display:block;margin-bottom:14px}
.feature .artimg{aspect-ratio:16/9;width:100%;object-fit:cover;border-radius:12px;display:block}
.item .artimg{aspect-ratio:4/3;width:100%;object-fit:cover;border-radius:8px;display:block}
.slideimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
