/* ==========================================================================
   MÉTODO RR — 2ª FASE DIREITO DO TRABALHO · 47º EXAME (Curso Regular)
   Redesign 2026 · Paolo Vinicios
   Assinatura visual: "A Rota" — linha tracejada dourada + waypoints
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #001942;
  --navy-800: #06264f;
  --navy-700: #0f406b;
  --navy-100: #d7e2ef;
  --navy-050: #eef3f9;
  --gold-500: #f5b746;
  --gold-600: #d99f2e;
  --gold-050: #fef6e8;
  --ink: #10203a;
  --slate: #46586f;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 25, 66, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 25, 66, 0.12);
  --shadow-lg: 0 14px 40px rgba(0, 25, 66, 0.18);

  --font-display:
    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1140px;

  /* rota tracejada (assinatura) */
  --route-dash: repeating-linear-gradient(
    90deg,
    var(--gold-500) 0 10px,
    transparent 10px 20px
  );
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* o :active próprio de cada elemento cuida do feedback (§1) */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  text-wrap: balance;
}

/* Tracking e leading são específicos por tamanho (§15) — um valor fixo fica errado numa das pontas:
   apertado demais no h3, solto demais no h2. Cada nível recebe o seu. */
h1 {
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
}
.skip-link:focus {
  left: 12px;
}

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--route-dash);
  background-size: 20px 2px;
}
.eyebrow-gold {
  color: var(--gold-500);
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.section-white {
  background: var(--white);
}
.section-soft {
  background: var(--navy-050);
}
.section-navy {
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-header .eyebrow {
  justify-content: center;
}
.section-sub {
  color: var(--slate);
  margin-top: 0.8rem;
  font-size: 1.06rem;
}

.section-header-light h2 {
  color: var(--white);
}
.section-header-light .section-sub {
  color: var(--navy-100);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(245, 183, 70, 0.35);
}
.btn-gold:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 183, 70, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.02rem;
}
.btn-block {
  width: 100%;
}

/* Feedback no pointer-down, não só no release (§1) — precisa vencer o :hover num clique de mouse */
.btn:active {
  transition-duration: 0.1s;
}
.btn-gold:active {
  background: var(--gold-600);
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(245, 183, 70, 0.4);
}
.btn-gold:hover:active {
  transform: translateY(-1px) scale(0.97);
}
.btn-ghost:active {
  border-color: var(--gold-500);
  color: var(--gold-500);
  transform: scale(0.97);
}
.btn-ghost:hover:active {
  transform: translateY(-1px) scale(0.97);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(0, 25, 66, 0.55);
  backdrop-filter: blur(10px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.header.scrolled {
  background: rgba(0, 25, 66, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.8rem 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.logo img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-menu a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.nav-menu a:hover {
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.nav-menu a:active {
  color: var(--gold-500);
}

.nav-cta {
  margin-left: 0.5rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
  transition:
    transform 0.12s ease,
    color 0.12s ease;
}
.mobile-menu-btn:active {
  color: var(--gold-500);
  transform: scale(0.9);
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 900;
}
.whatsapp-float a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.whatsapp-float img {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s;
}
.whatsapp-float a:hover img {
  transform: scale(1.08);
}
.whatsapp-float a:active img {
  transform: scale(0.94);
  transition-duration: 0.1s;
}
.whatsapp-float p {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--white);
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url(./assets/HeroImage.webp) right center/cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 25, 66, 0.96) 32%,
    rgba(0, 25, 66, 0.5) 58%,
    rgba(0, 25, 66, 0) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-text {
  max-width: 640px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 99px;
}
.chip-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.chip-line {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.h1-sub {
  display: block;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-100);
  margin-top: 0.55rem;
}
.h1-sub em {
  font-style: normal;
  color: var(--gold-500);
}

.hero-lead {
  color: var(--navy-100);
  font-size: 1.08rem;
  margin-top: 1.3rem;
  max-width: 560px;
}
.hero-lead strong {
  color: var(--white);
}

/* Rota tracejada — assinatura do hero */
.hero-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.8rem 0 1.4rem;
  max-width: 380px;
}
.route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(245, 183, 70, 0.22);
  flex-shrink: 0;
}
.route-line {
  flex: 1;
  height: 2px;
  background: var(--route-dash);
  background-size: 20px 2px;
}
.route-flag {
  color: var(--gold-500);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.9rem;
}
.hero-stats .stat dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold-500);
  line-height: 1;
}
.hero-stats .stat dd {
  color: var(--navy-100);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.hero-cta-group {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.trust-badges {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-100);
  font-size: 0.85rem;
}
.trust-badges i {
  color: var(--gold-500);
}

/* ---------- Vídeo ---------- */
.video-wrapper {
  max-width: 860px;
  margin-inline: auto;
}
.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--navy-900);
}
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Método overview ---------- */
.metodo-overview {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.metodo-overview h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
}
.metodo-item {
  background: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.metodo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.metodo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.metodo-item p {
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 500;
}

/* ---------- Como funciona (rota-steps) ---------- */
.rota-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: rota;
  position: relative;
}
.rota-steps::before {
  /* linha de rota conectando as etapas */
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--route-dash);
  background-size: 20px 2px;
  z-index: 0;
}
.rota-step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.rota-step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  border: 3px solid var(--gold-500);
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 6px var(--navy-050);
}
.rota-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
}
.rota-step p {
  color: var(--slate);
  font-size: 0.93rem;
}

