/* ════════════════════════════════════════════════════════════════════════════
   tAIrot — STYLE.CSS  |  Style Guide v6  |  Identidade editorial + blur
   ─────────────────────────────────────────────────────────────────────────
   MUDANÇAS DESTA REVISÃO (v6):
   · Fundo off-white quente (estilo Lovable) mantendo violeta + dourado
   · Hero: mandala circular removida → auras de cor desfocadas (blur)
   · Nav em vidro fosco (glassmorphism leve) nos dois modos
   · CTAs e botões principais em pill; cards com raio maior e sombra suave
   · Emojis de áreas substituídos por ícones SVG de linha
   · Dark mode refinado (near-black quente), contraste AA mantido
   ─────────────────────────────────────────────────────────────────────────
   ESTRUTURA:
   1. Reset e base
   2. Tokens modo claro (:root)
   3. Tokens modo escuro (
html { scroll-behavior: smooth; font-size: 16px; }

/* ── 2. TOKENS MODO CLARO ─────────────────────────────────────────────── */
/*
   ACESSIBILIDADE — pares de contraste verificados (WCAG AA mín. 4.5:1):
   text-primary   #201A2E / bg #FAF8F4 = 16.4:1  ✓
   text-secondary #453E57 / bg #FAF8F4 = 9.4:1   ✓
   text-support   #625A78 / bg #FAF8F4 = 5.9:1   ✓
   text-label     #4E4668 / surface-1  = 5.4:1   ✓
   violet-400     #8654E0 / bg #FAF8F4 = 4.7:1   ✓
   gold-400       #8C6E0E / bg #FAF8F4 = 4.6:1   ✓
*/
:root {
  /* Superfícies — off-white quente (editorial) */
  --bg:           #FAF8F4;
  --surface-0:    #FAF8F4;
  --surface-1:    #FFFFFF;
  --surface-2:    #F3EFE9;
  --surface-3:    #E9E3DA;
  --surface-4:    #DBD2C6;

  /* Texto — hierarquia com contraste garantido */
  --text-primary:   #201A2E;   /* 16.4:1 — títulos, body principal */
  --text-secondary: #3A3450;   /* 11.5:1 — subtítulos, corpo alternativo */
  --text-support:   #524C68;   /* 7.2:1  — parágrafos de apoio */
  --text-label:     #433C60;   /* 7.4:1  — labels, captions */
  --text-muted:     #A79CB8;   /* placeholder e decoração apenas */
  --text-fog:       #C9C0D6;   /* puramente decorativo */

  /* Bordas — mais finas, elegantes */
  --border:        rgba(45,36,70,0.10);
  --border-strong: rgba(45,36,70,0.20);

  /* Roxo — primário */
  --violet-50:   #F4EFFF;
  --violet-100:  #EAE0FF;
  --violet-200:  #CDB8F8;
  --violet-300:  #A882EF;
  --violet-400:  #8654E0;   /* CTA, links, estados ativos */
  --violet-500:  #6B38C4;
  --violet-600:  #4E228A;

  /* Dourado — acento (preços, estrelas, posição de carta) */
  --gold-100:  #FBF6E3;
  --gold-200:  #F0D98A;
  --gold-300:  #D9B840;
  --gold-400:  #8C6E0E;   /* escurecido para contraste em texto */
  --gold-500:  #6B500A;

  /* Status semântico */
  --success:    #1E6B3E; --success-bg: #EAF5EE;
  --warning:    #7A5C00; --warning-bg: #FBF5E0;
  --error:      #9E2020; --error-bg:   #FCEAEA;
  --info:       #1E3A8A; --info-bg:    #EBF0FA;

  /* Nav — vidro fosco */
  --nav-bg:     rgba(250,248,244,0.72);
  --nav-border: rgba(134,84,224,0.14);

  /* Sombras — suaves e difusas */
  --shadow-sm:     0 1px 3px rgba(45,36,70,0.07);
  --shadow-md:     0 4px 24px rgba(45,36,70,0.08);
  --shadow-lg:     0 12px 48px rgba(45,36,70,0.12);
  --shadow-violet: 0 4px 24px rgba(134,84,224,0.25);

  /* Auras do hero (cores dos blobs desfocados) */
  --aura-violet: rgba(134,84,224,0.28);
  --aura-gold:   rgba(217,184,64,0.20);
  --aura-deep:   rgba(134,84,224,0.16);

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --serif-leitura: 'Lora', Georgia, serif;   /* textos longos legíveis: perguntas e interpretações */

  /* Raios */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Acento dourado — usado em .mensagem-cartas-card e feedback */
  --border-accent: var(--gold-300);
  --bg-accent:     rgba(201, 169, 110, 0.08);
}

