/* =========================================================
   MZ Pack — lancio riservato
   Tokens
   ========================================================= */
:root {
  --bg: #050607;
  --bg-2: #0b0e11;
  --text: #eef2f4;
  --muted: #94a0a8;
  --dim: #5e686f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  /* base quasi opaca sotto i pannelli: il grafico di sfondo non deve passare sopra al testo */
  --surface: rgba(8, 10, 12, .84);
  --accent: #72f0dc;
  --accent-2: #3cc9b3;
  --accent-ink: #04120f;
  --accent-soft: rgba(114, 240, 220, .12);
  --accent-line: rgba(114, 240, 220, .38);
  --danger: #ff5f5f;
  --warn: #ffb648;
  --wa: #25d366;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px var(--accent-line), 0 24px 80px -24px rgba(114, 240, 220, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:where(main, .float-wa, .checkout-modal) svg:where(:not(.hero-chart)) { width: 1em; height: 1em; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.accent { color: var(--accent); }
.br-lg { display: inline; }

/* =========================================================
   Ambient background
   ========================================================= */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 100%);
}
.ambient-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .6;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient-glow-a {
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  top: -24vw; right: -14vw;
  background: radial-gradient(circle, rgba(114, 240, 220, .3), transparent 62%);
}
.ambient-glow-b {
  width: 52vw; height: 52vw; max-width: 720px; max-height: 720px;
  bottom: -22vw; left: -16vw;
  background: radial-gradient(circle, rgba(58, 120, 255, .16), transparent 62%);
  animation-delay: -13s;
}
.ambient-chart { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; opacity: .55; }
.ambient-chart svg { width: 100%; height: 100%; }
.ambient-noise {
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vw, 4vw, 0); } }

main, footer { position: relative; z-index: 1; }