/* ---------- Features (showcase em abas) ---------- */
.feature-tabs {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.feature-tablist {
  position: relative;
  display: flex;
  gap: 0.4rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  /* rola em telas estreitas (mesmo tratamento de máscara dos carrosséis); some quando cabe tudo */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12px,
    #000 calc(100% - 12px),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12px,
    #000 calc(100% - 12px),
    transparent
  );
  scrollbar-width: none;
}
.feature-tablist::-webkit-scrollbar {
  display: none;
}
.feature-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  color: var(--navy-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 0.2s ease;
}
.feature-tab i {
  font-size: 0.95em;
}
.feature-tab:hover {
  color: var(--white);
}
.feature-tab:active {
  color: var(--gold-500);
}
.feature-tab[aria-selected="true"] {
  color: var(--gold-500);
}
.feature-tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  transition:
    transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.feature-panels {
  display: grid;
  /* os painéis são empilhados na mesma célula — o contêiner assume a altura do mais alto
     e nunca refluí ao trocar de aba (§7: consistência espacial) */
}
.feature-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
  transition-delay: 0s;
}
.feature-panel[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition-delay: 0s, 0s;
}
.feature-panel[aria-hidden="false"] {
  transition-delay: 0.05s;
} /* entra logo depois que a anterior começa a sumir */

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 183, 70, 0.15);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  border: 1px solid rgba(245, 183, 70, 0.4);
  margin-bottom: 1rem;
}
.feature-content h3 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: 0.8rem;
}
.feature-content h3 i {
  color: var(--gold-500);
}
.feature-lead {
  color: var(--navy-100);
  margin-bottom: 1.2rem;
}
.feature-list {
  display: grid;
  gap: 0.55rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--white);
  font-size: 0.95rem;
}
.feature-list i {
  color: var(--gold-500);
  margin-top: 0.2rem;
}
.feature-note {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--gold-500);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy-100);
  font-size: 0.92rem;
}
.feature-note i {
  color: var(--gold-500);
}

.novidade-banner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: rgba(245, 183, 70, 0.08);
  border: 1px solid rgba(245, 183, 70, 0.35);
  border-radius: var(--radius);
}
.novidade-banner .feature-badge {
  margin-bottom: 0.8rem;
}
.novidade-banner h3 {
  color: var(--white);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin-bottom: 0.6rem;
}
.novidade-banner p:not(.feature-badge) {
  color: var(--navy-100);
  font-size: 0.95rem;
}

.feature-image {
  position: relative;
}
.feature-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

/* ---------- Recursos ---------- */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.recurso-card {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.recurso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.recurso-card:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}
.recurso-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--gold-050);
  color: var(--gold-600);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.recurso-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}
.recurso-card p {
  font-size: 0.88rem;
  color: var(--slate);
}

/* ---------- Estrutura ---------- */
.estrutura-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.estrutura-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
}
.estrutura-icon {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 183, 70, 0.15);
  color: var(--gold-500);
  font-size: 1.3rem;
}
.estrutura-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-500);
}
.estrutura-label {
  font-size: 0.82rem;
  color: var(--navy-100);
}

.content-table {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.content-table h3 {
  margin-bottom: 1.3rem;
}
.content-list {
  display: grid;
  gap: 0.45rem;
}
.content-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-050);
  font-size: 0.93rem;
}
.content-item-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}
.content-item-title i {
  color: var(--navy-700);
}
.content-item-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-700);
  white-space: nowrap;
}
.content-item.highlight {
  background: var(--gold-050);
}
.content-item.highlight i,
.content-item.highlight .content-item-count {
  color: var(--gold-600);
}
.content-item.live {
  background: #eaf6ef;
}
.content-item.live i,
.content-item.live .content-item-count {
  color: #1d7a46;
}

.content-item.hidden-row {
  display: none;
}
.content-item.hidden-row.expanded {
  display: flex;
}