/* ── 3. TOKENS MODO ESCURO ────────────────────────────────────────────── */
/*
   "Hard dark" refinado — near-black com quente/violeta.
   text-primary   #F1EDFC / bg #121019 = 16.9:1  ✓
   text-secondary #D6CCF4 / bg #121019 = 11.3:1  ✓
   text-support   #C6B8EC / bg #121019 = 8.5:1   ✓
   text-label     #A89ACF / surface-1  = 6.0:1   ✓
   violet-400     #B090F0 / bg #121019 = 7.4:1   ✓
   gold-400       #D4A820 / bg #121019 = 5.5:1   ✓
*/

/* ── 4. BASE TIPOGRÁFICA ──────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }
::placeholder { color: var(--text-muted); }

/* ── 5. NAV — vidro fosco reforçado ────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 60px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-md);
  transition: background .35s ease, border-color .3s ease;
}

/* Logo — espelha a escrita do hero: Cormorant, base text-primary,
   "AI" em itálico violeta (mesma identidade da landing em light mode) */
.nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text-primary);
  transition: color .2s;
}
.nav-logo em { font-style: italic; color: var(--violet-400); }
.nav-logo:hover { color: var(--violet-500); }
.nav-logo:hover em { color: var(--violet-500); }

/* Switch tema */
.nav-mode-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--sans);
  user-select: none;
}
.switch-track {
  position: relative;
  width: 36px; height: 20px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  transition: background .25s;
  flex-shrink: 0;
}

.switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform .25s, background .25s;
}

/* Label do switch */
.switch-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-label);
}

/* CTA do nav — pill */
.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--violet-400);
  padding: 9px 20px;
  border: 1.5px solid var(--violet-400);
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
@media (hover: hover) {
  .nav-cta:hover { background: var(--violet-400); color: #fff; }
}
.nav-cta:active { opacity: .85; transform: scale(.97); }

/* ── 6. HERO — auroras blur ───────────────────────────────────────────── */
/*
   Estrutura de camadas (z-index):
   1. hero-stars-canvas  — canvas JS de estrelas pulsantes (z:0)
   2. hero::before       — glow radial CSS (z:1)
   3. hero-aurora        — blobs de cor desfocados (z:1)
   4. conteúdo central   — texto e botão (z:10)
*/
.hero {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(80px, 12vh, 120px) 40px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Canvas de estrelas — cobre todo o hero */
.hero-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Glow radial CSS de apoio */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,    rgba(134,84,224,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%,   rgba(185,148,26,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 65%,   rgba(134,84,224,0.06) 0%, transparent 55%);
  transition: opacity .35s;
}

/* Auras de cor desfocadas — substituem a mandala circular */
.hero-aurora {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  will-change: transform;
}
.aurora--violet {
  top: -24vmax; left: 50%;
  width: 62vmax; height: 62vmax;
  margin-left: -31vmax;
  background: radial-gradient(circle, var(--aura-violet), transparent 66%);
  animation: aurora-drift 18s ease-in-out infinite;
}
.aurora--gold {
  right: -16vmax; bottom: -12vmax;
  width: 46vmax; height: 46vmax;
  background: radial-gradient(circle, var(--aura-gold), transparent 62%);
  animation: aurora-drift 24s ease-in-out infinite reverse;
}
.aurora--deep {
  left: -14vmax; bottom: -8vmax;
  width: 42vmax; height: 42vmax;
  background: radial-gradient(circle, var(--aura-deep), transparent 62%);
  animation: aurora-drift 28s ease-in-out infinite;
}

/* Deriva lenta — traduz/rotaciona levemente cada blob */
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(3%, -4%) scale(1.08) rotate(3deg); }
  66%      { transform: translate(-4%, 3%) scale(.96) rotate(-3deg); }
}

