/* Página inicial */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes roll { to { transform: translateX(-50%); } }

.pg-home {
  /* Hero */
  .hero { background: var(--hero-bg); color: #fff; overflow: hidden; position: relative; }
  .hero::before {
    content: ''; position: absolute; inset: auto -10% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    border-radius: 50%; border: 90px solid rgb(255 255 255 / .05); pointer-events: none;
  }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 32px; min-height: min(660px, calc(100dvh - 72px)); }
  .hero-copy { padding-block: 48px 64px; align-self: center; }
  .hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-weight: 500; font-size: .95rem; color: rgb(255 255 255 / .85); flex-wrap: wrap; }
  .hero-eyebrow img { height: 22px; width: auto; }
  h1 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); line-height: 1.04; max-width: 20ch; }
  h1 em { font-style: normal; color: var(--sun); }
  .hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-top: 18px; max-width: 56ch; color: rgb(255 255 255 / .88); }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .hero-media { align-self: end; justify-self: end; max-width: 480px; }
  .hero-media img { width: 100%; }
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .8s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-copy > :nth-child(4) { animation-delay: .18s; }
    .hero-media { animation: rise 1s .1s var(--ease) both; }
  }
  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { padding-block: 40px 8px; }
    .hero-media { justify-self: center; max-width: 320px; }
  }

  /* Jornada */
  .jornada { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 28px; }
  .jornada-txt { color: var(--muted); max-width: 90ch; margin-bottom: 18px; }
  .jornada-txt strong { color: var(--ink); }
  .jornada-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; counter-reset: j; }
  .jornada-steps a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background .2s; }
  .jornada-steps a:hover { background: color-mix(in srgb, var(--blue) 12%, var(--surface-2)); }
  .jornada-steps .n { position: absolute; top: -8px; left: -6px; width: 22px; height: 22px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font: 700 .78rem/22px var(--f-display); text-align: center; }
  .jornada-steps .icon { grid-row: 1 / 3; color: var(--teal); }
  .jornada-steps strong { font: 700 1rem/1.15 var(--f-display); }
  .jornada-steps small { color: var(--muted); font-size: .8rem; }
  .jornada-steps li:last-child a { background: var(--navy); color: #fff; }
  .jornada-steps li:last-child small { color: rgb(255 255 255 / .7); }
  .jornada-steps li:last-child .icon { color: var(--sun); }
  @media (max-width: 960px) { .jornada-steps { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 560px) { .jornada-steps { grid-template-columns: 1fr 1fr; } }

  /* Indicadores (faixa rotativa) */
  .facts { background: var(--navy); color: #fff; overflow: hidden; padding-block: 22px; }
  .facts-track { display: flex; width: max-content; }
  .facts-row { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
  .facts-row li { display: flex; align-items: baseline; gap: 10px; padding: 0 36px; border-left: 1px solid rgb(255 255 255 / .16); white-space: nowrap; color: rgb(255 255 255 / .8); }
  .facts-row strong { font: 700 1.9rem/1.1 var(--f-display); color: #fff; }
  @media (prefers-reduced-motion: no-preference) {
    .facts-track { animation: roll 42s linear infinite; }
    .facts:hover .facts-track { animation-play-state: paused; }
  }
  @media (prefers-reduced-motion: reduce) {
    .facts-track { width: auto; display: block; }
    .facts-row[aria-hidden='true'] { display: none; }
    .facts-row { flex-wrap: wrap; justify-content: center; gap: 12px 0; max-width: var(--wrap); margin-inline: auto; }
  }

  .finder { margin-top: 36px; }
  .more { margin-top: 28px; }

  /* Cursos */
  .cursos-sec { background: var(--surface); border-block: 1px solid var(--line); }
  .cursos-sec .eyebrow { margin-bottom: 12px; display: block; }
  .cursos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; list-style: none; padding: 0; }
  .curso-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; height: 100%; padding: 30px; overflow: hidden;
    border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none;
    transition: border-color .2s, box-shadow .25s var(--ease);
  }
  .curso-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
  .curso-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); }
  @media (prefers-color-scheme: dark) { .curso-card .ic { color: #8fb0ff; } }
  .curso-card .meta { font-size: .82rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
  @media (prefers-color-scheme: dark) { .curso-card .meta { color: #7fd0f5; } }
  .curso-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
  .curso-card .tag { font-size: 1.05rem; line-height: 1.35; }
  .curso-card p { color: var(--muted); }
  .curso-card .link-arrow { margin-top: auto; padding-top: 8px; color: var(--link); }
  .curso-card.destaque { background: linear-gradient(160deg, #0f2c6e, #2449d8); color: #fff; border-color: transparent; }
  .curso-card.destaque:has(.capa) { padding-right: 36%; }
  .curso-card.destaque .ic { background: rgb(255 255 255 / .14); color: #fff; }
  .curso-card.destaque .meta { color: var(--sun); }
  .curso-card.destaque p { color: rgb(255 255 255 / .86); }
  .curso-card.destaque .link-arrow { color: var(--sun); }
  .curso-card .capa { position: absolute; right: -4%; bottom: -10%; width: 34%; border-radius: 10px; transform: rotate(-6deg); box-shadow: 0 24px 60px -12px rgb(0 0 0 / .5); transition: transform .6s var(--ease); }
  .curso-card:hover .capa { transform: rotate(-3deg) translateY(-8px); }
  @media (max-width: 860px) {
    .cursos-grid { grid-template-columns: 1fr; }
    .curso-card.destaque:has(.capa) { padding-right: 30px; padding-bottom: 220px; }
    .curso-card .capa { width: 44%; max-width: 200px; }
  }

  /* ABF Academy */
  .academy-sec { padding-top: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
  .academy {
    position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; overflow: hidden;
    border-radius: var(--r-card); background: linear-gradient(160deg, #0d2550, #16307e); color: #fff; text-decoration: none;
  }
  .academy-copy { padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
  .academy-logo { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); border-radius: 12px; padding: 10px 14px; display: grid; place-items: center; }
  .academy-logo img { height: 26px; width: auto; }
  .academy-eyebrow { font: 500 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
  .academy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .academy p { color: rgb(255 255 255 / .86); max-width: 62ch; }
  .academy-list { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .96rem; }
  .academy-list li { display: flex; gap: 10px; align-items: baseline; }
  .academy-list span { font: 700 1rem/1 var(--f-display); color: var(--sun); }
  .academy-note { font-size: .95rem; }
  .academy .btn { margin-top: 10px; }
  .academy-covers { position: relative; align-self: end; height: 100%; min-height: 320px; }
  .academy-covers img {
    position: absolute; bottom: -12%; width: 40%; border-radius: 8px; box-shadow: 0 20px 50px -12px rgb(0 0 0 / .55);
    left: calc(4% + var(--k) * 11%); transform: rotate(calc(-10deg + var(--k) * 5deg)); transform-origin: bottom center; transition: transform .6s var(--ease);
  }
  .academy-covers img:nth-child(1) { --k: 0; } .academy-covers img:nth-child(2) { --k: 1; } .academy-covers img:nth-child(3) { --k: 2; } .academy-covers img:nth-child(4) { --k: 3; } .academy-covers img:nth-child(5) { --k: 4; }
  .academy:hover .academy-covers img { transform: rotate(calc(-10deg + var(--k) * 5deg)) translateY(-10px); }
  @media (max-width: 900px) {
    .academy { grid-template-columns: 1fr; }
    .academy-list { grid-template-columns: 1fr; }
    .academy-covers { min-height: 230px; }
    .academy-covers img { width: 34%; bottom: -18%; left: calc(4% + var(--k) * 14%); }
  }

  /* Mercado */
  .mercado { background: var(--navy); color: #fff; padding-block: clamp(64px, 8vw, 96px); }
  .mercado-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
  .light { color: #fff; }
  .light-eyebrow { color: var(--sun); margin-bottom: 12px; display: block; }
  .light-lead { color: rgb(255 255 255 / .82); }
  .light-lead + .light-lead { margin-top: 12px; }
  .stats-title { font: 700 .82rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .7); margin-bottom: 20px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin: 0; }
  .stats dd { margin: 0; }
  .stats dt { color: rgb(255 255 255 / .75); margin-top: 4px; }
  .v { display: block; font: 700 clamp(2rem, 3.4vw, 2.8rem)/1 var(--f-display); color: #fff; }
  .fonte { margin-top: 24px; font-size: .85rem; opacity: .7; }
  .fonte.muted { opacity: 1; color: var(--muted); margin-top: 16px; }
  @media (max-width: 860px) { .mercado-grid { grid-template-columns: 1fr; } }

  /* Mentoria */
  .mentoria-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
  .mentoria .eyebrow { display: block; margin-bottom: 12px; }
  .mentoria .body { margin-top: 16px; color: var(--muted); max-width: 62ch; }
  .m-nums { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0 32px; color: var(--muted); font-size: .95rem; }
  .m-nums strong { display: block; font: 700 2.6rem/1 var(--f-display); color: var(--ink); }
  .m-steps { padding: 30px; }
  .m-steps h3 { font-size: 1.6rem; margin-bottom: 16px; }
  .m-steps ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
  .m-steps li::marker { font-weight: 700; color: var(--blue); }
  .m-steps .banca { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
  .m-steps .banca .icon { color: var(--teal); flex-shrink: 0; margin-top: 3px; }
  .m-steps .aviso { margin-top: 10px; font-size: .88rem; color: var(--muted); }
  @media (max-width: 860px) { .mentoria-grid { grid-template-columns: 1fr; } }

  /* E-books */
  .ebooks-sec { background: var(--surface); border-block: 1px solid var(--line); }
  .ebooks-sec .eyebrow { display: block; margin-bottom: 12px; }

  /* Rodadas */
  .rodada-box { background: var(--hero-bg); color: #fff; border-radius: calc(var(--r-card) + 8px); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .rodada-head > .icon { color: var(--sun); margin-bottom: 14px; }
  .rodada-head p:last-child { margin-top: 14px; color: rgb(255 255 255 / .86); }
  .rodada-opts { display: grid; gap: 12px; }
  .rodada-opts a {
    display: grid; gap: 8px; justify-items: start; padding: 24px; border-radius: var(--r-card);
    background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); color: #fff; text-decoration: none; transition: background .2s;
  }
  .rodada-opts a:hover { background: rgb(255 255 255 / .15); }
  .rodada-opts small { font: 500 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
  .rodada-opts strong { font: 700 1.4rem/1.15 var(--f-display); }
  .rodada-opts span:not(.btn) { color: rgb(255 255 255 / .82); font-size: .96rem; }
  .rodada-opts .btn { margin-top: 6px; }
  @media (max-width: 860px) { .rodada-box { grid-template-columns: 1fr; } }

  /* Blog */
  .blog-sec { background: var(--surface); border-block: 1px solid var(--line); }
  .blog-sec .eyebrow { display: block; margin-bottom: 12px; }
  .posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; list-style: none; padding: 0; }
  .posts li { padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .posts h3 { font-size: 1.45rem; }
  .posts h3 a { color: var(--ink); text-decoration: none; }
  .posts h3 a:hover { color: var(--link); }
  .posts p { color: var(--muted); font-size: .96rem; flex: 1; }
  .soon { font-size: .8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
  @media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

  /* Percepção */
  .percepcao-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
  .percepcao .eyebrow { display: block; margin-bottom: 12px; }
  .rep { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
  .rep li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 20px 24px; }
  .rep strong { font: 700 2.6rem/1 var(--f-display); color: var(--blue); }
  @media (prefers-color-scheme: dark) { .rep strong { color: #8fb0ff; } }
  .rep span { color: var(--muted); }
  @media (max-width: 860px) { .percepcao-grid { grid-template-columns: 1fr; } }

  /* Parceria */
  .parceria { background: var(--surface); border-top: 1px solid var(--line); }
  .parceria-inner { display: grid; justify-items: center; text-align: center; max-width: 760px; }
  .parceria-logos { height: 26px; width: auto; margin-bottom: 20px; filter: brightness(0) saturate(100%) invert(12%) sepia(60%) saturate(2200%) hue-rotate(200deg) brightness(.9); }
  @media (prefers-color-scheme: dark) { .parceria-logos { filter: none; } }
  .parceria .eyebrow { margin-bottom: 12px; }
  .parceria .section-title { max-width: 24ch; }
  .parceria .lead { max-width: 64ch; }
  .parceria .lead + .lead { margin-top: 12px; }
  .parceria .btn { margin-top: 28px; }

  /* Final */
  .final { background: var(--hero-bg); color: #fff; text-align: center; padding-block: clamp(72px, 10vw, 120px); }
  .final h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; margin-inline: auto; }
  .final p { margin: 18px auto 32px; color: rgb(255 255 255 / .86); font-size: 1.08rem; max-width: 70ch; }
  .final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
}
