/* Página de preços. Reaproveita tokens, vidro (.glass) e formulário de style.css. */

/* ---------- Fundo: o provedor por dentro (fica parado atrás enquanto a página rola) ---------- */
.stage { position: relative; isolation: isolate; background: var(--bg); }
.stage-bg { position: sticky; top: 0; z-index: -1; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
/* o conteúdo sobe por cima do fundo; o fundo continua dentro da área do .stage (não vaza para as seções abaixo) */
.stage-bg + * { margin-top: -100vh; margin-top: -100svh; }
.stage-bg .bg-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .75; filter: saturate(1.15) blur(.5px); will-change: opacity, transform; }
/* sem JS fica só a primeira imagem; com JS o script faz a troca suave pela rolagem */
.stage-bg .bg-layer:not(:first-child) { opacity: 0; }
.stage-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(3 12 27 / .7) 0%, rgb(3 12 27 / .32) 35%, rgb(3 12 27 / .5) 70%, rgb(3 12 27 / .9) 100%),
    radial-gradient(70% 60% at 50% 45%, transparent 0%, rgb(3 12 27 / .55) 100%);
}

/* ---------- Hero ---------- */
.pricing-hero {
  position: relative; isolation: isolate; overflow: clip; text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(60% 80% at 50% -10%, rgb(0 95 250 / .42), transparent 70%),
    radial-gradient(40% 50% at 0% 60%, rgb(91 148 255 / .16), transparent 70%);
}
.pricing-hero h1 { font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.pricing-hero .lede { margin: 1.25rem auto 0; font-size: var(--step-1); line-height: 1.5; color: #c6d3ea; max-width: 46ch; }

/* ---------- Planos ---------- */
.plans { position: relative; isolation: isolate; overflow: clip; background: none; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem); }
.plans::before, .plans::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.plans::before { width: 34rem; height: 34rem; left: -12rem; top: 10%; background: rgb(0 95 250 / .32); }
.plans::after { width: 36rem; height: 36rem; right: -12rem; top: 30%; background: rgb(91 148 255 / .24); }

.plan-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 62rem) { .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.plan { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.6rem, 3vw, 2.25rem); border-radius: 20px; }
.plan header h2 { font-size: var(--step-2); max-width: none; letter-spacing: -0.02em; }
.plan .tag { margin: .5rem 0 0; color: var(--muted); font-size: var(--step--1); }

.price { display: grid; gap: .25rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.price strong { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; line-height: 1.15; color: #fff; }
.price span { font-size: .82rem; color: #aebddb; line-height: 1.45; }

.plan .btn { width: 100%; }
.incl { margin: 0; font-size: var(--step--1); font-weight: 600; color: #fff; }

.feat { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.feat li { position: relative; padding-left: 1.9rem; color: #d3deef; font-size: var(--step--1); line-height: 1.5; }
.feat li::before {
  content: ""; position: absolute; left: 0; top: .12rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: rgb(91 148 255 / .22);
  -webkit-mask: none; mask: none;
}
.feat li::after {
  content: ""; position: absolute; left: .37rem; top: .33rem; width: .42rem; height: .22rem;
  border-left: 2px solid #8fb6ff; border-bottom: 2px solid #8fb6ff; transform: rotate(-45deg);
}

/* destaque */
.plan-featured { padding-top: clamp(2.6rem, 4vw, 3rem); background: linear-gradient(rgb(255 255 255 / calc(var(--lit) * .12)), rgb(255 255 255 / calc(var(--lit) * .12))), linear-gradient(160deg, #1a72ff, #0044bd 80%); border-color: rgb(255 255 255 / .25); }
.plan-featured .tag, .plan-featured .price span { color: rgb(255 255 255 / .88); }
.plan-featured .price { border-color: rgb(255 255 255 / .28); }
.plan-featured .feat li { color: #eef4ff; }
.plan-featured .feat li::before { background: rgb(255 255 255 / .22); }
.plan-featured .feat li::after { border-color: #fff; }
.ribbon { position: absolute; top: 0; left: 50%; translate: -50% -50%; margin: 0; padding: .35rem 1rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: #001a36; background: var(--yellow); white-space: nowrap; box-shadow: 0 8px 22px -8px rgb(254 180 22 / .7); }
.plan-featured { overflow: visible; }
.plan-featured::before, .plan-featured::after { border-radius: inherit; }
@media (min-width: 62rem) { .plan-featured { margin-block: -1rem; padding-block: calc(clamp(2.6rem, 4vw, 3rem) + 1rem) calc(clamp(1.6rem, 3vw, 2.25rem) + 1rem); } }

/* ---------- Garantias ---------- */
.assurance { display: grid; gap: .75rem; grid-template-columns: 1fr; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 48rem) { .assurance { grid-template-columns: repeat(3, 1fr); } }
.assurance li { display: grid; gap: .15rem; padding: 1.1rem 1.3rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); }
.assurance strong { font-size: var(--step-1); font-weight: 600; color: #fff; }
.assurance span { font-size: var(--step--1); color: var(--muted); }

/* ---------- Como funciona ---------- */
.how { background: var(--bg-2); }
.how-in { display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 62rem) { .how-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.how h2 { margin-bottom: 1.25rem; }
.how p { color: var(--muted); max-width: 52ch; }
.how .btn { margin-top: .75rem; }
.steps2 { display: grid; gap: .9rem; }
.steps2 li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.25rem 1.4rem; border-radius: var(--radius); }
.steps2 .n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font-weight: 600; color: #fff; background: var(--blue); }
.steps2 h3 { font-size: var(--step-0); margin: .1rem 0 .3rem; }
.steps2 p { margin: 0; color: var(--muted); font-size: var(--step--1); }

@media (prefers-reduced-motion: no-preference) {
  .pricing-hero h1, .pricing-hero .lede { animation: rise .8s var(--ease) both; }
  .pricing-hero .lede { animation-delay: .1s; }
}

.stage-bg .bg-layer[src*="torre"] { filter: saturate(.95) brightness(.6) blur(.5px); }
