/* ============================================================
   On! CAIXA — Página CONTRATUAL (linguagem simples + accordions)
   Complementa styles.css (tokens, botões, header/footer, etc.).
   Estética Caixa On; interatividade em accordions inspirada na
   referência aprovada pelo cliente.
   ============================================================ */

/* ===== HERO do contrato ===== */
.ct-hero {
  position: relative;
  background: var(--on-blue);
  color: #ffffff !important;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 0 64px;
}
.ct-hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.ct-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 960px) {
  .ct-hero {
    padding: 56px 0 88px;
  }
  .ct-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

/* Breadcrumb */
.ct-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 22px;
}
.ct-crumbs a {
  transition: color 0.18s;
}
.ct-crumbs a:hover {
  color: #ffffff !important;
}
.ct-crumbs span[aria-current] {
  color: #ffffff !important;
}
.ct-crumbs .sep {
  opacity: 0.5;
}

.ct-hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}
.ct-hero__title {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.ct-hero__title .highlight {
  color: var(--on-cyan);
}
.ct-hero__valid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
}
.ct-hero__valid svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Card "Antes de tudo, vale saber" */
.ct-pins {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/*Ajuste da posição do header/hero */
@media (min-width: 960px) {
.ct-hero__inner {
margin-top: 140px;
}
}

/* H1 exclusivo do hero da página contratual */
.ct-hero .ct-hero__title {
  color: #ffffff !important;
  font-family: "CAIXA Std Bold", "CAIXA Std", sans-serif !important;
  font-size: clamp(32px, 9vw, 58px);
  font-weight: 700 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.ct-hero .ct-hero__title .highlight {
  color: #88e5d6 !important;
  font-family: inherit !important;
  font-weight: inherit !important;
}

@media (min-width: 960px) {
  .ct-hero .ct-hero__title {
    font-size: 58px;
  }
}

/*Ajuste da na cor e tamanho fonte H1 */
@media (min-width: 960px) {
  .ct-hero__title {
    color: #ffffff !important;
    font-family: "CAIXA Std Bold", sans-serif !important;
    font-size: 58px !important;
    font-weight: bold !important;
    line-height: 1.06 !important;
  }

  .ct-hero__title .highlight {
    color: #88e5d6 !important;
    font-family: inherit !important;
    font-weight: inherit !important;
  }
}


@media (min-width: 640px) {
  .ct-pins {
    padding: 34px 32px;
  }
}
.ct-pins__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.ct-pins ul {
  display: grid;
  gap: 16px;
}
.ct-pins li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.ct-pins li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--on-cyan);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 10l3 3 7-7' stroke='%23251eec' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Bloco numerado + accordion (layout 2 colunas) ===== */
.ct-section {
  padding: 48px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.ct-section:last-of-type {
  border-bottom: none;
}
@media (min-width: 760px) {
  .ct-section {
    padding: 72px 0;
  }
}
.ct-section--alt {
  background: var(--paper-2);
}
.ct-section--cream {
  background: var(--cream);
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 960px) {
  .ct-grid {
    grid-template-columns: 0.85fr 1.25fr;
    gap: 64px;
  }
}

.ct-head {
  min-width: 0;
}
@media (min-width: 960px) {
  .ct-head {
    position: sticky;
    top: 96px;
  }
}
.ct-head h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.12;
  margin-bottom: 14px;
}
.ct-head__lede {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 44ch;
}

/* ===== Regras da seção =====
   O conteúdo fica sempre visível (nada de ocultação progressiva sem
   necessidade). A leitura acontece como storytelling: a trilha se
   desenha e os itens ganham destaque conforme o scroll desce.
   O accordion segue existindo só no "o que isso significa na prática",
   onde a informação é de fato complementar. */
.ct-rules {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.ct-trail {
  position: relative;
  min-width: 0;
}
/* Linha da trilha: trilho de fundo + preenchimento posicionados via JS. */
.ct-trail__track,
.ct-trail__fill {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  pointer-events: none;
}
.ct-trail__track {
  background: var(--line);
  z-index: 0;
}
.ct-trail__fill {
  height: 0;
  z-index: 1;
  /* Cor chapada do guia (sem degradê). */
  background: var(--on-blue);
  transition: height 0.2s ease-out;
}
.ct-trail__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-trail__step {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ct-trail__node {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--line);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}
.ct-trail__card {
  flex: 1;
  min-width: 0;
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transform: translate(0, 0);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.5s var(--ease-out-soft),
    transform 0.5s var(--ease-out-soft);
}
.ct-trail__card h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
  text-wrap: balance;
}
.ct-trail__card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}

