/* ==========================================================================
   POLEGAR OPOSITOR — Design System Editorial de Alta Conversão
   Arquitetura modular claro/escuro | Mobile-first | Core Web Vitals
   ========================================================================== */

:root {
  /* Superfícies claras (modo híbrido editorial quente) */
  --paper: #F7F6F2;
  --surface: #EDEBE4;
  --surface-2: #E2DFD5;
  --white: #FFFFFF;
  --line: #D8D4C8;

  /* Superfícies escuras (Hero dark, Planos, CTA bands, Footer) */
  --dark-0: #0C1117;
  --dark: #131B24;
  --dark-2: #1C2733;
  --dark-line: #283647;

  /* Textos com contraste WCAG AA/AAA */
  --ink: #121820;
  --ink-2: #2D3744;
  --muted: #5A6574;
  --on-dark: #F4F6F8;
  --on-dark-muted: #A6B4C4;

  /* Identidade Polegar Opositor */
  --brand: #E85D04;
  --brand-bright: #FF7A1A;
  --brand-soft: rgba(232, 93, 4, 0.12);
  --accent: #2563EB;
  --accent-bright: #38BDF8;
  --accent-soft: rgba(37, 99, 235, 0.1);

  /* Conversão principal */
  --cta-bg: #059669;
  --cta-hover: #047857;
  --cta-bright: #10B981;

  /* Semânticas */
  --ok: #047857;
  --ok-bg: #DCFCE7;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --err: #B91C1C;
  --err-bg: #FEE2E2;

  /* Tipografia fluida */
  --ff-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --fs-base: 1.03125rem;

  /* Raios, sombras e layout */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;
  --shadow-sm: 0 2px 8px rgba(12, 17, 23, 0.06);
  --shadow-md: 0 10px 28px rgba(12, 17, 23, 0.09);
  --shadow-lg: 0 20px 48px rgba(12, 17, 23, 0.22);
  --header-h: 74px;
  --container-max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-2);
  background-color: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand);
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p {
  margin: 0 0 1.1rem;
}

ul, ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

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

/* Acessibilidade: Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 860px;
}

/* ==========================================================================
   HEADER STICKY & NAVEGAÇÃO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(12, 17, 23, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link img {
  height: 40px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--brand-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--dark-line);
  background: var(--dark-2);
  color: var(--on-dark);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: var(--dark-0);
  padding: 20px;
  overflow-y: auto;
  border-top: 1px solid var(--dark-line);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: var(--dark);
  border: 1px solid var(--dark-line);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-nav-link[aria-current="page"] {
  border-color: var(--brand-bright);
  color: var(--brand-bright);
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
}

/* ==========================================================================
   BOTÕES & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--cta-bg);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
}

.btn--primary:hover {
  background: var(--cta-hover);
  color: #FFFFFF;
}

.btn--brand {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(232, 93, 4, 0.26);
}

.btn--brand:hover {
  background: #D05000;
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline-dark:hover {
  background: var(--ink);
  color: #FFFFFF;
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.88rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
}

.breadcrumb--dark {
  background: var(--dark-0);
  color: var(--on-dark-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.breadcrumb--light {
  background: var(--paper);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  opacity: 0.55;
}

.breadcrumb--dark a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.breadcrumb--dark a:hover {
  color: var(--brand-bright);
}

.breadcrumb--light a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb--light a:hover {
  color: var(--brand);
}

/* ==========================================================================
   HEROES (Dark & Light)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero--dark {
  background: radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.22), transparent 46%),
              radial-gradient(circle at 14% 84%, rgba(232, 93, 4, 0.18), transparent 42%),
              var(--dark-0);
  color: var(--on-dark);
  padding: 58px 0 66px;
}

.hero--dark h1 {
  color: var(--on-dark);
}

.hero--landing {
  padding: 46px 0 54px;
}

.hero--light {
  background: var(--paper);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--brand), var(--accent)) 1;
  border-bottom: 1px solid var(--line);
  padding: 46px 0 48px;
}

.hero--light::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: repeating-radial-gradient(circle, rgba(232, 93, 4, 0.05) 0 2px, transparent 2px 22px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero--dark .eyebrow {
  background: rgba(255, 122, 26, 0.14);
  color: #FFB070;
  border: 1px solid rgba(255, 122, 26, 0.35);
}

.hero--light .eyebrow {
  background: var(--brand-soft);
  color: #B44500;
  border: 1px solid rgba(232, 93, 4, 0.25);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.text-gradient {
  background: linear-gradient(90deg, #FF7A1A 0%, #FFB070 48%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 24px;
}

.hero--dark .hero-lead {
  color: var(--on-dark-muted);
}

.hero--light .hero-lead {
  color: var(--ink-2);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--pill);
}

.hero--dark .pill-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
}

.hero--light .pill-badge {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.hero-visual {
  position: relative;
  margin: 0;
}

/* ==========================================================================
   HERO SHOWCASE PREMIUM (Smart TV Interface Mockup)
   ========================================================================== */
