/* Landing do Ministrify: só tema claro, cores da marca. Reaproveitado por /legal/legal.css. */
:root {
  --navy: #1e2a44;
  --navy-deep: #141d31;
  --gold: #c9a227;
  --green: #1e2a44;
  --green-light: #2f4170;
  --paper: #f6f5f1;
  --white: #ffffff;
  --ink: #1b2733;
  --muted: #55606b;
  --line: #dcd8cc;
  --radius-small: 8px;
  --radius: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, sans-serif;
  line-height: 1.15;
  margin: 0;
}

a {
  color: var(--green);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 2rem);
}

/* Botões */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.primary:hover {
  background: #17513c;
}

.button.light {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button.light:hover {
  border-color: var(--white);
}

.button.ghost {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

/* Topo */
.top {
  background: var(--navy);
  color: var(--white);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font: 700 1.5rem Montserrat, Inter, sans-serif;
}

.top-row .brand {
  margin-right: auto;
}

.brand svg {
  width: 32px;
  height: 30px;
}

.top-nav {
  display: flex;
  gap: 1.5rem;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
}

.top-nav a:hover {
  color: var(--white);
}

/* Hero: texto centralizado na faixa marinho e a tela grande embaixo, entrando no papel. */
.hero {
  --split: 14rem;
  background: linear-gradient(to bottom, var(--navy) calc(100% - var(--split)), var(--paper) calc(100% - var(--split)));
  color: var(--white);
  padding-top: 4.5rem;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  justify-items: center;
  gap: 3.5rem;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-shots {
  position: relative;
  width: min(1040px, 100%);
  margin: 0;
  padding-bottom: 3.5rem;
}

.shot {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -24px rgba(15, 34, 55, 0.55);
  background: var(--white);
}

.hero-shots .desktop {
  border: 6px solid var(--navy-deep);
}

.hero-shots .phone {
  position: absolute;
  right: -2.5rem;
  bottom: 0;
  width: 19%;
  border: 6px solid var(--navy-deep);
  border-radius: 22px;
}

/* Frase de transição entre o topo e o ciclo. */
.statement {
  padding: 6.5rem 0 2rem;
}

.statement-text {
  margin: 0;
  max-width: 20ch;
  font: 700 clamp(2rem, 5vw, 3.8rem)/1.12 Montserrat, Inter, sans-serif;
  letter-spacing: -0.015em;
  color: var(--navy);
}

/* O ciclo: trilho dourado com as etapas em ordem. */
.cycle {
  padding: 5rem 0 3rem;
}

.cycle h2,
.plans h2,
.faq h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
}

.section-lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.steps {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0.5rem;
  bottom: 2rem;
  width: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2.5rem;
  align-items: start;
  padding: 0 0 4.5rem 72px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font: 700 1.15rem Montserrat, Inter, sans-serif;
  box-shadow: 0 0 0 6px var(--paper);
}

.step h3 {
  font-size: 1.45rem;
  color: var(--navy);
  padding-top: 0.45rem;
}

.step p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.step .shot {
  border: 1px solid var(--line);
}

.phones {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
}

.stage {
  display: none;
}

.phone-shot {
  width: min(240px, 46%);
  border: 6px solid var(--navy-deep) !important;
  border-radius: 22px;
}

/* Planos */
.plans {
  padding: 4rem 0;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.black-friday {
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-small);
  background: #f7efdd;
  max-width: 48rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 54rem;
}

.plan {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.plan.featured {
  border: 2px solid var(--green);
  background: var(--white);
}

.plan h3 {
  font-size: 1.35rem;
  color: var(--navy);
}

.price {
  margin: 1rem 0 0;
  font: 700 2.4rem/1 Montserrat, Inter, sans-serif;
  color: var(--navy);
}

.price small {
  font: 500 1rem Inter, sans-serif;
  color: var(--muted);
  margin-left: 0.2rem;
}

.price s {
  font-size: 1.1rem;
  color: var(--muted);
  margin-right: 0.4rem;
  font-weight: 500;
}

.annual {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.plan ul {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
}

.plan li + li {
  margin-top: 0.4rem;
}

.plans-cta {
  margin-top: 2rem;
}

/* Perguntas */
.faq {
  padding: 4.5rem 0;
}

.faq h2 {
  margin-bottom: 1.5rem;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.08rem;
}

details p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

/* Fechamento e rodapé */
.closing {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
}

.closing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.closing h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 26ch;
}

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--white);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Tablet e celular */
@media (max-width: 960px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-shots .phone {
    right: 0.5rem;
  }

  .step {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .top-nav {
    display: none;
  }

  .top-row {
    justify-content: space-between;
  }

  .hero {
    --split: 5rem;
    padding-top: 2.75rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .statement {
    padding-top: 4rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-shots {
    padding-bottom: 2.5rem;
  }

  .cycle {
    padding-top: 3.5rem;
  }

  .hero-shots .phone {
    width: 32%;
    border-width: 4px;
    border-radius: 14px;
  }

  .hero-shots .desktop {
    border-width: 4px;
  }

  .steps::before,
  .motion .steps::after {
    left: 17px;
  }

  .step {
    padding: 0 0 3rem 52px;
  }

  .step-number {
    width: 37px;
    height: 37px;
    font-size: 1rem;
  }

  .step h3 {
    padding-top: 0.3rem;
    font-size: 1.25rem;
  }

  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan {
    padding: 1.35rem;
  }

  .closing .button {
    width: 100%;
  }
}

/* Animações: só com html.motion (JavaScript ligado e sem "reduzir movimento"). */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.motion .hero h1 .word {
  display: inline-block;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 60ms + 120ms);
}

.motion .hero .lead,
.motion .hero-actions,
.motion .hero-note {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s forwards;
}

.motion .hero-actions {
  animation-delay: 0.9s;
}

.motion .hero-note {
  animation-delay: 1s;
}

/* A tela sai inclinada e se endireita com a rolagem (--p de 0 a 1). */
.motion .hero-shots {
  perspective: 1600px;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1s forwards;
}

.motion .hero-shots .desktop {
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p, 0)) * 26deg)) scale(calc(0.88 + var(--p, 0) * 0.12));
  will-change: transform;
}

