/* Public-facing refinement. Keep existing exam and contact flows intact. */
:root { --ivory: #fff; }
.button { font-size: .875rem; letter-spacing: 0; }
.button-primary { background: var(--navy-800); box-shadow: none; }
.button-primary:hover { background: var(--blue-700); box-shadow: none; }
.button-dark-outline { background: transparent; }
.utility-bar { background: #112442; }
.utility-inner { min-height: 36px; }
.utility-links { gap: 22px; }
.site-header { background: #fff; backdrop-filter: none; border-bottom-color: #e5e9ef; }
.header-inner { min-height: 96px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; width: auto; }
.brand img { width: 64px; height: 64px; }
.brand-name { display: grid; gap: 3px; }
.brand-name strong { font-family: var(--display); font-size: 1.125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.brand-name small { color: var(--slate); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { gap: 22px; }
.site-nav a { font-size: .875rem; letter-spacing: 0; font-weight: 700; text-transform: none; }
.header-login { min-height: 44px; padding-inline: 15px; border-color: #cbd4e0; }
.hero { min-height: 0; background: #122643; }
.hero::before, .hero::after, .access-stage::before, .access-stage::after, .access-card::before { content: none; }
.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: clamp(36px, 5vw, 78px); padding-block: 64px; }
.hero-copy { animation: none; }
.hero .eyebrow { max-width: 100%; margin-bottom: 26px; color: #c7d6e9; font-size: .75rem; line-height: 1.7; letter-spacing: .13em; }
.hero h1 { margin-bottom: 26px; font-size: clamp(2.8rem, 4.8vw, 4.2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.06; text-wrap: initial; }
.hero h1 em { margin-top: 5px; font-weight: 400; color: #b9cfe9; }
.hero-lead { max-width: 480px; margin-bottom: 30px; font-size: 1.125rem; color: #d1dbe8; line-height: 1.65; }
.hero-actions { gap: 10px 18px; }
.hero .hero-actions .button-primary { min-height: 52px; box-shadow: none; }
.hero .button-ghost { padding-inline: 0; font-size: .875rem; }
.hero-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 46px; padding-top: 24px; border-top: 1px solid #34455f; }
.hero-modality { font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.hero-modality span { color: #99b4d7; font-weight: 400; }
.hero-signature p { margin: 0; font-size: .875rem; line-height: 1.5; }
.hero-signature p > span { color: #b7c6d9; font-size: .8125rem; }
.hero-signature a { flex: 1 0 155px; color: #c8d8ec; font-size: .875rem; text-align: right; }
.hero-signature a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.access-stage { overflow: visible; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; isolation: auto; backdrop-filter: none; animation: none; }
.access-card { padding: 32px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px #0002; }
.access-heading { align-items: center; margin-bottom: 25px; }
.access-kicker { font-size: .75rem; color: #526a8b; letter-spacing: .09em; }
.access-heading h2 { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.secure-mark { width: 46px; height: 46px; background: #f1f5fa; border: 0; border-radius: 12px; }
.role-tabs { background: #eff3f8; }
.role-tab { font-size: .875rem; min-height: 42px; }
.role-tab.is-active { box-shadow: 0 2px 5px #172f5012; }
.login-form > label, .remember, .text-button, .password-toggle, .first-access { font-size: .875rem; }
.login-form input[type="text"], .login-form input[type="password"] { min-height: 48px; font-size: 1rem; background: #fcfdff; }
.login-options { gap: 12px; flex-wrap: wrap; }
.login-form .button { min-height: 50px; }
.access-caption { margin: 16px 0 0; font-size: .8125rem; color: #c1cfe1; text-align: center; }
.trust-band { background: #fff; color: var(--navy-900); box-shadow: none; }
.trust-band::before { content: none; }
.trust-grid { gap: 0; padding-block: 0; }
.trust-item { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 6px; min-height: 154px; padding: 26px 22px; border-radius: 0; animation: none; }
.trust-item + .trust-item { border-left: 1px solid #e4e9f0; }
.trust-item:hover { background: #f6f8fb; transform: none; box-shadow: none; }
.trust-item small { font-size: .75rem; color: #617085; }
.trust-item strong { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.3; }
.trust-item > span { grid-row: auto; display: flex; gap: 12px; place-items: initial; align-items: center; margin-top: 8px; width: auto; height: auto; background: none; color: #315985; font-size: .875rem; font-weight: 400; letter-spacing: 0; border-radius: 0; box-shadow: none; }
.trust-item i { font-style: normal; transition: transform .2s; }
.trust-item:hover i { transform: translate(2px, -2px); }

/* Each chapter stays in view as the next one enters; normal scroll remains native. */
.history-section { overflow: visible; padding-block: 110px; background: #f1f4f8; }
.history-section::after, .history-timeline::before { content: none; }
.history-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 70px; align-items: start; }
.history-intro { position: sticky; top: 140px; }
.history-intro .section-label { font-size: .8125rem; margin-bottom: 24px; }
.history-intro h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.08; }
.history-intro p { max-width: 370px; font-size: 1rem; line-height: 1.7; }
.history-year { margin: 38px 0 30px; color: #1b2d51; font-size: clamp(3.2rem, 6.2vw, 5.5rem); line-height: 1.1; font-weight: 400; letter-spacing: -.055em; }
.story-chapters { display: grid; gap: 5px; }
.story-chapters a { display: flex; align-items: center; gap: 14px; padding-block: 7px; color: #56677e; font-size: .875rem; }
.story-chapters a > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #c8d2df; font-size: .75rem; transition: color .25s, background .25s; }
.story-chapters a[aria-current="step"] { color: #142a4a; font-weight: 700; }
.story-chapters a[aria-current="step"] > span { color: #fff; background: #1b2d51; border-color: #1b2d51; }
.history-timeline { margin: 0; padding: 0 0 15vh; }
.history-timeline > li { display: block; position: sticky; top: calc(132px + var(--story-order) * 14px); min-height: 0; margin-bottom: 15vh; padding: 0; scroll-margin-top: 190px; }
.history-timeline > li:last-child { padding: 0; margin-bottom: 0; }
.story-card { position: relative; display: flex; flex-direction: column; min-height: 435px; padding: clamp(28px, 3.2vw, 44px); border: 1px solid #d4dce8; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px #142b4510; transform-origin: top center; transform: translateY(var(--story-shift, 0px)) scale(var(--story-scale, 1)); transition: border-color .3s, box-shadow .3s; }
.history-timeline .is-current .story-card { border-color: #829bbd; box-shadow: 0 22px 55px #142b4520; }
.story-card-top { display: flex; justify-content: space-between; gap: 15px; color: #536984; font-size: .8125rem; }
.history-timeline .story-card-top small { margin: 0; font-size: .75rem; letter-spacing: .06em; color: #5a6f89; }
.story-date { margin-block: 25px 24px; color: #203d66; font-family: var(--display); font-size: clamp(3.5rem, 6.5vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -.06em; }
.history-timeline h3 { max-width: 420px; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.16; letter-spacing: -.035em; }
.history-timeline p { font-size: 1rem; line-height: 1.7; color: #52627a; }
.story-card-foot, .story-portal-link { display: block; margin-top: auto; padding-top: 28px; color: #45648b; font-size: .8125rem; }
.story-portal-link { display: flex; align-items: center; gap: 18px; align-self: start; border: 0; background: none; padding-inline: 0; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.story-portal-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.history-timeline li:last-child .story-card { background: #1b2d51; border-color: #1b2d51; color: #fff; }
.history-timeline li:last-child :is(.story-date, h3) { color: #fff; }
.history-timeline li:last-child :is(.story-card-top, .story-card-top small, p, .story-portal-link) { color: #d3e0f1; }

.final-cta { background: #fff; color: #172d4e; border-top: 1px solid #e4e9f0; }
.final-cta-inner { grid-template-columns: 1fr 1fr; padding-block: 76px; gap: 64px; }
.final-copy > span { color: #496a92; font-size: .8125rem; }
.final-cta h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.final-copy p { color: #52627a; font-size: 1rem; }
.final-paths { border: 1px solid #d6deea; background: #f5f7fa; border-radius: 14px; box-shadow: none; backdrop-filter: none; }
.final-path { grid-template-columns: 44px minmax(0, 1fr) 32px; min-height: 118px; padding: 22px; color: #173053; }
.final-path + .final-path { border-color: #d6deea; }
.final-path:hover { background: #edf2f8; }
.final-path-index { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #244c7c; font-size: 1.5rem; border: 1px solid #dbe3ee; }
.final-path-copy small { color: #5d6e85; font-size: .75rem; letter-spacing: .08em; }
.final-path-copy strong { font-size: 1.25rem; margin-block: 3px; }
.final-path-copy > span { color: #52627a; font-size: .875rem; }
.final-path-arrow { width: 32px; height: 32px; color: #264e7f; border: 0; }
.site-footer { background: #112442; padding-bottom: 30px; }
.footer-top { padding-block: 50px 35px; }
.footer-brand img { width: 86px; height: 86px; padding: 0; }
.footer-brand strong { font-size: 1.6rem; font-weight: 600; }
.footer-brand p, .footer-grid p { color: #c1cdde; font-size: .875rem; line-height: 1.65; }
.footer-service { gap: 6px; }
.footer-service span { font-size: .75rem; letter-spacing: .04em; color: #a9c6e9; }
.footer-service strong { font-size: 1rem; }
.footer-service small { color: #c1cdde; font-size: .875rem; }
.footer-grid { gap: 50px; padding-block: 35px 45px; }
.footer-grid strong { color: #fff; font-size: 1rem; }
.footer-grid a { color: #c1cdde; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.footer-grid .footer-phone { font-size: 1.5rem; }
.footer-portal { display: inline-flex; align-items: center; gap: 18px; margin-top: 6px; padding: 0; min-height: 40px; background: none; color: #d4e5ff; border: 0; font: inherit; font-size: .875rem; cursor: pointer; }
.footer-portal:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { color: #b4c4d9; font-size: .8125rem; }

@media (max-width: 1150px) {
  .brand-name { display: none; }
  .header-inner { gap: 24px; }
  .site-nav { gap: 20px; }
  .hero-grid { gap: 35px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-signature a { flex-basis: 100%; text-align: left; }
  .history-grid { gap: 38px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 80px; }
  .brand-name { display: grid; }
  .site-nav { top: 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr); gap: 30px; padding-block: 46px; }
  .hero h1 { font-size: 2.55rem; }
  .hero .eyebrow { font-size: .75rem; }
  .hero-actions { flex-direction: column; align-items: start; }
  .access-card { padding: 24px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { padding: 22px; min-height: 148px; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid #e4e9f0; }
  .history-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .history-intro { top: 105px; }
  .history-intro h2 { font-size: 2rem; }
  .history-timeline > li { top: calc(100px + var(--story-order) * 12px); }
  .story-card { padding: 26px; }
  .final-cta-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* No celular o empilhamento do desktop nao cabe: o card e quase a tela inteira,
   e prender quatro deles abre um vazio enorme na rolagem -- tentei e ficou pior
   que a lista parada. Entao o celular ganha a ANIMACAO DELE: cada capitulo
   entra deslizando quando aparece, que e a mesma linguagem do resto do site
   (`data-reveal`) e funciona em qualquer altura de tela.
   Quem pede menos movimento continua sem nada: a regra abaixo cuida disso. */
@media (max-width: 700px), (max-height: 560px) {
  .history-intro { position: static; }
  .history-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .history-timeline { padding-bottom: 0; }
  .history-timeline > li { position: relative; top: auto; margin-bottom: 22px; }
  .story-card { min-height: 340px; }
  /* O conteudo APARECE por padrao. So some para animar quando o JS assume --
     `js-anima` so e posta se o observador existir. Assim, JS quebrado ou lento
     nao deixa a secao em branco: no pior caso nao ha animacao, nunca ha vazio. */
  .history-timeline.js-anima > li .story-card {
    transform: translateY(26px); opacity: 0;
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .3, 1);
  }
  .history-timeline.js-anima > li.esta-visivel .story-card { transform: translateY(0); opacity: 1; }
  .history-year, .story-chapters { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card { transform: none !important; opacity: 1 !important; transition: none !important; }
}
/* Janela baixa (561-680px de altura): o empilhamento volta a funcionar, mas com o degrau
   entre os cards menor, senao o ultimo card passa do rodape da janela e aparece cortado.
   Antes desta regra o efeito simplesmente nao existia abaixo de 680px. */
@media (min-width: 701px) and (max-height: 680px) {
  .history-timeline > li { top: calc(100px + var(--story-order) * 6px); }
  .story-card { min-height: 400px; }
}

@media (max-width: 700px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.4rem); }
  .hero-copy { max-width: 560px; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-signature { margin-top: 24px; padding-top: 22px; gap: 16px 24px; }
  .hero-signature a { flex-basis: auto; }
  .hero-modality { font-size: 1.75rem; }
  .access-stage { max-width: none; }
  .brand { width: auto; gap: 10px; }
  .brand img { width: 56px; height: 56px; }
  .brand-name strong { font-size: 1rem; }
  .brand-name small { font-size: .75rem; }
  .utility-links > * { font-size: .75rem; }
  .trust-item { min-height: 158px; padding: 20px 14px; }
  .trust-item > span { gap: 5px; font-size: .8125rem; }
  .trust-item strong { font-size: 1.0625rem; }
  .trust-item small { line-height: 1.4; }
  .history-section { padding-block: 68px; }
  .history-intro h2 { font-size: 2.6rem; }
  .story-date { font-size: 4rem; }
  .story-card { padding: 28px; border-radius: 14px; }
  .history-timeline h3 { font-size: 1.75rem; }
  .final-cta-inner { padding-block: 55px; }
  .final-path { padding: 20px 15px; gap: 12px; }
  .final-path-copy strong { font-size: 1.125rem; }
  .final-path-copy > span { font-size: .8125rem; }
  .footer-top { flex-direction: column; align-items: start; gap: 26px; padding-block: 36px 28px; }
  .footer-service { text-align: left; }
  .footer-brand { align-items: center; gap: 18px; }
  .footer-brand img { width: 68px; height: 68px; }
  .footer-brand strong { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 28px; }
  .footer-grid > div:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .history-intro { position: static; }
  .history-timeline > li { position: relative; top: auto; margin-bottom: 24px; }
  .history-timeline { padding-bottom: 0; }
  .story-card { transform: none !important; }
}
