/* EvidenTech — estilos */

:root {
  --bg: #101016;
  --surface: #1B1B25;
  --surface-2: #232330;
  --line: #2B2B39;
  --line-strong: #3A3A4C;
  --purple: #8B5CF6;
  --lilac: #C4B5FD;
  --white: #FFFFFF;
  --muted: #B5B3C4;
  --faint: #8E8BA3;
  --ok: #86EFAC;
  --no: #FCA5A5;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --read: 42rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--purple);
}

::selection { background: rgba(139, 92, 246, 0.45); color: var(--white); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 12px; border: 3px solid var(--bg); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--white); margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--bg); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.demo-strip {
  font-size: 0.8125rem; text-align: center; color: var(--faint);
  padding: 7px var(--gutter); border-bottom: 1px solid var(--line);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 16, 22, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.main-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex; gap: clamp(16px, 2vw, 32px); list-style: none; }
.main-nav a {
  position: relative; display: block;
  padding: 26px 0 24px;
  color: var(--white); font-weight: 500; font-size: 1rem; white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a.nav-compare { display: inline-flex; align-items: center; gap: 6px; color: var(--lilac); }
.main-nav a.nav-compare svg { flex: none; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px;
  height: 3px; border-radius: 3px; background: var(--purple);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover { color: var(--lilac); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a:focus-visible { outline-offset: -2px; }

.search-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.search-toggle:hover { background: var(--surface); }
.search-toggle[aria-expanded="true"] { background: var(--surface); border-color: var(--line-strong); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.account-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--white); font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.account-toggle:hover { background: var(--surface); border-color: var(--purple); }
.account-toggle[aria-expanded="true"] { background: var(--surface); border-color: var(--purple); }
.account-toggle.is-in { border-color: rgba(139, 92, 246, 0.6); color: var(--lilac); }

.account-panel { border-bottom: 1px solid var(--line); background: var(--bg); padding-block: 28px 32px; }
.account-panel:not([hidden]) { animation: drop 0.35s var(--ease-out); }
.account-panel-inner { display: flex; justify-content: flex-end; gap: 12px; align-items: flex-start; }
.account-card { width: min(100%, 460px); }
.panel-close {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: transparent; border: 1px solid var(--line-strong); color: var(--white); cursor: pointer;
}
.panel-close:hover { background: var(--surface); }

/* ---------- Account / signup ---------- */
[data-account-slot]:empty { display: none; }
.acc-body {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0) 55%), var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.35); border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px);
}
.acc-title { font-size: 1.375rem; font-weight: 700; line-height: 1.2; outline: none; }
.acc-lede { margin-top: 8px; font-size: 0.9688rem; line-height: 1.5; }
.acc-lede strong { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.acc-form { margin-top: 16px; display: grid; gap: 12px; }
.acc-fields { display: grid; gap: 12px; }
.acc-label { display: block; color: var(--white); font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.acc-label .opt { color: var(--faint); font-weight: 400; }
.acc-form input[type=text], .acc-form input[type=email] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px;
}
.acc-form input::placeholder { color: var(--faint); }
.acc-form input[type=text]:focus-visible, .acc-form input[type=email]:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.topics { border: 0; padding: 0; margin: 0; }
.topics legend { color: var(--white); font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--muted); transition: all 0.2s;
}
.chip span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); transition: all 0.2s;
}
.chip input:checked + span { border-color: var(--purple); color: var(--white); background: rgba(139, 92, 246, 0.18); }
.chip input:checked + span::before { background: var(--purple); border-color: var(--purple); }
.chip input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost {
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; min-height: 40px; padding: 0 14px;
  background: transparent; color: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.btn-ghost:hover { border-color: var(--purple); background: rgba(139, 92, 246, 0.12); }
.acc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acc-form .acc-row { margin-top: 0; }
.acc-link {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196, 181, 253, 0.45);
}
.acc-link.danger { margin-top: 14px; font-size: 0.875rem; font-weight: 500; color: var(--no); text-decoration-color: rgba(252, 165, 165, 0.45); }
.acc-switch { margin-top: 12px; font-size: 0.9375rem; }
.acc-msg { font-size: 0.9063rem; color: var(--ok); }
.acc-msg:not(:empty) { margin-top: 12px; }
.acc-error { color: var(--no); }
.acc-fine { margin-top: 10px; font-size: 0.8125rem; color: var(--faint); }
.acc-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.acc-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.acc-topics li { padding: 5px 11px; border-radius: 999px; background: rgba(139, 92, 246, 0.18); color: var(--white); font-size: 0.8438rem; }

