/* MZ Forex · MZ Pro FX · optin (index.html) e pagina di accesso (/accesso/) · matteozanni.com */

:root {
  /* Layout: terminale di trading. Barra urgenza fissa, hero con grafico e segnali,
     due ticket d'acquisto affiancati, indicatore, risultati, accesso, FAQ. */
  --ink: #050607;
  --panel: #0A0F12;
  --panel-2: #0E151A;
  --line: #1A242A;
  --line-2: #27353C;
  --text: #F2F5F6;
  --muted: #9AA6AD;
  --dim: #74828A;
  --cyan: #10C0E0;
  --cyan-hi: #5FD9EF;
  --cyan-ink: #03161B;
  --cyan-soft: rgba(16, 192, 224, .12);
  --cyan-wash: rgba(16, 192, 224, .07);
  --cyan-line: rgba(16, 192, 224, .42);
  --cyan-glow: rgba(16, 192, 224, .55);
  --wa: #25D366;
  --wa-hi: #4BE07F;
  --wa-ink: #03170B;
  --wa-soft: rgba(37, 211, 102, .12);
  --wa-glow: rgba(37, 211, 102, .5);
  --wa-line: rgba(37, 211, 102, .35);
  --tg: #2AABEE;
  --tg-hi: #55BFF3;
  --tg-ink: #031520;
  --tg-glow: rgba(42, 171, 238, .5);
  --sell: #FF5A5F;
  --sell-soft: rgba(255, 90, 95, .12);
  --sell-glow: rgba(255, 90, 95, .55);
  --grid: rgba(255, 255, 255, .035);
  --chip-bg: rgba(10, 15, 18, .9);
  --shadow: rgba(0, 0, 0, .8);
  --scrim: rgba(3, 5, 6, .78);
  --bar-bg: rgba(5, 6, 7, .84);

  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Space Grotesk', 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 3px; border-radius: 8px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.accent { color: var(--cyan); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow .nw { white-space: nowrap; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow); }
.eyebrow.is-red { color: var(--sell); }
.fine { font-size: 13.5px; color: var(--dim); }

/* ---------- Ambient ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 25%, transparent 75%);
}
.ambient-glow { position: absolute; width: 760px; height: 760px; border-radius: 50%; filter: blur(130px); }
.ambient-glow-a { background: var(--cyan); opacity: .16; top: -460px; right: -260px; }
.ambient-glow-b { background: var(--cyan); opacity: .07; bottom: -520px; left: -320px; }
main, footer, .urgency-bar { position: relative; z-index: 1; }

.scroll-progress {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Urgency bar ---------- */
.urgency-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.urgency-inner {
  max-width: var(--wrap); margin-inline: auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
  font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-align: center;
}
.urgency-inner b { color: var(--text); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sep { color: var(--dim); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sell); animation: pulse 1.8s infinite; }
.timer { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 22px; border: 0; border-radius: 12px;
  background: var(--cyan); color: var(--cyan-ink);
  font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: .01em; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 34px -16px var(--cyan-glow);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.cta:hover { transform: translateY(-1px); background: var(--cyan-hi); }
.cta svg { width: 18px; height: 18px; flex: none; }
.cta .ico-wa { display: none; }
.cta.is-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 14px 34px -16px var(--wa-glow); }
.cta.is-wa:hover { background: var(--wa-hi); }
.cta.is-wa .ico-wa { display: block; width: 20px; height: 20px; }
.cta.is-wa .ico-arrow { display: none; }
.cta.is-tg { background: var(--tg); color: var(--tg-ink); box-shadow: 0 14px 34px -16px var(--tg-glow); }
.cta.is-tg:hover { background: var(--tg-hi); }
.cta.is-tg svg { width: 20px; height: 20px; }
.cta.is-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.cta.is-ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.cta.block { width: 100%; }
.cta.is-big { min-height: 62px; font-size: 18px; }
.cta.is-disabled, .cta:disabled { background: var(--line-2); color: var(--muted); box-shadow: none; pointer-events: none; }
.cta.is-disabled .ico-arrow { display: none; }
.cta.is-loading { opacity: .7; pointer-events: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 20px; border-radius: 12px;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 15.5px;
  transition: border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.btn-ghost svg { width: 18px; height: 18px; flex: none; }
.btn-ghost .wa-glyph { color: var(--wa); width: 20px; height: 20px; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 44px; height: auto; }
.brand span { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding-block: 44px 24px; }
.hero-shell { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; }
.lede b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.market-visual { position: relative; padding-block: 24px 30px; min-width: 0; }
.market-frame {
  position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 40px 80px -40px var(--shadow);
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.frame-bar span { margin-left: auto; letter-spacing: .08em; }
.hero-chart { width: 100%; height: auto; aspect-ratio: 620 / 460; }
.chart-grid path { stroke: var(--grid); stroke-width: 1; fill: none; }
.chart-area { fill: url(#areaGradient); }
.chart-line {
  fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; filter: url(#lineGlow);
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) .15s forwards;
}
.candles path { stroke: var(--muted); stroke-opacity: .32; stroke-width: 1.5; fill: var(--text); fill-opacity: .05; }
.signal { transform-box: fill-box; transform-origin: center; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.signal circle { stroke: var(--ink); stroke-width: 3; }
.signal path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.signal.buy circle { fill: var(--cyan); }
.signal.sell circle { fill: var(--sell); }
.signals > g:nth-child(1) .signal { animation-delay: .7s; }
.signals > g:nth-child(2) .signal { animation-delay: 1s; }
.signals > g:nth-child(3) .signal { animation-delay: 1.3s; }
.market-scan { position: absolute; top: 44px; bottom: 0; left: 0; width: 1px; background: var(--cyan); opacity: .28; animation: scan 7s linear infinite; }

.chip {
  position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px;
  background: var(--chip-bg); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); letter-spacing: .04em;
  box-shadow: 0 18px 40px -20px var(--shadow); white-space: nowrap;
}
.chip b { font-size: 14px; color: var(--text); font-weight: 700; letter-spacing: 0; }
.chip em { font-style: normal; color: var(--cyan); }
.chip-a { top: 0; left: 12px; }
.chip-b { top: 42%; right: 12px; }
.chip-c { bottom: 4px; left: 22%; }

.proof-row { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof-row span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.proof-row svg { width: 15px; height: 15px; color: var(--cyan); }

@media (min-width: 1000px) {
  .hero { padding-block: 72px 32px; }
  .hero-shell { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px 64px; }
  .proof-row { grid-column: 1 / -1; }
  .chip-a { left: -18px; }
  .chip-b { right: -18px; }
}
@media (max-width: 560px) {
  .urgency-inner .sep { display: none; }
  .chip { padding: 8px 10px; font-size: 10.5px; }
  .chip b { font-size: 12.5px; }
  .chip-c { left: 12px; }
  .hero-actions > * { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 1000px) { .section { padding-block: 96px; } }
.section-head { display: grid; gap: 14px; max-width: 760px; }
.section-head h2, .faq-heading h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 60ch; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 28px; }
@media (min-width: 880px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0;
  padding: 30px 22px 24px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .3s ease, box-shadow .3s ease;
}
@media (min-width: 560px) { .plan { padding: 36px 32px 30px; } }
.plan.featured { border-color: var(--cyan-line); background: linear-gradient(180deg, var(--cyan-wash), var(--panel) 45%); }
.plan.is-flash { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.flag {
  position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 99px;
  background: var(--cyan); color: var(--cyan-ink);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
@media (min-width: 560px) { .flag { left: 32px; } }
.plan-head { display: grid; gap: 10px; }
.tier-label { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.plan h3 { font-size: clamp(28px, 2.8vw, 36px); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; }
.plan h3 .accent { margin-right: .18em; }
.tag { color: var(--muted); font-size: 16px; }

.price-stack { display: grid; gap: 8px; padding-block: 20px; border-block: 1px solid var(--line); }
.price-label { font-family: var(--f-mono); font-size: 13px; color: var(--dim); }
.price-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.figure { display: inline-flex; align-items: baseline; gap: 2px; }
.amount {
  font-family: var(--f-display); font-weight: 900; font-stretch: 112%;
  font-size: clamp(54px, 6vw, 70px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.featured .amount { color: var(--cyan); }
.currency { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 36px); }
.featured .currency { color: var(--cyan); }
.once { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.price-note { font-size: 14px; color: var(--muted); }
.price-note b { color: var(--text); font-weight: 600; }

.plan-seats { display: grid; gap: 8px; }
.plan-seats-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.plan-seats-top b { color: var(--sell); font-weight: 700; }
.plan-seats-top span:last-child b { color: var(--text); font-variant-numeric: tabular-nums; }
.seats-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.seats-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--cyan-hi)); transition: width .6s ease; }

.features { list-style: none; display: grid; gap: 14px; }
.features li { display: flex; align-items: flex-start; gap: 12px; }
.check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); }
.check svg { width: 13px; height: 13px; }
.features li.is-key .check { background: var(--cyan); color: var(--cyan-ink); }
.feature-text { display: grid; gap: 2px; min-width: 0; }
.feature-text b { font-weight: 600; font-size: 16px; line-height: 1.35; }
.feature-text small { font-size: 14px; color: var(--muted); }

.upgrade {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
  padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--panel-2);
}
.upgrade p { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.upgrade p b { color: var(--text); font-weight: 600; }
.upgrade button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--cyan-line); background: transparent; color: var(--cyan); cursor: pointer;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background .2s ease;
}
.upgrade button:hover { background: var(--cyan-soft); }
.upgrade button svg { width: 14px; height: 14px; }
@media (max-width: 480px) {
  .upgrade { grid-template-columns: minmax(0, 1fr); }
  .upgrade button { justify-self: start; }
}

.plan-proof { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px;
  border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.pill b { color: var(--text); }
.pill svg { width: 13px; height: 13px; color: var(--cyan); }

.plan-footer { margin-top: auto; display: grid; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; }

/* Su desktop le due card condividono le righe: prezzi, posti e pulsanti restano alla stessa altezza. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 880px) {
    .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 22px; align-content: start; }
    .plan > * { align-self: start; }
    .plan-footer { margin-top: 0; align-self: end; }
  }
}

/* ---------- MZ Indicator ---------- */
.ind-band {
  display: grid; gap: 32px; padding: 32px 22px; border-radius: 22px;
  border: 1px solid var(--cyan-line);
  background: radial-gradient(ellipse 70% 120% at 100% 0%, var(--cyan-soft), transparent 60%), var(--panel);
}
@media (min-width: 560px) { .ind-band { padding: 40px 36px; } }
@media (min-width: 940px) { .ind-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding: 48px; } }
.ind-copy { display: grid; gap: 16px; min-width: 0; }
.ind-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.ind-copy > p { color: var(--muted); font-size: 17.5px; max-width: 56ch; }
.ind-list { list-style: none; display: grid; gap: 12px; padding-top: 4px; }
.ind-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.ind-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--cyan); }
.ind-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 14.5px; color: var(--muted); }
.ind-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--cyan); }
.ind-note b { color: var(--text); font-weight: 600; }

