/* Shared by every page: the palette and the top bar with its page tabs.
   Black, with yellow as the highlighter — the colour of the stroke in the logo.
   Loaded after each page's own <style>, so these tokens are the source of truth. */

:root{
  --bg: #0A0A0B;
  --panel: #121214;
  --panel-2: #18181B;
  --line: #27272B;
  /* text keeps the site's original cool greys */
  --text: #E7EBEC;
  --text-dim: #8B9599;

  /* the highlighter: a neon yellow that glows rather than a flat fill */
  --hl: #FFF03A;
  --hl-dim: #7A7020;
  --hl-soft: rgba(255, 240, 58, 0.045);
  --hl-glow: rgba(255, 240, 58, 0.55);
  --hl-glow-far: rgba(255, 240, 58, 0.22);

  --radius: 6px;
}

body{ background: var(--bg); color: var(--text); }
::selection{ background: rgba(255, 240, 58, 0.85); color: #0A0A0B; }

/* Highlighter emphasis for a word in a headline: <span class="accent">…</span>.
   A glowing stroke under the word, like the brush stroke under the logo's V
   and the line under the active tab. */
.accent{
  position: relative;
  display: inline-block;
  color: var(--text);
}
.accent::after{
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.02em;
  height: 0.09em;
  min-height: 3px;
  border-radius: 3px;
  background: var(--hl);
  box-shadow: 0 0 8px var(--hl-glow), 0 0 22px var(--hl-glow-far);
}

/* ---------- Top bar ---------- */

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  display: block;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar .bar{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover{ text-decoration: none; }
.brand img{ width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand .edition{ color: var(--text-dim); font-weight: 400; }

/* Page tabs: the one you are on glows, softly. */
.tabs{ display: flex; align-items: stretch; gap: 4px; }
.tab{
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s ease, text-shadow .15s ease;
}
.tab:hover{ color: var(--text); text-decoration: none; }
.tab[aria-current="page"]{
  color: var(--hl);
  text-shadow: 0 0 10px var(--hl-glow);
}
.tab[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--hl);
  box-shadow: 0 0 6px var(--hl-glow), 0 0 16px var(--hl-glow-far);
}
.tab:focus-visible{ outline: 2px solid var(--hl); outline-offset: -6px; border-radius: 4px; }

.bar-right{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-dim);
}
.bar-right a{ color: inherit; text-decoration: none; }
.bar-right a:hover{ color: var(--text); text-decoration: none; }

.nav-cta{
  padding: 8px 16px;
  border: 1px solid var(--hl-dim);
  border-radius: var(--radius);
  color: var(--hl) !important;
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  transition: all .15s ease;
}
.nav-cta:hover{ background: var(--hl-soft); border-color: var(--hl); box-shadow: 0 0 12px var(--hl-glow-far); text-shadow: 0 0 8px var(--hl-glow); }

/* In-page section links, under the tabs, on pages that have sections. */
.subnav{ border-top: 1px solid var(--line); }
.subnav .inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.subnav a{ color: inherit; text-decoration: none; }
.subnav a:hover{ color: var(--hl); text-decoration: none; }

@media (max-width: 860px){
  .bar-right a:not(.nav-cta){ display: none; }
}
@media (max-width: 640px){
  .topbar .bar{ padding: 0 16px; gap: 12px; }
  .brand .name{ display: none; }
  .tab{ padding: 0 10px; font-size: 13px; }
  .nav-cta{ display: none; }
  .subnav{ display: none; }
}

/* Anchored sections land below the sticky bar (and the section links on Home). */
section[id]{ scroll-margin-top: 112px; }

/* ---------- Neon: yellow glows, it is never a flat block ---------- */

/* Yellow text across the pages gets the same soft glow as the active tab. */
.tc-label, .pos-item .k, .scope-head .rec, .crumbs, .meta .ok,
.compare thead th:nth-child(3), .compare .y, .badge, .plan-note a,
.faq details a, footer a{
  text-shadow: 0 0 8px var(--hl-glow-far);
}

/* The primary button: a lit outline, like a neon sign, not a yellow slab. */
.btn-primary{
  background: rgba(255, 240, 58, 0.06) !important;
  color: var(--hl) !important;
  border: 1px solid var(--hl) !important;
  text-shadow: 0 0 8px var(--hl-glow);
  box-shadow: 0 0 10px var(--hl-glow-far), inset 0 0 12px rgba(255, 240, 58, 0.10);
}
.btn-primary:hover{
  background: rgba(255, 240, 58, 0.12) !important;
  box-shadow: 0 0 16px var(--hl-glow), inset 0 0 16px rgba(255, 240, 58, 0.16);
}

/* Small lit dots and bars. */
.scope-head .rec .dot, .badge .dot{ box-shadow: 0 0 8px var(--hl-glow); }
.card.verified::before{ box-shadow: 0 0 8px var(--hl-glow-far); }
.cats button[aria-pressed="true"]{ text-shadow: 0 0 8px var(--hl-glow-far); }

/* ---------- Pro: the one thing on the page that is lit brightest ---------- */

.btn-pro{
  background: rgba(255, 240, 58, 0.10);
  color: var(--hl);
  border: 1.5px solid var(--hl);
  font-weight: 600;
  text-shadow: 0 0 10px var(--hl-glow);
  box-shadow: 0 0 14px var(--hl-glow), 0 0 34px var(--hl-glow-far), inset 0 0 14px rgba(255, 240, 58, 0.14);
  animation: pro-breathe 3.6s ease-in-out infinite;
}
.btn-pro:hover{
  background: rgba(255, 240, 58, 0.18);
  box-shadow: 0 0 20px var(--hl-glow), 0 0 48px var(--hl-glow-far), inset 0 0 18px rgba(255, 240, 58, 0.2);
}
@keyframes pro-breathe{
  0%, 100%{ box-shadow: 0 0 12px var(--hl-glow), 0 0 28px var(--hl-glow-far), inset 0 0 12px rgba(255, 240, 58, 0.12); }
  50%{ box-shadow: 0 0 18px var(--hl-glow), 0 0 44px var(--hl-glow-far), inset 0 0 16px rgba(255, 240, 58, 0.18); }
}

.plan.featured{
  border-color: var(--hl) !important;
  box-shadow: 0 0 18px var(--hl-glow-far), inset 0 0 28px rgba(255, 240, 58, 0.035);
}
.plan.featured::before{ text-shadow: 0 0 10px var(--hl-glow); }
.plan.featured .price{ text-shadow: 0 0 14px rgba(255, 240, 58, 0.18); }

@media (prefers-reduced-motion: reduce){
  .btn-pro{ animation: none; }
}
