/* Página Premium e dados: usa os tokens e componentes de site.css */

@font-face { font-family: 'Chain Primor'; src: url('../assets/fonts/chains/chain-primor.woff2') format('woff2'); font-weight: 500; font-display: swap; }
.chain--primor { font-family: 'Chain Primor', var(--display); color: #111216; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; }

.p-note { margin: 10px 0 0; font-size: 12px; color: var(--text-2); }

/* Aparecer ao entrar no ecrã */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .9s cubic-bezier(.2, .9, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1. Abertura ---------- */
.p-hero { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 5vw; padding: 120px calc(var(--pad) + 2vw) 60px; }
.p-title { font-size: clamp(52px, min(8.6vw, 13vh), 150px); line-height: .92; }
.p-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.p-title .line--accent { color: var(--accent); }
.p-title .word { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2, .9, .2, 1); }
.p-title .line:nth-child(2) .word { transition-delay: .08s; }
.p-title .line:nth-child(3) .word { transition-delay: .16s; }
body.is-ready .p-title .word { transform: none; }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-top: 30px; }
.p-price b { font: 600 clamp(48px, 5vw, 72px)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.p-price span { font: 600 22px var(--display); color: var(--text-2); }
.p-price small { flex-basis: 100%; font-size: 14px; color: var(--text-2); }

.notif-stack { position: relative; display: grid; gap: 12px; justify-self: center; width: min(440px, 100%); }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 22px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 20px 40px -24px rgba(18, 61, 46, .5), inset 0 0 0 1px rgba(255, 255, 255, .7);
  opacity: 0; transform: translateY(-30px) scale(.94); transition: opacity .5s, transform .7s cubic-bezier(.3, 1.4, .5, 1);
}
.notif.is-in { opacity: 1; transform: none; }
.notif img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.notif div { display: grid; gap: 1px; font-size: 14.5px; line-height: 1.35; }
.notif-app { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.notif b { font-weight: 650; }
.notif span { color: var(--text-2); }
.notif:nth-child(odd) { margin-right: 26px; }
.notif:nth-child(even) { margin-left: 26px; }
@media (max-width: 900px) {
  .p-hero { grid-template-columns: 1fr; padding-top: 100px; gap: 40px; }
  .notif:nth-child(odd), .notif:nth-child(even) { margin: 0; }
}

/* ---------- 2. Histórico ---------- */
.p-chart-scene { background: var(--ink); color: #fff; }
.p-chart-scene .eyebrow { color: var(--mustard); }
.p-chart-scene .lead { color: rgba(255, 255, 255, .78); }
.p-chart-scene .stage { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 5vw; padding: 90px calc(var(--pad) + 2vw) 40px; }
.p-chart { position: relative; padding: 22px; border-radius: 28px; background: #fff; color: var(--text); }
.p-chart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.p-chart-head img { width: 44px; height: 54px; object-fit: contain; }
.p-chart-head div { display: grid; font-size: 13px; color: var(--text-2); }
.p-chart-head div b { font: 600 20px var(--display); color: var(--text); }
.p-chart-head strong { margin-left: auto; white-space: nowrap; font: 600 34px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color .3s; }
.p-chart-head strong.is-low { color: var(--green); }
.p-chart-svg { width: 100%; height: auto; overflow: visible; }
.p-chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.p-chart-svg .target { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; }
.p-chart-svg .target-label { fill: var(--accent); font: 600 13px var(--display); }
.p-chart-svg .line { fill: none; stroke: var(--brand-green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.p-chart-svg .area { fill: url(#none); fill: rgba(36, 120, 90, .1); }
.p-chart-svg .dot { fill: var(--brand-green); stroke: #fff; stroke-width: 3; }
.p-chart-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.p-chart-alert {
  position: absolute; right: -18px; top: -26px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px;
  background: var(--accent); color: #fff; box-shadow: 0 20px 40px -18px rgba(224, 73, 43, .7);
  opacity: 0; transform: translateY(16px) scale(.85) rotate(-2deg); transition: opacity .4s, transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.p-chart-alert.is-in { opacity: 1; transform: rotate(-2deg); }
.p-chart-alert img { width: 34px; height: 34px; border-radius: 9px; }
.p-chart-alert div { display: grid; font-size: 13px; }
.p-chart-alert b { font: 600 16px var(--display); }
@media (max-width: 900px) {
  .p-chart-scene .stage { grid-template-columns: 1fr; padding-top: 80px; gap: 24px; }
  .p-chart-scene .big { font-size: 40px; }
  .p-chart-scene .lead { display: none; }
  .p-chart-alert { right: 8px; top: -40px; }
  .p-chart-head div b { font-size: 16px; }
  .p-chart-head strong { font-size: 26px; }
}

/* ---------- 3. Plano ideal ---------- */
.p-plan-scene .stage { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 4vw; padding: 90px calc(var(--pad) + 2vw) 40px; }
.p-plan { position: relative; }
.p-plan-pool { position: relative; height: 0; }
.p-plan-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.p-plan-col { display: flex; flex-direction: column; min-height: min(56vh, 460px); padding: 14px; border-radius: 22px; background: #fff; transition: box-shadow .4s; }
.p-plan-col header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 20px; }
.p-plan-col header small { font-size: 12px; color: var(--text-2); }
.p-plan-col .slots { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 8px; padding: 12px 0; }
.p-plan-col .slots i { aspect-ratio: 1; border-radius: 12px; background: var(--bg); }
.p-plan-col footer { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.p-plan-col footer b { font: 600 24px var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.plan-item { position: absolute; left: 0; top: 0; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 10px 20px -12px rgba(18, 61, 46, .5); will-change: transform; z-index: 2; }
.plan-item img { width: 100%; height: 100%; object-fit: contain; }
.p-plan-saving { margin: 18px 0 0; font: 600 clamp(20px, 2vw, 30px) var(--display); letter-spacing: -0.02em; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2, .9, .2, 1); }
.p-plan-saving.is-in { opacity: 1; transform: none; }
.p-plan-saving b { color: var(--green); }
@media (max-width: 900px) {
  .p-plan-scene .stage { grid-template-columns: 1fr; padding-top: 76px; gap: 16px; }
  .p-plan-scene .big { font-size: 36px; }
  .p-plan-scene .lead { display: none; }
  .p-plan-col { min-height: 40vh; padding: 10px; }
  .p-plan-col header { flex-direction: column; font-size: 15px; }
  .p-plan-col .slots { grid-template-columns: repeat(2, 1fr); }
  .p-plan-col footer { flex-direction: column; }
  .p-plan-col footer b { font-size: 18px; }
}

/* ---------- 4. Planos ---------- */
.p-plans { padding: 16vh calc(var(--pad) + 2vw); }
.p-table { margin-top: 48px; border-radius: 28px; background: #fff; overflow: hidden; }
.p-row { display: grid; grid-template-columns: 1fr 140px 160px; align-items: center; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); font-size: 16px; }
.p-row--head { border-top: 0; font: 600 20px var(--display); }
.p-row--head span:not(:first-child) { text-align: center; }
.p-row--head small { display: block; font: 500 13px var(--body); color: var(--text-2); }
.p-row .is-premium { color: var(--accent); }
.p-row i, .p-row em { justify-self: center; font-style: normal; font-weight: 600; }
.p-row i.yes { width: 28px; height: 28px; border-radius: 50%; background: var(--green); position: relative; }
.p-row i.yes::after { content: ''; position: absolute; left: 10px; top: 6px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.p-row i.no { width: 16px; height: 2px; background: var(--line); }
.p-row > :last-child { position: relative; }
@media (max-width: 760px) {
  .p-row { grid-template-columns: 1fr 64px 76px; padding: 14px 16px; font-size: 14px; }
  .p-row--head { font-size: 15px; }
}

/* ---------- 5. Dados ---------- */
.p-data { padding: 16vh calc(var(--pad) + 2vw); background: var(--ink); color: #fff; }
.p-data .eyebrow { color: var(--mustard); }
.p-data .lead { color: rgba(255, 255, 255, .78); max-width: 38em; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 60px 0; }
.p-stat { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .07); }
.p-stat b { display: block; font: 600 clamp(36px, 4vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.p-stat span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.p-data-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.p-offers { display: grid; gap: 10px; }
.p-offer { padding: 18px 22px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); transition: background .3s, transform .3s; }
.p-offer:hover { background: rgba(255, 255, 255, .06); transform: translateX(6px); }
.p-offer h3 { font-size: 24px; letter-spacing: -0.02em; }
.p-offer p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.p-code { position: sticky; top: 100px; border-radius: 22px; background: #0b1a14; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.p-code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 12px ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .5); }
.p-code-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.p-code-bar i:first-child { background: var(--accent); }
.p-code-bar i:nth-child(2) { background: var(--mustard); }
.p-code-bar i:nth-child(3) { background: var(--brand-green); }
.p-code-bar span { margin-left: 8px; }
.p-code pre { margin: 0; padding: 20px; min-height: 380px; font: 13.5px/1.6 ui-monospace, Menlo, monospace; color: #d6e6dd; white-space: pre-wrap; }
.p-code .k { color: var(--mustard); }
.p-code .s { color: #8fd3b0; }
.p-code .n { color: #ff9b85; }
.p-code .c { color: rgba(255, 255, 255, .4); }
.p-code .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.p-audience { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 50px; font: 600 clamp(20px, 2.2vw, 30px) var(--display); }
.p-audience em { font-style: normal; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.p-audience em:nth-child(odd) { background: var(--accent); }
.p-data-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.p-data-cta p { max-width: 34em; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.p-data-cta a:not(.nav-cta) { color: #fff; font-weight: 600; }
.p-waitlist { height: 54px; padding-left: 24px; background: #fff; color: var(--ink); }
.p-waitlist:hover { background: var(--mustard); }
@media (max-width: 900px) {
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .p-data-grid { grid-template-columns: 1fr; }
  .p-code { position: relative; top: 0; }
  .p-code pre { min-height: 300px; font-size: 12px; }
}

.p-cta { min-height: 90vh; }