/* Estado alcançado pelo scroll */
.ct-trail__step.is-active .ct-trail__node {
  background: var(--on-blue);
  border-color: var(--on-blue);
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(37, 30, 236, 0.35);
}
.ct-trail__step.is-active .ct-trail__card {
  border-color: rgba(37, 30, 236, 0.24);
  box-shadow: var(--shadow-md);
  transform: translate(4px, 0);
}

/* Entrada progressiva — só quando o JS assume a trilha.
   Sem JS (ou com movimento reduzido) todos os itens ficam legíveis.
   O estado é definitivo: o que já entrou não volta a esmaecer.
   Anima só o cartão: o nó fica ancorado na linha, sem deslocar a
   geometria que o JS mede para desenhar a trilha. */
.ct-trail.is-animated .ct-trail__card {
  opacity: 0.5;
  transform: translate(0, 14px);
}
.ct-trail.is-animated .ct-trail__step.is-active .ct-trail__card {
  opacity: 1;
  transform: translate(4px, 0);
}

@media (max-width: 560px) {
  .ct-trail__step {
    gap: 14px;
  }
  .ct-trail__card {
    padding: 18px 20px;
  }
}

/* ===== Accordion ===== */
.ct-acc {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.ct-item {
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.ct-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 30, 236, 0.22);
}
.ct-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.18s;
}
.ct-item summary::-webkit-details-marker {
  display: none;
}
.ct-item summary:hover {
  color: var(--on-blue);
}
.ct-chev {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37, 30, 236, 0.08);
  position: relative;
  transition:
    background 0.22s ease,
    transform 0.32s ease;
}
.ct-chev::before,
.ct-chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--on-blue);
  transition:
    transform 0.32s ease,
    background 0.22s ease;
}
.ct-chev::before {
  transform: translate(-50%, -50%);
}
.ct-chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.ct-item[open] .ct-chev {
  background: var(--on-blue);
}
.ct-item[open] .ct-chev::before,
.ct-item[open] .ct-chev::after {
  background: #ffffff !important;
}
.ct-item[open] .ct-chev::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.ct-body {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  animation: ctFade 0.28s ease;
}
.ct-body > :first-child {
  margin-top: 0;
}
.ct-body > :last-child {
  margin-bottom: 0;
}
.ct-body p {
  margin: 0 0 12px;
  max-width: 62ch;
}
@keyframes ctFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Item de destaque "na prática" */
.ct-item--practice {
  /* Tinta chapada do azul do guia sobre branco. */
  background: #eeedfd !important;
  border-color: rgba(37, 30, 236, 0.18);
}
.ct-item--practice summary {
  color: var(--on-blue-deep);
}
.ct-item--practice .ct-chev {
  background: rgba(37, 30, 236, 0.14);
}

/* ===== Bloco de comparação (Pode / Observar / Não disponível) ===== */
.ct-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .ct-compare {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ct-col {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid var(--line);
  background: #ffffff !important;
}
.ct-col__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
/* Fundos e pílulas em tinta chapada das cores do guia (verde, laranja e
   magenta sobre branco); o texto usa azul-profundo/roxo do guia, que passam
   AAA. Sem degradê e sem matiz fora da paleta. */
.ct-col--can {
  background: #def7ec !important;
  border-color: rgba(72, 213, 151, 0.35);
}
.ct-col--can .ct-col__tag {
  color: var(--on-blue-deep);
  background: #c8f2df !important;
}
.ct-col--watch {
  background: #fff1dc !important;
  border-color: rgba(255, 152, 0, 0.32);
}
.ct-col--watch .ct-col__tag {
  color: var(--on-blue-deep);
  background: #ffe6c2 !important;
}
.ct-col--no {
  background: #ffffff !important;
}
.ct-col--no .ct-col__tag {
  color: var(--on-purple);
  background: #f9e6f8 !important;
}
.ct-col ul {
  display: grid;
  gap: 12px;
}
.ct-col li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.ct-col li strong {
  color: var(--ink);
}
.ct-col--can li::before,
.ct-col--watch li::before,
.ct-col--no li::before {
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 700;
}
.ct-col--can li::before {
  content: "✓";
  color: var(--on-blue-deep);
}
.ct-col--watch li::before {
  content: "!";
  color: var(--on-blue-deep);
  left: 6px;
}
.ct-col--no li::before {
  content: "✕";
  color: var(--on-purple);
}

/* ===== Bloco "Gratuito" (tarifas) ===== */
.ct-free {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  background: var(--on-cyan);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  color: var(--on-blue-deep);
  overflow: hidden;
  position: relative;
}
@media (min-width: 820px) {
  .ct-free {
    grid-template-columns: 1fr 1fr;
    padding: 52px 48px;
  }
}
.ct-free__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-blue);
  background: rgba(255, 255, 255, 0.6);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ct-free h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.ct-free p {
  margin: 0;
  font-size: 17px;
  color: rgba(15, 12, 128, 0.82);
  max-width: 44ch;
  text-wrap: balance;
}
.ct-free__list {
  display: grid;
  gap: 14px;
}
.ct-free__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--on-blue-deep);
}
.ct-free__list li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--on-blue);
}