.tv-frame { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink); min-width: 0; }
.tv-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.tv-bar b { color: var(--text); font-weight: 600; }
.tv-bar .tv-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan); }
.tv-bar .tv-tag svg { width: 12px; height: 12px; }
.tv-chart { width: 100%; height: auto; aspect-ratio: 600 / 380; }
.tv-chart .grid { stroke: var(--grid); stroke-width: 1; }
.tv-chart .c-up { fill: var(--cyan); stroke: var(--cyan); }
.tv-chart .c-dn { fill: var(--panel); stroke: var(--muted); stroke-opacity: .7; }
.tv-chart .wick { stroke-width: 1.5; }
.tv-chart .lvl { stroke-width: 1.5; stroke-dasharray: 6 5; }
.tv-chart .lvl-tp { stroke: var(--cyan); }
.tv-chart .lvl-entry { stroke: var(--text); stroke-opacity: .55; stroke-dasharray: none; }
.tv-chart .lvl-sl { stroke: var(--sell); }
.tv-chart .tag-bg-tp { fill: var(--cyan); }
.tv-chart .tag-bg-entry { fill: var(--line-2); }
.tv-chart .tag-bg-sl { fill: var(--sell); }
.tv-chart .tag-tx { font-family: var(--f-mono); font-size: 11px; font-weight: 700; fill: var(--cyan-ink); }
.tv-chart .tag-tx.light { fill: var(--text); }
.tv-chart .zone-tp { fill: var(--cyan); opacity: .07; }
.tv-chart .zone-sl { fill: var(--sell); opacity: .07; }
.tv-chart .buy-label rect { fill: var(--cyan); }
.tv-chart .buy-label text { font-family: var(--f-mono); font-size: 12px; font-weight: 700; fill: var(--cyan-ink); }

