/* Landing di luvpaw.pages.dev. Le pagine legali usano ancora styles.css. Font serviti dal sito: nessuna richiesta a Google. */
@font-face { font-family: 'Nunito'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/Nunito_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/Nunito_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'DynaPuff'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/DynaPuff_600SemiBold.ttf') format('truetype'); }

:root {
  --navy: #083456;
  --navy-2: #0e4570;
  --lilac: #a4a5ff;
  --lilac-soft: #f0f0ff;
  --violet: #4b4f9a;
  --violet-soft: #d4d4ec;
  --white: #ffffff;
  --muted: #5d6c82;
  --on-navy: #c9d3e6;
  --page: #f6f6fd;
  --round: 'DynaPuff', system-ui, sans-serif;
  --text: 'Nunito', system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home { margin: 0; overflow-x: clip; background: var(--page); color: var(--navy); font-family: var(--text); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--round); font-weight: 600; margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }

/* Barra in alto */
.top { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.top-logo img { width: 150px; height: auto; }
.top-link { font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--white); }
.top-link:hover { background: var(--lilac-soft); }

/* Pulsanti */
.btn { display: inline-block; font-weight: 700; text-decoration: none; background: var(--navy); color: var(--white); padding: 16px 28px; border-radius: 999px; }
.btn:hover { background: var(--navy-2); }
.btn-light { background: var(--lilac); color: var(--navy); }
.btn-light:hover { background: var(--white); }

/* Apertura: il titolo e la folla di animali */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 96px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero > *, .bento > *, .game-steps > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 7vw, 84px); overflow-wrap: break-word; letter-spacing: -0.01em; }
.lead { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.store { font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--violet-soft); color: var(--violet); }

.crowd { position: relative; aspect-ratio: 1 / 1; }
.crowd img {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(150px * var(--s)); height: calc(150px * var(--s));
  padding: calc(18px * var(--s)); background: var(--white); border-radius: 50%;
  box-shadow: 0 18px 40px rgba(8, 52, 86, 0.12);
  object-fit: contain;
  transform: translate(-50%, -50%);
  animation: pop 0.6s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--d) * 90ms + 150ms);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } }

