@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

/* ============================================================================
   CARTEIRINHA DE ESTUDANTE — Grupo Bolsa Mais Brasil
   Camada de marca compartilhada por todas as seções e páginas.

   Paleta lida diretamente dos protótipos aprovados pelo cliente:
   azul-marinho profundo + azul vivo + verde da marca + dourado no valor.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Azul — cor primária da marca */
  --navy-900: #04123B;   /* fundo das seções-âncora (protótipos 03 e 07)     */
  --navy-800: #071C4D;
  --navy-700: #0C2A6B;
  --navy-600: #123A9E;   /* títulos sobre fundo claro                        */
  --blue-600: #0B45D6;   /* azul vivo: palavras em destaque, links, ícones   */
  --blue-500: #2563EB;
  --blue-300: #6A9FFC;
  --blue-100: #DCE7FB;
  --blue-050: #EEF3FD;

  /* Verde — segunda cor da marca (o "e+" do logotipo) */
  --green-700: #0A7A33;
  --green-600: #12A03C;  /* CTA verde do protótipo 02                        */
  --green-500: #21B54A;
  --lime-500:  #7DC242;  /* lima do logotipo, micro-detalhes                 */
  --green-050: #E9F7EC;

  /* Dourado — exclusivo de valor (preço) e selo oficial */
  --gold-600: #D99A17;
  --gold-500: #F5B334;
  --gold-400: #FFC94D;
  --gold-050: #FFF6E2;

  /* Laranja — só no manuscrito de destaque ("é muito fácil!") */
  --orange-500: #F97C02;

  /* Superfícies e texto */
  --ice:   #F4F7FC;      /* fundo claro padrão                               */
  --ice-2: #E9EFF9;
  --white: #FFFFFF;
  --ink:   #0B1B3A;      /* texto principal — nunca preto puro               */
  --slate: #56637E;      /* texto secundário                                 */
  --slate-300: #93A0BA;  /* terciário / placeholder                          */

  --line: #DCE3F0;                       /* borda sobre claro */
  --line-dark: rgba(255,255,255,0.16);   /* borda sobre escuro */
  --on-dark: #EAF0FF;
  --on-dark-dim: #A9B8DC;

  --danger: #C5462F;
  --focus-ring: rgba(11,69,214,0.45);

  /* Raios — cantos generosos ("suavizada", pedido do cliente) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(4,18,59,0.06);
  --sh-sm: 0 3px 10px rgba(4,18,59,0.07);
  --sh-md: 0 10px 28px rgba(4,18,59,0.10);
  --sh-lg: 0 22px 54px rgba(4,18,59,0.16);
  --sh-xl: 0 32px 72px rgba(4,18,59,0.28);
  --sh-on-dark: 0 20px 48px rgba(0,0,0,0.42);
  --glow-blue: 0 0 0 1px rgba(106,159,252,0.35), 0 0 34px rgba(37,99,235,0.28);

  /* Tipografia */
  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", ui-rounded, cursive;

  /* Layout */
  --container: 1200px;
  --pad-x: 32px;
}

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

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

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.02em; }
p  { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }

/* Compensa o cabeçalho fixo da seção 01 (124px no desktop, 110px no mobile). */
[id] { scroll-margin-top: 136px; }
@media (max-width: 620px) { [id] { scroll-margin-top: 122px; } }

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

/* --------------------------------------------------------------- layout -- */
.cw { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.cw--wide { max-width: 1320px; }
.cw--narrow { max-width: 860px; }

.sec { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.sec--ice { background: var(--ice); }
.sec--white { background: var(--white); }
.sec--navy { background: var(--navy-900); color: var(--on-dark); }
.sec--tight { padding-block: clamp(40px, 5vw, 68px); }

/* ---------------------------------------------------------- tipografia -- */
.h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; }
.h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.h3 { font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; }
.h4 { font-weight: 700; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.3; }

.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.62; color: var(--slate); }
.sec--navy .lead { color: var(--on-dark-dim); }

