/* ==========================================================================
   VEM PRA FERROVIA — DESIGN SYSTEM EDITORIAL DE ALTA CONVERSÃO
   Identidade exclusiva: Express Editorial (Aço Obsidiana + Cobre Ferrovia + Marfim)
   Arquitetura modular preparada para os 6 arquétipos de página.
   ========================================================================== */

:root {
  /* Superfícies claras quentes */
  --paper: #FAF8F5;
  --surface: #F2EFEA;
  --surface-2: #E7E2DA;
  --line: #DDD6CC;
  --line-strong: #C9BFB1;

  /* Superfícies escuras (Aço Ferroviário) */
  --dark-0: #0E1116;
  --dark: #151A22;
  --dark-2: #1F2632;
  --dark-line: rgba(250, 248, 245, 0.11);

  /* Textos WCAG AA/AAA */
  --ink: #14171F;
  --ink-2: #353B47;
  --muted: #5C6370;
  --on-dark: #F6F4F0;
  --on-dark-muted: #B8C0CC;

  /* Marca e Conversão (Exclusivos Vem Pra Ferrovia) */
  --brand: #D95D24;
  --brand-dark: #B54715;
  --brand-light: #F28B30;
  --brand-soft: rgba(217, 93, 36, 0.1);
  --accent: #0F766E;
  --accent-light: #2DD4BF;
  --accent-soft: rgba(15, 118, 110, 0.1);

  /* CTA exclusivo WhatsApp (Sinal Livre) */
  --cta-bg: #1FA855;
  --cta-dark: #168643;
  --cta-ring: rgba(31, 168, 85, 0.28);

  /* Semânticas */
  --ok: #15803D;
  --ok-bg: #E7F5EC;
  --warn: #B45309;
  --warn-bg: #FEF3C7;

  /* Tipografia */
  --ff-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.15rem, 1.45rem + 2.9vw, 3.55rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.55vw, 2.45rem);
  --fs-h3: clamp(1.18rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-base: 1.04rem;

  /* Raios, sombras e layout */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;
  --header-h: 72px;
  --container-max: 1200px;

  --shadow-sm: 0 2px 10px rgba(14, 17, 22, 0.05);
  --shadow-md: 0 14px 36px rgba(14, 17, 22, 0.08);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -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);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

/* Acessibilidade: Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

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

/* ==========================================================================
   Botões (Padrão exclusivo sem conflito com links de menu)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--ff-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex-shrink: 0;
}

.btn--wa {
  background: var(--cta-bg);
  color: #ffffff;
  box-shadow: 0 10px 24px var(--cta-ring);
}

.btn--wa:hover {
  background: var(--cta-dark);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(22, 134, 67, 0.36);
}

.btn--brand {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(217, 93, 36, 0.28);
}

.btn--brand:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.btn--outline-dark {
  background: rgba(250, 248, 245, 0.05);
  border-color: rgba(250, 248, 245, 0.24);
  color: var(--on-dark);
}

.btn--outline-dark:hover {
  background: rgba(250, 248, 245, 0.12);
  border-color: rgba(250, 248, 245, 0.45);
  color: #ffffff;
}

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

.btn--outline-light:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   Header Sticky + Drawer Mobile (Breakpoint 1120px para 7 links)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-line);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--ff-head);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--on-dark);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 2px;
}

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

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

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

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid rgba(250, 248, 245, 0.18);
  background: rgba(250, 248, 245, 0.05);
  color: var(--on-dark);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(250, 248, 245, 0.12);
}

.nav-toggle-bars {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer Mobile */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: var(--dark-0);
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--on-dark);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--brand-light);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.mobile-drawer-note {
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  text-align: center;
}

/* ==========================================================================
   Hero Dark (page--home) e assinatura editorial
   ========================================================================== */
.hero--dark {
  position: relative;
  background:
    radial-gradient(680px 420px at 82% 18%, rgba(217, 93, 36, 0.18), transparent 64%),
    radial-gradient(520px 380px at 14% 85%, rgba(15, 118, 110, 0.16), transparent 60%),
    var(--dark-0);
  color: var(--on-dark);
  overflow: hidden;
}