/* ---------- Risultati ---------- */
.results { display: grid; gap: 20px; }
@media (min-width: 760px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.shot { display: grid; gap: 12px; margin: 0; min-width: 0; }
.shot-frame { overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); }
.shot img { width: 100%; height: auto; aspect-ratio: 1276 / 1420; object-fit: cover; object-position: top; }
.shot figcaption { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.shot figcaption svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--cyan); }
.results-fine { padding-top: 6px; }

/* ---------- Accesso (passi) ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan); font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.step h3 { font-size: 21px; font-weight: 800; letter-spacing: -.005em; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .pro-only { display: inline-flex; width: max-content; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--cyan-line); color: var(--cyan); font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .faq-layout { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; } }
.faq-heading { display: grid; gap: 14px; align-content: start; }
.faq-heading p { color: var(--muted); }
.faq-heading a { color: var(--cyan); }
.faq-list { display: grid; border-top: 1px solid var(--line); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.plus { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .25s ease, background .25s ease, color .25s ease; }
.plus svg { width: 14px; height: 14px; }
.faq-item[open] .plus { transform: rotate(45deg); background: var(--cyan); border-color: var(--cyan); color: var(--cyan-ink); }
.faq-body { padding-bottom: 22px; color: var(--muted); max-width: 64ch; }
.faq-body b { color: var(--text); font-weight: 600; }
.faq-body a { color: var(--cyan); }

/* ---------- Final ---------- */
.final { padding-bottom: 32px; }
.final-card {
  position: relative; overflow: hidden; display: grid; gap: 28px;
  padding: 32px 22px; border-radius: 24px; border: 1px solid var(--cyan-line); background: var(--panel);
}
@media (min-width: 560px) { .final-card { padding: 40px 36px; } }
@media (min-width: 980px) { .final-card { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 48px; padding: 48px; } }
.final-glow { position: absolute; right: -180px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%; background: var(--cyan); filter: blur(140px); opacity: .14; pointer-events: none; }
.final-copy { position: relative; display: grid; gap: 14px; min-width: 0; }
.final-copy h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.final-copy p { color: var(--muted); }
.final-copy p b { color: var(--text); }
.final-timer { display: block; padding-top: 6px; font-family: var(--f-mono); font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.final-ctas { position: relative; display: grid; gap: 12px; min-width: 0; }
@media (min-width: 620px) { .final-ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.final-cta {
  display: grid; gap: 10px; padding: 18px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--line-2); background: var(--panel-2);
  transition: border-color .2s ease, transform .15s ease, opacity .2s ease;
}
.final-cta:hover { border-color: var(--cyan); transform: translateY(-1px); }
.final-cta.is-featured { border-color: var(--cyan-line); }
.fc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fc-name { font-weight: 600; font-size: 16px; line-height: 1.3; min-width: 0; }
.fc-name small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.fc-price { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: 26px; white-space: nowrap; }
.fc-how { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 12.5px; color: var(--cyan); }
.fc-how svg { width: 15px; height: 15px; }
.final-cta .ico-wa { display: none; }
.final-cta.is-wa .fc-how { color: var(--wa); }
.final-cta.is-wa .ico-wa { display: block; }
.final-cta.is-wa .ico-lock { display: none; }
.final-cta.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- WhatsApp ---------- */
.wa-section { padding-bottom: 64px; }
.wa-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 26px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
@media (min-width: 560px) { .wa-card { padding: 28px 32px; } }
.wa-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--wa-soft); color: var(--wa); }
.wa-icon svg { width: 28px; height: 28px; }
.wa-copy { flex: 1 1 300px; display: grid; gap: 6px; min-width: 0; }
.wa-copy h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.wa-copy p { color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 32px calc(100px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; gap: 16px; font-size: 13px; color: var(--dim); }
.foot p { max-width: 90ch; }
.foot-brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--f-mono); color: var(--muted); }
.foot-brand a { color: var(--text); text-decoration: none; }
.foot-brand a:hover { color: var(--cyan); }

