/* RouterVerdict — core styles
   "blueprint on midnight glass": dark canvas, cool-blue hairlines + inset glows
   instead of warm shadows, mono eyebrows, saturated colour kept to CTAs.
   Sora (display) / IBM Plex Sans (body) / IBM Plex Mono (eyebrows).
   widgets (compare table, finder, specs, steps) live in pages.css
   — build started Jun 2026, dk */

:root {
  --ink: #05060f;          /* midnight canvas */
  --ink-2: #080a16;        /* alt section bg */
  --surface: #11141f;      /* card plate */
  --surface-2: #171b29;    /* raised inside card */
  --text: #c5d1e8;         /* moonlight body */
  --head: #e7eefb;         /* glacier headings */
  --muted: #828 aa;        /* fog (typo kept on purpose? no) */
  --muted: #828ba0;
  --line: #262e3d;         /* steel hairline */
  --line-2: #333d50;
  --glow: rgba(184,206,247,.10);

  --iris: #6d4af3;         /* primary action violet */
  --iris-2: #5a37e0;
  --iris-wash: rgba(109,74,243,.14);
  --azure: #5aa6f0;        /* links / secondary accent */
  --amazon: #f2a23c;       /* "check price" affiliate CTA — warm, stands out */
  --amazon-2: #e08a1f;
  --mint: #34c2a4;         /* spec good / yes */
  --rose: #ef6f5e;         /* con / no */

  --display: "Sora", system-ui, sans-serif;
  --ui: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1200px;
  --r-btn: 5px;            /* sharp-ish buttons */
  --r-card: 15px;          /* softer cards */
  --r-pill: 999px;
  --card-shadow: inset 0 1px 0 0 var(--glow), inset 0 28px 60px -40px rgba(184,206,247,.08), 0 26px 40px -28px rgba(0,0,0,.85);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--ink);
  /* faint blueprint grid — ~44px squares, barely there */
  background-image:
    linear-gradient(rgba(184,206,247,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,206,247,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
img { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; }
a:hover { color: #8cc2f7; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--head); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
strong, b { color: var(--head); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--azure); display: inline-block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--iris); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--r-btn); }
.skip-link:focus { left: 12px; top: 12px; }
.is-hidden { display: none !important; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--ui); font-weight: 600; font-size: .92rem; line-height: 1; padding: 13px 20px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .07s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--iris); color: #fff; }
.btn-primary:hover { background: var(--iris-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--azure); color: var(--head); }
/* the affiliate "buy" colour — warm so it reads as the money action */
.btn-amazon { background: var(--amazon); color: #1a1205; font-weight: 700; }
.btn-amazon:hover { background: var(--amazon-2); color: #1a1205; }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(5,6,15,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 22px; padding: 13px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--head); letter-spacing: -.02em; }
.brand:hover { color: var(--head); }
.brand .mark { width: 30px; height: 30px; }
.brand i { color: var(--iris); font-style: normal; }
.nav { display: flex; gap: 3px; margin-left: auto; }
.nav a { font-size: .87rem; font-weight: 500; color: var(--text); padding: 8px 13px; border-radius: var(--r-pill); transition: background-color .15s ease, color .15s ease; }
.nav a:hover { background: var(--surface-2); color: var(--head); }
.nav a.active { color: var(--head); background: var(--iris-wash); }
.hdr-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: transparent; color: var(--head); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }
.mobile-menu { display: none; flex-direction: column; padding: 6px 0 16px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 12px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--head); }
.mobile-menu .btn { margin-top: 14px; }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(46px, 6vw, 92px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: -180px; width: 760px; height: 420px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(109,74,243,.22), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero h1 span { color: var(--iris); }
.hero p.sub { font-size: 1.15rem; color: var(--text); max-width: 52ch; margin: 18px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-meta { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta .hm { display: flex; flex-direction: column; }
.hero-meta .hm b { font-family: var(--display); font-size: 1.4rem; color: var(--head); }
.hero-meta .hm span { font-size: .8rem; color: var(--muted); }

/* CSS-drawn "spec card" preview (no photos, per the blueprint look) */
.device-card { background: linear-gradient(180deg, var(--surface), var(--ink-2)); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 22px; position: relative; }
.device-card .dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.device-card .dc-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); border: 1px solid rgba(52,194,164,.35); border-radius: var(--r-pill); padding: 4px 10px; }
.device-card .dc-rank { font-family: var(--mono); color: var(--muted); font-size: .72rem; }
.device-card h3 { font-size: 1.35rem; margin: 0 0 4px; }
.device-card .dc-line { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
/* stylised antenna router glyph */
.router-glyph { display: grid; place-items: center; padding: 14px 0 18px; }
.router-glyph svg { width: 130px; height: auto; filter: drop-shadow(0 8px 22px rgba(109,74,243,.35)); }
.dc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dc-stats div { background: var(--surface); padding: 11px 13px; }
.dc-stats span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dc-stats b { font-family: var(--mono); color: var(--head); font-size: 1.02rem; }

/* ---- generic section + headings ---- */
.sec { padding: clamp(54px, 7vw, 104px) 0; }
.sec-tight { padding: clamp(38px, 5vw, 66px) 0; }
.band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 60ch; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-head h2 { margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.row-head h2 { margin: 0; }
.see-all { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.see-all svg { width: 15px; height: 15px; }

/* ---- generic card + grids ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* use-case tiles */
.usecase { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; transition: border-color .18s ease, transform .18s ease; }
.usecase:hover { border-color: var(--line-2); transform: translateY(-3px); color: inherit; }
.usecase .uc-ico { width: 38px; height: 38px; color: var(--iris); margin-bottom: 14px; }
.usecase .uc-ico svg { width: 100%; height: 100%; }
.usecase h3 { font-size: 1.1rem; margin-bottom: 6px; }
.usecase p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.usecase .uc-pick { font-family: var(--mono); font-size: .76rem; color: var(--mint); }

/* article / review teaser cards */
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.post:hover { border-color: var(--line-2); transform: translateY(-3px); }
.post .post-top { padding: 16px 20px 0; display: flex; gap: 10px; align-items: center; }
.post .ptag { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azure); }
.post .ptime { font-size: .72rem; color: var(--muted); margin-left: auto; }
.post .post-body { padding: 8px 20px 20px; }
.post h3 { font-size: 1.12rem; margin: 8px 0; }
.post p { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.post .read { font-family: var(--mono); font-size: .76rem; color: var(--azure); margin-top: auto; }

/* score chip + stars */
.score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--display); }
.score b { font-size: 1.5rem; color: var(--head); }
.score span { font-size: .78rem; color: var(--muted); }
.stars { color: var(--amazon); letter-spacing: 1px; font-size: .9rem; }
.pill { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted); }
.pill.win { color: var(--mint); border-color: rgba(52,194,164,.4); background: rgba(52,194,164,.08); }

/* callout */
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--iris); background: var(--surface); border-radius: 0 var(--r-card) var(--r-card) 0; padding: 18px 22px; margin: 26px 0; }
.callout.warn { border-left-color: var(--amazon); }
.callout .ct { font-family: var(--display); font-weight: 600; color: var(--head); display: block; margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* affiliate disclosure ribbon (Amazon Associates wording lives here) */
.aff-note { font-size: .84rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 18px; }
.aff-note b { color: var(--text); }

/* prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--iris); }
.layout-aside { display: grid; grid-template-columns: 1fr 290px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 92px; }
.aside .card { padding: 20px; }
.aside h4 { font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.aside li:last-child { border-bottom: none; }
.aside a { color: var(--text); }
.aside a:hover { color: var(--azure); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 54px 0 26px; margin-top: 60px; }
.foot-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { font-size: 1.3rem; }
.foot-brand p { font-size: .88rem; color: var(--muted); margin-top: 12px; max-width: 36ch; }
.foot-col h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: var(--text); font-size: .9rem; }
.foot-col a:hover { color: var(--azure); }
.foot-legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: .78rem; color: var(--muted); line-height: 1.7; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.foot-bottom nav { display: flex; gap: 16px; }

/* ---- cookie: slim console-style bar, bottom ---- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; display: none; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 20px 50px -16px rgba(0,0,0,.8); padding: 14px 18px; }
.cookie-bar.show { display: flex; }
.cookie-bar .ck-ico { color: var(--iris); width: 22px; height: 22px; flex-shrink: 0; }
.cookie-bar p { margin: 0; font-size: .84rem; color: var(--muted); flex: 1; min-width: 220px; }
.cookie-bar p b { color: var(--text); font-family: var(--mono); font-size: .8rem; }
.cookie-bar .ck-btns { display: flex; gap: 8px; }
.cookie-bar .btn { padding: 9px 16px; font-size: .82rem; }

/* responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device-card { max-width: 460px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .layout-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 680px) {
  .nav, .hdr-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-cols { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: flex-start; }
}