/* Linhas ferroviárias sutis no fundo do Hero */
.hero--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250, 248, 245, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 248, 245, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 92%);
  pointer-events: none;
}

.hero--home {
  padding: 56px 0 68px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(250, 248, 245, 0.06);
  border: 1px solid rgba(250, 248, 245, 0.14);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark);
  margin-bottom: 20px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-bg);
  box-shadow: 0 0 0 4px rgba(31, 168, 85, 0.24);
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.07;
  color: #ffffff;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(95deg, var(--brand-light) 0%, #FFB067 48%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--on-dark-muted);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-proofs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}

.hero-proofs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

.hero-proofs svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

/* Composição visual da coluna direita do Hero */
.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(250, 248, 245, 0.14);
  background: var(--dark);
  box-shadow: var(--shadow-dark);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.04) 45%, rgba(14, 17, 22, 0.72) 100%);
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-spec-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: rgba(14, 17, 22, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 248, 245, 0.14);
}

.hero-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-spec-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.hero-spec-value {
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-spec-divider {
  width: 1px;
  height: 30px;
  background: rgba(250, 248, 245, 0.16);
}

/* Assinatura para Heroes Claros (arquétipos hub/article/post/page) */
.hero--light {
  position: relative;
  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: 44px 0 56px;
  overflow: hidden;
}

.hero--light::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 26px,
    rgba(217, 93, 36, 0.065) 26px 28px
  );
  pointer-events: none;
}

.hero--light .container {
  position: relative;
  z-index: 1;
}

.hero--light .hero-title {
  color: var(--ink);
  max-width: 24ch;
}

.hero--light .hero-lead {
  color: var(--ink-2);
  margin-bottom: 24px;
}

.hero--light .hero-eyebrow {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

/* Hero Dark Compacto (arquétipo page--landing) */
.hero--landing {
  padding: 36px 0 56px;
}

.hero--landing .hero-title {
  max-width: 22ch;
}

/* Breadcrumb (escuro para landing, claro para hub/page) */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
}

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

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

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

.breadcrumb-list a {
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb--dark a:hover {
  color: #ffffff;
}

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

.breadcrumb-sep {
  opacity: 0.45;
}

.breadcrumb-current {
  font-weight: 600;
}

.breadcrumb--dark .breadcrumb-current {
  color: var(--on-dark);
}

.breadcrumb--light .breadcrumb-current {
  color: var(--ink);
}

/* Grade de Dispositivos (/instalacao/) */
.device-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.device-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.device-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-status {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}

.device-card h3 {
  font-size: 1.18rem;
  color: var(--ink);
}

.device-card p {
  font-size: 0.94rem;
  color: var(--muted);
}

.device-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.device-card-foot a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.device-card-foot a:hover {
  text-decoration: underline;
}

/* Abas do FAQ (/duvidas/) */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.faq-tab {
  padding: 9px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

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

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

/* Bloco Leia Também (Interligação Interna) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.section--alt .related-card {
  background: var(--paper);
}

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

.related-card span {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.related-card strong {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  color: var(--ink);
}

.related-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Página Sobre e Contato */
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 44px;
  align-items: start;
}

.prose-block h2 {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}

.prose-block p {
  color: var(--ink-2);
  font-size: 1.04rem;
  max-width: 62ch;
}

.contact-panel {
  background: var(--dark-0);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  border: 1px solid var(--dark-2);
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-panel p {
  color: var(--on-dark-muted);
  margin-bottom: 24px;
}

.contact-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--dark);
  border: 1px solid var(--dark-line);
  font-family: var(--ff-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
}

.contact-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.contact-shortcut-item:hover {
  border-color: var(--brand);
  background: var(--paper);
}

.contact-shortcut-item strong {
  display: block;
  font-family: var(--ff-head);
  color: var(--ink);
  margin-bottom: 2px;
}

.contact-shortcut-item span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Documentos Legais (Índice Sticky + Leitura Editorial Confortável)
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 22px 20px;
}