/* Eyebrow */
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-500);
  margin-bottom: 28px;
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  letter-spacing: .04em;
  background: linear-gradient(90deg, #7C3AED 0%, #C9A96E 35%, #fff8e7 50%, #C9A96E 65%, #7C3AED 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}
.hero-eyebrow::after { transform: scaleX(-1); }

/* Título principal — mais presença editorial */
.hero-logo {
  font-family: var(--serif);
  font-size: clamp(60px, 10vw, 128px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative; z-index: 10;
}
.hero-logo em { font-style: italic; color: var(--violet-400); }

/* Subtítulo */
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(19px, 2.5vw, 23px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  max-width: clamp(460px, 40vw, 640px);
  line-height: 1.65;
  margin: 0 auto 44px;
  position: relative; z-index: 10;
}

/* Botão CTA — pill com glow suave */
.hero-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--violet-400);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative; z-index: 10;
  transition: opacity .2s, transform .1s, box-shadow .2s;
}
@media (hover: hover) {
  .hero-btn:hover { opacity: .92; box-shadow: var(--shadow-violet); transform: translateY(-2px); }
}
.hero-btn:active { transform: scale(.97); }

/* ── 7. COMO FUNCIONA ─────────────────────────────────────────────────── */
.how {
  background: var(--surface-1);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 1080px; margin: 0 auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-400);
  margin-bottom: 8px;
  display: block;
  letter-spacing: .03em;
}

.text-accent { color: var(--gold-500); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: clamp(32px, 4.5vw, 56px);
  max-width: 520px;
  letter-spacing: -.01em;
}

/* Grid de 4 steps — raio grande, borda fina, sombra leve */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface-1);
}
.step {
  padding: clamp(26px, 3.5vw, 42px) clamp(20px, 2.5vw, 32px);
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  transition: background .2s, transform .2s;
}
.step:last-child { border-right: none; }

.step-num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-support);
  line-height: 1.65;
}

/* ── 8. SELEÇÃO DE ÁREAS (HOME) ───────────────────────────────────────── */
.home-areas {
  background: var(--surface-2);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.home-areas-inner { max-width: 560px; margin: 0 auto; }

.home-areas-sub {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-support);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Dica da Conexões na home — pill dourada discreta */
.home-areas-dica {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 10px 16px;
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--gold-500);
  line-height: 1.5;
}

.home-areas-lista {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}

/* Card de área — raio maior, chip de ícone, hover suave */
.home-area-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text-primary);
  text-align: left; width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
@media (hover: hover) {
  .home-area-item:hover {
    border-color: var(--violet-400);
    background: var(--violet-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.home-area-item:active {
  transform: scale(.98);
  background: var(--violet-50);
}

.home-area-item.selecionada {
  border-color: var(--violet-400);
  background: var(--violet-50);
  box-shadow: 0 0 0 1px var(--violet-400);
}

/* Chip do ícone */
.home-area-icone {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--violet-50);
  border: 1px solid var(--border);
  color: var(--violet-400);
  transition: background .2s, color .2s, border-color .2s;
}
.home-area-icone svg { width: 19px; height: 19px; display: block; }
.home-area-item.selecionada .home-area-icone {
  background: var(--violet-100);
  border-color: var(--violet-200);
  color: var(--violet-500);
}
@media (hover: hover) {
  .home-area-item:hover .home-area-icone {
    background: var(--violet-100);
    border-color: var(--violet-200);
    color: var(--violet-500);
  }
}

.home-area-nome {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  color: var(--text-primary);
}
.home-area-check {
  font-size: 14px;
  color: var(--violet-400);
  opacity: 0;
  transition: opacity .18s;
  font-weight: 700;
}
.home-area-item.selecionada .home-area-check { opacity: 1; }

/* Resumo áreas + preço */
.home-areas-resumo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-1);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  transition: border-color .25s, background .25s;
}
.home-areas-resumo.tem-valor {
  border-color: var(--gold-300);
  background: var(--gold-100);
}

.home-areas-count { font-size: 13px; font-weight: 500; color: var(--text-label); }
.home-valor-total {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--violet-600);   /* roxo no lugar do dourado — mais contraste */
  white-space: nowrap;
}

.home-areas-acoes { display: flex; justify-content: flex-end; }

/* Botão primário — pill */
.btn-primario {
  padding: 12px 28px;
  background: var(--violet-400);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  min-height: 44px;
  transition: opacity .2s, transform .1s, box-shadow .2s;
}
@media (hover: hover) {
  .btn-primario:hover:not(:disabled) { opacity: .92; box-shadow: var(--shadow-violet); }
}
.btn-primario:active { transform: scale(.97); }
.btn-primario:disabled {
  background: var(--surface-4);
  color: var(--text-label);
  cursor: not-allowed;
  box-shadow: none; transform: none;
}

