/* ==========================================================================
   Landing Page Modelo, main.css  (template white-label)
   Mobile-first · Performance-first · WCAG AA
   👉 Edite a MARCA no bloco :root abaixo (cores e fontes).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   0. Fontes self-hosted (subset latin) para LCP melhor que CDN.
   Lexend nos títulos: desenhada para legibilidade, ajuda um público amplo.
   Source Sans 3 no corpo: humanista, confortável em texto corrido.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Lexend";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/lexend-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lexend-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/sourcesans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/sourcesans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
   1. Design Tokens (custom properties)
   --------------------------------------------------------------------------- */
:root {
  /* ===================== EDITE A MARCA AQUI ===================== */
  /* Marca Deck Telecom. Contrastes verificados em fundo branco
     (WCAG AA = 4.5:1 p/ texto normal). */
  --color-primary: #0000fd;        /* azul oficial da marca, 8.7:1 em branco ✓AAA */
  --color-primary-dark: #0000c4;   /* hover / texto sobre claro, 11.7:1 ✓AAA */
  --color-secondary: #4a4aff;      /* detalhes, gradientes sutis */
  /* CTA em verde WhatsApp: todos os botões abrem o atendimento no WhatsApp,
     então a cor sinaliza o canal e contrasta com o azul da marca. */
  --color-cta: #0b7a3c;            /* acento de conversão */
  --color-cta-strong: #0b7a3c;     /* fundo do botão CTA (texto branco = 5.4:1 ✓AA) */
  --color-cta-darker: #096431;     /* hover do botão CTA */

  --color-bg: #f5f6ff;             /* fundo geral (claro, leve tom azul) */
  --color-bg-alt: #fafbff;         /* alternância de seções */
  --color-surface: #ffffff;        /* cards / superfícies */
  --color-heading: #171717;        /* títulos, preto exato do logo */
  --color-text: #3d4350;           /* corpo de texto */
  --color-text-muted: #5c6472;     /* texto secundário, 6.0:1 ✓AA */
  --color-border: #dcdefa;         /* bordas claras visíveis */
  --color-border-strong: #bcc0f0;
  --color-on-dark: #e6e8fb;        /* texto sobre fundo escuro, 15.8:1 ✓AAA */
  --color-footer-bg: #05062b;      /* rodapé escuro (navy da família do azul) */

  /* Tipografia self-hosted (ver @font-face na seção 0), com fallback de sistema. */
  --font-heading: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, 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(0, 0, 100, 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%, #e4e6ff 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(0, 0, 253, 0.5); }
  70%      { box-shadow: var(--shadow-md), 0 0 0 10px rgba(0, 0, 253, 0); }
}

.btn--primary {
  background-color: var(--color-primary-dark);
  color: #fff;
}
.btn--primary:hover { background-color: #000094; }

.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(0,0,253,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; }
/* logo do header: lockup Deck Telecom (418x158 ~ 2.65:1), escala responsiva.
   Lockup de 3 linhas, precisa de mais altura que um lockup horizontal fino. */
.header__logo img { display: block; height: 30px; width: auto; }
@media (min-width: 480px) { .header__logo img { height: 34px; } }
@media (min-width: 768px) { .header__logo img { height: 40px; } }

.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) */
/* ===========================================================================
   PLANOS, grade de 3 colunas (sem carrossel no desktop: os 3 cards cabem,
   e setas que não levam a lugar nenhum são ruído).
   Ordem da informação: nome > preço > CTA > diferencial (apps) > comuns.
   O preço vem antes do CTA porque é o que decide a compra.
   =========================================================================== */
.plans {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 720px)  { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  display: grid;
  /* linhas nomeadas mantêm o mesmo ritmo vertical nos 3 cards */
  grid-template-rows: auto auto auto auto auto 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5) var(--space-5);
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.plan--featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
}
@media (hover: hover) {
  .plan:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
  .plan--featured:hover { box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg); }
}

