/* ══════════════════════════════════════════════════════════════════════════
   FLOW CAPTION — design system compartilhado (obrigado / privacidade / termos)
   Espelha os tokens e componentes de base de public/index.html — qualquer
   mudança de cor/fonte lá também deve vir pra cá. index.html não importa
   este arquivo (CSS inline, por decisão da rodada 4); os dois são mantidos
   em sincronia manualmente até uma unificação futura.
   ══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── BRAND (mantidas por identidade) ── */
  --blue-deep:   #0000ba;
  --blue:        #2b4dff;
  --yellow:      #ffe600;
  --purple:      #7c5cfc;

  /* ── SURFACES — quase-preto neutro, não azul-escuro ── */
  --ink:         #06070c;
  --ink-2:       #0b0d16;
  --panel:       #10131f;
  --panel-hi:    #161a29;
  --line:        rgba(140,155,220,.12);
  --line-hi:     rgba(140,155,220,.26);

  /* ── TYPE ── */
  --text:        #eef0f8;
  --muted:       #9096b8;
  --muted2:      #b8bdda;

  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; background: var(--ink); min-height: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh; min-height: 100dvh;
  font-size: 16px; line-height: 1.5;
}

/* atmosfera: glow azul da marca sutil no topo, grão fino no resto */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(0,0,186,.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 8%, rgba(43,77,255,.14) 0%, transparent 55%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }

/* ── TIMECODE / MONO LABEL ── */
.tc {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--yellow);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.tc::before { content: ''; width: 18px; height: 1px; background: var(--yellow); opacity: .6; }

/* ── TYPE SCALE ── */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.h-display { font-size: clamp(38px, 5.2vw, 68px); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.h-section { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.12; margin-bottom: 16px; }
.h-card    { font-size: 19px; font-weight: 700; font-family: var(--body); margin-bottom: 6px; }
.p-lead    { font-size: clamp(15px, 1.6vw, 17px); color: var(--muted2); line-height: 1.65; }
.p-body    { font-size: 14.5px; color: var(--muted2); line-height: 1.65; }

/* ── LAYOUT ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sec { position: relative; z-index: 1; padding: 88px 0; }
.sec-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin: 0 0 44px; text-align: left; }
@media (max-width: 900px) { .sec { padding: 64px 0; } }

/* ── ICON SPRITE ── */
.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-size: 14px; font-weight: 700;
  padding: 13px 24px; border-radius: 9px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-pri { background: var(--yellow); color: #0a0a05; box-shadow: 0 0 0 1px rgba(255,230,0,.15), 0 8px 26px rgba(255,230,0,.16); }
.btn-pri:hover { box-shadow: 0 0 0 1px rgba(255,230,0,.3), 0 10px 34px rgba(255,230,0,.28); }
.btn-outline { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-hi); }
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn .ic { font-size: 15px; }

/* ── HEADER / LOGO (páginas internas usam um cabeçalho mais enxuto que a
   home, mas a logo e o seletor de idioma seguem o mesmo padrão visual) ── */
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 22px; width: auto; }
.logo .logo-stacked { display: none; height: 34px; }
@media (max-width: 640px) { .logo .logo-full { display: none; } .logo .logo-stacked { display: block; } }

.lang-wrap { display: flex; align-items: center; gap: 6px; }
.lang-switcher { display: flex; gap: 3px; }
.lang-btn {
  background: none; border: 1px solid var(--line-hi); color: var(--muted);
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 5px; cursor: pointer;
}
.lang-btn.active { border-color: var(--yellow); color: var(--text); background: rgba(255,230,0,.1); }
.lang-btn:hover:not(.active) { border-color: rgba(255,255,255,.4); color: var(--muted2); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line); padding: 30px 28px; text-align: center; color: var(--muted); font-size: 12px; line-height: 2; position: relative; z-index: 1; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--muted2); }

/* ── WHATSAPP FAB ── */
.wa-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #2bd968 0%, #22c35e 55%, #1ba94f 100%);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  max-width: 58px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.14) inset,
    0 0 26px rgba(37,211,102,.42),
    0 0 0 6px rgba(37,211,102,.10);
  transition: max-width .42s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.wa-fab:hover { max-width: 260px; }
.wa-fab-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}
.wa-fab-icon svg { width: 30px; height: 30px; display: block; }
.wa-fab-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  white-space: nowrap;
  padding-right: 22px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .28s ease .06s, transform .28s ease .06s;
}
.wa-fab:hover .wa-fab-label { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: box-shadow .2s; } }
@media (max-width: 640px) {
  .wa-fab {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    height: 54px; max-width: 54px;
  }
  .wa-fab-icon { flex-basis: 54px; width: 54px; height: 54px; }
  .wa-fab-label { display: none; }
}
