/* ============================================================
   Plataformas Antigas Bet — Folha de estilos principal
   Paleta: #1A1A2E (escuro), #E8E0D0 (creme), #C0392B (vermelho)
   ============================================================ */

/* --- Reset e base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #E8E0D0;
  color: #1A1A2E;
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Skip link --- */
.skip-link-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  background: #C0392B;
  color: #E8E0D0;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  left: 4px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Arial Black', Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A1A2E;
}

h2 { font-size: 1.55rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; }

a {
  color: #C0392B;
  text-decoration: underline;
}

a:hover, a:focus {
  color: #1A1A2E;
  outline: 2px solid #C0392B;
  outline-offset: 2px;
}

strong { font-weight: 700; }
em { font-style: italic; }

small {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

/* --- Eyebrow labels --- */
.eyebrow {
  display: block;
  color: #C0392B;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* --- Site wrapper --- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header --- */
.site-header {
  background: #1A1A2E;
  color: #E8E0D0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #C0392B;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #E8E0D0;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  margin-right: auto;
  line-height: 1.1;
}

.brand:hover {
  color: #C0392B;
  outline: none;
}

/* --- Menu toggle --- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 2px solid #E8E0D0;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  order: 2;
}

.toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #E8E0D0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Header CTAs --- */
.header-ctas {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
  order: 3;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  padding: 0 0.7rem;
  height: 36px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}

.cta-signup {
  background: #C0392B;
  color: #E8E0D0;
  border: 2px solid #C0392B;
}

.cta-signup:hover, .cta-signup:focus {
  background: #a93226;
  border-color: #a93226;
  color: #E8E0D0;
  outline: 2px solid #E8E0D0;
  outline-offset: 2px;
}

.cta-login {
  background: transparent;
  color: #E8E0D0;
  border: 2px solid #E8E0D0;
}

.cta-login:hover, .cta-login:focus {
  background: #E8E0D0;
  color: #1A1A2E;
  outline: none;
}

/* --- Navigation --- */
#main-nav {
  background: #1A1A2E;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#main-nav.is-open {
  max-height: 600px;
  border-top: 1px solid rgba(232,224,208,0.2);
}

#main-nav ol {
  list-style: none;
  padding: 0.5rem 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

#main-nav ol li {
  border-bottom: 1px solid rgba(232,224,208,0.1);
}

#main-nav ol li:last-child {
  border-bottom: none;
}

#main-nav ol li a {
  display: block;
  color: #E8E0D0;
  text-decoration: none;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  min-height: 44px;
  display: flex;
  align-items: center;
}

#main-nav ol li a:hover, #main-nav ol li a:focus {
  color: #C0392B;
  outline: none;
}

/* --- Hero --- */
.hero {
  background: #1A1A2E;
  color: #E8E0D0;
  padding: 3rem 1rem 2.5rem;
  border-bottom: 4px solid #C0392B;
}

.hero--home {
  padding: 4rem 1rem 3.5rem;
}

.hero--ranking {
  background: #1A1A2E;
}

.hero--review {
  background: #1A1A2E;
}

.hero--compare {
  background: #14213d;
}

.hero--faq {
  background: #1A1A2E;
}

.hero--data {
  background: #1A1A2E;
}

.hero--inner {
  background: #1A1A2E;
  padding: 2.5rem 1rem 2rem;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  color: #C0392B;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: #E8E0D0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-figure {
  margin-top: 1.5rem;
}

.hero-img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