.toggle-more-wrap {
  text-align: center;
  margin-top: 1.2rem;
}
.toggle-more-btn {
  background: none;
  border: 2px solid var(--navy-700);
  color: var(--navy-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.1s ease;
}
.toggle-more-btn:hover {
  background: var(--navy-700);
  color: var(--white);
}
.toggle-more-btn:active {
  transform: scale(0.96);
}
.toggle-more-btn i {
  transition: transform 0.25s;
}
.toggle-more-btn.open i {
  transform: rotate(180deg);
}

/* ---------- Depoimentos (carrossel via JS — rAF + Pointer Events, ver script47.js) ---------- */
.depo-carousel-wrap {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  cursor: grab;
  touch-action: pan-y; /* preserva o scroll vertical da página; o eixo X é arrastado por JS */
}
.depo-carousel-wrap.grabbing {
  cursor: grabbing;
}
.depo-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  will-change: transform;
}
.depo-carousel-card {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.depo-quote-icon {
  color: var(--gold-500);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.depo-texto {
  font-size: 0.9rem;
  color: var(--slate);
  flex: 1;
}
.depo-stars {
  color: var(--gold-500);
  letter-spacing: 0.15em;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ---------- Timeline / Rota até a prova ---------- */
.timeline-wrapper {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 34px;
}
.timeline-line {
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--gold-500) 0 10px,
    transparent 10px 20px
  );
}
.timeline-item {
  position: relative;
  padding: 0 0 2.4rem 2.6rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: -34px;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid var(--gold-500);
  box-shadow: 0 0 0 6px var(--white);
}
.timeline-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.3rem;
}
.timeline-content h3 {
  margin-bottom: 0.4rem;
}
.timeline-content > p {
  color: var(--slate);
  font-size: 0.95rem;
}
.timeline-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.timeline-features li {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink);
}
.timeline-features i {
  color: var(--gold-600);
}
.timeline-highlight {
  margin-top: 0.9rem;
  background: var(--gold-050);
  border-left: 3px solid var(--gold-500);
  padding: 0.7rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.timeline-highlight i {
  color: var(--gold-600);
}
.timeline-destaque .timeline-marker {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* ---------- CLT ---------- */
.section-clt {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-900));
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.clt-showcase {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.clt-book-visual img {
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  max-height: 480px;
  width: auto;
  margin-inline: auto;
}
.clt-info h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.clt-subtitle {
  color: var(--gold-500);
  font-weight: 600;
  margin-top: 0.3rem;
}
.clt-author {
  color: var(--navy-100);
  font-size: 0.9rem;
  margin: 0.3rem 0 1rem;
}
.clt-description {
  color: var(--navy-100);
  margin-bottom: 1.2rem;
}
.clt-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.2rem;
  margin-bottom: 1.2rem;
}
.clt-features-grid li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--white);
  font-size: 0.88rem;
}
.clt-features-grid i {
  color: var(--gold-500);
  margin-top: 0.2rem;
}
.clt-specs {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.clt-specs li {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--navy-100);
  font-size: 0.85rem;
}
.clt-specs i {
  color: var(--gold-500);
}
.clt-price-block {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.clt-price-from {
  display: block;
  color: var(--navy-100);
  font-size: 0.82rem;
  text-decoration: line-through;
}
.clt-price-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--gold-500);
  line-height: 1.1;
}
.clt-price-parcelas {
  display: block;
  color: var(--navy-100);
  font-size: 0.82rem;
}
.clt-coupon {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.clt-coupon-label {
  color: var(--navy-100);
  font-size: 0.88rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.clt-coupon-label i {
  color: var(--gold-500);
}
.clt-coupon-code {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--gold-500);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s ease;
}
.clt-coupon-code:hover {
  background: rgba(245, 183, 70, 0.15);
}
.clt-coupon-code:active {
  transform: scale(0.96);
}
.clt-coupon-code.copied {
  background: rgba(245, 183, 70, 0.25);
}
.clt-coupon-benefit {
  color: var(--navy-100);
  font-size: 0.85rem;
}
.clt-coupon-benefit strong {
  color: var(--gold-500);
}
.clt-disclaimer {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* ---------- Professor ---------- */
.professor-content {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.professor-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 520px;
  width: auto;
  margin-inline: auto;
  object-fit: cover;
}
.professor-info h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.professor-info p {
  color: var(--navy-100);
  margin-bottom: 1rem;
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.credentials li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
}
.credentials i {
  color: var(--gold-500);
}

/* ---------- Preços ---------- */
.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
  max-width: 940px;
  margin-inline: auto;
}
.pricing-includes {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.pricing-includes h3 {
  color: var(--white);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.pricing-includes h3 i {
  color: var(--gold-500);
}
.pricing-includes ul {
  display: grid;
  gap: 0.65rem;
}
.pricing-includes li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--navy-100);
}
.pricing-includes li i {
  color: var(--gold-500);
  margin-top: 0.2rem;
}

.pricing-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.discount-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 1.1rem;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}
.pricing-card h3 {
  font-size: 1.05rem;
  margin: 0.6rem 0 1.1rem;
}
.pricing-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.pricing-option {
  border: 2px solid var(--navy-100);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    transform 0.1s ease;
}
.pricing-option:active {
  transform: scale(0.96);
}
.pricing-option.active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}
.price-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 1.2rem;
  transition: transform 0.2s;
}
.price-display small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
}
.juros {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.7rem;
}
.garantia-reprovacao {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  text-align: left;
  border-top: 1px dashed var(--navy-100);
  margin-top: 1.3rem;
}
.garantia-reprovacao i {
  color: var(--gold-600);
  font-size: 1.5rem;
}
.garantia-reprovacao strong {
  font-size: 0.92rem;
}
.garantia-reprovacao p {
  font-size: 0.82rem;
  color: var(--slate);
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-900);
  transition: background 0.15s ease;
}
.faq-item summary:active {
  background: var(--navy-050);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary i {
  transition: transform 0.25s;
  color: var(--navy-700);
  flex-shrink: 0;
}
.faq-item[open] summary i {
  transform: rotate(180deg);
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--navy-100);
}
.faq-item p {
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--slate);
}