/* Che animale hai? */
.pick { background: var(--navy); color: var(--white); padding: clamp(56px, 8vw, 104px) var(--gutter); }
.pick > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.pick-head h2 { font-size: clamp(38px, 5.5vw, 64px); }
.pick-head p { margin-top: 12px; color: var(--on-navy); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chips button {
  font: 700 16px/1 var(--text); color: var(--white); cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px;
  background: rgba(255, 255, 255, 0.08); border: 2px solid transparent; border-radius: 999px;
}
.chips button img { width: 40px; height: 40px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 4px; }
.chips button:hover { background: rgba(255, 255, 255, 0.16); }
.chips button[aria-pressed="true"] { background: var(--lilac); color: var(--navy); }

.panel { margin-top: 28px; display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--lilac-soft); color: var(--navy); border-radius: 36px; padding: clamp(20px, 4vw, 44px); }
.panel.swap .panel-art img, .panel.swap .panel-body { animation: swap 0.35s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.panel-art { margin: 0; background: var(--white); border-radius: 50%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.panel-art img { width: 82%; height: auto; }
.panel-name { font-family: var(--round); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.panel-block { margin-top: 22px; padding-left: 18px; border-left: 4px solid var(--lilac); }
.panel-block h3 { font-family: var(--text); font-weight: 700; font-size: 15px; color: var(--violet); }
.panel-cmd, .panel-chal { font-weight: 700; font-size: 21px; margin-top: 4px; }
.panel-cmd-text, .panel-chal-text { color: var(--muted); max-width: 52ch; }
.panel-always { margin-top: 22px; font-weight: 700; color: var(--violet); }
.pick-total { margin-top: 24px; color: var(--on-navy); }

/* Cosa c'è dentro: griglia di riquadri diversi, ognuno con una piccola scena */
.inside { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.inside-head h2, .game-head h2 { font-size: clamp(36px, 5vw, 56px); }
.inside-head p, .game-head p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.bento { margin-top: 36px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: var(--white); }
.tile h3 { font-size: 24px; }
.tile p { color: var(--muted); font-size: 16px; max-width: 40ch; }
.tile .scene { margin-top: auto; padding-top: 18px; }
.t-health { grid-column: span 4; }
.t-chal { grid-column: span 2; grid-row: span 2; background: var(--navy); color: var(--white); }
.t-chal p { color: var(--on-navy); }
.t-diary { grid-column: span 2; background: var(--lilac); }
.t-diary p, .t-cmd p, .t-friends p { color: var(--navy); }
.t-cmd { grid-column: span 2; background: var(--violet-soft); }
.t-walk { grid-column: span 2; }
.t-family { grid-column: span 2; background: var(--lilac-soft); border: 2px solid var(--violet-soft); }
.t-friends { grid-column: span 2; background: var(--lilac); }

/* scene: stato iniziale nascosto solo quando c'è lo script; .on le fa partire */
.reminders { list-style: none; margin: 0; padding-left: 0; display: grid; gap: 10px; }
.reminders li { display: flex; align-items: center; gap: 12px; background: var(--lilac-soft); border-radius: 18px; padding: 12px 16px; font-weight: 700; }
.reminders em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--violet); font-size: 15px; }
.reminders .ico { font-size: 22px; }
.checks { list-style: none; margin: 0; padding-left: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.08); font-weight: 700; font-size: 16px; }
.checks li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--lilac); background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083456' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.checks b { margin-left: auto; font-family: var(--round); font-weight: 600; color: var(--lilac); }
.polaroids { display: flex; justify-content: center; }
.polaroids figure { margin: 0; width: 46%; background: var(--white); padding: 8px 8px 0; border-radius: 6px; box-shadow: 0 14px 30px rgba(8,52,86,.18); transform: rotate(-6deg); }
.polaroids figure + figure { margin-left: -6%; transform: rotate(7deg) translateY(10px); }
.polaroids img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--lilac-soft); }
.polaroids figcaption { font-family: var(--round); font-size: 12px; text-align: center; padding: 8px 2px 10px; line-height: 1.2; }
.steps { display: flex; align-items: center; gap: 14px; }
.steps img { width: 96px; height: 96px; object-fit: contain; background: var(--white); border-radius: 50%; padding: 6px; }
.steps strong { font-family: var(--round); font-weight: 600; font-size: 20px; display: block; }
.steps .dots { display: flex; gap: 6px; margin: 8px 0 4px; }
.steps .dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--white); }
.steps .dots i:nth-child(-n+3) { background: var(--violet); }
.steps small { font-weight: 700; color: var(--violet); }
.route { position: relative; }
.route svg { width: 100%; height: auto; display: block; }
.route path { fill: none; stroke: var(--lilac); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 2 16; }
.walk-stat { position: absolute; right: 0; bottom: 0; background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.avatars { display: flex; }
.avatars span { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 600; border: 4px solid var(--lilac-soft); background: var(--lilac); }
.avatars span + span { margin-left: -12px; }
.avatars span:nth-child(2) { background: var(--violet-soft); }
.avatars span:nth-child(3) { background: var(--navy); color: var(--white); }
.avatars span:nth-child(4) { background: var(--white); color: var(--violet); }
.postcard { background: var(--white); border-radius: 14px; padding: 16px 18px; transform: rotate(-3deg); box-shadow: 0 14px 30px rgba(8,52,86,.16); position: relative; }
.postcard strong { font-family: var(--round); font-weight: 600; font-size: 24px; display: block; }
.postcard small { color: var(--muted); font-weight: 700; }
.postcard .stamp { position: absolute; right: 14px; top: 12px; font-size: 26px; border: 2px dashed var(--violet-soft); border-radius: 8px; padding: 2px 6px; }

.js .tile .reminders li, .js .tile .checks li, .js .tile .polaroids figure, .js .tile .avatars span, .js .tile .postcard, .js .tile .steps .dots i { transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1), background-color .3s ease; }
.js .tile:not(.on) .reminders li { opacity: 0; transform: translateX(-24px); }
.js .tile:not(.on) .checks li { opacity: .35; }
.js .tile:not(.on) .checks li::before { background-color: transparent; background-size: 0; }
.js .tile:not(.on) .polaroids figure { opacity: 0; transform: translateY(30px) rotate(0); }
.js .tile:not(.on) .avatars span { opacity: 0; transform: scale(.4); }
.js .tile:not(.on) .postcard { opacity: 0; transform: rotate(-12deg) translateY(20px); }
.js .tile:not(.on) .steps .dots i:nth-child(-n+3) { background: var(--white); }
.js .tile .reminders li:nth-child(2), .js .tile .checks li:nth-child(2), .js .tile .avatars span:nth-child(2), .js .tile .polaroids figure:nth-child(2), .js .tile .steps .dots i:nth-child(2) { transition-delay: .15s; }
.js .tile .reminders li:nth-child(3), .js .tile .checks li:nth-child(3), .js .tile .avatars span:nth-child(3), .js .tile .steps .dots i:nth-child(3) { transition-delay: .3s; }
.js .tile .avatars span:nth-child(4) { transition-delay: .45s; }
.js .tile .checks li::before { transition: background-size .3s ease .2s, background-color .3s ease .2s; }
.js .tile .checks li:nth-child(2)::before { transition-delay: .5s; }
.js .tile .checks li:nth-child(3)::before { transition-delay: .8s; }
.js .tile.on .route path { animation: walk 1.6s ease-out both; }
@keyframes walk { from { stroke-dashoffset: 400; opacity: .2; } }

