/* ==========================================================================
   SIDESC · Base do design system para landing pages
   Tokens espelhados do design system (Figma SIDESC-LANDPAGES › Design System)
   e do protótipo Astro do site (src/styles/tokens.css).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fontes · Articulat CF (Normal 400 · Medium 500 · Demi Bold 600 · Bold 700)
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Articulat CF'; src: url('../fonts/articulat-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('../fonts/articulat-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('../fonts/articulat-demibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Articulat CF'; src: url('../fonts/articulat-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores (coleção Cores do DS) */
  --azul-sidesc: #002cdc;     /* fundo/marca */
  --azul-profundo: #001a8c;   /* fundo/marca-hover */
  --azul-cuidado: #00aaff;    /* fundo/cuidado-forte */
  --cuidado-tinta: #d9f0ff;   /* fundo/cuidado */
  --amarelo: #ffbe00;         /* fundo/destaque */
  --amarelo-claro: #ffe9a8;   /* fundo/destaque-claro */
  --branco: #f5f3ee;          /* fundo/pagina */
  --superficie: #fbfaf7;      /* fundo/superficie */
  --superficie-2: #ebe8df;    /* fundo/superficie-2 */
  --tinta: #0c1438;           /* fundo/tinta · texto */
  --tinta-suave: #3d4466;     /* texto/apoio */
  --linha: rgb(12 20 56 / 0.14);
  --linha-forte: rgb(12 20 56 / 0.28);
  --linha-inversa: rgb(245 243 238 / 0.22);

  /* Tipografia (escala em 1440 → fluida) */
  --fonte: 'Articulat CF', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-display: clamp(2.625rem, 1.6rem + 3.2vw, 4.25rem);   /* H1 68 */
  --t-h2: clamp(2.125rem, 1.4rem + 2.5vw, 3.5rem);          /* H2 56 */
  --t-h3: 1.375rem;                                          /* 22 */
  --t-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);   /* 23 */
  --t-corpo-g: 1.125rem;                                     /* 18 */
  --t-corpo: 1.0625rem;                                      /* 17 */
  --t-pequeno: 0.875rem;                                     /* 14 */
  --t-preco: clamp(2.5rem, 2rem + 1.5vw, 3.25rem);          /* 52 */
  --t-selo: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);         /* 40 */
  --entrelinha-display: 1.02;
  --entrelinha-titulo: 1.08;
  --entrelinha-corpo: 1.6;
  --tracking-display: -0.035em;
  --tracking-titulo: -0.025em;

  /* Espaço */
  --e-1: 0.25rem; --e-2: 0.5rem; --e-3: 0.75rem; --e-4: 1rem;
  --e-5: 1.5rem; --e-6: 2rem; --e-7: 3rem; --e-8: 4rem;
  --secao: clamp(4.5rem, 3rem + 7vw, 9.5rem);        /* 152 */
  --secao-curta: clamp(3rem, 2rem + 4vw, 6rem);      /* 96 */

  /* Contêiner */
  --container: 1240px;        /* conteúdo das seções (1440 − 2×100) */
  --container-largo: 1320px;  /* header e footer (1440 − 2×60) */
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 3.75rem);
  --colunas-gap: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* Raio e sombra */
  --raio-ui: 10px;
  --raio-midia: 20px;
  --raio-painel: 28px;
  --raio-pilula: 999px;
  --sombra-header: 0 1px 0 var(--linha);
  --sombra-flutuante: 0 1px 2px rgb(12 20 56 / 0.06), 0 12px 32px -8px rgb(12 20 56 / 0.16);
  --sombra-card: 0 1px 2px rgb(12 20 56 / 0.04), 0 24px 48px -24px rgb(12 20 56 / 0.18);

  /* Movimento */
  --ease-saida: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-rapida: 180ms;
  --dur-media: 420ms;

  /* Camadas */
  --z-header: 50;
  --z-menu: 60;
  --z-skip: 70;

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: var(--t-corpo);
  font-weight: 400;
  line-height: var(--entrelinha-corpo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }

ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }

a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

h1, h2 {
  font-weight: 600;
  color: var(--azul-sidesc);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-display);
  line-height: var(--entrelinha-display);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--t-h2);
  line-height: var(--entrelinha-titulo);
  letter-spacing: var(--tracking-titulo);
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--tinta);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--tinta-suave);
}

