/* Retentiva Consultoria v2
   Azul Noite #0B2A5B, Névoa #EEF2F7, Verde Brasil #009C3B (ação: #007A2E p/ AA),
   Amarelo Brasil #FFDF00 (acento), Ouro #F2C230, Grafite #1F2933 */
:root {
  --night: #0B2A5B;
  --night-deep: #082048;
  --night-edge: #06183a;    /* borda do degradê da marca */
  --night-core: #1d5bb8;    /* centro do degradê da marca */
  --top-h: 73px;
  --mist: #EEF2F7;
  --green: #009C3B;
  --green-go: #007A2E;      /* branco sobre este verde: 5,5:1 */
  --green-go-h: #00652A;
  --yellow: #FFDF00;
  --gold: #F2C230;
  --ink: #1F2933;
  --ink-soft: #4A5663;      /* 7:1 sobre branco, 6,3:1 sobre Névoa */
  --rule: #D5DCE6;
  --on-night: #C9D5E8;      /* 9:1 sobre Azul Noite */
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--head); color: var(--night); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-weight: 600; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--night); text-underline-offset: 3px; }
ol, ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--night); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--night); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  font-family: var(--head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: 999px; border: 2px solid transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn--go { background: var(--green-go); color: #fff; }
.btn--go:hover { background: var(--green-go-h); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--line { color: var(--night); border-color: var(--night); }
.btn--line:hover { background: var(--night); color: #fff; }
.btn--navy { background: var(--night); color: #fff; }
.btn--navy:hover { background: var(--night-deep); }

/* A assinatura da marca: emblema com brilho dourado sobre azul radial.
   Usada em dois lugares só: hero e fechamento. */
.glow { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 var(--glow, 40px) rgba(255,223,0,.55)); }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 50; background: var(--night-edge); border-bottom: 1px solid rgba(255,255,255,.12); transition: background-color .2s ease, border-color .2s ease; }
.js .top--over:not(.is-stuck):not(.is-open) { background: transparent; border-bottom-color: transparent; }
.top__bar { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.top__logo { flex: none; display: block; margin-left: -6px; }
.top__logo img { width: 166px; height: 50px; }
.top__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.top__nav a:not(.btn) { color: var(--on-night); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.top__nav a:not(.btn):hover { color: #fff; border-bottom-color: var(--gold); }
.top__nav-cta { display: none; }
.top__toggle { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer; }
.top__bars { display: grid; gap: 6px; width: 24px; }
.top__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.top__toggle[aria-expanded="true"] .top__bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.top__toggle[aria-expanded="true"] .top__bars i:nth-child(2) { opacity: 0; }
.top__toggle[aria-expanded="true"] .top__bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.top :focus-visible, .hero :focus-visible, .sec--night :focus-visible, .close__panel :focus-visible, .foot :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(255,223,0,.55); }

/* Hero: o mesmo azul radial do perfil, com o centro atrás do emblema */
.hero {
  --gx: calc(50% + min(343px, 24vw)); --gy: calc(50% + var(--top-h) / 2);
  position: relative; margin-top: calc(-1 * var(--top-h)); padding-top: var(--top-h); color: #fff;
  background: var(--night) radial-gradient(circle at var(--gx) var(--gy), var(--night-core) 0, var(--night) 55%, var(--night-edge) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(64px, 8vw, 112px); }
.hero h1 { color: #fff; }
.hero__lead { margin-top: 28px; max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: #DCE5F3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__note { margin-top: 20px; font-size: .9375rem; color: #DCE5F3; padding-left: 18px; position: relative; }
.hero__note::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero__mark { justify-self: center; width: min(100%, 500px); }

/* Faixa de tecnologias */
.stack { background: #fff; border-bottom: 1px solid var(--rule); }
.stack .wrap { padding-block: 40px; }
.stack p { max-width: 560px; font-size: 1.0625rem; color: var(--ink-soft); }
.stack strong { color: var(--night); }

/* Seções */
.sec { padding-block: var(--sec); }
.sec--mist { background: var(--mist); }
.sec--night { background: var(--night); color: #fff; }
.sec__head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec__head p, .split__head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); }

/* Serviços */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: 112px; }
.offer { padding-block: 36px; border-top: 1px solid var(--rule); }
.offer:first-child { padding-top: 0; border-top: 0; }
.offer h3 { font-size: clamp(1.5rem, 2.3vw, 1.875rem); font-weight: 700; letter-spacing: -0.015em; }
.offer p { margin-top: 12px; max-width: 38em; }
.offer__meta { color: var(--ink-soft); font-size: 1rem; }
.offer__meta a { font-weight: 600; }
.offer--free {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 8px; padding: 36px 40px; background: var(--mist); border: 0; border-left: 6px solid var(--green); border-radius: 0 14px 14px 0;
}
.offer--free .btn { flex: none; }

/* Resultados */
.results { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.results__head > p { margin-top: 16px; color: var(--ink-soft); font-size: 1.125rem; max-width: 30em; }
.founder { margin: 40px 0 0; display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
.founder img { width: 112px; height: 112px; object-fit: cover; object-position: 60% 40%; border-radius: 50%; box-shadow: 0 0 0 3px var(--mist), 0 0 0 5px var(--gold); }
.founder figcaption { font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }
.founder strong { display: block; font-family: var(--head); font-weight: 700; font-size: 1.125rem; color: var(--night); }
.ledger { margin: 0; border-top: 3px solid var(--night); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 24px; align-items: baseline; padding-block: 28px; border-bottom: 1px solid #C5CEDB; }
.ledger dt { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 5.4vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--night); font-variant-numeric: tabular-nums; }
.ledger dd { margin: 0; font-size: 1.0625rem; color: var(--ink-soft); }
.ledger dd strong { color: var(--ink); }
.ledger__row--text dt { font-size: 1.3125rem; letter-spacing: -0.01em; line-height: 1.3; }
.ledger__row--text { border-bottom: 0; }

/* Método: uma rota de três estrelas, a última em ouro */
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: none; }
.route__step { position: relative; padding: 44px 40px 0 0; }
.route__step::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--night); }
.route__step--end::before { right: auto; width: 0; }
.route__star { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 6px #fff; }
.route__step--end .route__star { background: var(--gold); box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--night); }
.route__n { display: block; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.route h3 { margin-top: 6px; font-size: clamp(1.5rem, 2.3vw, 1.875rem); font-weight: 700; }
.route p { margin-top: 12px; max-width: 22em; color: var(--ink-soft); }

/* Alocação */
.aloc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.aloc__photo { position: relative; min-height: 420px; }
.aloc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.aloc__lead { margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); max-width: 34em; }
.howto { counter-reset: how; margin-block: 32px 36px; border-top: 1px solid #C5CEDB; }
.howto li { counter-increment: how; position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid #C5CEDB; color: var(--ink-soft); }
.howto li::before { content: counter(how); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: #fff; font-family: var(--head); font-weight: 700; font-size: .9375rem; display: grid; place-items: center; }
.howto strong { color: var(--ink); }
.talent { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 6vw, 88px); align-items: baseline; padding-top: 32px; border-top: 3px solid var(--night); }
.talent p { color: var(--ink-soft); max-width: 40em; }
.talent a { font-weight: 600; overflow-wrap: anywhere; }

/* 5 perguntas: o Cruzeiro do Sul */
.ask h2, .ask h3 { color: #fff; }
.ask__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ask__lead { margin-top: 20px; color: var(--on-night); font-size: 1.125rem; max-width: 32em; }
.ask__list { counter-reset: ask; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.22); }
.ask__list li { counter-increment: ask; display: grid; grid-template-columns: 36px 148px 1fr; gap: 8px; align-items: baseline; padding: 18px 12px 18px 0; border-bottom: 1px solid rgba(255,255,255,.22); transition: background-color .2s ease, padding-left .2s ease; }
.ask__list li::before { content: counter(ask); font-family: var(--head); font-weight: 600; color: var(--gold); font-size: 1rem; padding-left: 4px; }
.ask__list h3 { font-size: 1.1875rem; }
.ask__list p { color: var(--on-night); }
.ask__list li.is-on { background: rgba(255,255,255,.07); }
.ask__map { justify-self: center; width: min(100%, 500px); }
.crux { width: 100%; height: auto; overflow: visible; }
.crux__ring { fill: none; }
.crux__ring--g { stroke: var(--green); stroke-width: 7; }
.crux__ring--y { stroke: var(--yellow); stroke-width: 2; }
.crux__dust { opacity: .45; }
.crux__lines path { stroke-opacity: .5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.crux__star .core { fill: #fff; transition: r .2s ease; }
.crux__star .halo { fill: #fff; fill-opacity: .14; transform-box: fill-box; transform-origin: center; transition: transform .25s ease, fill-opacity .25s ease; }
.crux__star--gold .core { fill: var(--gold); }
.crux__star--gold .halo { fill: var(--gold); fill-opacity: .2; }
.crux__star text { font-family: var(--text); font-size: 17px; font-weight: 500; fill: var(--on-night); transition: fill .2s ease; }
.crux__star.is-on .halo { transform: scale(1.55); fill-opacity: .3; }
.crux__star.is-on text { fill: #fff; }

/* O único momento orquestrado: a constelação se desenha quando entra na tela */
@media (prefers-reduced-motion: no-preference) {
  .js .crux__lines path { stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.6,0,.3,1); }
  .js .crux__star { opacity: 0; transition: opacity .45s ease; }
  .js .crux.is-in .crux__lines path { stroke-dashoffset: 0; }
  .js .crux.is-in .crux__star { opacity: 1; }
  .js .crux.is-in .crux__star[data-star="1"] { transition-delay: .1s; }
  .js .crux.is-in .crux__lines path:nth-child(1) { transition-delay: .3s; }
  .js .crux.is-in .crux__star[data-star="2"] { transition-delay: .9s; }
  .js .crux.is-in .crux__lines path:nth-child(2) { transition-delay: 1s; }
  .js .crux.is-in .crux__star[data-star="3"] { transition-delay: 1.6s; }
  .js .crux.is-in .crux__lines path:nth-child(3) { transition-delay: 1.7s; }
  .js .crux.is-in .crux__star[data-star="4"] { transition-delay: 2.3s; }
  .js .crux.is-in .crux__lines path:nth-child(4) { transition-delay: 2.4s; }
  .js .crux.is-in .crux__star[data-star="5"] { transition-delay: 3s; }
  .js .crux.is-in .crux__lines path:nth-child(5) { transition-delay: 3.1s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Fechamento: o segundo e último uso do brilho */
.close__panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(40px, 6vw, 88px); border-radius: 28px; color: #fff;
  background: var(--night) radial-gradient(circle at 80% 50%, var(--night-core) 0, var(--night) 55%, var(--night-edge) 100%);
}
.close h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); color: #fff; }
.close__text p { margin-top: 20px; font-size: 1.1875rem; color: #DCE5F3; max-width: 30em; }
.close__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.close__mark { --glow: 26px; justify-self: center; width: min(100%, 300px); }

/* Rodapé */
.foot { background: var(--night-edge); color: var(--on-night); padding-block: 72px 40px; font-size: 1rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.foot__brand img { width: 186px; height: 56px; margin-left: -8px; }
.foot__brand p { margin-top: 16px; max-width: 22em; }
.foot__col h2 { font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.foot__col li { padding-block: 5px; overflow-wrap: anywhere; }
.foot__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: .875rem; }
.foot__legal a { text-decoration: underline; }

/* Página de créditos */
.credits { padding-block: 64px 96px; }
.credits h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.credits ul { margin-top: 32px; border-top: 1px solid var(--rule); max-width: 760px; }
.credits li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.credits p { margin-top: 16px; max-width: 40em; color: var(--ink-soft); }

/* Tablet: o menu vira um painel sob o cabeçalho */
@media (max-width: 1060px) {
  .top__bar { flex-wrap: wrap; gap: 0 12px; }
  .top__logo { margin-right: auto; }
  /* Sem JS, os links ficam numa segunda linha, sempre visíveis */
  .top__nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: 0 24px; padding-bottom: 10px; }
  .js .top__toggle { display: inline-flex; }
  .js .top__nav {
    position: absolute; left: 0; right: 0; top: 100%; display: block; width: auto; padding: 8px var(--pad) 28px;
    background: var(--night-edge); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 40px rgba(3,12,30,.35);
    max-height: calc(100vh - var(--top-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .js .top.is-open .top__nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .top__nav a:not(.btn) { display: flex; align-items: center; min-height: 54px; padding: 0; font-family: var(--head); font-weight: 600; font-size: 1.1875rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
  .js .top__nav a:not(.btn):hover { border-bottom-color: var(--gold); }
  .ledger__row { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
  .ask__list li { grid-template-columns: 32px 1fr; }
  .ask__list p { grid-column: 2; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .results, .aloc__grid, .ask__grid, .close__panel, .talent { grid-template-columns: minmax(0, 1fr); }
  .hero { --gx: 50%; --gy: calc(var(--top-h) + 40px + min(31vw, 130px)); }
  .hero__grid { padding-block: 40px 64px; gap: 36px; }
  .hero__mark { order: -1; --glow: 22px; width: min(62vw, 260px); }
  .close__panel { background: var(--night) radial-gradient(circle at 50% calc(clamp(40px, 6vw, 88px) + 80px), var(--night-core) 0, var(--night) 55%, var(--night-edge) 100%); }
  .close__mark { order: -1; --glow: 16px; width: 160px; }
  .split__head { position: static; }
  .route { grid-template-columns: 1fr; }
  .route__step { padding: 0 0 40px 44px; }
  .route__step::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .route__step--end { padding-bottom: 0; }
  .route__step--end::before { width: 0; }
  .route__star { box-shadow: 0 0 0 5px #fff; }
  .aloc__photo { min-height: 0; aspect-ratio: 3 / 2; }
  .ask__map { order: -1; width: min(100%, 380px); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --top-h: 65px; }
  body { font-size: 1rem; }
  .top__bar { min-height: 64px; }
  .top__logo img { width: 140px; height: 42px; }
  .js .top__cta { display: none; }
  .js .top__nav-cta { display: flex; width: 100%; margin-top: 24px; }
  .btn--sm { padding: 0 14px; font-size: .875rem; min-height: 40px; }
  .hero__cta .btn, .close__cta .btn, .aloc__body .btn { width: 100%; }
  .close__panel { border-radius: 20px; padding: 36px 24px 32px; }
  .offer--free { flex-direction: column; align-items: stretch; padding: 28px 24px; }
  .ledger__row { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .founder { grid-template-columns: 88px 1fr; }
  .founder img { width: 88px; height: 88px; }
  .foot__grid { grid-template-columns: 1fr; }
  .crux__star text { font-size: 19px; }
}