/* La cura che diventa gioco: tre passaggi in ordine */
.game { max-width: var(--wrap); margin: 0 auto clamp(56px, 8vw, 104px); padding: 0 var(--gutter); }
.game-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.game-steps > li { position: relative; counter-increment: step; background: var(--white); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.game-steps > li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -23px; top: 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b4f9a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 4px 12px rgba(8, 52, 86, 0.14); }
.game-steps > li:nth-child(2) { background: var(--navy); color: var(--white); }
.game-steps > li:nth-child(2) p { color: var(--on-navy); }
.game-steps > li:nth-child(3) { background: var(--lilac-soft); border: 2px solid var(--violet-soft); }
.game-steps h3 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.game-steps h3::before { content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lilac); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.game-steps p { color: var(--muted); font-size: 16px; }
.earn, .shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.game-steps .earn { flex: 1; align-content: space-around; }
.earn li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.earn b { flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 600; font-size: 22px; background: var(--lilac); color: var(--navy); }
.earn li:nth-child(2) b { background: var(--violet-soft); }
.earn li:nth-child(3) b { background: var(--lilac-soft); color: var(--violet); }
.shop { margin-top: auto; padding-top: 4px; }
.level { list-style: none; margin: 0; padding: 8px 0 0; flex: 1; min-height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.level li { flex: 1; border-radius: 12px; background: rgba(255,255,255,.12); color: var(--on-navy); font-family: var(--round); font-weight: 600; font-size: 18px; text-align: center; padding-top: 8px; }
.level li:nth-child(1) { height: 28%; } .level li:nth-child(2) { height: 42%; } .level li:nth-child(3) { height: 57%; }
.level li:nth-child(4) { height: 74%; } .level li:nth-child(5) { height: 92%; }
.level .now { background: var(--lilac); color: var(--navy); }
.level .next { background: transparent; box-shadow: inset 0 0 0 2px var(--lilac); color: var(--lilac); }
.shop-more { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--violet); }
.shelf li { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 16px; padding: 9px 12px; font-weight: 700; font-size: 15px; line-height: 1.25; }
.shelf span { font-size: 22px; flex: none; }
.shelf em { margin-left: auto; flex: none; font-style: normal; font-family: var(--round); font-weight: 600; color: var(--violet); padding-left: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%234b4f9a'%3E%3Cellipse cx='32' cy='42' rx='13' ry='11'/%3E%3Cellipse cx='14' cy='28' rx='6' ry='7.5'/%3E%3Cellipse cx='50' cy='28' rx='6' ry='7.5'/%3E%3Cellipse cx='24' cy='15' rx='6' ry='7.5'/%3E%3Cellipse cx='40' cy='15' rx='6' ry='7.5'/%3E%3C/svg%3E") left center / 16px no-repeat; }
.week { margin-top: 18px; }
.week-bar { height: 14px; border-radius: 7px; background: rgba(255,255,255,.12); overflow: hidden; }
.week-bar i { display: block; height: 100%; width: 100%; background: var(--lilac); border-radius: 7px; transform-origin: left; transition: transform 1.2s cubic-bezier(.22,1,.36,1) .9s; }
.js .tile:not(.on) .week-bar i { transform: scaleX(0); }
.week p { margin-top: 10px; color: var(--white); font-weight: 700; }
.week p b { font-family: var(--round); font-weight: 600; color: var(--lilac); font-size: 28px; }
.game-note { margin-top: 20px; color: var(--muted); font-size: 16px; }

/* Tester Android: invito al test chiuso di Google Play */
.hero-tester { display: inline-block; margin-left: 18px; font-weight: 700; color: var(--violet); text-underline-offset: 4px; }
.hero-tester:hover { color: var(--navy); }
.tester { max-width: var(--wrap); margin: 0 auto clamp(56px, 8vw, 104px); padding: 0 var(--gutter); scroll-margin-top: 24px; }
.tester-card { background: var(--lilac); border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.tester-card > * { min-width: 0; }
.tester-text { display: grid; justify-items: start; gap: 16px; }
.tester-tag { font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: 6px 14px; border-radius: 999px; }
.tester-text h2 { font-size: clamp(32px, 4.6vw, 52px); max-width: 14ch; }
.tester-text > p:not(.tester-tag) { max-width: 40ch; }
.tester-note { font-size: 15px; color: var(--navy); }
.tester-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tester-steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: 24px; padding: 18px 20px; font-size: 16px; line-height: 1.45; box-shadow: 0 14px 30px rgba(8, 52, 86, 0.10); }
.tester-steps li:nth-child(2) { margin-left: clamp(0px, 3vw, 28px); }
.tester-steps li:nth-child(3) { margin-left: clamp(0px, 6vw, 56px); }
.tester-steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lilac-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 600; font-size: 20px; }
.tester-steps span { color: var(--muted); }
.tester-steps strong { display: block; font-family: var(--round); font-weight: 600; font-size: 19px; margin-bottom: 2px; color: var(--navy); }