/* TL;DR in guides */
.prose .tldr {
  background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 24px);
  border-top: 3px solid var(--purple); font-size: 1.0313rem; line-height: 1.55;
}
.prose .tldr h2 { margin: 0 0 10px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lilac); }
.prose .tldr ul { margin: 0; }
.prose .tldr li + li { margin-top: 8px; }

/* ---------- Search ---------- */

.search-panel {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding-block: 28px 32px;
}
.search-panel:not([hidden]) { animation: drop 0.35s var(--ease-out); }
@keyframes drop { from { opacity: 0.4; transform: translateY(-6px); } }

.search-form { max-width: 760px; }
.search-label { display: block; color: var(--white); font-weight: 600; font-size: 1.125rem; margin-bottom: 12px; }
.search-field { display: flex; gap: 8px; }
.search-field input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 1.0625rem; color: var(--white);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 13px 16px;
}
.search-field input::placeholder { color: var(--faint); }
.search-field input:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.search-submit, .btn {
  font-weight: 600; cursor: pointer;
  background: var(--purple); color: var(--white); border: 0;
  border-radius: var(--radius-sm); padding: 0 20px; min-height: 48px;
  transition: background 0.2s;
}
.search-submit:hover, .btn:hover { background: #7C4DEB; }
.search-hint { font-size: 0.875rem; color: var(--faint); margin-top: 10px; }

.search-suggest { max-width: 760px; }
.search-suggest:not(:empty) { margin-top: 20px; }
.suggest-list { list-style: none; border-top: 1px solid var(--line); }
.suggest-list li { border-bottom: 1px solid var(--line); }
.suggest-list a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 12px 4px; color: var(--white); font-weight: 500;
}
.suggest-list a:hover { color: var(--lilac); }
.suggest-list .cat { color: var(--lilac); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.suggest-all { display: inline-block; margin-top: 14px; }
.suggest-empty { color: var(--muted); }

/* ---------- Common bits ---------- */

main { display: block; outline: none; min-height: 60vh; }
main.is-entering > * { animation: enter 0.45s var(--ease-out); }
@keyframes enter { from { opacity: 0.35; transform: translateY(8px); } }

.cat-label {
  display: inline-block;
  color: var(--lilac); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
a.cat-label:hover { text-decoration: underline; text-underline-offset: 3px; }

.meta { color: var(--faint); font-size: 0.875rem; }
.meta time { font-variant-numeric: tabular-nums; }

.text-link {
  color: var(--lilac); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(196, 181, 253, 0.4);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--lilac); }

.media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }

.story-link { display: block; }
.story-link:hover .media img { transform: scale(1.035); }
.story-link:hover .story-title { color: var(--lilac); }
.story-title { transition: color 0.2s; }

.section { padding-block: clamp(40px, 6vw, 72px) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px); margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 700; }

/* ---------- Home ---------- */

.home-top {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
}
.lead .media { aspect-ratio: 16 / 7.4; }
.lead-body { padding-top: 22px; }
.lead .lead-title {
  font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 700; letter-spacing: -0.035em;
  margin-top: 10px; line-height: 1.04;
}
.lead p.dek { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); margin-top: 16px; max-width: 62ch; line-height: 1.55; }
.lead .meta { margin-top: 14px; }

