/* ============================================================
   OFATORX — Design System
   Dark theme + cyan electric accent
   ============================================================ */

:root {
  /* Cores principais */
  --bg-primary: #0a0e14;
  --bg-secondary: #11161f;
  --bg-tertiary: #1a2230;
  --bg-card: #131923;
  --bg-elevated: #1f2937;

  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #d4dae5;
  --text-muted: #a0a8b8;
  --text-dim: #82909c;

  /* Destaque */
  --accent: #00d9ff;
  --accent-hover: #66e8ff;
  --accent-dim: #00bce0;
  --accent-glow: rgba(0, 217, 255, 0.15);

  /* Notas / scoring */
  --score-excellent: #00ff88;
  --score-good: #00d9ff;
  --score-average: #ffb800;
  --score-poor: #ff5e5e;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 32px rgba(0, 217, 255, 0.25);

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 217, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* Buttons, brand, nav, footer columns and visual link components never carry the inline underline */
.btn,
.brand,
.nav-list a,
.footer-col a,
.glossary-search input,
.provider-name-link,
.ct-name,
.related-card,
.pn-link,
.toc a,
.breadcrumbs a {
  text-decoration: none;
}

.btn:hover,
.brand:hover,
.nav-list a:hover,
.provider-name-link:hover,
.ct-name:hover,
.related-card:hover,
.pn-link:hover {
  text-decoration: none;
}

/* Footer column links: underline on hover for clear feedback */
.footer-col a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text-primary);
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--score-excellent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--score-excellent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-whatsapp {
  background: #0d6e34;
  color: #fff;
  border: 1px solid #075d2a;
}

.btn-whatsapp:hover {
  background: #075d2a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 110, 52, 0.4);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-head p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================================
   RANKING CARDS
   ============================================================ */
.ranking-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.provider-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.provider-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.provider-card.is-top {
  border-color: rgba(0, 217, 255, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 217, 255, 0.04) 100%);
}

.provider-card.is-top::before {
  content: "★ ESCOLHA EDITORIAL";
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-accent);
}

.provider-rank {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-dim);
  text-align: center;
  line-height: 1;
  letter-spacing: -0.05em;
}

.provider-card.is-top .provider-rank {
  color: var(--accent);
}

.provider-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.provider-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.provider-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.provider-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.provider-meta dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.provider-meta dd {
  color: var(--text-primary);
  font-weight: 600;
}

/* Score block */
.score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.score-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-number .max {
  color: var(--text-dim);
  font-size: 1.25rem;
  font-weight: 600;
}

.score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -0.5rem;
}

.score-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.7rem;
}

.score-bar-row span:first-child {
  color: var(--text-muted);
}

.score-bar-track {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  transform-origin: left;
}

.score-bar-row span:last-child {
  color: var(--text-secondary);
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* color tiers by score */
.score-excellent { color: var(--score-excellent); }
.score-good { color: var(--score-good); }
.score-average { color: var(--score-average); }
.score-poor { color: var(--score-poor); }

/* ============================================================
   PROS / CONS
   ============================================================ */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.proscons-block {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 3px solid var(--score-excellent);
}

.proscons-block.cons {
  border-left-color: var(--score-poor);
}

.proscons-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.proscons-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proscons-block li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.proscons-block.pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--score-excellent);
  font-weight: 700;
}

.proscons-block.cons li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--score-poor);
  font-weight: 700;
}