.hero-tv-stage {
  position: relative;
  padding: 10px 0 18px;
}

.hero-tv-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 122, 26, 0.28), transparent 55%),
              radial-gradient(circle at 80% 75%, rgba(56, 189, 248, 0.24), transparent 55%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.tv-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #1E293B 0%, #0F172A 100%);
  border: 2px solid #334155;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.tv-screen {
  background: linear-gradient(145deg, #0B1220 0%, #121D30 55%, #0D1626 100%);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.tv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: #F8FAFC;
}

.tv-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-bright), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #FFFFFF;
}

.tv-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.tv-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 12px;
  margin-bottom: 14px;
}

.tv-player-card {
  position: relative;
  border-radius: 12px;
  padding: 16px;
  background: radial-gradient(circle at 80% 20%, rgba(255, 122, 26, 0.26), transparent 55%),
              linear-gradient(140deg, #162235 0%, #0F172A 100%);
  border: 1px solid rgba(255, 122, 26, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 164px;
}

.tv-player-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFB070;
  background: rgba(232, 93, 4, 0.22);
  padding: 3px 8px;
  border-radius: 6px;
}

.tv-play-center {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.tv-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 8px 22px rgba(232, 93, 4, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
  margin-left: 2px;
}

.tv-player-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.96rem;
  color: #FFFFFF;
  line-height: 1.25;
}

.tv-player-sub {
  font-size: 0.76rem;
  color: var(--on-dark-muted);
}

.tv-progress {
  height: 5px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.tv-progress-fill {
  width: 68%;
  height: 100%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--brand-bright), var(--accent-bright));
}

.tv-cat-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.tv-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: #E2E8F0;
}

.tv-cat-item--active {
  background: linear-gradient(90deg, rgba(232, 93, 4, 0.9), rgba(255, 122, 26, 0.85));
  border-color: rgba(255, 176, 112, 0.6);
  color: #FFFFFF;
}

.tv-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}

.tv-cat-item--active .tv-cat-dot {
  background: #FFFFFF;
}

.tv-device-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tv-device-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 9px 10px;
  text-align: center;
}

.tv-device-chip strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.78rem;
  color: #F8FAFC;
}

.tv-device-chip span {
  display: block;
  font-size: 0.68rem;
  color: var(--on-dark-muted);
}

.tv-stand {
  width: 34%;
  height: 10px;
  margin: 0 auto;
  background: linear-gradient(180deg, #334155, #1E293B);
  border-radius: 0 0 8px 8px;
}

.tv-base {
  width: 56%;
  height: 7px;
  margin: 0 auto;
  background: linear-gradient(90deg, #1E293B, #475569, #1E293B);
  border-radius: var(--pill);
}

.tv-floating-bar {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(19, 27, 36, 0.92);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow-md);
}

.tv-floating-bar strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.9rem;
  color: #FFFFFF;
}