.side { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.latest { display: flex; flex-direction: column; flex: 1; }
.latest h2 { font-size: clamp(1.625rem, 2.3vw, 2.125rem); font-weight: 700; margin-bottom: 10px; }
.latest-list { list-style: none; }
.latest-list li + li { border-top: 1px solid var(--line); }
.latest-list a { display: block; padding: 16px 0; }
.latest-list h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.latest-list p { margin-top: 6px; font-size: 0.9688rem; line-height: 1.5; }
.latest-list .meta { margin-top: 8px; display: block; }
.latest .rec { margin-top: auto; }
.latest-more { padding: 6px 0 22px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card .media { aspect-ratio: 16 / 9; }
.card .cat-label { margin-top: 16px; }
.card h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.card p { margin-top: 8px; font-size: 0.9688rem; }
.card .meta { margin-top: 10px; display: block; }

.guides-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.guide-tile { display: grid; grid-template-columns: 42% 1fr; gap: 20px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 14px; }
.guide-tile .media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.guide-tile h3 { font-size: 1.25rem; font-weight: 700; margin-top: 6px; line-height: 1.22; }
.guide-tile p { margin-top: 8px; font-size: 0.9375rem; }

/* ---------- Lists (category, search) ---------- */

.page-head { padding-block: clamp(32px, 5vw, 56px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; }
.page-head p { margin-top: 14px; font-size: 1.125rem; max-width: 60ch; }

.river { list-style: none; }
.river > li { border-bottom: 1px solid var(--line); }
.river-item {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px); padding-block: clamp(24px, 3vw, 32px); align-items: center;
}
.river-item .media { aspect-ratio: 16 / 10; }
.river-item h2 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 700; margin-top: 8px; line-height: 1.16; }
.river-item p { margin-top: 10px; max-width: 64ch; font-size: 1.0313rem; }
.river-item .meta { margin-top: 12px; display: block; }
.empty { padding-block: 48px; font-size: 1.125rem; }
.empty p + p { margin-top: 12px; }

/* ---------- Article ---------- */

.article-head { max-width: 54rem; margin-inline: auto; padding-top: clamp(32px, 5vw, 64px); }
.article-head h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.035em; margin-top: 14px; line-height: 1.06; }
.article-head .dek { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; margin-top: 18px; color: var(--muted); }
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 26px; padding-block: 16px; border-block: 1px solid var(--line);
  font-size: 0.9375rem;
}
.byline strong { color: var(--white); font-weight: 600; }
.byline .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
button.tag-demo { background: transparent; cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
button.tag-demo:hover { border-color: var(--lilac); color: var(--white); }
.tag-demo {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--lilac); border: 1px solid rgba(196, 181, 253, 0.35); border-radius: 999px; padding: 2px 9px;
}
.disclosure { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }

.article-figure { max-width: 72rem; margin: clamp(28px, 4vw, 44px) auto 0; }
.article-figure .media { aspect-ratio: 16 / 8; }
figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--faint); }

.prose { max-width: var(--read); margin-inline: auto; padding-top: clamp(28px, 4vw, 44px); font-size: 1.1563rem; line-height: 1.75; color: #D6D4E0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 700; margin-top: 2em; line-height: 1.2; }
.prose h2 + * { margin-top: 0.7em; }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { color: var(--lilac); text-decoration: underline; text-decoration-color: rgba(196, 181, 253, 0.45); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--lilac); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--purple); }
.prose blockquote {
  margin-inline: 0; padding: 4px 0;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem); line-height: 1.35; font-weight: 600; color: var(--white);
  letter-spacing: -0.015em;
}
.prose blockquote::before {
  content: ""; display: block; width: 48px; height: 3px; border-radius: 3px; background: var(--purple); margin-bottom: 16px;
}

/* Stats */
.prose .stats {
  list-style: none; padding: 0; margin-block: 2em;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.prose .stats li { margin: 0; padding: 20px 20px 20px 0; line-height: 1.4; }
.prose .stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stats strong {
  display: block; color: var(--white); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 3.2vw, 2.375rem); line-height: 1.05; font-variant-numeric: tabular-nums;
}
.stats span { display: block; margin-top: 8px; font-size: 0.9063rem; color: var(--muted); }