.t-blue  { color: var(--blue-600); }
.t-navy  { color: var(--navy-600); }
.t-green { color: var(--green-600); }
.t-gold  { color: var(--gold-500); }
.t-white { color: #fff; }

.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--orange-500);
  letter-spacing: 0;
  line-height: .95;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- pills -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.sec--navy .eyebrow { color: var(--gold-500); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  line-height: 1.2; white-space: nowrap;
}
.pill--navy  { background: var(--navy-900); color: #fff; }
.pill--blue  { background: var(--blue-050); color: var(--navy-600); border: 1px solid var(--blue-100); }
.pill--gold  { background: var(--gold-500); color: var(--navy-900); }
.pill--ghost { background: rgba(255,255,255,.08); color: var(--on-dark); border: 1px solid var(--line-dark); }
.pill--green { background: var(--green-050); color: var(--green-700); border: 1px solid #C6EBCF; }

/* -------------------------------------------------------------- botões -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  padding: 15px 30px; font-size: 16px; line-height: 1.15;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--green { background: linear-gradient(180deg, var(--green-500), var(--green-600)); color: #fff; box-shadow: 0 12px 26px rgba(18,160,60,.30); }
.btn--green:hover { box-shadow: 0 18px 34px rgba(18,160,60,.40); }

.btn--blue { background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); color: #fff; box-shadow: 0 12px 26px rgba(11,69,214,.30); }
.btn--blue:hover { box-shadow: 0 18px 34px rgba(11,69,214,.40); }

.btn--gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: 0 12px 26px rgba(217,154,23,.32); }
.btn--gold:hover { box-shadow: 0 18px 34px rgba(217,154,23,.42); }

.btn--outline { background: transparent; color: var(--navy-600); box-shadow: inset 0 0 0 2px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 2px var(--blue-500); }

.btn--lg  { padding: 18px 38px; font-size: 18px; }
.btn--sm  { padding: 11px 22px; font-size: 14px; }
.btn--full { width: 100%; }

/* Seta circular usada nos CTAs dos protótipos */
.btn__arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn--gold .btn__arrow { background: rgba(4,18,59,.16); }

/* --------------------------------------------------------------- cards -- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--sh-sm);
}
.card--glass {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark);
  box-shadow: none; color: var(--on-dark);
}
/* Card com contorno azul luminoso — protótipos 03 e 07 */
.card--glow {
  background: linear-gradient(180deg, rgba(18,58,158,.28), rgba(7,28,77,.5));
  border: 1px solid rgba(106,159,252,.45);
  box-shadow: var(--glow-blue);
  color: var(--on-dark);
}

/* Fita diagonal "RECOMENDADA" */
.ribbon {
  position: absolute; top: 0; right: 0; overflow: hidden;
  width: 132px; height: 132px; pointer-events: none;
  border-top-right-radius: var(--r-lg);
}
.ribbon span {
  position: absolute; top: 26px; right: -34px;
  transform: rotate(45deg);
  display: block; width: 180px; text-align: center;
  background: #D8332A; color: #fff;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: .1em; padding: 6px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* --------------------------------------------------------------- ícones -- */
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 50%;
  width: 52px; height: 52px;
}
.ic--blue  { background: var(--blue-050); color: var(--blue-600); }
.ic--navy  { background: var(--navy-900); color: #fff; }
.ic--gold  { background: var(--gold-050); color: var(--gold-600); }
.ic--green { background: var(--green-050); color: var(--green-600); }
.ic--outline { background: transparent; color: var(--blue-300); box-shadow: inset 0 0 0 1.5px currentColor; }
.ic--sm { width: 40px; height: 40px; }
.ic--lg { width: 66px; height: 66px; }

/* -------------------------------------------------------- lista de check -- */
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.checks li > svg { flex-shrink: 0; margin-top: 3px; }

/* --------------------------------------------------------------- utils -- */
.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.wrapf   { flex-wrap: wrap; }
.grid    { display: grid; }
.divider { height: 1px; background: var(--line); border: 0; }
.sec--navy .divider { background: var(--line-dark); }
.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;
}

/* ------------------------------------------------------- mobile básico -- */
@media (max-width: 900px) {
  :root { --pad-x: 20px; }
}

/* --------------------------------------------- link de pular navegação -- */
.pular-para-conteudo {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  text-decoration: none;
  transition: top .16s ease;
}
.pular-para-conteudo:focus { top: 12px; }

/* Telefone: nunca quebra no meio do número */
.tel { color: inherit; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel:hover { text-decoration: underline; }