/* ===== Direitos & Deveres (split reaproveitado, ajustes) ===== */
.ct-dd {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 820px) {
  .ct-dd {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}
.ct-dd__card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
@media (min-width: 640px) {
  .ct-dd__card {
    padding: 40px 36px;
  }
}
.ct-dd__card--rights {
  /* Cor chapada do guia (sem degradê). */
  background: var(--on-blue);
  color: #ffffff !important;
}
.ct-dd__card--duties {
  background: #ffffff !important;
  border: 1px solid var(--line);
}
.ct-dd__card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-dd__card--duties h3 {
  color: var(--on-blue);
}

.ct-dd__card--rights > h3 {
color: #ffffff !important;
}

/* ===== Highlight 18 anos — transição de maioridade ===== */
.ct-turn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 28px;
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

@media (min-width: 820px) {
  .ct-turn {
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 52px;
    padding: 56px 60px;
  }
}

/* Aside — número em destaque com seta de transição */
.ct-turn__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.ct-turn__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-blue);
  margin-bottom: 12px;
}
.ct-turn__num {
  font-size: clamp(84px, 13vw, 124px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--on-blue);
}
.ct-turn__unit {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}
.ct-turn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 22px;
  border-radius: 50%;
  color: #ffffff !important;
  background: var(--on-blue);
  box-shadow: var(--shadow-sm);
}
.ct-turn__arrow svg {
  width: 24px;
  height: 24px;
}

/* Conteúdo */
.ct-turn__main h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.14;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 100%;
  text-wrap: balance;
}
.ct-turn__lede {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.ct-turn__note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 22px;
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.ct-turn__note-tag {
  flex: none;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-blue-deep);
  background: var(--on-cyan);
}
.ct-turn__note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 520px) {
  .ct-turn__note {
    flex-direction: column;
    gap: 12px;
  }
  .ct-turn__note-tag {
    align-self: flex-start;
  }
}

/* ===== Canais de atendimento ===== */
.ct-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ct-channels {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .ct-channels {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ct-channel {
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.ct-channel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.ct-channel__ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 30, 236, 0.08);
  color: var(--on-blue);
  margin-bottom: 16px;
}
/* Mesma proporção da seção de vantagens (~87% do balão): o PNG tem respiro
   interno, então a caixa de 40px rende ~34px de desenho no balão de 46px. */
.ct-channel__ico img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ct-channel h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.ct-channel p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--on-blue);
}
.ct-channel a {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-blue);
  border-bottom: 2px solid rgba(37, 30, 236, 0.3);
}
.ct-channel a:hover {
  border-color: var(--on-blue);
}

/* ============================================================
   CAMADA DE MOTION — reveals no scroll, TOC sticky, hero premium,
   parallax e microinterações. CSS + IntersectionObserver (sem libs).
   Nada aqui altera o conteúdo. Tudo é neutralizado sob
   prefers-reduced-motion (ver bloco no fim do arquivo).
   ============================================================ */

/* ---- Curva de easing institucional ---- */
:root {
  --ease-out-soft: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* ---- Reveal individual (fade-up padrão + variações) ---- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out-soft),
    transform 0.7s var(--ease-out-soft);
  will-change: opacity, transform;
}
.js [data-reveal="left"] {
  transform: translateX(-32px);
}
.js [data-reveal="right"] {
  transform: translateX(32px);
}
.js [data-reveal="scale"] {
  transform: scale(0.965);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Reveal com stagger (filhos diretos entram em cascata) ---- */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease-out-soft),
    transform 0.6s var(--ease-out-soft);
  will-change: opacity, transform;
}
.js [data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}
.js [data-stagger].is-visible > *:nth-child(1) {
  transition-delay: 0.04s;
}
.js [data-stagger].is-visible > *:nth-child(2) {
  transition-delay: 0.11s;
}
.js [data-stagger].is-visible > *:nth-child(3) {
  transition-delay: 0.18s;
}
.js [data-stagger].is-visible > *:nth-child(4) {
  transition-delay: 0.25s;
}
.js [data-stagger].is-visible > *:nth-child(5) {
  transition-delay: 0.32s;
}
.js [data-stagger].is-visible > *:nth-child(6) {
  transition-delay: 0.39s;
}
.js [data-stagger].is-visible > *:nth-child(n + 7) {
  transition-delay: 0.46s;
}

/* Âncoras: garante que o alvo não fique sob a nav sticky */
#s1,
#s2,
#s3,
#s4,
#s5,
#s6,
#s7,
#s8,
#s9 {
  scroll-margin-top: 84px;
}