/* =========================================================
   Scroll progress + urgency bar
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 2px;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.urgency-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 7, .74);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.urgency-inner {
  width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.urgency-inner b { color: var(--text); font-weight: 600; }
.urgency-inner .sep { color: var(--dim); }
.urgency-copy-short { display: none; }
.timer {
  color: var(--accent); font-weight: 700; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(114, 240, 220, .6); }
  100% { box-shadow: 0 0 0 12px rgba(114, 240, 220, 0); }
}
body[data-phase="pre"] .pulse { background: var(--warn); animation-name: pulse-warn; }
@keyframes pulse-warn {
  0% { box-shadow: 0 0 0 0 rgba(255, 182, 72, .6); }
  100% { box-shadow: 0 0 0 12px rgba(255, 182, 72, 0); }
}
body[data-phase="ended"] .pulse { background: var(--danger); animation: none; }
body[data-phase="ended"] .timer { color: var(--danger); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: clamp(52px, 8vw, 110px) 0 clamp(28px, 4vw, 56px); }
.hero-shell {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1, h2 { text-wrap: balance; }
p, .tag, .faq-body, .feature-text small { text-wrap: pretty; }
.section-head p, .final-card > p { text-wrap: balance; }
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em;
  margin: 22px 0 18px;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--text); text-decoration: none; font-weight: 600;
  transition: background .25s, border-color .25s;
}
.btn-ghost svg { width: 18px; height: 18px; color: var(--wa); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .25); }

.market-visual { position: relative; perspective: 1200px; }
.market-frame {
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--float-y, 0px));
  transition: transform .6s var(--ease);
  will-change: transform;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, #0c1114, #070a0c);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  aspect-ratio: 620 / 460;
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.frame-bar i:first-child { background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: auto; width: 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.hero-chart { position: absolute; left: 0; right: 0; top: 38px; bottom: 0; width: 100%; height: calc(100% - 38px); }
.chart-grid path { stroke: rgba(255, 255, 255, .06); stroke-width: 1; fill: none; }
.chart-area { fill: url(#areaGradient); opacity: 0; animation: fade-in 1.2s ease 1.4s forwards; }
.chart-line {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  filter: url(#lineGlow);
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease) .4s forwards;
}
.candles path { stroke: rgba(255, 255, 255, .35); stroke-width: 1; fill: rgba(114, 240, 220, .18); }
.signals .signal { opacity: 0; animation: fade-in .5s ease forwards; }
.signals .signal:nth-child(1) { animation-delay: 1.3s; }
.signals .signal:nth-child(2) { animation-delay: 2s; }
.signals .signal:nth-child(3) { animation-delay: 2.5s; }
.signal circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.signal path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.signal.sell circle { stroke: var(--danger); }
.signal.sell path { stroke: var(--danger); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.crosshair { position: absolute; background: rgba(114, 240, 220, .22); pointer-events: none; }
.crosshair-a { top: 38px; bottom: 0; width: 1px; left: 60%; animation: xh 9s ease-in-out infinite alternate; }
.crosshair-b { left: 0; right: 0; height: 1px; top: 52%; animation: yh 11s ease-in-out infinite alternate; }
@keyframes xh { from { left: 18%; } to { left: 84%; } }
@keyframes yh { from { top: 36%; } to { top: 74%; } }
.market-scan {
  position: absolute; top: 38px; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(114, 240, 220, .07), transparent);
  animation: scan 7s linear infinite; pointer-events: none;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.market-visual::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 60px;
  background: radial-gradient(ellipse at center, rgba(114, 240, 220, .28), transparent 70%);
  filter: blur(18px); pointer-events: none; z-index: -1;
  animation: shadow-breathe 6s ease-in-out infinite;
}
@keyframes shadow-breathe { 0%, 100% { opacity: .6; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(.92); } }

.marquee { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.marquee span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.marquee svg { width: 14px; height: 14px; color: var(--accent); }

/* =========================================================
   Section headings
   ========================================================= */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head h2, .faq-heading h2, .final-card h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.03em; margin: 0;
}
.section-head p { color: var(--muted); margin: 14px auto 0; max-width: 56ch; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing { padding: clamp(24px, 4vw, 56px) 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel), var(--surface); box-shadow: var(--shadow);
}
.plan.featured {
  border-color: var(--accent-line);
  box-shadow: var(--glow), var(--shadow);
  background: linear-gradient(180deg, rgba(114, 240, 220, .1), rgba(255, 255, 255, .015) 45%), var(--surface);
  transform: translateY(-10px);
}
.flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.tier-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.plan h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; line-height: 1.1; }
.tag { margin: 0; color: var(--muted); font-size: .95rem; }