.motion .hero-shots .phone {
  transform: translate(calc((1 - var(--p, 0)) * 55%), calc((1 - var(--p, 0)) * 18%));
  will-change: transform;
}

/* Frase: as palavras acendem uma a uma. */
.motion .statement-text .word {
  color: #cfc9b9;
  transition: color 0.4s ease;
}

.motion .statement-text .word.lit {
  color: var(--navy);
}

/* Entrada ao chegar na tela. */
.motion .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.motion .reveal.in {
  opacity: 1;
  transform: none;
}

.motion .step .shot,
.motion .step .phones {
  transform: scale(0.94);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s;
}

.motion .step.in .shot,
.motion .step.in .phones {
  transform: none;
}

/* Trilho: o dourado enche conforme a rolagem; as etapas acendem quando alcançadas. */
.motion .steps::before {
  background: var(--line);
}

.motion .steps::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 0.5rem;
  bottom: 2rem;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(var(--rail, 0));
}

.motion .step-number {
  z-index: 1;
  background: var(--paper);
  color: var(--muted);
  box-shadow:
    0 0 0 6px var(--paper),
    inset 0 0 0 2px var(--line);
  transition:
    background-color 0.35s,
    color 0.35s,
    box-shadow 0.35s;
}

.motion .step.reached .step-number {
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 0 0 6px var(--paper);
}

/* Computador: lista à esquerda e uma moldura fixa à direita com a captura da etapa ativa. */
.motion .cycle-body.pin {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: start;
  margin-top: 3.5rem;
}

.motion .pin .steps {
  margin-top: 0;
}

.motion .pin .step {
  display: block;
  min-height: 68vh;
  padding-bottom: 0;
}

.motion .pin .step:last-child {
  min-height: 40vh;
}

.motion .pin .step > .shot,
.motion .pin .step > .phones {
  display: none;
}

.motion .pin .step-text {
  opacity: 0.38;
  transition: opacity 0.4s ease;
}

.motion .pin .step.active .step-text {
  opacity: 1;
}

.motion .pin .stage {
  display: block;
  position: sticky;
  top: max(5rem, calc(50vh - 17vw));
  aspect-ratio: 16 / 10.4;
}

.stage-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(36px) scale(0.95);
  transition:
    opacity 0.6s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stage-item.active {
  opacity: 1;
  transform: none;
}

.stage-item > .shot {
  width: 100%;
  border: 1px solid var(--line);
  transform: none;
}

.stage-phones .phones {
  justify-content: center;
  height: 100%;
  transform: none;
}

.stage-phones .phone-shot {
  width: auto;
  height: 100%;
}

/* Planos: o preço cheio é riscado na hora e o desconto conta até o valor. */
.motion .plans s {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 55% / 0 2px no-repeat;
  transition: background-size 0.5s ease 0.3s;
}

.motion .plans.in s {
  background-size: 100% 2px;
}

/* Fechamento: começa como cartão arredondado e se abre até a largura toda. */
.motion .closing {
  clip-path: inset(0 calc((1 - var(--p, 1)) * 7vw) round calc((1 - var(--p, 1)) * 36px));
}