/* ---- Barra de progresso de leitura ---- */
.ct-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.ct-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--on-blue);
  will-change: transform;
}

/* ---- Navegação sticky (índice das seções) ---- */
.ct-toc {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ct-toc__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
}
.ct-toc__label {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-blue);
}
.ct-toc__ind {
  display: none;
}
.ct-toc__list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  margin: 0;
}
.ct-toc__list::-webkit-scrollbar {
  display: none;
}
.ct-toc__link {
  flex: none;
  scroll-snap-align: start;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.ct-toc__link:hover {
  color: var(--on-blue);
  background: rgba(37, 30, 236, 0.06);
}
.ct-toc__link.is-active {
  color: #ffffff !important;
  font-weight: 700;
  background: var(--on-blue);
  box-shadow: 0 6px 16px rgba(37, 30, 236, 0.28);
}
/* A lista rola na horizontal (`overflow-x: auto`), o que também recorta na
   vertical — o anel de foco precisa ser desenhado para dentro do pill. */
.ct-toc__link:focus-visible {
  outline: 3px solid var(--on-blue);
  outline-offset: -3px;
  border-radius: 999px;
}
.ct-toc__link.is-active:focus-visible {
  outline-color: var(--on-cyan);
}
@media (max-width: 640px) {
  .ct-toc__label {
    display: none;
  }
}

/* Cabeçalho sticky das seções fica logo abaixo da nav */
@media (min-width: 960px) {
  .ct-head {
    top: 84px;
  }
}

/* ---- Hero: fundo tecnológico (glow + grid discreto) ---- */
.ct-hero__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ct-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    120% 90% at 70% 10%,
    #000 30%,
    transparent 75%
  );
}
.ct-hero__pattern[data-parallax] {
  will-change: transform;
}

/* ---- Hero: entrada suave do conteúdo (na carga) ---- */
.js .ct-hero__copy > *,
.js .ct-pins {
  opacity: 0;
  animation: ctHeroIn 0.8s var(--ease-out-soft) forwards;
}
.js .ct-hero__copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.js .ct-hero__copy > *:nth-child(2) {
  animation-delay: 0.14s;
}
.js .ct-hero__copy > *:nth-child(3) {
  animation-delay: 0.23s;
}
.js .ct-hero__copy > *:nth-child(4) {
  animation-delay: 0.32s;
}
.js .ct-hero__copy > *:nth-child(5) {
  animation-delay: 0.41s;
}
.js .ct-pins {
  animation-name: ctHeroInRight;
  animation-delay: 0.34s;
}
@keyframes ctHeroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ctHeroInRight {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Microinteração no selo de vigência do hero.
   Sem transform aqui: a animação de entrada usa fill:forwards e
   fixaria o transform, anulando o hover. Usamos cor/sombra. */
.ct-hero__valid {
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.ct-hero__valid:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 22px rgba(15, 12, 128, 0.25);
}

/* ---- Microinterações de profundidade nos cards ---- */
.ct-item {
  transition:
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}
.ct-item:hover:not([open]) {
  transform: translateY(-2px);
  border-color: rgba(37, 30, 236, 0.24);
  box-shadow: var(--shadow-sm);
}
.ct-chev {
  transition:
    background 0.22s ease,
    transform 0.32s var(--ease-out-soft);
}
.ct-item summary:hover .ct-chev {
  transform: scale(1.08);
}

.ct-col {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}
.ct-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ct-dd__card {
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}
.ct-dd__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ct-free__list li {
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}
.ct-free__list li:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(4px);
}

.ct-channel {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}
.ct-channel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 30, 236, 0.18);
}

/* CTA principal: seta com leve deslize no hover */
.cta-card__actions .btn--primary svg {
  transition: transform 0.24s var(--ease-out-soft);
}
.cta-card__actions .btn--primary:hover svg {
  transform: translateY(3px);
}

/* ============================================================
   Acessibilidade: respeitar prefers-reduced-motion.
   Mantém TODO o conteúdo visível e desliga movimento/parallax.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-stagger] > *,
  .js .ct-hero__copy > *,
  .js .ct-pins,
  .ct-trail.is-animated .ct-trail__card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .ct-trail__fill,
  .ct-trail__node,
  .ct-trail__card {
    transition: none !important;
  }
  .ct-progress__bar {
    display: none;
  }
  .ct-hero__pattern[data-parallax] {
    transform: none !important;
  }
}
/* Correção de conflito com o grid institucional da CAIXA.
   O caixa.css interpreta ".ct-col" como uma coluna legada por causa
   do seletor genérico [class*="col-"]. */
.ct-compare > .ct-col {
  float: none !important;
  margin-left: 0 !important;
  height: auto !important;
}