.float-wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--wa-ink); box-shadow: 0 14px 34px -10px var(--wa-glow);
  transition: transform .15s ease;
}
.float-wa:hover { transform: scale(1.05); }
.float-wa svg { width: 28px; height: 28px; }

/* ---------- Checkout modal ---------- */
.checkout-modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; }
.checkout-modal.is-open { display: grid; }
.checkout-backdrop { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.checkout-panel { position: relative; display: grid; grid-template-rows: auto 1fr auto; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); }
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.checkout-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.checkout-title svg { width: 14px; height: 14px; flex: none; }
.checkout-title b { color: var(--text); }
.checkout-close { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.checkout-close svg { width: 16px; height: 16px; }
.checkout-body { padding: 12px; min-height: 420px; }
.checkout-done { display: grid; place-items: center; gap: 14px; min-height: 380px; text-align: center; color: var(--muted); }
.checkout-fallback { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); text-align: center; }
.checkout-fallback a { color: var(--cyan); }

/* ---------- Pagina di conferma ---------- */
.ty-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.ty-main { padding-block: 24px 72px; }
.ty-shell { display: grid; gap: 22px; max-width: 760px; margin-inline: auto; }
.ty-hero { display: grid; gap: 14px; justify-items: start; }
.ty-hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
.ty-hero p { color: var(--muted); font-size: 18px; max-width: 56ch; }
.ty-hero p b { color: var(--text); font-weight: 600; }
.ty-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--cyan-soft); border: 1px solid var(--cyan-line); color: var(--cyan); font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ty-badge svg { width: 14px; height: 14px; }
.ty-badge.is-warn { background: var(--sell-soft); border-color: rgba(255, 90, 95, .4); color: var(--sell); }

