/* ==========================================================================
   Plano Vivo Empresa - main.css
   Estilo: "Trust & Authority" (saúde / corporativo)
   Abordagem: Mobile-first · Performance-first · WCAG AA
   Tokens gerados via UI/UX Pro Max (ver design-system/plano-vivo-empresa/MASTER.md)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   0. Fontes self-hosted (woff2 variável, subset latin - cobre pt-BR)
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400 700;            /* fonte variável: cobre 400–700 num só arquivo */
  font-display: swap;
  src: url("../fonts/lexend.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

/* ---------------------------------------------------------------------------
   1. Design Tokens (custom properties)
   --------------------------------------------------------------------------- */
:root {
  /* Cores - paleta Vivo (roxo + magenta) */
  --color-primary: #660099;        /* roxo Vivo - marca, ícones, links */
  --color-primary-dark: #52007a;   /* roxo escuro - hover / texto sobre claro (AA) */
  --color-secondary: #a64dd6;      /* roxo claro - detalhes, gradientes sutis */
  --color-cta: #ba3566;            /* magenta Vivo - acento de conversão */
  --color-cta-strong: #ba3566;     /* fundo de botão (branco sobre = 5,5:1 AA) */
  --color-cta-darker: #9c2a55;     /* hover do botão */

  --color-bg: #f6f3fb;             /* lilás muito claro - fundo geral */
  --color-bg-alt: #fdfcff;         /* alternância de seções */
  --color-surface: #ffffff;        /* cards / superfícies */
  --color-heading: #2d1640;        /* títulos (roxo escuro) */
  --color-text: #3a3340;           /* corpo de texto */
  --color-text-muted: #5b5566;     /* texto secundário (AA em fundo claro) */
  --color-border: #e7ddf0;         /* bordas claras visíveis */
  --color-border-strong: #d3c0e6;
  --color-on-dark: #f3e9fb;        /* texto sobre fundo escuro */
  --color-footer-bg: #2d0b45;      /* rodapé escuro (roxo) */

  /* Tipografia */
  --font-heading: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala tipográfica fluida (mobile → desktop) */
  --fs-xs: 0.8125rem;                              /* 13px */
  --fs-sm: 0.9375rem;                              /* 15px */
  --fs-base: 1.0625rem;                            /* 17px - corpo confortável p/ mobile */
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-xl: clamp(1.35rem, 1.2rem + 0.8vw, 1.6rem);
  --fs-2xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem);
  --fs-3xl: clamp(1.9rem, 1.4rem + 2.4vw, 2.85rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Espaçamento (escala 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Espaçamento vertical das seções (fluido) */
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);

  /* Raios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(16, 61, 77, 0.06), 0 1px 3px rgba(16, 61, 77, 0.08);
  --shadow-md: 0 4px 12px rgba(16, 61, 77, 0.08), 0 2px 4px rgba(16, 61, 77, 0.06);
  --shadow-lg: 0 18px 40px -12px rgba(102, 0, 153, 0.22);

  /* Transições */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --header-h: 64px;

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 20;
  --z-header: 30;
  --z-overlay: 40;
  --z-modal: 50;
}

/* ---------------------------------------------------------------------------
   2. Reset enxuto
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Foco visível para navegação por teclado (acessibilidade) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   3. Utilitários de layout
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background-color: var(--color-bg-alt); }
.section--tight-top { padding-top: var(--space-5); }   /* menos espaço logo abaixo do header */
.section--tint {
  background: linear-gradient(180deg, var(--color-bg) 0%, #ece1f6 100%);
}

/* CTA centralizado ao final de uma seção */
.section__cta { margin-top: var(--space-7); text-align: center; }

.section__head {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  text-align: center;
}
/* variante alinhada à esquerda, com título/subtítulo menores */
.section__head--left {
  max-width: 820px;
  margin-inline: 0;
  margin-bottom: var(--space-6);
  text-align: left;
}
.section__head--left .section__title { font-size: var(--fs-2xl); }
.section__head--left .section__subtitle { font-size: var(--fs-base); margin-top: var(--space-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.section__title { font-size: var(--fs-3xl); }
.section__subtitle {
  margin-top: var(--space-4);
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

/* Visível só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-modal);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-4); }

/* ---------------------------------------------------------------------------
   4. Botões / CTAs
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;                 /* área de toque ≥ 44px */
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

.btn--cta {
  background-color: var(--color-cta-strong);
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: ctaPulse 2.6s ease-in-out infinite;
}
.btn--cta:hover { background-color: var(--color-cta-darker); animation-play-state: paused; }
/* pulso sutil p/ chamar atenção no CTA principal (anulado em prefers-reduced-motion) */
@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(186, 53, 102, 0.5); }
  70%      { box-shadow: var(--shadow-md), 0 0 0 10px rgba(186, 53, 102, 0); }
}

.btn--primary {
  background-color: var(--color-primary-dark);
  color: #fff;
}
.btn--primary:hover { background-color: #43006b; }

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover { border-color: var(--color-primary); background-color: rgba(102,0,153,0.06); }

.btn--block { width: 100%; white-space: normal; line-height: 1.25; }
.btn--lg { min-height: 54px; padding: 0.9rem 2rem; font-size: var(--fs-lg); white-space: normal; line-height: 1.25; }

/* ---------------------------------------------------------------------------
   5. Header / Navegação
   --------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* Fundo quase opaco e SEM blur no mobile: backdrop-filter em elemento
     sticky causa repaint a cada frame de scroll (jank/bateria). O blur
     fica só no desktop (ver breakpoint 960px). */
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--color-heading);
}
.header__logo:hover { text-decoration: none; }
/* logos do header: "vivo empresas | Fibra" (alinhados, escala responsiva) */
.header__logo img { display: block; height: 18px; width: auto; }
@media (min-width: 480px) { .header__logo img { height: 22px; } }
@media (min-width: 768px) { .header__logo img { height: 26px; } }

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list {
  display: none;                    /* escondido no mobile */
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}
.nav__link {
  color: var(--color-text);
  font-weight: 500;
}
.nav__link:hover { color: var(--color-primary-dark); text-decoration: none; }

.nav__cta { display: none; }        /* CTA do header aparece a partir do tablet */

/* Botão hambúrguer */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--color-cta-strong);          /* preenchido magenta, igual aos CTAs */
  border: 1px solid var(--color-cta-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.nav-toggle:hover { background: var(--color-cta-darker); border-color: var(--color-cta-darker); }
.nav-toggle svg { width: 24px; height: 24px; stroke: #fff; }   /* ícone branco */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu mobile (drawer) */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-overlay);
  background: var(--color-surface);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--color-heading);
  padding-block: var(--space-2);
}

/* ---------------------------------------------------------------------------
   7. Barra de confiança / logos
   --------------------------------------------------------------------------- */
.trustbar { padding-block: var(--space-6); border-block: 1px solid var(--color-border); background: var(--color-surface); }
.trustbar__label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.trustbar__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.trustbar__logos img { height: 32px; width: auto; opacity: 0.7; filter: grayscale(1); transition: opacity var(--transition); }
.trustbar__logos img:hover { opacity: 1; filter: grayscale(0); }

/* ---------------------------------------------------------------------------
   8. Grid de cards (benefícios / soluções)
   --------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.card__text { color: var(--color-text-muted); font-size: var(--fs-base); }

/* Logo de parceiro (seção de benefícios) - substitui o ícone */
.card__logo { min-height: 60px; display: flex; align-items: center; margin-bottom: var(--space-4); }
.brand-logo { width: auto; display: block; }
.brand-logo--tile { height: 52px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand-logo--wide { height: 30px; }

/* ---------------------------------------------------------------------------
   9. Planos / preços
   --------------------------------------------------------------------------- */
/* Planos: carrossel com swipe no mobile e setas no desktop (3 por vez) */
.carousel { position: relative; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px;
  display: none;                          /* mobile = swipe, sem setas */
  align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%; box-shadow: var(--shadow-md);
  color: var(--color-primary-dark); cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.carousel__btn:hover { background: var(--color-bg); border-color: var(--color-primary); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn--prev { left: -10px; }
.carousel__btn--next { right: -10px; }
.plans {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 12px 26px;                /* topo+laterais dão espaço p/ o anel e a elevação do card em destaque */
  scroll-padding-inline: 12px;            /* card em destaque nunca encosta na borda recortada do scroll */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.plans::-webkit-scrollbar { height: 8px; }
.plans::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 999px; }
.plans::-webkit-scrollbar-track { background: transparent; }

.plan {
  position: relative;
  flex: 0 0 270px;                        /* largura do card no carrossel mobile */
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.plan--featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #f4e9fb 0%, var(--color-surface) 60%);
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
}
/* hover: leve elevação + sombra (sinaliza interatividade; só em telas com mouse) */
@media (hover: hover) {
  .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
  .plan--featured:hover { transform: translateY(-10px); border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg); }
}

/* selo em fluxo: slot reservado no topo p/ alinhar todos os cards */
.plan__tag-slot { min-height: 28px; display: flex; align-items: flex-start; }
.plan__tag {
  display: inline-block;
  background: var(--color-primary-dark); color: #fff;
  font-size: var(--fs-xs); font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
}
.plan--featured .plan__tag { background: var(--color-cta-strong); }

/* card de plano no estilo Vivo: rótulo + velocidade em destaque */
.plan__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.plan__speed { font-family: var(--font-heading); color: var(--color-heading); line-height: 1; display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap; }
.plan__speed strong { font-size: var(--fs-3xl); font-weight: 700; }
.plan__speed-unit { font-size: var(--fs-lg); font-weight: 600; color: var(--color-text-muted); }

.plan__features { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-block: var(--space-2); }
.plan__features li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-text); }
.plan__features svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--color-primary); margin-top: 3px; }
.plan__bonus { color: var(--color-text); }   /* Wi-Fi 6 em preto padrão (sem destaque magenta) */