.tom-amarelo { color: var(--amarelo); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--largo {
  max-width: calc(var(--container-largo) + var(--gutter) * 2);
}

/* Seções em azul SIDESC */
.inversa {
  background: var(--azul-sidesc);
  color: var(--branco);
}

.inversa h1, .inversa h2 { color: var(--branco); }
.inversa .lead { color: var(--branco); }

/* Cabeçalho centralizado de seção */
.secao__cabeca {
  display: grid;
  justify-items: center;
  gap: var(--e-4);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Botões (Ação/Botão) e links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--azul-sidesc);
  --btn-fg: var(--branco);
  --btn-bg-hover: var(--azul-profundo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: var(--raio-ui);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-rapida) var(--ease-saida),
    transform var(--dur-rapida) var(--ease-saida),
    box-shadow var(--dur-media) var(--ease-saida);
}

.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }

.btn--g { font-size: 1.25rem; }                 /* 20 px: hero, faixa e produto */

.btn--amarelo {
  --btn-bg: var(--amarelo);
  --btn-fg: var(--tinta);
  --btn-bg-hover: #ffcb33;
}

.btn--azul {
  --btn-bg: var(--azul-sidesc);
  --btn-fg: var(--branco);
  --btn-bg-hover: var(--azul-profundo);
}

.btn--cuidado {
  --btn-bg: var(--azul-cuidado);
  --btn-fg: #ffffff;
  --btn-bg-hover: #0090da;
}

.btn__seta {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  transition: transform var(--dur-media) var(--ease-saida);
}

.btn:hover .btn__seta,
.link-g:hover .btn__seta { transform: translateX(3px); }

/* Ação/Link com seta (UI/Link G · 19 Demi Bold) */
.link-g {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding-block: 0.375rem;
  color: var(--azul-sidesc);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-decoration: none;
}

.link-g:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

/* Elemento/Check */
.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1875rem;
  border-radius: 6px;
  background: var(--amarelo);
  color: var(--azul-sidesc);
}

.check svg { width: 12px; height: 12px; }

/* Acessibilidade */
:focus-visible {
  outline: 3px solid var(--azul-cuidado);
  outline-offset: 3px;
  border-radius: 2px;
}

.inversa :focus-visible { outline-color: var(--amarelo); }

.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;
}

.pular {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  background: var(--azul-sidesc);
  color: var(--branco);
  border-radius: var(--raio-ui);
  transform: translateY(-200%);
}

.pular:focus { transform: none; }

::selection { background: var(--amarelo); color: var(--azul-sidesc); }

/* --------------------------------------------------------------------------
   Header: mesma estrutura, medidas e links do sidesc.com.br
   (barra 72px, miolo 1440 com 48px de margem, menu suspenso no celular)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--branco);
}

.header__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1440px;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: 18px;
}

.header__logo { flex: none; display: block; line-height: 0; border-radius: 2px; }
.header__logo img { width: 120px; height: auto; }

.header__direita {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.header__nav { display: none; }
.header__nav ul { display: flex; }

.header__nav a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 13px 12px;
  color: var(--tinta);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-rapida);
}

.header__nav a:hover { color: var(--azul-sidesc); }

.icone-usuario { width: 17px; height: 17px; fill: currentColor; flex: none; }

.header__fone {
  display: none;
  color: var(--tinta-suave);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-rapida);
}

.header__fone:hover { color: var(--azul-sidesc); }

.header__whats {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: #1fb855;
  border-radius: 8px;
}

.header__whats svg { width: 32px; height: 32px; fill: currentColor; }

.header__cta {
  display: none;
  min-height: 48px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  white-space: nowrap;
}

.header__cta .btn__seta { width: 1.125rem; height: 1.125rem; }

.header__menu-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgb(0 0 0 / 0.05);
  color: var(--tinta);
  cursor: pointer;
}

.header__menu-btn svg { width: 22px; height: 22px; fill: currentColor; }
.header__menu-btn .header__icone-fechar { display: none; }
.header__menu-btn[aria-expanded='true'] .header__icone-abrir { display: none; }
.header__menu-btn[aria-expanded='true'] .header__icone-fechar { display: block; }

/* Menu móvel: lista suspensa sob a barra, como no site */
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--z-menu);
  background: var(--superficie);
  box-shadow: 0 1px 2px rgb(12 20 56 / 0.06), 0 12px 32px -8px rgb(12 20 56 / 0.16);
}

.menu__lista a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--tinta);
  text-decoration: none;
}

.menu__lista a:hover { color: var(--azul-sidesc); }

.menu__cta {
  display: flex;
  margin: 8px 20px 20px;
  min-height: 48px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .header__fone { display: inline-block; }
}