.legal-toc-title {
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc-list a {
  display: block;
  padding: 5px 0;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease);
}

.legal-toc-list a:hover {
  color: var(--brand);
}

.legal-article {
  max-width: 74ch;
  min-width: 0;
}

.legal-section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.32rem, 1.12rem + 0.7vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 14px;
}

.legal-section h3 {
  font-size: 1.08rem;
  color: var(--ink);
  margin: 18px 0 8px;
}

.legal-section p {
  color: var(--ink-2);
  font-size: 1.01rem;
  line-height: 1.72;
}

.legal-list {
  margin: 12px 0 16px 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-2);
}

.legal-list li {
  line-height: 1.65;
}

.legal-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-2);
}

.legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ==========================================================================
   Blog Hub (/blog/) e Modelo de Artigo (page--post)
   ========================================================================== */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.blog-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.blog-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-cat-btn {
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.blog-cat-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.blog-cat-btn[aria-pressed="true"] {
  background: var(--dark-0);
  border-color: var(--dark-0);
  color: #ffffff;
}

/* Espaço reservado para artigo em destaque */
.blog-featured-slot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 36px 34px;
  border-radius: var(--r-lg);
  background: var(--dark-0);
  color: var(--on-dark);
  border: 1px solid var(--dark-2);
  margin-bottom: 40px;
}

.blog-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(242, 139, 48, 0.14);
  border: 1px solid rgba(242, 139, 48, 0.35);
  color: var(--brand-light);
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-featured-slot h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-featured-slot p {
  color: var(--on-dark-muted);
  font-size: 1rem;
}

.blog-featured-frame {
  border-radius: var(--r);
  border: 1px dashed rgba(250, 248, 245, 0.24);
  background: rgba(250, 248, 245, 0.03);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.blog-featured-frame strong {
  font-family: var(--ff-head);
  color: #ffffff;
  font-size: 1.02rem;
}

.blog-featured-frame span {
  font-size: 0.88rem;
  color: var(--on-dark-muted);
  max-width: 34ch;
}

/* Destaque Editorial Ativo e Cards de Artigos (/blog/) */
.blog-featured-cover {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--dark-2);
  background: var(--dark);
}

.blog-featured-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--on-dark-muted);
}

.blog-featured-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.blog-card[hidden] {
  display: none;
}

.blog-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14, 17, 22, 0.08);
}