.plan__price { font-family: var(--font-heading); font-size: var(--fs-2xl); color: var(--color-heading); font-weight: 400; margin-top: auto; }
.plan__price strong { font-weight: 700; }
.plan__price small { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 400; }
.plan__price-old { display: block; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; color: var(--color-text-muted); text-decoration: line-through; }

.plan .btn { margin-top: var(--space-2); }
.plan__more { text-align: center; font-size: var(--fs-sm); }

/* Desktop: carrossel mostrando 3 planos por vez, com setas */
@media (min-width: 960px) {
  .plans { padding: 24px 56px 30px; }     /* gutter largo + topo p/ a elevação e o anel do card em destaque */
  .plan { flex-basis: calc((100% - 2 * var(--space-5)) / 3); }
  .plan--featured { transform: translateY(-6px); }     /* destaque elevado no desktop */
  .carousel__btn { display: inline-flex; }
  /* H1 da seção de planos em UMA linha no desktop */
  .section__head--left { max-width: none; }
  .section__head--left .section__title { white-space: nowrap; font-size: clamp(1.6rem, 1.05rem + 1.6vw, 2rem); }
}

/* ---------------------------------------------------------------------------
   9b. Conteúdo SEO/GEO/AEO (texto rico, tabela comparativa, guia, confiança)
   --------------------------------------------------------------------------- */
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose p { color: var(--color-text); font-size: var(--fs-base); line-height: var(--lh-body); }
.prose p + p { margin-top: var(--space-4); }
.prose strong { color: var(--color-heading); }