/* Chiusura */
.end { background: var(--navy); color: var(--white); text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter); display: grid; justify-items: center; gap: 18px; }
.end img { width: 220px; height: auto; }
.end h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 18ch; }
.end p { color: var(--on-navy); max-width: 44ch; }

.foot { display: grid; justify-items: center; gap: 12px; padding: 36px var(--gutter) 32px; font-size: 15px; text-align: center; }
.foot-contact, .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.foot-contact a { font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--white); overflow-wrap: anywhere; }
.foot-contact a:hover { background: var(--lilac-soft); }
.foot-links a { text-underline-offset: 3px; }
.foot-copy { color: var(--muted); font-size: 14px; }

/* Telefono */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-health, .t-walk, .t-chal { grid-column: span 2; grid-row: auto; }
  .t-diary, .t-cmd, .t-family, .t-friends { grid-column: span 2; }
  .game-steps { grid-template-columns: 1fr; }
  .game-steps > li:not(:last-child)::after { right: calc(50% - 15px); top: auto; bottom: -23px; transform: rotate(90deg); }
  .tester-card { grid-template-columns: 1fr; border-radius: 28px; }
  .tester-steps li:nth-child(n) { margin-left: 0; }
  .hero-tester { display: block; margin: 16px 0 0; }
  .crowd { max-width: 400px; width: 100%; margin: 0 auto; }
  .crowd img { width: calc(110px * var(--s)); height: calc(110px * var(--s)); padding: calc(13px * var(--s)); }
  .panel { grid-template-columns: 1fr; border-radius: 28px; }
  .panel-art { max-width: 220px; width: 100%; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crowd img, .panel.swap .panel-art img, .panel.swap .panel-body, .js .tile.on .route path { animation: none; }
  .js .tile * , .js .tile *::before { transition: none !important; }
}
.t-chal .scene { margin-top: 6px; }
.t-chal .week { margin-top: auto; }