/* WhatsApp CTA dentro do card */
.provider-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.provider-actions .btn-whatsapp {
  flex: 1;
  min-width: 240px;
  padding: 0.95rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.provider-actions .btn-whatsapp svg {
  flex-shrink: 0;
}

/* ============================================================
   METHODOLOGY
   ============================================================ */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.criteria-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.criteria-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.criteria-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.criteria-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.criteria-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.criteria-weight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.criteria-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TYPOGRAPHY (long-form articles)
   ============================================================ */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-body h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.article-body h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body a {
  font-weight: 500;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-style: italic;
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc h4,
.toc .toc-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.toc a {
  color: var(--text-secondary);
  border: none;
}

.toc a:hover {
  color: var(--accent);
}

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-search {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.glossary-search input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.glossary-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.glossary-search::before {
  content: "🔍";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.glossary-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.glossary-item:hover {
  border-color: var(--accent);
}

.glossary-item dt {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.glossary-item dd {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.is-open {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(0, 255, 136, 0.05) 100%);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-strip h2,
.cta-strip h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-strip p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h2 {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li:last-child {
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .provider-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .provider-rank {
    text-align: left;
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-list.is-open { display: flex; }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list a {
    display: block;
    padding: 0.9rem 0;
  }

  .nav-list a.active::after {
    display: none;
  }

  .proscons {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero { padding: 3rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .cta-strip { padding: 2rem 1.25rem; }
}

/* ============================================================
   COMPARISON TABLE (home)
   ============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 880px;
}

.comparison-table caption {
  text-align: left;
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.comparison-table thead {
  background: var(--bg-secondary);
}

.comparison-table th {
  padding: 0.9rem 0.85rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(0, 217, 255, 0.04);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 0.95rem 0.85rem;
  vertical-align: middle;
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  width: 50px;
}

.ct-name {
  font-weight: 700;
  color: var(--text-primary);
  border: none;
  display: block;
  font-size: 1rem;
}

.ct-name:hover {
  color: var(--accent);
}

.ct-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

.ct-score {
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.ct-score small {
  color: var(--text-dim);
  font-size: 0.7em;
  font-weight: 600;
}

.btn-sm {
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
}

/* Make name link have no underline */
.provider-name-link {
  color: var(--text-primary);
  border: none;
}

.provider-name-link:hover {
  color: var(--accent);
}

/* "Ver análise completa" — second button in provider-actions */
.provider-actions .btn-secondary {
  flex: 0 1 auto;
}

/* ============================================================
   PROVIDER PAGE (individual review)
   ============================================================ */
.hero-provider h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.provider-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  max-width: 800px;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.provider-hero-meta div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.provider-hero-meta dt {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.provider-hero-meta dd {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.detail-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.detail-row-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-icon {
  font-size: 1.4rem;
}

.detail-row-head h3 {
  flex: 1;
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.detail-score small {
  color: var(--text-dim);
  font-size: 0.65em;
  font-weight: 600;
}

.detail-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Related cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.related-rank {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.related-card strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.related-score {
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Prev/Next nav */
.provider-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.pn-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pn-link:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.pn-next {
  margin-left: auto;
}

/* ============================================================
   TESTE-IPTV LANDING PAGE
   ============================================================ */
.teste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.teste-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
}

.teste-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.teste-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.teste-pos {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.teste-card-head h3 {
  flex: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.teste-card-head h3 a {
  color: var(--text-primary);
  border: none;
}

.teste-card-head h3 a:hover {
  color: var(--accent);
}

.teste-score {
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--bg-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.teste-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.teste-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.teste-meta strong {
  color: var(--text-muted);
  font-weight: 500;
}

.teste-card .btn-whatsapp {
  margin-top: auto;
}

/* Responsive */
@media (max-width: 720px) {
  .provider-hero-meta {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }
  .provider-actions {
    flex-direction: column;
  }
  .provider-actions .btn { width: 100%; }
}

/* ============================================================
   AFFILIATE DISCLOSURE (footer top)
   ============================================================ */
.affiliate-disclosure {
  background: rgba(255, 184, 0, 0.06);
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.affiliate-disclosure strong {
  color: var(--score-average);
}

.affiliate-disclosure a {
  color: var(--accent);
  border: none;
  white-space: nowrap;
}

/* ============================================================
   ABOUT BLOCK (home)
   ============================================================ */
.about-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 217, 255, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.about-text .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-text a {
  color: var(--accent);
}

.about-text strong {
  color: var(--text-primary);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.pillar:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.pillar p a {
  color: var(--accent);
  border: none;
}

@media (max-width: 900px) {
  .about-block {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
}

.cookie-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cookie-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  border: none;
}

.cookie-accept {
  flex-shrink: 0;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 540px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-accept {
    width: 100%;
  }
}

/* ============================================================
   ACCESSIBILITY HELPERS
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--text-primary);
  outline-offset: 2px;
}

/* Visible focus rings for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}