/* ── 9. METODOLOGIA ───────────────────────────────────────────────────── */
.metodo {
  background: var(--surface-0);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.metodo-inner { max-width: 1080px; margin: 0 auto; }

.metodo-titulo {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: clamp(32px, 4vw, 52px);
  letter-spacing: -.01em;
}

.metodo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.metodo-item {
  padding: clamp(30px, 4vw, 46px) clamp(26px, 3.5vw, 42px);
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.metodo-item:hover { background: var(--surface-2); }
.metodo-item:nth-child(2) { border-right: none; }
.metodo-item:nth-child(3) { border-bottom: none; }
.metodo-item:nth-child(4) { border-right: none; border-bottom: none; }

.metodo-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: 10px;
}

.metodo-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-support);
  line-height: 1.75;
}
.metodo-text strong { font-weight: 600; color: var(--text-primary); }

/* ── 10. FOOTER ───────────────────────────────────────────────────────── */
.footer {
  background: var(--surface-1);
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 26px; font-weight: 400;
  letter-spacing: -.01em;
  color: var(--violet-400);
  margin-bottom: 20px; display: block;
}
.footer-logo em { font-style: italic; }

.footer-stars { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.footer-stars span { color: var(--gold-300); font-size: 8px; opacity: .65; }

.footer-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-label);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── 11. MODAL DA LANDING ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,21,40,0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); padding: 40px 36px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px); transition: transform .2s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-icon { font-size: 28px; margin-bottom: 16px; }

.modal-titulo {
  font-family: var(--serif);
  font-size: 24px; font-weight: 400;
  color: var(--text-primary); margin-bottom: 12px; line-height: 1.3;
}
.modal-texto {
  font-size: 15px; font-weight: 400;
  color: var(--text-secondary); line-height: 1.65; margin-bottom: 28px;
}
.modal-actions { display: flex; gap: 12px; }

.modal-btn-secondary {
  flex: 1; padding: 12px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill); cursor: pointer; font-family: var(--sans);
  min-height: 44px;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) {
  .modal-btn-secondary:hover { background: var(--surface-2); color: var(--text-primary); border-color: var(--violet-400); }
}

.modal-btn-primary {
  flex: 1; padding: 12px 20px;
  font-size: 14px; font-weight: 500;
  color: #fff; background: var(--violet-400);
  border: none; border-radius: var(--r-pill);
  cursor: pointer; font-family: var(--sans);
  min-height: 44px;
  transition: opacity .2s, transform .1s, box-shadow .2s;
}
@media (hover: hover) {
  .modal-btn-primary:hover { opacity: .92; box-shadow: var(--shadow-violet); }
}
.modal-btn-primary:active { transform: scale(.97); }

/* ── 12. RESPONSIVO ───────────────────────────────────────────────────── */
/* Tablet (≥768px) — começa a escalar tipografia e espaçamento */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .nav { height: 60px; padding: 0 32px; }
  .hero { padding: 80px 48px 0; }
  .hero-logo { font-size: clamp(72px, 9vw, 110px); }
  .hero-headline { font-size: clamp(21px, 2.2vw, 26px); }
  .hero-btn { padding: 17px 52px; font-size: 16px; }
  .section-title { font-size: clamp(32px, 4vw, 44px); }
  .step-num { font-size: 52px; }
}

/* Desktop (≥900px) — cards e tipografia maiores conforme o viewport */
@media (min-width: 900px) {
  .nav { height: 64px; }
  .home-areas-inner { max-width: 720px; }
  .home-areas-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-area-item {
    padding: 18px 24px;
    min-height: 64px;
    border-radius: var(--r-lg);
  }
  .home-area-icone { width: 46px; height: 46px; border-radius: 15px; }
  .home-area-icone svg { width: 23px; height: 23px; }
  .home-area-nome { font-size: 17px; }
  .home-area-check { font-size: 16px; }
  .home-areas-resumo { padding: 20px 24px; border-radius: var(--r-lg); }
  .home-areas-count { font-size: 14px; }
  .home-valor-total { font-size: 42px; }
  .home-areas-acoes { justify-content: stretch; }
  .home-btn-continuar { width: 100%; padding: 16px 40px; font-size: 16px; }
  .hero-btn { padding: 18px 56px; font-size: 17px; }
  .steps { border-radius: var(--r-lg); }
  .step-title { font-size: 17px; }
  .step-text { font-size: 16px; }
  .metodo-grid { border-radius: var(--r-lg); }
  .metodo-text { font-size: 16px; }
  .nav-cta { font-size: 14px; padding: 10px 22px; }
}

