/* ==========================================================================
   Prospera Educ — V3
   Base: tokens, reset, tipografia, componentes compartilhados, header, footer.
   Seções específicas ficam em sections.css. Abertura de marca em intro.css.
   ========================================================================== */

:root {
  /* Marca */
  --navy: #000C28;
  --navy-deep: #00081b;
  --navy-mid: #00113a;
  --navy-hover: #031a4d;
  --blue-deep: #00219B;
  --blue: #1746EA;
  --blue-light: #4576FF;
  --blue-pale: #7FA0FF;
  /* Só para texto sobre o azul-profundo, onde --blue-light não tem contraste. */
  --blue-mist: #BFD0FF;

  /* Neutros claros */
  --ink: #0d1526;
  --ink-soft: #465473;
  --ink-mute: #8f9cb8;
  --line: #DAE0EC;
  --surface: #F4F6FC;
  --white: #fff;

  /* Sobre fundo escuro */
  --on-dark-1: rgba(255,255,255,.92);
  --on-dark-2: rgba(255,255,255,.66);
  --on-dark-3: rgba(255,255,255,.45);
  --on-dark-4: rgba(255,255,255,.34);
  --hairline: rgba(255,255,255,.1);
  --hairline-strong: rgba(255,255,255,.16);

  /* Tipografia */
  --font-display: Sora, system-ui, sans-serif;
  --font-body: Manrope, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 980px;
  --radius: 18px;
  --radius-sm: 13px;
  --gutter: clamp(18px, 4vw, 28px);
  --section-y: clamp(76px, 12vw, 130px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------- Reset -- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 300;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------------------------------------------------------- Utilitários -- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--light { background: var(--surface); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--blue { background: var(--blue-deep); color: #fff; padding-block: clamp(72px, 11vw, 110px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.eyebrow--blue { color: var(--blue-light); }
.eyebrow--pale { color: var(--blue-pale); }
.eyebrow--mute { color: rgba(255,255,255,.4); }
.eyebrow--ink { color: var(--blue); }
.eyebrow--mute-ink { color: var(--ink-mute); }
.eyebrow--on-blue { color: rgba(255,255,255,.6); }
.eyebrow--footer { color: rgba(255,255,255,.35); }

.title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(34px, 5.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-top: 20px;
  max-width: 24ch;
  text-wrap: balance;
}
.title--ink { color: var(--ink); }
.title--mid { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.05; margin-top: 18px; max-width: none; }
.title--sm { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; margin-top: 18px; }
.title--faq { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; margin-bottom: 50px; }

.accent { color: var(--blue-light); font-weight: 300; }
.accent--deep { color: var(--blue-deep); }
.accent--pale { color: var(--blue-mist); }
.dim { color: rgba(255,255,255,.4); }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 60ch;
  margin-top: 30px;
}
.lead--ink { color: var(--ink-soft); max-width: 56ch; }
.lead--center { margin-inline: auto; text-align: center; max-width: 56ch; }

.mono-note { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.4); margin-top: 22px; }
.mono-note--ink { color: var(--ink-mute); margin-top: 0; }
.mono-note--center { text-align: center; }

.mono-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-top: 14px;
}
.mono-caption--pale { color: var(--blue-pale); }
.mono-caption--ink { color: var(--ink-mute); }

/* ------------------------------------------------------------- Botões -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 17px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 44px rgba(23,70,234,.45);
}
.btn--primary:hover { background: var(--blue-light); transform: translateY(-2px); }

/* Chamariz discreto: um brilho cruza o botão a cada ciclo e o halo pulsa de leve. */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: btn-halo 3.2s ease-in-out infinite;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.btn--primary:hover { animation-play-state: paused; }
@keyframes btn-halo {
  0%, 100% { box-shadow: 0 18px 44px rgba(23,70,234,.45); }
  50%      { box-shadow: 0 18px 54px rgba(69,118,255,.75); }
}
@keyframes btn-shine {
  0%, 55% { left: -60%; }
  100%    { left: 130%; }
}
.btn--ghost { border-color: rgba(255,255,255,.22); color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.btn--sm { font-size: 14px; padding: 11px 20px; box-shadow: 0 8px 24px rgba(23,70,234,.4); }
.btn--lg { font-size: 17px; padding: 19px 36px; box-shadow: 0 20px 50px rgba(23,70,234,.5); }
.btn--block { display: flex; justify-content: center; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn-row--center { justify-content: center; margin-top: 40px; }
.btn-row--center-left { align-items: center; gap: 22px; margin-top: 46px; }

/* ------------------------------------------------- WhatsApp flutuante -- */

.wpp-float {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: wpp-ring 2.4s ease-out infinite;
}
.wpp-float:hover { transform: translateY(-3px); animation-play-state: paused; box-shadow: 0 18px 44px rgba(37,211,102,.55); }
.wpp-float svg { width: 28px; height: 28px; flex: none; }
.wpp-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .35s var(--ease), opacity .25s var(--ease), margin .35s var(--ease);
}
.wpp-float:hover .wpp-float__label,
.wpp-float:focus-visible .wpp-float__label { max-width: 190px; opacity: 1; margin-left: 10px; }
@keyframes wpp-ring {
  0%   { box-shadow: 0 14px 36px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 14px 36px rgba(37,211,102,.4), 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 36px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.pill img { height: 16px; width: auto; }

/* --------------------------------------------------- Mock de navegador -- */

.browser {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.browser--glow {
  border-color: rgba(69,118,255,.5);
  box-shadow: 0 24px 70px rgba(23,70,234,.35);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid var(--hairline);
}
.browser__bar--sm { padding: 8px 11px; gap: 7px; border-bottom: none; }
.browser__url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--on-dark-3);
  margin-left: 8px;
}
.browser__bar:not(.browser__bar--sm) .browser__url { font-size: 11px; margin-left: 12px; color: rgba(255,255,255,.4); }

.dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.25); flex: none; }
.browser__bar--sm .dot { width: 7px; height: 7px; background: rgba(255,255,255,.28); }
.dot--live { background: var(--blue-light); }
.dot--grey { background: #a9b2c1; }

/* Recorte ampliado de uma área do painel. */
.zoomframe { overflow: hidden; background: #fff; }
.zoomframe--16x10 { aspect-ratio: 16 / 10; }
.zoomframe--4x3 { aspect-ratio: 4 / 3; }
.zoomframe img {
  width: 100%;
  height: auto;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--ox, 50%) var(--oy, 50%);
}

/* -------------------------------------------------------- Header / nav -- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0,12,40,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__bar {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo img { height: 26px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.62);
}
.site-nav a { transition: color .2s var(--ease); }
.site-nav a:hover { color: #fff; }

.burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu-mobile {
  border-top: 1px solid var(--hairline);
  padding: 18px var(--gutter) 26px;
  background: rgba(0,12,40,.98);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: grid; gap: 4px; font-size: 17px; font-weight: 500; }
.menu-mobile nav a { color: rgba(255,255,255,.8); padding: 12px 0; }
.menu-mobile .btn { margin-top: 16px; }

/* ------------------------------------------------------------- Footer -- */

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: clamp(52px, 9vw, 70px) 0 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr));
  gap: 44px;
}
.site-footer__brand img { height: 26px; width: auto; }
.site-footer__brand p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin-top: 20px;
  max-width: 34ch;
}
.site-footer__links { display: grid; gap: 2px; margin-top: 18px; font-size: 15px; }
.site-footer__links a { display: block; padding: 6px 0; color: rgba(255,255,255,.65); transition: color .2s var(--ease); }
.site-footer__links a:hover { color: #fff; }
.site-footer__links span { color: rgba(255,255,255,.5); }

.site-footer__bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-4);
}

/* -------------------------------------------------- Revelação ao scroll -- */

/* Só esconde quando o JS está ativo — sem JS o conteúdo aparece normalmente. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.js .reveal[data-reveal="scale"] {
  transform: perspective(1800px) rotateX(16deg) scale(.94);
  transform-origin: 50% 0%;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------- Responsividade -- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
}

@media (max-width: 560px) {
  .site-header__cta { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn--sm { width: auto; }
  .btn-row--center-left { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