.trustbar { list-style: none; padding: 0; margin-top: var(--space-7); display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.trustbar li { display: flex; gap: var(--space-3); align-items: center; }
.trustbar svg { flex: 0 0 auto; width: 28px; height: 28px; color: var(--color-primary); }
.trustbar span { font-size: var(--fs-sm); color: var(--color-text-muted); }
.trustbar strong { display: block; color: var(--color-heading); font-size: var(--fs-base); font-family: var(--font-heading); }
@media (min-width: 760px) { .trustbar { grid-template-columns: repeat(4, 1fr); } }

.spectable { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.spectable caption { caption-side: bottom; margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--color-text-muted); text-align: left; }
.spectable th, .spectable td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); vertical-align: middle; }
.spectable thead th { background: var(--color-bg); font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; }
.spectable tbody th { font-family: var(--font-heading); font-weight: 700; color: var(--color-heading); white-space: nowrap; }
.spectable tbody tr:last-child th, .spectable tbody tr:last-child td { border-bottom: 0; }
.spectable tbody tr.is-featured { background: #f4e9fb; }
.spectable .price { font-family: var(--font-heading); font-weight: 700; color: var(--color-heading); white-space: nowrap; }
.spectable .yes { color: #1f8a4c; font-weight: 700; }
.spectable .muted { color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   10. Depoimentos / prova social
   --------------------------------------------------------------------------- */
.testimonials { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.testimonial__quote { font-size: var(--fs-lg); color: var(--color-text); margin-bottom: var(--space-5); }
.testimonial__author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--color-bg);
  flex: 0 0 auto;
}
.testimonial__name { font-family: var(--font-heading); font-weight: 600; color: var(--color-heading); }
.testimonial__role { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   12. FAQ (accordion nativo com <details>)
   --------------------------------------------------------------------------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; display: grid; gap: var(--space-3); }
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   13. CTA final
   --------------------------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final__box {
  /* início do gradiente escurecido (primary-dark) para o texto branco
     manter contraste ≥ 4,5:1 em toda a área (WCAG 1.4.3) */
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, #2d0b45 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 4vw, 4rem);
  box-shadow: var(--shadow-lg);
}
.cta-final__box h2 { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
.cta-final__box p { color: #fff; font-size: var(--fs-lg); max-width: 40rem; margin-inline: auto; margin-bottom: var(--space-6); }
.btn--on-dark { background: #fff; color: var(--color-primary-dark); }
.btn--on-dark:hover { background: var(--color-bg); }

/* ---------------------------------------------------------------------------
   14. Rodapé
   --------------------------------------------------------------------------- */
.footer {
  background: var(--color-footer-bg);
  color: rgba(236, 254, 255, 0.75);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}
.footer__brand { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg); color: #fff; margin-bottom: var(--space-3); }
.footer__col h3 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--space-3); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.footer__col a { color: rgba(236, 254, 255, 0.75); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: flex-start;
}

/* ---------------------------------------------------------------------------
   16. Animação de revelação ao rolar (progressive enhancement)
   --------------------------------------------------------------------------- */
/* Sem JS o conteúdo aparece normal. Só escondemos quando html.js existe
   (classe adicionada pelo main.js) - robustez para bots de anúncio e no-JS. */
.reveal { transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   16b. Placeholders de imagem (enquanto os assets não são enviados)
   Substitua estes blocos por <img>/<picture> reais quando subir as imagens.
   --------------------------------------------------------------------------- */
.ph-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(102,0,153,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e9dcf5, #f6eefc);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  padding: var(--space-4);
}
.ph-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 120px;
  padding-inline: var(--space-4);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.ph-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
   17. Breakpoints (mobile-first → tablet → desktop)
   --------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; }
}

@media (min-width: 768px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  /* blur do header só em telas grandes (custo de GPU aceitável aqui) */
  .header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(10px); }
}

/* ---------------------------------------------------------------------------
   18. Preferência de movimento reduzido (acessibilidade)
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