.blog-card-cover {
  display: block;
  background: var(--dark-0);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.blog-card-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-card h3 {
  font-size: 1.16rem;
  line-height: 1.32;
  color: var(--ink);
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

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

.blog-card p {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--muted);
}

.blog-card-link {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
}

.blog-card-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.blog-filter-status-bar {
  margin-bottom: 18px;
  min-height: 24px;
}

/* Autoria, Fontes e Navegação Anterior/Próximo em Artigos */
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-author-box {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-author-box strong {
  font-family: var(--ff-head);
  font-size: 1rem;
  color: var(--ink);
}

.post-author-box span {
  font-size: 0.88rem;
  color: var(--muted);
}

.post-sources {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}

.post-sources h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.post-sources ul {
  margin: 0 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-sources a {
  color: var(--brand-dark);
}

.post-nav {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.post-nav-link:hover {
  border-color: var(--brand);
  background: var(--paper);
}

.post-nav-link--next {
  text-align: right;
}

.post-nav-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-nav-title {
  font-family: var(--ff-head);
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.35;
}

/* Grade de publicações & estado vazio elegante */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-empty {
  grid-column: 1 / -1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.blog-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-empty h3 {
  font-size: 1.32rem;
  color: var(--ink);
}

.blog-empty p {
  color: var(--muted);
  max-width: 54ch;
}

.blog-search-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* Paginação preparada */
.blog-pagination {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.pagination-item--current {
  background: var(--dark-0);
  border-color: var(--dark-0);
  color: #ffffff;
}

.pagination-item[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Modelo de Artigo (page--post) */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-cat-pill {
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-cover {
  margin: 0 0 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.post-cover-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(217, 93, 36, 0.04) 0 12px,
      transparent 12px 24px
    ),
    var(--surface);
}

.post-cover figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.post-summary-box {
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  margin-bottom: 32px;
}

.post-summary-box strong {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.toc-sub {
  padding-left: 14px !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

/* ==========================================================================
   Ticker Editorial Horizontal
   ========================================================================== */
.ticker {
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  overflow: hidden;
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}

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

.ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
}

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

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

/* ==========================================================================
   Seções & Ritmo Visual Claro / Escuro
   ========================================================================== */
.section {
  padding: 84px 0;
  background: var(--paper);
  color: var(--ink);
}

.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-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section--dark .section-kicker {
  color: var(--brand-light);
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

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

/* ==========================================================================
   Apresentação Editorial (Split assimétrico sem excesso de cards)
   ========================================================================== */
.intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.intro-copy h2 {
  font-size: var(--fs-h2);
  margin-bottom: 18px;
}

.intro-copy p {
  color: var(--ink-2);
  font-size: 1.06rem;
  max-width: 58ch;
}

.intro-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.intro-manifesto {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 28px 28px;
}

.intro-manifesto-title {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.manifesto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manifesto-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.manifesto-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.manifesto-num {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 2px;
}

.manifesto-list strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.manifesto-list span {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ==========================================================================
   01 — Benefícios e Diferenciais (Lista editorial em 2 colunas com divisórias)
   ========================================================================== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.editorial-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}

.editorial-row:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.editorial-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.editorial-row h3 {
  font-size: var(--fs-h3);
  margin-bottom: 6px;
  color: var(--ink);
}

.editorial-row p {
  font-size: 0.96rem;
  color: var(--muted);
}

/* ==========================================================================
   02 — Categorias de Entretenimento (Grade tipográfica arquitetônica)
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.category-cell {
  background: var(--paper);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.2s var(--ease);
}

.category-cell:hover {
  background: var(--surface);
}

.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-tag {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.category-cell h3 {
  font-size: 1.2rem;
  color: var(--ink);
}

.category-cell p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ==========================================================================
   Faixa de Conversão (.cta-band)
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(520px 260px at 90% 50%, rgba(217, 93, 36, 0.2), transparent 65%),
    var(--dark);
  color: var(--on-dark);
  padding: 56px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.cta-band--final {
  background:
    radial-gradient(640px 340px at 50% 0%, rgba(217, 93, 36, 0.22), transparent 65%),
    var(--dark-0);
  padding: 76px 0;
}

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

.cta-band-copy {
  max-width: 640px;
}

.cta-band-copy h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-band-copy p {
  color: var(--on-dark-muted);
  font-size: 1.02rem;
}

.cta-band-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.cta-micro {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

/* ==========================================================================
   03 — Compatibilidade + Tabela Comparativa
   ========================================================================== */
.device-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.device-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.device-pill svg {
  color: var(--brand);
  flex-shrink: 0;
}

.compat-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: start;
}

.compat-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compat-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compat-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.compat-item h3 {
  font-size: 1.08rem;
  margin-bottom: 5px;
}

.compat-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Tabela comparativa editorial */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 480px;
}

.compare-table thead th {
  background: var(--dark-0);
  color: var(--on-dark);
  font-family: var(--ff-head);
  font-weight: 700;
  text-align: left;
  padding: 16px 18px;
  border-bottom: 3px solid var(--brand);
}

.compare-table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 6px;
}

/* ==========================================================================
   04 — Como Funciona em 3 Passos (Trilho Horizontal)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card--highlight {
  background: var(--dark-0);
  border-color: var(--dark-2);
  color: var(--on-dark);
}

.step-num {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.step-card--highlight .step-num {
  color: var(--brand-light);
}

.step-card h3 {
  font-size: 1.24rem;
}

.step-card p {
  font-size: 0.96rem;
  color: var(--muted);
}

.step-card--highlight p {
  color: var(--on-dark-muted);
}

.step-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.step-card--highlight .step-foot {
  border-top-color: var(--dark-line);
  color: var(--accent-light);
}

/* ==========================================================================
   05 — Planos e Preços (.section--dark)
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--dark);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-card--popular {
  background: linear-gradient(180deg, #1E2430 0%, #151A22 100%);
  border: 2px solid var(--brand-light);
  box-shadow: 0 24px 60px rgba(217, 93, 36, 0.2);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 14px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  color: #ffffff;
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-name {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.plan-cycle {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

.plan-price-wrap {
  padding: 18px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-currency {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--on-dark-muted);
}

.plan-price {
  font-family: var(--ff-head);
  font-size: clamp(2.1rem, 1.8rem + 1vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 8px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--on-dark);
}

.plan-features svg {
  color: var(--accent-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.plan-action {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-note {
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  text-align: center;
}

.plans-footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

.plans-footnote a {
  color: var(--brand-light);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ==========================================================================
   06 — Teste Grátis de 6 Horas + Transparência + Continuar Lendo
   ========================================================================== */
.trial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.trial-figure {
  margin: 0;
}

.trial-figure img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.trial-figure figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.trial-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 26px;
}

.trial-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink-2);
}

.trial-checklist svg {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Bloco expansível ("Continuar lendo") + Transparência */
.expandable-wrap {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.transparency-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.transparency-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px;
}

.transparency-col h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.transparency-col p {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.expandable-content[hidden] {
  display: none;
}

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-expand:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-expand svg {
  transition: transform 0.25s var(--ease);
}

.btn-expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   07 — FAQ (Acordeões acessíveis + Bloco lateral de atendimento)
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 40px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--ff-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.18s var(--ease);
}

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

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  transition: transform 0.24s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.faq-panel {
  padding-bottom: 20px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

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

.faq-aside {
  background: var(--dark-0);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq-aside h3 {
  font-size: 1.28rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.faq-aside p {
  font-size: 0.94rem;
  color: var(--on-dark-muted);
  margin-bottom: 22px;
}

.faq-aside-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.84rem;
  color: var(--on-dark-muted);
}

/* ==========================================================================
   08 — Preparação Editorial / Próximas Páginas (sem 404)
   ========================================================================== */
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.roadmap-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.roadmap-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.roadmap-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.roadmap-item h3 {
  font-size: 1.1rem;
  color: var(--ink);
}

.roadmap-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   Rodapé Completo
   ========================================================================== */
.site-footer {
  background: var(--dark-0);
  color: var(--on-dark);
  border-top: 1px solid var(--dark-line);
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 0.72fr));
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.93rem;
  color: var(--on-dark-muted);
  max-width: 38ch;
}

.footer-col h3 {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.93rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.footer-disclaimer {
  max-width: 72ch;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  opacity: 0.86;
}

/* ==========================================================================
   Reveal sutil (progressivo e respeitando prefers-reduced-motion)
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsividade (1120px, 960px, 768px, 640px)
   ========================================================================== */
@media (max-width: 1040px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .intro-split,
  .compat-layout,
  .trial-split,
  .faq-layout,
  .prose-grid,
  .legal-layout,
  .blog-featured-slot {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc {
    position: static;
  }

  .plans-grid,
  .steps-grid,
  .roadmap-list,
  .device-hub-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-card--popular {
    transform: none;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band-action {
    align-items: flex-start;
    width: 100%;
  }

  .faq-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .hero--home {
    padding: 36px 0 48px;
  }

  .editorial-grid,
  .transparency-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-row,
  .editorial-row:nth-child(even) {
    padding: 22px 0;
    border-left: 0;
  }

  .categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .header-cta {
    display: none;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-ctas .btn,
  .cta-band-action .btn {
    width: 100%;
  }

  .hero-spec-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .hero-spec-divider {
    width: 100%;
    height: 1px;
  }

  .footer-grid,
  .related-grid,
  .blog-grid,
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-nav-link--next {
    text-align: left;
  }

  .blog-featured-slot {
    padding: 26px 20px;
  }

  .blog-empty {
    padding: 32px 20px;
  }

  .contact-panel {
    padding: 26px 20px;
  }

  .contact-shortcut-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Acessibilidade: Redução de Movimento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .roadmap-item,
  .mobile-drawer {
    transition: none;
  }
}
