html, body { overflow-x: clip; }
main { overflow-x: clip; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h2 { font-size: clamp(32px, 6vw, 48px); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.lead { margin-top: 10px; font-size: 19px; color: var(--muted); }

.hero { background: var(--blue); color: var(--on-blue); border-radius: 0 0 40px 40px; overflow: hidden; }
.hero .brand { font-size: 18px; }
.hero :focus-visible { outline-color: var(--on-blue); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 28px 0; }
.hero-text { padding-bottom: 48px; }
.hero h1 { margin-top: 52px; font-size: clamp(50px, 9vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -.05em; text-wrap: balance; }
.hero-text p { max-width: 30em; margin-top: 18px; font-size: 20px; color: var(--on-blue-soft); }
.hero-text small { display: block; margin-top: 12px; font-size: 14px; color: var(--on-blue-soft); }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; margin-top: 26px; padding: 0 30px; border-radius: 999px; background: #ffffff; color: #2438e8; font-size: 18px; font-weight: 700; text-decoration: none; }
.phone { justify-self: center; width: min(340px, 100%); height: auto; margin-bottom: -96px; border: 8px solid #12163a; border-radius: 44px; }

.band { padding-block: 72px 0; }
.band.last { padding-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.steps li { padding: 16px 16px 22px; border-radius: 30px; background: var(--card); }
.steps img { width: 100%; height: auto; margin-bottom: 16px; border-radius: 20px; background: var(--bg); }
.steps p { margin-top: 2px; color: var(--muted); }

.pink { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 72px; padding: clamp(24px, 5vw, 48px); border-radius: 36px; background: var(--pink); color: var(--on-pink); }
.pink .lead { color: inherit; }
.plain { display: grid; gap: 10px; margin-top: 20px; }
.plain b { display: block; }
.chat { padding: 20px; border-radius: 28px; background: #ffffff; }
.bubble { padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #edf0fb; color: #12163a; font-size: 16px; }
.bubble span { color: #2438e8; font-weight: 500; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.facts li { padding: 22px; border-radius: 30px; background: var(--card); }
.facts p { margin-top: 4px; color: var(--muted); }

.install { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(24px, 5vw, 44px); border-radius: 36px; background: var(--blue); color: var(--on-blue); }
.install :focus-visible { outline-color: var(--on-blue); }
.install h2 { font-size: clamp(28px, 5vw, 40px); }
.install p { margin-top: 10px; color: var(--on-blue-soft); }
.install b { color: var(--on-blue); }
.install .cta { flex-shrink: 0; margin-top: 0; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 34px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: inherit; }

@media (max-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero h1 { margin-top: 40px; }
  .hero-text { padding-bottom: 34px; }
  .phone { width: min(280px, 82%); margin-bottom: -160px; }
  .band { padding-block: 56px 0; }
  .steps, .facts, .pink { grid-template-columns: minmax(0, 1fr); }
  .pink { margin-top: 56px; }
  .install { flex-direction: column; align-items: stretch; }
}

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.get .cta { min-height: 56px; margin-top: 0; padding: 0 26px; font-size: 17px; }
.store { position: relative; display: inline-block; line-height: 0; }
.store img { display: block; width: auto; height: 56px; }
.store em { position: absolute; top: -9px; right: -8px; padding: 2px 8px; border-radius: 999px; background: #f7cbe6; color: #12163a; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.5; }
.install .get { flex-shrink: 0; margin-top: 0; flex-direction: column; align-items: stretch; }
.install .store { align-self: center; }

/* Animazioni */
.cta { transition: transform .15s ease; }
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.97); }
.steps li, .facts li { transition: transform .2s ease; }
@media (hover: hover) { .steps li:hover, .facts li:hover { transform: translateY(-4px); } }

.anim .word { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: bottom; }
.anim .word span { display: inline-block; transform: translateY(105%); transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms + 120ms); }
.anim.ready .word span { transform: none; }
.anim .hero-text p, .anim .hero-text .get, .anim .hero-text small { opacity: 0; transform: translateY(14px); transition: opacity .5s ease .55s, transform .5s ease .55s; }
.anim.ready .hero-text p, .anim.ready .hero-text .get, .anim.ready .hero-text small { opacity: 1; transform: none; }
.anim .hero-text .get { transition: opacity .5s ease .65s, transform .5s ease .65s; }

/* Palco del telefono */
.stage { position: relative; justify-self: center; width: min(340px, 100%); }
.anim .hero { overflow: hidden; }
.demo { position: relative; z-index: 1; width: 100%; height: 640px; margin-bottom: -110px; padding: 10px; border-radius: 48px; background: #12163a; box-shadow: 0 30px 60px rgba(10, 16, 80, .4); opacity: 0; transform: translateY(calc(90px + var(--py, 0px))) rotate(3deg); transition: opacity .6s ease .35s, transform .9s cubic-bezier(.2, .8, .2, 1) .35s; }
.anim.ready .demo { opacity: 1; transform: translateY(var(--py, 0px)); transition: opacity .6s ease .35s, transform .9s cubic-bezier(.2, .8, .2, 1) .35s; }
.demo-screen { height: 100%; overflow: hidden; padding: 30px 16px; border-radius: 38px; background: #edf0fb; color: #12163a; }
.d-scene { display: grid; gap: 12px; animation: d-in .32s ease-out; }
@keyframes d-in { from { opacity: 0; transform: translateX(22px); } }
.d-pill { justify-self: start; padding: 5px 12px; border-radius: 999px; background: #f7cbe6; font-size: 13px; }
.d-q { margin: 2px 0 2px; font-size: 27px; line-height: 1.08; font-weight: 700; letter-spacing: -.035em; color: #12163a; }
.d-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-who { display: grid; justify-items: center; gap: 5px; padding: 10px 2px 8px; border-radius: 18px; background: #fff; font-size: 13px; font-weight: 500; transition: background-color .15s, color .15s, transform .15s; }
.d-who.on { background: #2438e8; color: #fff; font-weight: 700; animation: d-pop .26s ease-out; }
@keyframes d-pop { 40% { transform: scale(1.1); } }
.d-amount { display: flex; align-items: center; gap: 4px; min-height: 92px; padding: 0 20px; border-radius: 26px; background: #fff; font-size: 48px; letter-spacing: -.04em; }
.d-amount b { font-weight: 700; }
.d-amount i { width: 3px; height: 44px; background: #2438e8; animation: d-blink 1s steps(2) infinite; }
.d-amount span { margin-left: auto; color: #5b618a; font-size: 30px; font-weight: 700; }
@keyframes d-blink { 50% { opacity: 0; } }
.d-input { min-height: 52px; padding: 13px 20px; border-radius: 999px; background: #fff; font-size: 16px; }
.d-note { min-height: 22px; margin: 0; color: #5b618a; font-size: 14px; }
.d-state { padding: 16px; border-radius: 24px; background: #f7cbe6; }
.d-state small { display: block; font-size: 13px; }
.d-state b { display: block; margin-top: 2px; font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.d-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 12px; }
.d-segs i { height: 8px; border-radius: 4px; background: #fff; transition: background-color .25s; }
.d-segs i.on { background: #2438e8; }
.d-row { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 0 14px 0 12px; border-radius: 20px; background: #fff; font-size: 14px; font-weight: 500; }
.d-row u { flex-shrink: 0; width: 28px; height: 28px; border: 2px solid #5b618a; border-radius: 50%; text-decoration: none; transition: background-color .15s, border-color .15s, transform .2s; }
.d-row span { flex: 1; min-width: 0; }
.d-row b { font-size: 15px; white-space: nowrap; }
.d-row.on u { background: #2438e8; border-color: #2438e8; transform: scale(1.12); box-shadow: inset 0 0 0 6px #2438e8, inset 0 0 0 20px #fff; }
.d-row.on b { color: #5b618a; text-decoration: line-through; }

.float { position: absolute; z-index: 2; display: block; transform: translateY(var(--fy, 0px)); }
.float .face { border-radius: 22px; box-shadow: 0 14px 28px rgba(10, 16, 80, .35); animation: bob 4.4s ease-in-out infinite; }
.float.f0 { left: -84px; top: 54px; }
.float.f1 { right: -74px; top: 120px; }
.float.f2 { left: -46px; top: 300px; }
.float.f3 { right: -92px; top: 372px; }
.float.f4 { left: -112px; top: 196px; }
.float.f1 .face { animation-delay: -1s; animation-duration: 5s; }
.float.f2 .face { animation-delay: -2.2s; animation-duration: 3.8s; }
.float.f3 .face { animation-delay: -3s; animation-duration: 4.8s; }
.float.f4 .face { animation-delay: -1.6s; animation-duration: 5.4s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(5deg); } }

/* Nastro delle occasioni */
.marquee { margin-top: 118px; overflow: hidden; background: #f7cbe6; color: #12163a; transform: rotate(-1.2deg) scale(1.02); }
.marquee-in { display: flex; width: max-content; }
.marquee span { padding: 16px 0; font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee span::after { content: "÷"; margin: 0 22px; color: #2438e8; }
.anim .marquee-in { animation: slide 30s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .store img { height: 50px; }
  .get .cta { min-height: 50px; padding: 0 18px; font-size: 16px; }
  .install .get { align-items: center; }
  .demo { width: min(300px, 84vw); height: 600px; margin: 0 auto -190px; }
  .stage { width: 100%; padding-top: 6px; }
  .float { transform: none; }
  .float.f0 { display: none; } .float.f1 { right: -6px; top: 64px; } .float.f2 { left: -8px; top: 250px; } .float.f3 { right: -8px; top: 320px; } .float.f4 { display: none; }
  .float .face { width: 46px; height: 46px; }
  .marquee { margin-top: 216px; }
}
@media (max-width: 1100px) and (min-width: 761px) { .float.f3, .float.f4 { display: none; } }

.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease var(--d, 0ms), transform .65s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .steps li.reveal.in { transition-delay: var(--d, 0ms), var(--d, 0ms); }

.typing { display: none; }
.anim .chat .bubble { display: none; }
.anim .chat.in:not(.typed) .typing { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #edf0fb; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #5b618a; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.anim .chat.typed .bubble { display: block; animation: bubble .35s cubic-bezier(.2, .8, .2, 1.2); transform-origin: left bottom; }
@keyframes dot { 50% { transform: translateY(-5px); } }
@keyframes bubble { from { opacity: 0; transform: scale(.85); } }