/* Sources */
.sources {
  max-width: var(--read); margin: clamp(40px, 5vw, 56px) auto 0;
  padding-top: 24px; border-top: 1px solid var(--line); outline: none;
}
.sources h2 { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.sources ol { margin: 14px 0 0; padding-left: 1.3em; font-size: 0.9688rem; line-height: 1.5; }
.sources li + li { margin-top: 10px; }
.sources li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
.sources a { color: var(--lilac); text-decoration: underline; text-decoration-color: rgba(196, 181, 253, 0.4); text-underline-offset: 3px; }
.sources a:hover { text-decoration-color: var(--lilac); }
.sources li span { color: var(--faint); font-size: 0.875rem; }
.sources li span::before { content: "· "; }
.sources p { margin-top: 14px; font-size: 0.8125rem; color: var(--faint); }

/* Recommendation card */
.rec {
  display: grid; grid-template-columns: 42% 1fr; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; font-size: 1rem; line-height: 1.5;
}
.prose .rec { margin-block: 2em; grid-template-columns: 170px 1fr; }
.rec .media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.rec-body { padding-right: 8px; }
.rec .cat-label { font-size: 0.75rem; }
.rec-name { color: var(--white); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; margin-top: 4px; letter-spacing: -0.015em; }
.rec-pitch { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; }
.offer {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 14px; border: 1px solid var(--purple); border-radius: var(--radius-sm);
  color: var(--lilac); font-weight: 600; font-size: 0.9375rem;
  transition: background 0.2s, color 0.2s;
}
.prose a.offer { text-decoration: none; }
.offer:hover { background: rgba(139, 92, 246, 0.2); color: var(--white); }
.offer svg { transition: transform 0.3s var(--ease-out); }
.offer:hover svg { transform: translate(2px, -2px); }
.affiliate { font-size: 0.8125rem; color: var(--faint); }

/* Compare table */
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9688rem; line-height: 1.45; min-width: 520px; }
.compare caption { text-align: left; padding: 14px 16px 0; color: var(--faint); font-size: 0.8125rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; vertical-align: top; }
.compare thead th { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.compare tbody th { color: var(--white); font-weight: 600; }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }

/* Pros & cons */
.proscons { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); }
.proscons h3 { font-size: 1.1875rem; font-weight: 700; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.pc-grid h4 { margin: 0 0 8px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.pc-grid .pros h4 { color: var(--ok); }
.pc-grid .cons h4 { color: var(--no); }
.pc-grid ul { list-style: none; padding: 0; font-size: 1rem; line-height: 1.5; }
.pc-grid li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.pc-grid li + li { margin-top: 10px; }
.pc-grid svg { margin-top: 4px; }

/* Picks */
.picks { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.picks li + li { margin-top: 0 !important; }
.picks .rec { margin-block: 0; }
.picks li + li { padding-top: 10px; }
.pick-need { color: var(--white); font-weight: 600; font-size: 1.0625rem; margin-bottom: 8px; }

/* Related */
.related { max-width: 72rem; margin-inline: auto; }

/* Static pages */
.page-prose { padding-top: 0; }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.footer-brand p { margin-top: 16px; max-width: 40ch; }
.footer-title { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--white); }
.footer-col a:hover { color: var(--lilac); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line); padding-block: 20px 32px; font-size: 0.875rem; color: var(--faint);
}
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }

.noscript { padding-block: 48px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .home-top { grid-template-columns: 1fr; }
  .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .latest .rec { margin-top: 12px; }
  .lead .media { aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: start; }
  .card .cat-label { margin-top: 0; }
  .guides-row { grid-template-columns: 1fr; }
  .river-item { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .header-row {
    grid-template-columns: 1fr auto;
    gap: 0 12px; min-height: 0; padding-top: 12px;
  }
  .brand img { height: 28px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { gap: 24px; padding-inline: var(--gutter); }
  .main-nav a { padding: 14px 0 16px; font-size: 1rem; white-space: nowrap; }
  .main-nav a::after { bottom: 8px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .account-toggle { height: 38px; padding: 0 12px; font-size: 0.875rem; }
  .account-panel-inner { flex-direction: column-reverse; align-items: flex-end; }
  .card { grid-template-columns: 1fr; }
  .card .cat-label { margin-top: 14px; }
  .guide-tile { grid-template-columns: 1fr; }
  .rec, .prose .rec { grid-template-columns: 1fr; }
  .rec .media { aspect-ratio: 16 / 9; }
  .rec-body { padding: 0 6px 6px; }
  .pc-grid { grid-template-columns: 1fr; }
  .prose .stats { grid-template-columns: 1fr; }
  .prose .stats li { padding: 16px 0; }
  .prose .stats li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .prose { font-size: 1.0938rem; }
  .search-submit { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Offers band ---------- */
.offer-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.offer-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  transition: border-color 0.2s;
}
.offer-card:hover { border-color: rgba(139, 92, 246, 0.5); }
.offer-card .media { aspect-ratio: 1; border-radius: var(--radius-sm); }
.offer-body h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.offer-body p { margin-top: 4px; font-size: 0.875rem; line-height: 1.45; }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.text-link.small { font-size: 0.875rem; }
.offer-solid { background: var(--purple); border-color: var(--purple); color: var(--white); }
.offer-solid:hover { background: #7C4DEB; color: var(--white); }
.affiliate-note { max-width: 70ch; }
.affiliate-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Compare CTA inside articles ---------- */
.prose .cta-compare, .cta-compare {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.06)); border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--white); line-height: 1.4; transition: border-color 0.2s, transform 0.3s var(--ease-out);
}
.cta-compare:hover { border-color: var(--purple); transform: translateY(-1px); }
.cta-compare .cta-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--purple); color: var(--white); }
.cta-compare strong { display: block; font-size: 1rem; font-weight: 600; }
.cta-compare strong + span { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 2px; }