/* Telas grandes (≥1200px) — proporcional e generoso */
@media (min-width: 1200px) {
  .hero { padding: 96px 64px 0; }
  .hero-logo { font-size: clamp(110px, 9vw, 170px); }
  .hero-headline { font-size: clamp(25px, 1.9vw, 32px); max-width: 560px; }
  .hero-btn { padding: 20px 64px; font-size: 18px; }
  .hero-eyebrow { font-size: 14px; }
  .how, .home-areas, .metodo { padding: clamp(48px, 6vw, 72px) clamp(40px, 6vw, 96px); }
  .home-areas-inner { max-width: 880px; }
  .section-title { font-size: clamp(40px, 3.4vw, 54px); }
  .home-area-item { padding: 20px 28px; min-height: 72px; }
  .home-area-icone { width: 50px; height: 50px; border-radius: 16px; }
  .home-area-icone svg { width: 25px; height: 25px; }
  .home-area-nome { font-size: 18px; }
  .home-valor-total { font-size: 48px; }
  .home-btn-continuar { padding: 18px 44px; font-size: 17px; }
  .steps { border-radius: calc(var(--r-lg) + 4px); }
  .step { padding: clamp(36px, 3.5vw, 52px) clamp(26px, 2.5vw, 40px); }
  .step-num { font-size: 60px; }
  .step-title { font-size: 19px; }
  .step-text { font-size: 17px; }
  .metodo-titulo { font-size: clamp(40px, 3.4vw, 54px); }
  .metodo-item { padding: clamp(40px, 4vw, 56px) clamp(34px, 3.5vw, 52px); }
  .metodo-text { font-size: 17px; }
  .footer-logo { font-size: 30px; }
  .footer-text { font-size: 14px; max-width: 620px; }
}

@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .step:nth-child(4) { border-top: 1px solid var(--border); }
  .metodo-item { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .metodo-item:last-child { border-bottom: none !important; }
}

@media (max-width: 600px) {
  .nav { padding: 0 16px; }
  .nav-logo { font-size: 21px; }
  .nav-cta {
    font-size: 12px;
    padding: 6px 14px;
    min-height: unset;
    height: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }
  .hero-btn {
    padding: 13px 28px;
    font-size: 15px;
    min-height: unset;
    height: auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
  }
  .switch-label { display: none; }
  .hero { padding: 64px 20px 48px; min-height: auto; }
  .modal { padding: 32px 24px; }
  .modal-actions { flex-direction: column; }
  .home-areas { padding: 40px 20px; }
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    gap: 0;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    border-right: 1px solid var(--border) !important;
    border-top: none !important;
    padding: 24px 20px;
    height: auto;
  }
  .step:last-child { border-right: none !important; }
  .steps-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  .steps-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background .2s, width .2s;
  }
  .steps-dot.ativo {
    background: var(--violet-400);
    width: 16px;
    border-radius: 3px;
  }
  .step {
    -webkit-tap-highlight-color: transparent;
    cursor: default;
    user-select: none;
    background: var(--surface-1) !important;
  }
  .step:active {
    background: var(--surface-1) !important;
  }
  .step {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
    height: auto;
    min-height: unset;
  }
  .steps {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: visible;
    align-items: flex-start;
  }
  .metodo-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    gap: 0;
    scrollbar-width: none;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .metodo-grid::-webkit-scrollbar { display: none; }
  .metodo-item {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    padding: 24px 4px;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
    user-select: none;
  }
  .metodo-item:active { background: transparent !important; }
  .metodo-item:last-child { border: none !important; }
  .metodo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  .metodo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background .2s, width .2s;
  }
  .metodo-dot.ativo {
    background: var(--violet-400);
    width: 16px;
    border-radius: 3px;
  }
}

@media (max-width: 380px) {
  .hero-logo { letter-spacing: -.02em; }
  .hero-btn {
    padding: 13px 24px;
    font-size: 14px;
    min-height: unset;
    white-space: nowrap;
  }
}

/* ── BOTÃO FLUTUANTE DE SCROLL (FAB) ─────────────────────────────────── */
.scroll-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--violet-400);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(134, 84, 224, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.scroll-fab.visivel {
  opacity: 1;
  pointer-events: auto;
}
.scroll-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(134, 84, 224, 0.45);
}
.scroll-fab:active {
  transform: scale(0.94);
}
.scroll-fab svg {
  transition: transform 0.25s ease;
}
.scroll-fab.rotacionado svg {
  transform: rotate(180deg);
}
@media (max-width: 600px) {
  .scroll-fab {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ── 13. ACESSIBILIDADE ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .aurora { animation: none !important; }
}
