:root {
  --bg: #FAFBFF; --ink: #1C1B3A; --muted: #5F607F; --line: #E6E8F3;
  --blue: #4C5BF5; --blue-d: #3241D6; --sun: #FFD233; --sun-d: #E0B000; --mint: #22C493; --coral: #FF6B5B;
  --display: 'Fredoka', 'Figtree', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 19px/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; padding-bottom: 110px; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 20px; }
section { padding: 70px 0; }
.kicker { display: inline-block; font: 700 14px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: #fff; border: 1.5px solid #D9DEFF; border-radius: 999px; padding: 6px 13px; }
h2 { font: 700 clamp(34px, 9.5vw, 50px)/1.02 var(--display); letter-spacing: -.015em; margin: 14px 0 14px; }
h2 mark { background: none; position: relative; z-index: 0; white-space: nowrap; color: inherit; }
h2 mark::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 6%; height: 40%; background: var(--sun); z-index: -1; border-radius: 8px; }
.lead { font-size: 20px; color: var(--muted); }
.center { text-align: center; }

/* barra offerta in alto */
.offer { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; text-align: center; padding: 9px 10px; font: 600 14px/1.3 var(--body); }
.offer b { color: var(--sun); }
.offer .cd { font-variant-numeric: tabular-nums; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 34px 0 40px; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; pointer-events: none; animation: drift 12s ease-in-out infinite alternate; }
.blob--1 { width: 340px; height: 340px; background: #C9D1FF; top: -90px; right: -120px; }
.blob--2 { width: 300px; height: 300px; background: #FFE89A; top: 420px; left: -150px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(30px, 40px) scale(1.1); } }
.hero .wrap { position: relative; }
.hero h1 { font: 700 clamp(38px, 11vw, 60px)/1.02 var(--display); letter-spacing: -.02em; margin: 16px 0 16px; }
.hero h1 mark { background: none; color: var(--ink); position: relative; z-index: 0; white-space: nowrap; }
.hero h1 mark::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: 6%; height: 42%; background: var(--sun); z-index: -1; border-radius: 8px; transform: scaleX(0); transform-origin: left; animation: swipe .7s 1s var(--ease) forwards; }
@keyframes swipe { to { transform: scaleX(1); } }
.hero .lead { margin-bottom: 22px; }

.phone-chat { background: #fff; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(40, 45, 120, .35), 0 0 0 1px var(--line); overflow: hidden; }
.pc__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pc__top b { display: block; font-size: 16px; line-height: 1.1; }
.pc__top small { color: var(--mint); font-weight: 600; font-size: 13px; }
.pc__av { width: 40px; height: 40px; border-radius: 50%; background: #FFE9A8; display: grid; place-items: center; font-size: 22px; }
.pc__top small { color: var(--muted) !important; font-weight: 500 !important; }
.who { display: block; font: normal 700 13px var(--body); color: #DB3F8C; margin-bottom: 2px; }
.m--them:last-child .who { color: #12A57A; }
.pc__body { padding: 16px 14px 18px; display: grid; gap: 8px; min-height: 250px; align-content: start; background: #F5F6FC; }
.m { display: flex; gap: 8px; align-items: flex-end; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .35s, transform .45s var(--spring); }
.m p { padding: 10px 14px; border-radius: 18px; font-size: 17px; line-height: 1.4; max-width: 82%; }
.m--them p { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 0 var(--line); }
.m--them span { font-size: 26px; }
.m--me { justify-content: flex-end; }
.m--me p { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.typing { justify-self: end; display: none; gap: 4px; background: var(--blue); padding: 12px 14px; border-radius: 18px; border-bottom-right-radius: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .6; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-3px); } }
.is-shown { opacity: 1 !important; transform: none !important; }
.typing.is-shown { display: flex; }

/* prezzo + bottone */
.price { margin-top: 26px; background: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 0 0 2px var(--blue), 0 24px 40px -28px rgba(76, 91, 245, .7); }
.price__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price__old { font: 600 22px var(--body); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 3px; }
.price__new { font: 700 54px/1 var(--display); color: var(--ink); }
.price__tag { font: 700 14px var(--body); background: var(--coral); color: #fff; border-radius: 999px; padding: 5px 11px; }
.price__note { margin-top: 6px; font-size: 16px; color: var(--muted); }
.price__note b { color: var(--ink); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; font: 800 20px var(--body); border-radius: 18px; min-height: 62px; padding: 16px 22px; cursor: pointer; background: var(--sun); color: var(--ink); border: 0; text-decoration: none; box-shadow: 0 6px 0 var(--sun-d); transition: transform .2s var(--spring), box-shadow .2s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sun-d); }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 15px; color: var(--muted); }

/* video */
.clip { position: relative; max-width: 300px; margin: 30px auto 0; }
.clip__frame { position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -25px rgba(40, 45, 120, .5); transform: rotate(-1.5deg); }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip__sound { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 12px 20px; min-height: 48px; white-space: nowrap; background: #fff; color: var(--ink); font: 700 16px var(--body); cursor: pointer; }
.clip.is-sound .clip__sound { display: none; }
.clip__cap { text-align: center; margin-top: 14px; font-size: 16px; color: var(--muted); }

/* ti riconosci */
.pains { display: grid; gap: 10px; margin-top: 22px; }
.pain { display: flex; gap: 10px; align-items: flex-end; }
.pain span { font-size: 30px; }
.pain p { background: #fff; border-radius: 20px; border-bottom-left-radius: 6px; padding: 12px 16px; font-size: 18px; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -12px rgba(40, 45, 120, .3); }
.pain--r { justify-content: flex-end; }
.pain--r p { border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.answer { margin-top: 24px; background: var(--blue); color: #fff; border-radius: 24px; border-bottom-right-radius: 6px; padding: 18px 20px; font: 600 21px/1.35 var(--display); }

/* dentro la guida */
.parts { display: grid; gap: 12px; margin-top: 24px; }
.part { border-radius: 24px; padding: 20px; display: grid; grid-template-columns: 58px 1fr; gap: 6px 14px; align-items: start; }
.part__e { font-size: 40px; line-height: 1; grid-row: span 2; }
.part h3 { font: 700 23px/1.15 var(--display); }
.part ul { list-style: none; display: grid; gap: 3px; }
.part li { font-size: 16px; color: #3E3F5E; }
.part li::before { content: "✓ "; font-weight: 800; color: var(--c); }
.p0 { background: #DDF6EC; --c: #12A57A; } .p1 { background: #E4E9FF; --c: #4C5BF5; } .p2 { background: #FFF2C6; --c: #B98300; }
.p3 { background: #ECE6FF; --c: #7B5CF0; } .p4 { background: #FFE3DF; --c: #E5483A; } .p5 { background: #FFE2F0; --c: #DB3F8C; }

/* non è un libro */
.feats { display: grid; gap: 12px; margin-top: 24px; }
.feat { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px rgba(40, 45, 120, .35); }
.feat__e { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #EEF0FF; display: grid; place-items: center; font-size: 30px; }
.feat strong { display: block; font-size: 18px; line-height: 1.25; }
.feat__t span { display: block; font-size: 16px; color: var(--muted); line-height: 1.35; }

/* demo */
.demo { margin-top: 24px; border-radius: 24px; padding: 18px; background: linear-gradient(135deg, #FFF8DA, #FFF1B8); }
.demo__label { display: block; font: 700 15px var(--body); color: #8A6400; margin-bottom: 6px; }
.demo__q { font: 600 20px/1.3 var(--display); margin-bottom: 12px; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; font: 600 17px/1.35 var(--body); color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: transform .25s var(--spring); }
.opt:active { transform: scale(.97); }
.opt.ok { border-color: var(--mint); background: #E3F8EF; }
.opt.ko { border-color: var(--coral); background: #FFEDEA; animation: shake .4s; }
.demo.done .opt:not(.ok):not(.ko) { opacity: .5; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.demo__fb { margin-top: 10px; font-weight: 600; font-size: 17px; }
.demo__fb:empty { display: none; }

/* attestato */
.dip { position: relative; margin-top: 24px; text-align: center; background: #fff; border-radius: 24px; padding: 28px 20px 22px; box-shadow: 0 0 0 3px var(--sun), 0 0 0 9px #fff, 0 0 0 11px var(--sun), 0 30px 50px -25px rgba(40, 45, 120, .45); transform: rotate(-1.5deg); }
.dip__seal { position: absolute; top: -26px; right: 18px; font-size: 52px; transform: rotate(12deg); }
.dip small { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dip strong { display: block; font: 700 38px/1.05 var(--display); color: var(--blue); margin: 6px 0 8px; }
.dip p { font-size: 17px; }

/* valore */
.stack { margin-top: 24px; background: #fff; border-radius: 26px; padding: 8px 20px; box-shadow: 0 0 0 1px var(--line); }
.stack li { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.stack li:last-child { border: 0; }
.stack li span:last-child { font-weight: 700; color: var(--mint); white-space: nowrap; }
.coffee { margin-top: 16px; text-align: center; font: 600 20px/1.3 var(--display); }

/* chi sono */
.me { display: grid; justify-items: center; text-align: center; gap: 10px; }
.me img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--sun), 0 20px 40px -20px rgba(40, 45, 120, .5); }
.me p { font-size: 19px; color: var(--muted); }
.me p b { color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.stats div { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 0 0 1px var(--line); }
.stats b { display: block; font: 700 24px/1.1 var(--display); color: var(--blue); white-space: nowrap; }
.stats span { font-size: 14px; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 17px 0; font: 600 19px/1.3 var(--display); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #EEF0FF; color: var(--blue); display: grid; place-items: center; font-size: 22px; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 17px; font-size: 17px; color: var(--muted); }

.final { background: linear-gradient(var(--bg), #E8ECFF); text-align: center; }
.final .emoji { font-size: 80px; display: block; }
footer { text-align: center; font-size: 14px; color: var(--muted); padding: 10px 20px 30px; }

/* bottone fisso in basso */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(250, 251, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--spring); }
.sticky.is-on { transform: none; }
.sticky__in { max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky__price { line-height: 1.1; }
.sticky__price s { font-size: 14px; color: var(--muted); text-decoration-color: var(--coral); }
.sticky__price b { display: block; font: 700 26px var(--display); }
.sticky .btn { margin: 0; flex: 1; min-height: 56px; font-size: 19px; }
.sticky .btn { animation: nudge 3s 2s infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: scale(1.04) rotate(-1deg); } 96% { transform: scale(1.04) rotate(1deg); } }

/* animazioni allo scorrimento */
.js .a-up, .js .a-left, .js .a-right, .js .a-pop { opacity: 0; transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .a-up { transform: translateY(30px); }
.js .a-left { transform: translateX(-60px) rotate(-2deg); }
.js .a-right { transform: translateX(60px) rotate(2deg); }
.js .a-pop { transform: scale(.88); transition-timing-function: var(--ease), var(--spring); }
.js .is-in { opacity: 1 !important; transform: none !important; }
.js .dip.is-in { transform: rotate(-1.5deg) !important; }
.js .parts .is-in:nth-child(even), .js .feats .is-in:nth-child(even) { transition-delay: .06s; }
.h-in { opacity: 0; transform: translateY(18px); animation: hin .8s var(--ease) forwards; animation-delay: calc(var(--d) * .15s + .1s); }
@keyframes hin { to { opacity: 1; transform: none; } }
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 70; pointer-events: none; border-radius: 3px; animation: fall 1.1s ease-out forwards; }
@keyframes fall { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [class*="a-"], .h-in, .m { opacity: 1 !important; transform: none !important; }
  .hero h1 mark::after { transform: none; }
}

/* ---------- pannello checkout ---------- */
.co { position: fixed; inset: 0; z-index: 80; background: rgba(28, 27, 58, .5); display: flex; align-items: flex-end; justify-content: center; animation: fadein .25s ease; }
.co[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.co__panel { width: 100%; max-width: 520px; max-height: 94svh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheet .4s var(--spring); }
@keyframes sheet { from { transform: translateY(60%); } }
@media (min-width: 640px) { .co { align-items: center; } .co__panel { border-radius: 28px; } }
.co__grab { width: 44px; height: 5px; border-radius: 9px; background: #D5D8E8; margin: 4px auto 10px; }
.co__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.co__head p { font: 700 26px var(--display); }
.co__x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 18px; cursor: pointer; color: var(--ink); }
.co__item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 0 0 1px var(--line); }
.co__item img { width: 52px; height: 70px; object-fit: cover; border-radius: 10px; flex: none; }
.co__item strong { display: block; font-size: 16px; line-height: 1.2; }
.co__item span { font-size: 13px; color: var(--muted); }
.co__price { margin-left: auto; text-align: right; line-height: 1.1; flex: none; }
.co__price s { font-size: 13px; color: var(--muted); text-decoration-color: var(--coral); }
.co__price b { display: block; font: 700 24px var(--display); }
.co__steps { list-style: none; display: flex; gap: 6px; margin: 16px 0 8px; }
.co__steps li { flex: 1; display: flex; align-items: center; gap: 6px; font: 600 13px var(--body); color: var(--muted); }
.co__steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E6E8F3; font-size: 13px; flex: none; }
.co__steps .is-on { color: var(--ink); }
.co__steps .is-on span { background: var(--blue); color: #fff; }
.fld { display: grid; gap: 6px; margin-top: 14px; }
.fld__l { font: 700 18px var(--body); }
.fld input, .fld select { font: 400 19px var(--body); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 15px; width: 100%; min-height: 56px; -webkit-appearance: none; appearance: none; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--blue); }
.fld__hint { font-size: 15px; color: var(--muted); }
.fld__err { display: none; font: 600 15px var(--body); color: #D33A2C; }
.fld.is-bad input, .fld.is-bad select { border-color: var(--coral); background: #FFF6F5; }
.fld.is-bad .fld__err { display: block; }
.fld__fix { justify-self: start; font: 600 15px var(--body); color: var(--blue); background: #EEF0FF; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.co__pay { margin-top: 20px; }
.co__msg { margin-top: 12px; font-size: 15px; background: #FFF4D1; border-radius: 12px; padding: 10px 12px; }
.co__ways { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.co__ways span { font: 600 14px var(--body); background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 10px; padding: 6px 10px; }
.co__safe { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.4; }
body.no-scroll { overflow: hidden; }

/* le entrate laterali non devono allargare la pagina sui telefoni */
section, footer { overflow-x: clip; }

/* tasto pausa / play sui video */
.clip__pp { position: absolute; left: 14px; top: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); display: grid; place-items: center; cursor: pointer; transition: all .3s cubic-bezier(.34, 1.56, .64, 1); z-index: 2; }
.clip.is-paused .clip__pp { left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); }
.i-pause { display: flex; gap: 5px; }
.i-pause::before, .i-pause::after { content: ""; width: 6px; height: 20px; border-radius: 2px; background: #1C1B3A; }
.i-play { width: 0; height: 0; border-left: 18px solid #1C1B3A; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.clip.is-paused .i-play { border-left-width: 28px; border-top-width: 17px; border-bottom-width: 17px; margin-left: 8px; }