/* ---------- Home compare promo ---------- */
.cmp-promo { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cmp-promo a {
  display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s;
  position: relative;
}
.cmp-promo a:hover { border-color: var(--purple); }
.cmp-promo strong { color: var(--white); font-size: 1.125rem; font-weight: 700; }
.cmp-promo span { font-size: 0.875rem; line-height: 1.45; padding-right: 18px; }
.cmp-promo svg { position: absolute; right: 16px; top: 20px; color: var(--lilac); }

/* ---------- Compare page ---------- */
.cmp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cmp-tabs a {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--white); font-weight: 600; font-size: 0.9375rem; transition: all 0.2s;
}
.cmp-tabs a:hover { border-color: var(--purple); }
.cmp-tabs a[aria-current="page"] { background: var(--purple); border-color: var(--purple); }
.cmp-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.cmp-pickers label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.cmp-pickers select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 36px 11px 14px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23C4B5FD' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.cmp-pickers select:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; }
#cmp-result { margin-top: 24px; }
.cmp-scroll { border-radius: var(--radius); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: calc(180px + var(--cols) * 200px); font-size: 0.9688rem; line-height: 1.45; }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.cmp-table thead th { vertical-align: bottom; padding-block: 18px; border-bottom: 1px solid var(--line-strong); width: calc((100% - 200px) / var(--cols)); }
.cmp-table thead td { width: 200px; }
.cmp-brand { display: block; color: var(--lilac); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cmp-name { display: block; color: var(--white); font-size: 1.125rem; font-weight: 700; margin: 4px 0 12px; line-height: 1.25; }
.cmp-table tbody th[scope="row"] { color: var(--muted); font-weight: 500; position: sticky; left: 0; background: var(--bg); }
.cmp-table tbody td { color: var(--white); }
.cmp-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.cmp-group th { padding-top: 22px; padding-bottom: 8px; color: var(--white); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; position: sticky; left: 0; }
.cmp-table td.win { color: var(--ok); font-weight: 600; background: rgba(134, 239, 172, 0.06); }
.win-mark { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
.cmp-note { margin-top: 16px; font-size: 0.875rem; color: var(--faint); max-width: 80ch; }

/* ---------- Search product results / tags ---------- */
.prod-results { list-style: none; display: grid; gap: 10px; }
.prod-results li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.prod-results strong { display: block; color: var(--white); font-size: 1.0625rem; margin-top: 2px; }
.prod-results .offer-actions { margin-top: 0; }
.tag-list { max-width: var(--read); margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8438rem; color: var(--muted); }
.tag-list a:hover { border-color: var(--purple); color: var(--white); }
.latest-list .cat-label { font-size: 0.75rem; margin-bottom: 4px; }

@media (max-width: 1080px) {
  .offer-grid { grid-template-columns: 1fr; }
  .cmp-promo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cmp-pickers { grid-template-columns: 1fr; }
  .cmp-promo { grid-template-columns: 1fr; }
  .cmp-table { min-width: calc(130px + var(--cols) * 170px); font-size: 0.9063rem; }
  .cmp-table thead td { width: 130px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; }
  .cmp-name { font-size: 1rem; }
}

/* Store buttons */
.store-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.offer.store-ml { border-color: #FFE600; color: #FFE600; }
.offer.store-ml:hover { background: rgba(255, 230, 0, 0.14); color: #FFF7A8; }
.offer.store-amazon { border-color: #FF9900; color: #FFB84D; }
.offer.store-amazon:hover { background: rgba(255, 153, 0, 0.14); color: #FFD08A; }
.offer-solid.store-ml { background: #FFE600; border-color: #FFE600; color: #1B1B25; }
.offer-solid.store-ml:hover { background: #F2DA00; color: #1B1B25; }
.offer-solid.store-amazon { background: #FF9900; border-color: #FF9900; color: #1B1B25; }
.offer-solid.store-amazon:hover { background: #F08C00; color: #1B1B25; }
.cmp-table thead .store-links { flex-direction: column; align-items: stretch; }
.cmp-table thead .offer { justify-content: center; }

/* ---------- Top announcement bar ---------- */
.demo-strip a { color: var(--white); font-weight: 600; }
.demo-strip a span { color: var(--lilac); }
.demo-strip a:hover { color: var(--lilac); }
.demo-strip { color: var(--white); background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(139, 92, 246, 0.1)); border-bottom-color: rgba(139, 92, 246, 0.35); }

/* ---------- Categorias dropdown ---------- */
.nav-dd { position: relative; }
.nav-dd-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: var(--white); font: inherit; font-weight: 500; font-size: 1rem; padding: 26px 0 24px; white-space: nowrap; position: relative;
}
.nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded="true"] { color: var(--lilac); }
.nav-dd-toggle svg { transition: transform 0.25s var(--ease-out); }
.nav-dd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dd-toggle.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 3px; border-radius: 3px; background: var(--purple);
}
.nav-dd-menu {
  position: absolute; top: calc(100% - 8px); left: -14px; z-index: 60; min-width: 230px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}
.nav-dd-menu:not([hidden]) { animation: drop 0.25s var(--ease-out); }
.main-nav .nav-dd-menu a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9688rem; }
.main-nav .nav-dd-menu a::after { display: none; }
.main-nav .nav-dd-menu a:hover, .main-nav .nav-dd-menu a:focus-visible { background: var(--surface-2); color: var(--white); }
.main-nav .nav-dd-menu a[aria-current="page"] { color: var(--lilac); }
.main-nav { overflow: visible; }

/* ---------- Product photos ---------- */
.product-media { background: #FFFFFF; }
.product-media img { object-fit: contain !important; padding: 8%; }
.story-link:hover .product-media img { transform: none; }
.cmp-img { display: block; width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }
.cmp-img img { width: 100%; height: 100%; padding: 6%; }

/* ---------- Pop-up ---------- */
.evt-pop-backdrop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 8, 12, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.evt-pop-backdrop[hidden] { display: none; }
.evt-pop {
  width: min(100%, 560px); background: #14141C; border-top: 4px solid var(--purple);
  border-radius: 4px; padding: clamp(22px, 4vw, 32px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: popIn 0.45s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.evt-pop-head { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; }
.evt-pop-head img { display: block; width: 56px; height: 56px; object-fit: contain; }
.evt-pop h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.evt-pop h2 span { color: var(--lilac); }
.evt-pop p { margin-top: 18px; font-size: 1.0625rem; line-height: 1.55; color: #D6D4E0; }
.evt-pop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.evt-pop-actions button {
  min-height: 56px; font: inherit; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9375rem;
  cursor: pointer; border-radius: 3px; transition: background 0.2s, border-color 0.2s;
}
.evt-pop-later { background: transparent; color: var(--white); border: 1px solid var(--line-strong); }
.evt-pop-later:hover { border-color: var(--lilac); }
.evt-pop-yes { background: var(--purple); color: var(--white); border: 1px solid var(--purple); }
.evt-pop-yes:hover { background: #7C4DEB; }
body.pop-open { overflow: hidden; }
@media (max-width: 480px) { .evt-pop-actions { grid-template-columns: 1fr; } .evt-pop-yes { order: -1; } }
.main-nav ul.nav-dd-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.main-nav ul.nav-dd-menu[hidden] { display: none; }
.main-nav .nav-dd-menu a { white-space: nowrap; }
@media (max-width: 767px) {
  .main-nav { margin-inline: 0; }
  .main-nav ul { gap: 16px; padding-inline: 0; }
  .main-nav a, .nav-dd-toggle { padding: 14px 0 16px; font-size: 0.9375rem; }
  .nav-dd-toggle.is-current::after, .main-nav a::after { bottom: 8px; }
  .main-nav a.nav-compare svg { width: 15px; height: 15px; }
  .nav-dd-menu { left: -8px; top: calc(100% - 4px); }
}

/* ---------- Acessibilidade: contraste dos botões cheios (branco sobre #7C3AED = 5,7:1) ---------- */
:root { --purple-strong: #7C3AED; --purple-strong-hover: #6D28D9; }
.search-submit, .btn, .evt-pop-yes, .cmp-tabs a[aria-current="page"] { background: var(--purple-strong); border-color: var(--purple-strong); }
.search-submit:hover, .btn:hover, .evt-pop-yes:hover { background: var(--purple-strong-hover); }
.cta-compare .cta-icon { background: var(--purple-strong); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.offer:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible { outline-offset: 2px; }

/* ---------- Aviso de afiliado junto às ofertas ---------- */
.aff-note { margin-top: 10px; font-size: 0.8125rem; color: var(--faint); line-height: 1.45; }
.aff-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.prose .aff-note a { color: var(--muted); }
.offers > .aff-note { margin-top: 14px; }

/* ---------- Trilha de navegação ---------- */
.crumbs { max-width: 54rem; margin: clamp(24px, 4vw, 40px) auto 0; font-size: 0.875rem; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--lilac); text-decoration-color: currentColor; }
.crumbs + .article-head { padding-top: 16px; }

/* ---------- Formulário: finalidade da coleta ---------- */
.acc-why { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.acc-form input[aria-invalid="true"] { border-color: var(--no); }

/* Categoria: "Sobre esta seção" */
.cat-about { max-width: 72ch; border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(24px, 3vw, 36px); }
.cat-about h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--white); margin-bottom: 12px; }
.cat-about p { color: var(--muted); line-height: 1.65; margin-top: 10px; }
.cat-about .cat-topics-label { margin-top: 20px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lilac); }
.cat-about .cat-topics { margin: 10px 0 0; max-width: none; padding: 0; list-style: none; }

/* Publicidade (Google AdSense): visual neutro, diferente dos cards de oferta */
.ad-slot {
  margin-block: 2.2em; padding: 10px 12px 14px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02); min-height: 120px;
}
.ad-slot[hidden] { display: none; }
.ad-label {
  display: block; margin-bottom: 8px; text-align: center;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* Aviso de cookies de publicidade */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin-inline: auto;
  background: var(--surface, #1B1B25); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
.consent p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.consent p strong { color: var(--white); }
.consent a { color: var(--lilac); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.consent-actions .btn, .consent-actions .btn-ghost { min-height: 44px; min-width: 120px; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.link-btn:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 480px) { .consent-actions > * { flex: 1; } }
.consent-title { font-size: 1.0625rem; font-weight: 700; color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em; }

/* Produto do catálogo sem foto: iniciais da marca e do modelo */
.no-photo {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: var(--surface-2); color: var(--faint);
  font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em;
}
.media .no-photo { aspect-ratio: 1; font-size: 2rem; }