.tv-floating-bar span {
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

@media (max-width: 520px) {
  .tv-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tv-device-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   TICKER HORIZONTAL
   ========================================================================== */
.ticker {
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  padding: 13px 0;
  overflow: hidden;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: po-marquee 28s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-family: var(--ff-head);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
}

@keyframes po-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   SEÇÕES & RITMO EDITORIAL
   ========================================================================== */
.section {
  padding: 68px 0;
  background: var(--paper);
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--dark-0);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.section--dark p {
  color: var(--on-dark-muted);
}

.section-head {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-num {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.section--dark .section-num {
  color: var(--brand-bright);
}

.section-sub {
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 0;
}

.section--dark .section-sub {
  color: var(--on-dark-muted);
}

/* ==========================================================================
   GRIDS & CARDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

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

.card--dark {
  background: var(--dark);
  border: 1px solid var(--dark-line);
  color: var(--on-dark);
}

.card--dark:hover {
  border-color: var(--brand-bright);
}

.card--dark h3,
.card--dark h4 {
  color: var(--on-dark);
}

.card--dark p,
.card--dark li {
  color: var(--on-dark-muted);
}

.card--highlight {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.05) 0%, var(--white) 100%);
}

/* Cards de Planos e Preços */
.plan-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card--popular {
  border: 2px solid var(--brand-bright);
  box-shadow: 0 14px 36px rgba(232, 93, 4, 0.22);
}

.plan-card--popular-light {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.06) 0%, var(--white) 100%);
  box-shadow: 0 12px 30px rgba(232, 93, 4, 0.14);
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--ff-head);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 8px 0 4px;
}

.card--dark .plan-price {
  color: var(--on-dark);
}

.plan-period {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.card--dark .plan-period {
  color: var(--on-dark-muted);
}

.plan-card__cta {
  margin-top: auto;
  padding-top: 16px;
}

.plan-card__cta .btn {
  width: 100%;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.card--dark .card-icon {
  background: rgba(255, 122, 26, 0.16);
  color: var(--brand-bright);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-0);
  color: var(--brand-bright);
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.step-card--final {
  border-color: var(--cta-bg);
  background: linear-gradient(180deg, #F0FDF7 0%, var(--white) 100%);
}

.step-card--final .step-badge {
  background: var(--cta-bg);
  color: #FFFFFF;
}

/* Chips / Tags */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ==========================================================================
   CTA BANDS (Faixas de Conversão)
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--dark-0) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  padding: 46px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--on-dark);
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================================
   TABELAS COMPARATIVAS
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

thead th {
  background: var(--dark-0);
  color: var(--on-dark);
  font-family: var(--ff-head);
  font-weight: 700;
  padding: 15px 18px;
  border-bottom: 3px solid var(--brand);
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #FAF9F6;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge--info {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   BOXES EDITORIAIS (Resumo rápido, Aviso, Transparência, Checklist)
   ========================================================================== */
.summary-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.summary-box__title {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notice-box {
  background: var(--warn-bg);
  border: 1px solid #F59E0B;
  border-radius: var(--r);
  padding: 18px 22px;
  color: #78350F;
  margin: 24px 0;
}

.notice-box strong {
  color: #451A03;
}

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

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cta-bg);
  font-weight: 800;
}

/* ==========================================================================
   CONTINUAR LENDO (Expansível)
   ========================================================================== */
.expandable-content[hidden] {
  display: none;
}

.expand-btn {
  margin-top: 8px;
}

/* ==========================================================================
   FAQ COM ABAS E ACORDEÕES
   ========================================================================== */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.faq-tab {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.faq-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.faq-tab[aria-selected="true"] {
  background: var(--dark-0);
  color: var(--on-dark);
  border-color: var(--dark-0);
}

.faq-panel[hidden] {
  display: none;
}

.accordion-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--ff-head);
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.accordion-trigger:hover {
  color: var(--brand);
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: #FFFFFF;
}

.accordion-panel {
  padding: 0 20px 18px;
  color: var(--ink-2);
  border-top: 1px solid var(--surface);
}

.accordion-panel[hidden] {
  display: none;
}

/* ==========================================================================
   BLOG & ARTIGOS
   ========================================================================== */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.blog-search {
  flex: 1 1 260px;
  max-width: 380px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--ff-body);
  font-size: 0.96rem;
  color: var(--ink);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--dark-0);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-cat {
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--brand);
}

.post-card__footer {
  margin-top: auto;
  padding-top: 12px;
}

/* Corpo do artigo */
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 2.2rem;
  padding-top: 0.4rem;
}

.article-body h3 {
  margin-top: 1.5rem;
}

.article-figure {
  margin: 26px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #FAF9F6;
}

.related-box,
.sources-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  margin-top: 36px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.related-list a {
  display: block;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.related-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ==========================================================================
   FOOTER MULTI-COLUNAS
   ========================================================================== */
.site-footer {
  background: var(--dark-0);
  color: var(--on-dark-muted);
  padding: 56px 0 32px;
  border-top: 1px solid var(--dark-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-title {
  font-family: var(--ff-head);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--on-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--brand-bright);
}

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
}

/* ==========================================================================
   ANIMAÇÕES SUTIS (Reveal) & REDUCED MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .post-card:hover { transform: none; }
}

/* ==========================================================================
   RESPONSIVIDADE (Desktop Compacto, Tablet e Mobile)
   ========================================================================== */
@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .header-actions .btn {
    display: none;
  }
  .section {
    padding: 48px 0;
  }
  .hero--dark,
  .hero--light {
    padding: 36px 0 42px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .related-list,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn {
    white-space: normal;
    width: 100%;
  }
  .btn-group {
    width: 100%;
  }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