/* --- Byline --- */
.byline {
  font-size: 0.85rem;
  color: rgba(232,224,208,0.75);
  font-family: Arial, sans-serif;
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.author-name {
  font-weight: 700;
  color: #E8E0D0;
}

.byline time {
  font-style: normal;
}

/* --- Layout principal --- */
.layout-wrap {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.layout-with-sidebar {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar-col {
  flex: 0 0 260px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* --- Content sections --- */
.content-section {
  margin-bottom: 2rem;
}

/* --- Inline aside --- */
.inline-aside {
  background: rgba(26,26,46,0.06);
  border-left: 4px solid #C0392B;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 0 4px 4px 0;
}

.inline-aside p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- Body copy --- */
.body-copy {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 70ch;
}

.body-copy a {
  color: #C0392B;
  text-decoration: underline;
}

.body-copy a:hover {
  color: #1A1A2E;
}

.body-copy h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #C0392B;
}

.body-copy h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.body-copy ul, .body-copy ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

.body-copy li {
  margin-bottom: 0.4rem;
}

.body-copy table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.body-copy th {
  background: #1A1A2E;
  color: #E8E0D0;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-family: Arial, sans-serif;
}

.body-copy td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(26,26,46,0.15);
}

.body-copy tr:nth-child(even) td {
  background: rgba(26,26,46,0.04);
}

.body-copy blockquote {
  border-left: 4px solid #C0392B;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  color: #444;
  font-style: italic;
}

/* --- Compare banner --- */
.compare-banner {
  background: rgba(192,57,43,0.08);
  border: 2px solid #C0392B;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.compare-desc {
  font-size: 0.95rem;
  color: #1A1A2E;
  line-height: 1.6;
}

/* --- About figure --- */
.about-figure {
  background: rgba(26,26,46,0.06);
  border-left: 4px solid #1A1A2E;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 0 4px 4px 0;
}

.about-figure figcaption {
  font-size: 0.95rem;
  color: #1A1A2E;
}

/* --- Author section --- */
.author-section {
  background: #1A1A2E;
  color: #E8E0D0;
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.author-section h2 {
  color: #E8E0D0;
  margin-bottom: 0.4rem;
}

.author-credentials {
  color: rgba(232,224,208,0.8);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.author-bio {
  color: rgba(232,224,208,0.9);
  font-size: 0.95rem;
}

/* --- Sidebar aside --- */
.sidebar-aside {
  background: #1A1A2E;
  color: #E8E0D0;
  padding: 1.25rem;
  border-radius: 4px;
  border-top: 3px solid #C0392B;
}

.sidebar-title {
  font-size: 1rem;
  color: #E8E0D0;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  border-bottom: 1px solid rgba(232,224,208,0.1);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: block;
  color: #E8E0D0;
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.sidebar-links a:hover, .sidebar-links a:focus {
  color: #C0392B;
  outline: none;
}

/* --- Child list (ol > li > a + small) --- */
.child-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.child-list li {
  border-bottom: 1px solid rgba(26,26,46,0.15);
  padding: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.child-list li:last-child {
  border-bottom: none;
}

.child-list a {
  font-size: 1rem;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: #1A1A2E;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.child-list a:hover {
  color: #C0392B;
  text-decoration: underline;
}

.child-list small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* --- Related section --- */
.related-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(26,26,46,0.15);
}

.related-section h2 {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

/* --- Child section (home) --- */
.child-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #C0392B;
}

.child-section h2 {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: #1A1A2E;
  color: #E8E0D0;
  padding: 2.5rem 1rem 1.5rem;
  border-top: 3px solid #C0392B;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(232,224,208,0.85);
}

.footer-address strong {
  display: block;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 0.95rem;
  color: #E8E0D0;
  margin-bottom: 0.4rem;
}

.footer-address a {
  color: #C0392B;
  text-decoration: none;
}

.footer-address a:hover {
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-nav ul li a {
  color: rgba(232,224,208,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav ul li a:hover, .footer-nav ul li a:focus {
  color: #C0392B;
  text-decoration: underline;
}

.footer-rg {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(232,224,208,0.15);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.rg-notice {
  font-size: 0.8rem;
  color: rgba(232,224,208,0.6);
  font-family: Arial, sans-serif;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Ranking body tables --- */
.ranking-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.ranking-body th {
  background: #1A1A2E;
  color: #E8E0D0;
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

.ranking-body td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(26,26,46,0.15);
  vertical-align: top;
}

.ranking-body tr:nth-child(even) td {
  background: rgba(26,26,46,0.04);
}

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

/* --- Desktop nav reveal --- */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  #main-nav {
    max-height: none;
    overflow: visible;
    border-top: none;
    background: transparent;
  }

  #main-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  #main-nav ol li {
    border-bottom: none;
  }

  #main-nav ol li a {
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    min-height: auto;
    height: 44px;
    border-right: 1px solid rgba(232,224,208,0.1);
    white-space: nowrap;
  }

  #main-nav ol li:last-child a {
    border-right: none;
  }

  .site-header {
    border-bottom-width: 2px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero--home .hero-title {
    font-size: 3.2rem;
  }
}

/* --- Sidebar responsive --- */
@media (max-width: 900px) {
  .sidebar-col {
    flex: 0 0 220px;
    width: 220px;
  }
}

@media (max-width: 768px) {
  .layout-with-sidebar {
    flex-direction: column;
  }

  .main-content {
    width: 100%;
  }

  .sidebar-col {
    width: 100%;
    flex: none;
  }

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

  .footer-rg {
    grid-column: 1;
  }

  .body-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero--home .hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .header-ctas {
    gap: 0.25rem;
  }

  .header-inner {
    padding: 0 0.75rem;
    height: 56px;
  }

  .brand {
    font-size: 0.85rem;
  }

  .cta {
    font-size: 0.72rem;
    padding: 0 0.5rem;
  }

  .hero {
    padding: 2rem 0.75rem 1.75rem;
  }

  .layout-wrap {
    padding: 1.25rem 0.75rem;
  }

  .author-section {
    padding: 1.25rem;
  }
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}