/* selo: flutua na borda superior, não empurra o conteúdo */
.plan__tag {
  position: absolute; top: 0; left: var(--space-5); transform: translateY(-50%);
  background: var(--color-primary-dark); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  padding: .3rem .85rem; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan--featured .plan__tag { background: #b45309; }

.plan__head { display: grid; gap: .15rem; }
.plan__package {
  font-family: var(--font-heading); font-size: var(--fs-xl);
  font-weight: 700; color: var(--color-heading); line-height: 1.1;
}
.plan__speed { font-size: var(--fs-sm); color: var(--color-primary); font-weight: 600; }

/* --- preço: o elemento dominante do card --- */
.plan__price { display: grid; gap: .1rem; }
.plan__price-old {
  font-size: var(--fs-sm); color: var(--color-text-muted);
  text-decoration: line-through; min-height: 1.4em;
}
/* sem preço "de": reserva a altura mas não desenha o risco */
.plan__price-old:empty { text-decoration: none; }
.nowrap { white-space: nowrap; }
.plan__price-now {
  display: flex; align-items: baseline; gap: .18rem;
  font-family: var(--font-heading); color: var(--color-heading); line-height: 1;
}
.plan__price-now span { font-size: var(--fs-lg); font-weight: 600; }
.plan__price-now strong { font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.plan__price-now small { font-size: var(--fs-base); color: var(--color-text-muted); font-weight: 500; }
.plan__price-cond { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* altura reservada (3 linhas) para que botão e apps alinhem nos 3 cards */
.plan__note { font-size: var(--fs-xs); color: var(--color-text-muted); line-height: var(--lh-snug); min-height: calc(3 * 1.3em); }

/* --- apps: o que realmente diferencia os pacotes --- */
.plan__apps {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-4);
  display: grid; gap: var(--space-2);
}
.plan__apps-title {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.plan__apps-main {
  font-family: var(--font-heading); font-size: var(--fs-lg);
  font-weight: 700; color: var(--color-primary); line-height: var(--lh-snug);
  min-height: calc(2 * 1.3em);   /* 2 linhas: alinha a lista de chips entre os cards */
}
/* 2 linhas reservadas: os pacotes têm quantidades diferentes de chips */
.plan__apps-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-content: start; min-height: 3.4em; }
.plan__apps-chips li {
  font-size: var(--fs-xs); font-weight: 600; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill); padding: .18rem .6rem;
}

/* --- itens comuns a todos os planos --- */
.plan__features { list-style: none; padding: 0; display: grid; gap: var(--space-2); align-content: start; }
.plan__features li { display: flex; gap: .55rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--color-text); }
.plan__features svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--color-primary); margin-top: 4px; }
.plan__features .is-extra strong { color: var(--color-heading); }

.plan .btn { min-height: 48px; }
.plan__more { text-align: center; font-size: var(--fs-sm); }

/* Cabeçalho da seção de planos: centralizado, já que é o topo da página */
.section__head--left { max-width: 720px; margin-inline: auto; text-align: center; }
.section__head--left .section__title { font-size: var(--fs-3xl); }
@media (min-width: 1040px) {
  /* o card em destaque ganha um leve avanço vertical, sem quebrar o alinhamento */
  .plan--featured { margin-block: -8px; padding-block: calc(var(--space-6) + 8px) calc(var(--space-5) + 8px); }
}

/* ---------------------------------------------------------------------------
   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%, #030428 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(230, 232, 251, 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(230, 232, 251, 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(0,0,253,0.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #dde0ff, #f1f2ff);
  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; }
}

/* Logo em texto (temável pela cor da marca) */
.brandmark { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-xl); color: var(--color-primary); letter-spacing: -0.02em; line-height: 1; }


/* ===========================================================================
   REDESIGN Deck Telecom, hero, prova social, cobertura e CTA fixo no mobile.
   Padrão: Hero + prova social antes do preço (aumenta conversão), estilo
   "Social Proof-Focused". Alvos de toque mínimos de 44px.
   =========================================================================== */

/* --- COBERTURA ----------------------------------------------------------- */
.coverage__list {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap;
  gap: var(--space-3); justify-content: center; margin-bottom: var(--space-6);
}
.coverage__list li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill); padding: .6rem 1.1rem;
  font-weight: 600; color: var(--color-heading);
}
.coverage__list svg { width: 16px; height: 16px; color: var(--color-primary); flex: 0 0 auto; }

/* --- ALVOS DE TOQUE (mín. 44px) ------------------------------------------ */
.nav__link, .mobile-menu a, .footer__col a, .footer__bottom a, .plan__more a {
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer__col li { display: flex; }

@media (prefers-reduced-motion: reduce) {
}

/* logo do header: alvo de toque mínimo de 44px sem aumentar a imagem */
.header__logo { min-height: 44px; }