@media (min-width: 768px) {
  .header__barra { padding-inline: 48px; }
  .header__logo img { width: 135px; }
  .header__direita { gap: 1.25rem; }
  .header__fone { display: inline-block; font-size: 15px; }
  .header__cta { display: inline-flex; }
  .menu__cta { display: none; }
}

@media (min-width: 1100px) {
  .header__nav { display: block; }
  .header__fone { display: none; }
  .header__menu-btn, .menu { display: none !important; }
}

@media (min-width: 1280px) {
  .header__direita { gap: 2rem; }
  .header__nav a { padding: 13px 20px; }
  .header__fone { display: inline-block; }
}

/* --------------------------------------------------------------------------
   07 Dúvidas frequentes
   -------------------------------------------------------------------------- */
.faq { padding-block: clamp(4rem, 2.5rem + 5vw, 7.25rem); }

.faq__conteudo {
  display: grid;
  gap: var(--e-6);
  justify-items: center;
}

.faq h2 { text-align: center; }

.faq__lista {
  width: min(100%, 820px);
  display: grid;
  gap: var(--e-2);
}

.faq__item { border-radius: var(--raio-ui); }

.faq__item summary {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  padding-block: 0.875rem;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary h3 {
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--tinta);
  transition: color var(--dur-rapida);
}

.faq__item summary:hover h3,
.faq__item[open] summary h3 { color: var(--azul-sidesc); }

.faq__icone {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: var(--raio-ui);
  background: var(--superficie);
  box-shadow: inset 0 0 0 1px var(--linha-forte);
  transition: background-color var(--dur-media) var(--ease-saida), box-shadow var(--dur-media) var(--ease-saida);
}

.faq__icone::before,
.faq__icone::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--azul-sidesc);
  transition: transform var(--dur-media) var(--ease-saida);
}

.faq__icone::after { transform: rotate(90deg); }

.faq__item[open] .faq__icone { background: var(--amarelo); box-shadow: none; }
.faq__item[open] .faq__icone::after { transform: rotate(0deg); }

.faq__corpo { overflow: hidden; }

.faq__resposta {
  display: grid;
  gap: var(--e-4);
  max-width: 62ch;
  padding: 0.125rem 0 1.5rem calc(36px + var(--e-4));
  color: var(--tinta-suave);
}

/* --------------------------------------------------------------------------
   Footer: mesma estrutura, medidas e links do sidesc.com.br
   -------------------------------------------------------------------------- */
.rodape {
  padding: 5.6rem 0 2rem;
}

.rodape__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 40px 20px 24px;
}

.rodape__grid {
  display: grid;
  gap: 1.25rem;
}

.rodape__logo { display: inline-block; line-height: 0; border-radius: 2px; }
.rodape__logo img { width: 132px; height: auto; }

.rodape__nav ul { display: grid; gap: 36px; }
.rodape__nav li { line-height: 20px; }

.rodape a { color: var(--branco); text-decoration: none; }

.rodape a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amarelo);
  text-underline-offset: 0.25em;
}

.rodape__nav a {
  display: inline-block;
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
}

.rodape__contato {
  display: grid;
  gap: 20px;
  align-content: start;
  justify-items: start;
}

.rodape__rotulo {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #9ea6ce;
}

.rodape__valor {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rodape__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rodape__app {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgb(245 243 238 / 0.22);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  transition: border-color var(--dur-rapida);
}

.rodape__app:hover { text-decoration: none; border-color: rgb(245 243 238 / 0.6); }
.rodape__app svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.rodape__app small { display: block; font-size: 11px; font-weight: 400; opacity: 0.72; }

.rodape__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgb(245 243 238 / 0.22);
  font-size: 14px;
  line-height: 1.9;
  color: rgb(245 243 238 / 0.72);
}

.rodape__credito a { font-weight: 600; }

@media (min-width: 768px) {
  .rodape__inner { padding-inline: 48px; }
  .rodape__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
  .rodape__marca { grid-column: 1 / -1; }
  .rodape__logo img { width: 173px; }
}

@media (min-width: 1024px) {
  .rodape__grid { grid-template-columns: minmax(0, 1fr) 288px 288px; }
  .rodape__marca { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   Movimento: estado inicial só quando o JS e o GSAP estão ativos
   (classe .js-motion no <html>). Sem JS ou com movimento reduzido, tudo visível.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-hero-item],
  .js-motion [data-revela],
  .js-motion [data-revela-grupo] > *,
  .js-motion [data-revela-faixa],
  .js-motion [data-revela-planos] > * {
    visibility: hidden;
  }
}