.ty-card { display: grid; gap: 18px; padding: 26px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); }
@media (min-width: 560px) { .ty-card { padding: 30px 30px; } }
.ty-card.is-main { border-color: var(--cyan-line); background: linear-gradient(180deg, var(--cyan-wash), var(--panel) 55%); }
.ty-card-head { display: flex; align-items: flex-start; gap: 14px; }
.ty-step { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--cyan); color: var(--cyan-ink); font-family: var(--f-mono); font-weight: 800; }
.ty-step.is-done { background: var(--cyan-soft); color: var(--cyan); }
.ty-step svg { width: 18px; height: 18px; }
.ty-card h2 { font-size: clamp(22px, 2.6vw, 27px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.ty-card-head p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.ty-note { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.ty-note svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--cyan); }
.ty-note b { color: var(--text); font-weight: 600; }
.ty-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .ty-actions.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr) auto; } }
.input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--ink); color: var(--text);
  font-family: var(--f-mono); font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.input[aria-invalid="true"] { border-color: var(--sell); }
.field-hint { font-size: 13.5px; color: var(--dim); }
.form-msg { font-size: 14.5px; color: var(--muted); }
.form-msg.is-error { color: var(--sell); }
.form-msg.is-ok { color: var(--cyan); }

.tv-status { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); }
.tv-status svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.tv-status.is-granted { border-color: var(--cyan-line); background: var(--cyan-soft); }
.tv-status.is-granted svg { color: var(--cyan); }
.tv-status.is-pending svg { color: var(--muted); }
.tv-status p { font-size: 15px; color: var(--muted); }
.tv-status p b { color: var(--text); font-weight: 600; }
.tv-status .mono { font-family: var(--f-mono); color: var(--text); }
.tv-how { list-style: none; counter-reset: how; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.tv-how li { counter-increment: how; display: flex; gap: 10px; }
.tv-how li::before { content: counter(how); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--line); color: var(--text); font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.tv-how b { color: var(--text); font-weight: 600; }

.ty-loading { display: grid; justify-items: center; gap: 18px; padding-block: 72px; text-align: center; color: var(--muted); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--cyan); animation: spin .9s linear infinite; }
.ty-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.ty-help p { color: var(--muted); font-size: 15px; }
.ty-help a { display: inline-flex; align-items: center; gap: 8px; color: var(--wa); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ty-help a svg { width: 18px; height: 18px; }
.ty-ref { font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf-box { display: grid; justify-items: center; gap: 16px; }
.nf h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.nf p { color: var(--muted); }

/* ---------- Motion ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--sell-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes scan { from { left: 0; } to { left: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart-line { stroke-dashoffset: 0; }
  .market-scan { display: none; }
  .spinner { border-top-color: var(--cyan); }
}