.price-stack { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-strike { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.price-now { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.currency { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.amount { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.once { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.price-note { color: var(--muted); font-size: .85rem; }
.price-note b { color: var(--text); }

.seats-top {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.seats-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.seats-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.seats-fill { height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .9s var(--ease); }
.seats.low .seats-fill { background: linear-gradient(90deg, #ff7a3d, var(--danger)); }
.seats.low .seats-top b { color: var(--danger); }
.seats.out .seats-top b { color: var(--dim); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.check {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.check svg { width: 12px; height: 12px; }
.feature-text { display: flex; flex-direction: column; gap: 2px; }
.feature-text b { font-weight: 600; }
.feature-text small { color: var(--muted); font-size: .85rem; }

.plan-footer { margin-top: auto; display: grid; gap: 12px; }

/* CTA */
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(114, 240, 220, .6);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s, background .25s;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 40px -12px rgba(114, 240, 220, .7); }
.cta:active { transform: translateY(0); }
.cta:focus-visible, .btn-ghost:focus-visible, .wa-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta svg { width: 18px; height: 18px; transition: transform .25s; }
.cta:hover svg { transform: translateX(3px); }
.cta-inline { width: auto; padding: 14px 22px; }
.cta:disabled, .cta[aria-disabled="true"] {
  cursor: not-allowed; background: rgba(255, 255, 255, .07); color: var(--muted);
  border-color: var(--line); box-shadow: none; transform: none; filter: none;
}
.cta.is-loading { cursor: progress; pointer-events: none; filter: saturate(.8); }
.cta.is-loading .cta-arrow { animation: cta-nudge .6s var(--ease) infinite alternate; }
@keyframes cta-nudge { to { transform: translateX(5px); } }
.cta-lock { display: none; }
.cta.is-locked .cta-lock { display: block; width: 16px; height: 16px; }
.cta:disabled .cta-arrow { display: none; }
/* Prima dell'apertura i pulsanti restano "in attesa" (ambra, come il pallino in alto), non spenti. */
body[data-phase="pre"] .cta.is-locked,
body[data-phase="pre"] .plan:not(.featured) .cta.is-locked,
body[data-phase="pre"] .final-ctas .cta.is-locked {
  background: rgba(255, 182, 72, .07); border-color: rgba(255, 182, 72, .3); color: #ffd08a;
}
body[data-phase="pre"] .final-ctas .cta.is-locked .cta-price { opacity: 1; color: #ffb648; }
.plan:not(.featured) .cta { background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.plan:not(.featured) .cta:hover { background: rgba(255, 255, 255, .12); filter: none; box-shadow: none; }
.plan:not(.featured) .cta:disabled { background: rgba(255, 255, 255, .04); color: var(--muted); }

.trust-row {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 13px; height: 13px; color: var(--accent); }

/* =========================================================
   Compare table
   ========================================================= */
.compare { padding: clamp(24px, 4vw, 56px) 0; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel), var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare th.featured-col { color: var(--accent); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td:first-child { font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.featured-col { background: rgba(114, 240, 220, .05); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.compare .yes { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.compare .no { color: var(--dim); border: 1px solid var(--line); }
.compare .yes svg, .compare .no svg { width: 12px; height: 12px; }
.compare .num { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.compare .row-price td { background: rgba(255, 255, 255, .02); }
.compare .row-price td.featured-col { background: rgba(114, 240, 220, .08); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(24px, 4vw, 56px) 0; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-heading { position: sticky; top: 72px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel), var(--surface); overflow: hidden; transition: border-color .3s; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.plus {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent);
  transition: transform .3s var(--ease), background .3s;
}
.plus svg { width: 12px; height: 12px; }
.faq-item[open] .plus { transform: rotate(45deg); background: var(--accent-soft); }
.faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-body b { color: var(--text); }

/* =========================================================
   Final CTA
   ========================================================= */
.final { padding: clamp(24px, 4vw, 56px) 0; }
.final-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(114, 240, 220, .08), rgba(255, 255, 255, .02));
  box-shadow: var(--glow), var(--shadow);
}
.final-glow {
  position: absolute; left: 50%; top: -45%; width: 70%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(114, 240, 220, .28), transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.final-card > *:not(.final-glow) { position: relative; }
.final-card #finalTimer { font-family: var(--font-mono); font-weight: 700; font-size: .92em; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; }
.final-card > p { color: var(--muted); margin: 14px auto 28px; max-width: 60ch; }
.final-card > p b { color: var(--text); font-variant-numeric: tabular-nums; }
.final-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 0 auto 20px; }
.final-ctas .cta { flex-direction: column; gap: 4px; padding: 16px 14px; }
.final-ctas .cta-price { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; opacity: .8; }
.final-ctas .cta[data-plan="pro"], .final-ctas .cta[data-plan="vip"] {
  background: rgba(255, 255, 255, .07); color: var(--text); border-color: var(--line-2); box-shadow: none;
}
.final-ctas .cta[data-plan="pro"]:hover, .final-ctas .cta[data-plan="vip"]:hover { background: rgba(255, 255, 255, .12); filter: none; }
.final-ctas .cta:disabled { background: rgba(255, 255, 255, .04); color: var(--muted); }
body[data-phase="ended"] #finalTimer { display: none; }

/* =========================================================
   WhatsApp + footer
   ========================================================= */
.wa-section { padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 80px); }
.wa-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel), var(--surface);
}
.wa-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(37, 211, 102, .12); color: var(--wa); border: 1px solid rgba(37, 211, 102, .3);
}
.wa-icon svg { width: 28px; height: 28px; }
.wa-copy h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 6px; letter-spacing: -.02em; }
.wa-copy p { margin: 0; color: var(--muted); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--wa); color: #04120a; text-decoration: none;
  font-family: var(--font-display); font-weight: 700;
  transition: transform .25s var(--ease), filter .25s;
}
.wa-btn svg { width: 18px; height: 18px; }
.wa-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

footer {
  text-align: center; padding: 28px 20px 40px;
  color: var(--dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  border-top: 1px solid var(--line);
}

.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #04120a;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease);
}
.float-wa svg { width: 26px; height: 26px; }
.float-wa:hover { transform: scale(1.06); }

/* =========================================================
   Checkout modal
   ========================================================= */
.checkout-modal { position: fixed; inset: 0; z-index: 80; display: none; }
.checkout-modal.open { display: block; }
.checkout-backdrop {
  position: absolute; inset: 0; background: rgba(3, 4, 5, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-in .25s ease both;
}
.checkout-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2);
  box-shadow: var(--shadow);
  animation: pop .3s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.checkout-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.checkout-title svg { width: 14px; height: 14px; color: var(--accent); }
.checkout-title b { color: var(--text); }
.checkout-close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.checkout-close svg { width: 16px; height: 16px; }
.checkout-close:hover { color: var(--text); border-color: var(--line-2); }
.checkout-body { overflow-y: auto; padding: 12px; min-height: 280px; }
.checkout-pane[hidden] { display: none; }
.checkout-fallback { padding: 10px 16px 14px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--dim); border-top: 1px solid var(--line); }
.checkout-fallback a { color: var(--accent); text-decoration: none; }
.checkout-fallback a:hover { text-decoration: underline; }

/* =========================================================
   Reveal (only on the pricing cards)
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.plan.featured[data-reveal].in { transform: translateY(-10px); }
.grid-3 [data-reveal]:nth-child(2) { transition-delay: .1s; }
.grid-3 [data-reveal]:nth-child(3) { transition-delay: .2s; }

/* Card prezzi: prezzo, posti, elenco e pulsante alla stessa altezza nelle tre colonne */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 981px) {
    .grid-3 { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 22px; }
    .plan-footer { align-self: end; }
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; }
  .br-lg { display: none; }
  .grid-3 { grid-template-columns: 1fr; gap: 22px; }
  .plan.featured, .plan.featured[data-reveal].in { transform: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-heading { position: static; }
  .final-ctas { grid-template-columns: 1fr; }
  .wa-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .urgency-inner { width: calc(100% - 28px); font-size: 11px; gap: 8px; }
  .urgency-copy { display: none; }
  .urgency-copy-short { display: inline; }
  .plan { padding: 22px; }
  .hero-actions .cta-inline, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .float-wa { right: 14px; bottom: 14px; width: 50px; height: 50px; }

  .final-card #finalTimer { display: block; margin-top: 6px; }

  /* Confronto: tutte e tre le colonne visibili senza scroll laterale */
  .compare table { min-width: 0; table-layout: fixed; }
  .compare th, .compare td { padding: 13px 6px; font-size: .86rem; }
  .compare th:first-child, .compare td:first-child { width: 44%; padding-left: 16px; }
  .compare th:last-child, .compare td:last-child { padding-right: 12px; }
  .compare th { font-size: 10px; letter-spacing: .08em; }
  .compare .num { font-size: 12px; white-space: nowrap; }
  .compare .yes, .compare .no { width: 22px; height: 22px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area, .signals .signal { opacity: 1; }
  .market-frame { transform: none !important; }
}