/* ---------- Garantia ---------- */
.garantia-section {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-sm);
}
.garantia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-050);
  color: var(--gold-600);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  border: 2px dashed var(--gold-500);
}
.garantia-text {
  color: var(--slate);
  margin-top: 0.9rem;
}

/* ---------- CTA final ---------- */
.final-cta {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.final-cta h2 {
  color: var(--white);
  margin-bottom: 0.9rem;
}
.final-cta p {
  color: var(--navy-100);
  margin-bottom: 1.8rem;
  font-size: 1.06rem;
}

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: var(--navy-900);
  padding: 0.7rem 16px calc(0.7rem + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -6px 20px rgba(0, 25, 66, 0.3);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-100);
}
.sticky-cta-price {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold-500);
  font-size: 1.05rem;
  line-height: 1.2;
}
.sticky-cta .btn {
  padding: 0.7rem 1.3rem;
  font-size: 0.88rem;
}

/* ---------- Countdown widget (injetado via JS) ---------- */
.countdown-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 940;
  width: 250px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.countdown-widget.visible {
  transform: translateY(0);
  opacity: 1;
}
.countdown-widget.dismissed {
  transform: translateY(20px);
  opacity: 0;
}
.cw-header {
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
}
.cw-header-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.cw-header-left i {
  color: var(--gold-500);
}
.cw-close {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.85rem;
}
.cw-close:hover {
  color: var(--white);
}
.cw-body {
  padding: 0.9rem 1rem 1rem;
  text-align: center;
}
.cw-title {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.cw-timer {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.cw-unit {
  background: var(--navy-050);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.45rem;
  min-width: 44px;
}
.cw-unit-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  line-height: 1;
}
.cw-unit-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.2rem;
}
.cw-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.cw-cta:hover {
  background: var(--gold-600);
}
.cw-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.cw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-100);
}
.cw-dot.active {
  background: var(--gold-500);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--navy-100);
  text-align: center;
  padding: 2.2rem 0;
  font-size: 0.82rem;
  border-top: 3px solid var(--gold-500);
}
.footer p + p {
  margin-top: 0.4rem;
}
.footer a {
  color: var(--gold-500);
}
.footer a:hover {
  text-decoration: underline;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  /* limitado a 3 passos (~165ms de teto) — uma grade longa como #recursos (--d até 7) não deve
     levar mais de meio segundo pra terminar de entrar; ver §1 do apple-design */
  transition-delay: calc(min(var(--d, 0), 3) * 55ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .rota-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .rota-steps::before {
    display: none;
  }
  .clt-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    padding: 0.6rem 0 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--gold-500);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    display: block;
    padding: 0.85rem 24px;
    border-bottom: 0;
  }
  .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }
  .feature-image img {
    aspect-ratio: 16 / 10;
  }

  .clt-showcase,
  .professor-content,
  .pricing-layout {
    grid-template-columns: 1fr;
  }
  .professor-image img {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 7.5rem 0 4rem;
  }
  .hero-bg {
    background-position: 72% center;
  }
  .hero-stats {
    gap: 1.6rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }

  .rota-steps {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    display: flex;
  }
  .whatsapp-float {
    bottom: 160px;
  }
  .countdown-widget {
    display: none;
  }

  .estrutura-resumo {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-options {
    grid-template-columns: 1fr;
  }
}
