/*
 * Train · landing per i coach (index.html) e pagina d'invito (invito/).
 * Stessi token della v2 (tokens.css, DESIGN.md): tema unico scuro, verde come unico
 * accento, Archivo largo in maiuscolo. Raggi: bottoni a pillola, telefoni, foto e
 * tessere --r-lg, campi --r-sm.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 600; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-stretch: var(--w-display); font-weight: 900; text-transform: var(--case-display); line-height: .92; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-green-hi); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: var(--r-pill); background: var(--c-green); color: var(--c-on-green); font-weight: 800; }
.skip:focus { left: 16px; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 0;
  font: inherit; font-family: var(--font-display); font-stretch: var(--w-strong); font-weight: 800; font-size: 16px;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-green); color: var(--c-on-green); }
.btn--primary:hover { background: var(--c-green-hover); }
.btn i { font-size: 1.1em; }
.btn--primary i { transition: transform var(--t-base) var(--ease-spring); }
.btn--primary:hover i { transform: translateX(4px); }
.btn--ghost { background: var(--c-surface-2); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--c-text-3); }
.btn--big { min-height: 60px; padding: 0 30px; font-size: 20px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* Barra in alto: trasparente sulla hero, vetro quando si scorre */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; padding-top: env(safe-area-inset-top); transition: background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.nav.is-on { background: var(--c-bg-glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--c-line); }
@media (prefers-reduced-transparency: reduce) { .nav.is-on { background: var(--c-bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav__in { max-width: 1240px; margin: 0 auto; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nav__act { display: flex; gap: var(--s-2); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-stretch: var(--w-display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.nav__brand img { border-radius: 9px; }
@media (max-width: 560px) { .nav__write { display: none; } }

/* Striscia "Installa Train" (solo telefono) */
.inst-strip {
  width: 100%; height: 52px; display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--gutter);
  border: 0; border-bottom: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text);
  font: inherit; font-weight: 800; font-size: 15px; text-align: left; cursor: pointer;
}
.inst-strip img { border-radius: 7px; flex: none; }
.inst-strip__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-strip__go { display: inline-flex; align-items: center; gap: 4px; color: var(--c-green-hi); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .inst-strip { animation: l-drop 700ms var(--ease-out) 900ms both; }
  .inst-strip__go i { animation: l-nudge 1.8s var(--ease-out) 2s infinite; }
}
@keyframes l-drop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes l-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(4px); } }

/* Telefono: cornice attorno ai video veri dell'app */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 390 / 844; padding: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .15); background: #050605;
  box-shadow: inset 0 0 0 1.5px var(--c-line-strong), 0 50px 90px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(0 0 0 / .6);
}
.phone .vid { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--pw) * .125); background: var(--c-bg); }.vid-btn {
  position: absolute; left: 50%; bottom: -60px; translate: -50% 0; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--c-surface-2); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line-strong);
  display: grid; place-items: center; font-size: 18px; cursor: pointer;
}
.vid-btn:hover { box-shadow: inset 0 0 0 1.5px var(--c-text-3); }

/* Hero */
.hero {
  max-width: 1240px; margin: 0 auto; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 100px) var(--gutter) var(--s-9);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: var(--s-8);
}
.has-strip .hero { padding-top: calc(env(safe-area-inset-top) + 140px); }
.hero__h { font-size: clamp(46px, 6vw, 92px); line-height: .88; }
.hero__h .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__h .ln > span { display: inline-block; }
.hero__h .ln:last-child > span { color: var(--c-green-hi); }
.hero__sub { margin-top: var(--s-6); max-width: 36ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--c-text-2); line-height: 1.45; }
.hero__cta { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__media { position: relative; display: grid; place-items: center; min-height: min(78vh, 700px); padding-bottom: 60px; }
.hero__media .phone--front { --pw: clamp(240px, 21vw, 300px); rotate: -3deg; z-index: 1; }
.hero__media .phone--back { --pw: clamp(200px, 17vw, 250px); position: absolute; right: -2%; top: 4%; rotate: 9deg; filter: brightness(.55) saturate(.8); }

/* Sezioni */
.sec-h { font-size: clamp(36px, 5.4vw, 76px); max-width: 16ch; }
section { scroll-margin-top: 80px; }

/* Racconto: telefono fermo a sinistra, i passi scorrono a destra */
.story { max-width: 1240px; margin: 0 auto; padding: var(--s-9) var(--gutter) 0; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
.story__stage { position: relative; }
.phone--stage { --pw: min(330px, 24vw, calc(74vh * 390 / 844)); position: sticky; top: calc(50vh - var(--pw) * 844 / 390 / 2 + 30px); margin-inline: auto; }
.phone--stage .vid { position: absolute; inset: calc(var(--pw) * .028); width: calc(100% - var(--pw) * .056); height: calc(100% - var(--pw) * .056); opacity: 0; scale: 1.04; transition: opacity 600ms var(--ease-out), scale 900ms var(--ease-out); }
.phone--stage .vid.is-on { opacity: 1; scale: 1; }
.story__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 88vh; display: grid; align-content: center; gap: var(--s-4); max-width: 520px; opacity: .28; transition: opacity 500ms var(--ease-out); }
.step.is-on { opacity: 1; }
.step h3 { font-size: clamp(34px, 3.6vw, 54px); }
.step p { color: var(--c-text-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; max-width: 36ch; }
.step__ico { font-size: 34px; color: var(--c-green-hi); }
.step.is-on .step__ico { animation: l-pop 600ms var(--ease-spring) both; }
.phone--inline { display: none; }
@keyframes l-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Il gestionale del coach: finestra del browser con il video vero */
.desk { max-width: 1240px; margin: 0 auto; padding: var(--s-9) var(--gutter); }
.browser {
  margin-top: var(--s-7); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-2);
  box-shadow: inset 0 0 0 1px var(--c-line-strong), 0 60px 120px -40px rgb(0 0 0 / .9);
}
.browser__bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--c-line); }
.browser__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--c-line-strong); }
.browser .vid { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--c-bg); }

.bento { margin-top: var(--s-4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.tile {
  position: relative; overflow: hidden; isolation: isolate; min-height: 270px; padding: var(--s-6);
  display: grid; grid-template-rows: auto 1fr auto; row-gap: 0;
  border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line);
}
.tile > h3 { align-self: end; padding-top: var(--s-6); }
.tile h3 { font-size: clamp(24px, 2.3vw, 34px); line-height: .95; }
.tile p { margin-top: var(--s-3); color: var(--c-text-2); max-width: 36ch; }
.tile__ico { font-size: 30px; color: var(--c-green-hi); }
.tile--green { background: var(--c-green); border: 0; }
.tile--green :is(h3, p, .tile__ico) { color: var(--c-on-green); }
.tile--photo { grid-column: span 2; border: 0; }
.tile--photo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: var(--photo-tone); }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(11 13 12 / .92) 15%, rgb(11 13 12 / .2) 70%); }
.tile--photo p { color: var(--c-text); }

/* La miccia: una linea verde che corre lungo il bordo della tessera e si consuma */
.fuse { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.fuse::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px;
  background: conic-gradient(from 0deg, var(--c-green-hi) var(--k, 100%), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@property --k { syntax: '<percentage>'; inherits: false; initial-value: 100%; }

/* Solo su invito: tre tappe unite da una linea che si disegna */
.invite { max-width: 1240px; margin: 0 auto; padding: var(--s-9) var(--gutter); }
.invite__sub { margin-top: var(--s-5); max-width: 44ch; color: var(--c-text-2); font-size: clamp(18px, 1.5vw, 21px); }
.flow { --ico: 72px; position: relative; list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.flow::before {
  content: ""; position: absolute; left: calc(var(--ico) / 2); right: 33%; top: calc(var(--ico) / 2 - 1px); height: 2px;
  background: linear-gradient(90deg, var(--c-green), var(--c-green-hi)); transform-origin: left; transform: scaleX(0);
}
.flow__i { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.flow__ico {
  width: var(--ico); height: var(--ico); border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s-3);
  background: var(--c-surface-2); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); color: var(--c-green-hi); font-size: 30px;
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), box-shadow 400ms var(--ease-out), transform 500ms var(--ease-spring);
}
.flow__i h3 { font-size: clamp(24px, 2.4vw, 34px); }
.flow__i p { color: var(--c-text-2); max-width: 30ch; }
.flow.is-in .flow__ico { background: var(--c-green); color: var(--c-on-green); box-shadow: none; transform: scale(1.06); }
.invite__note { margin-top: var(--s-8); display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text-2); max-width: 640px; }
.invite__note i { color: var(--c-green-hi); font-size: 22px; flex: none; margin-top: 1px; }

/* Contatto */
.contact {
  max-width: 1240px; margin: 0 auto; padding: var(--s-9) var(--gutter); border-top: 1px solid var(--c-line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--s-8); align-items: start;
}
.contact__head { display: grid; gap: var(--s-5); justify-items: start; }
.contact__h { font-size: clamp(52px, 9vw, 150px); line-height: .84; }
.contact__sub { color: var(--c-text-2); font-size: clamp(18px, 1.5vw, 21px); max-width: 30ch; }
.contact__wa i { color: var(--c-green-hi); font-size: 22px; }
.contact__f, .contact__ok {
  position: relative; z-index: 1; padding: var(--s-7) var(--s-6); border-radius: var(--r-lg); display: grid; gap: var(--s-4);
  /* vetro: il "?" del titolo che ci finisce sotto si vede sfocato; i campi restano pieni */
  background: rgb(19 22 20 / .4); border: 1px solid var(--c-line-strong);
  -webkit-backdrop-filter: blur(8px) saturate(130%); backdrop-filter: blur(8px) saturate(130%);
}
@media (prefers-reduced-transparency: reduce) { .contact__f, .contact__ok { background: var(--c-surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.contact__ok { justify-items: start; outline: none; }
.contact__ok h3 { font-size: 44px; }
.contact__ok p { color: var(--c-text-2); }
.contact__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c-green); color: var(--c-on-green); font-size: 30px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { max-width: 1240px; margin: 0 auto; padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; color: var(--c-text-2); border-top: 1px solid var(--c-line); }
.foot .nav__brand { font-size: 17px; }
.foot a { font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--c-green-hi); }

/* Campi (accesso, contatto, invito) */
.fld { display: grid; gap: 6px; }
.fld > span:first-child { font-size: var(--fs-small); color: var(--c-text-2); font-weight: 700; }
.fld small { color: var(--c-text-3); font-weight: 600; }
.fld input, .fld textarea {
  width: 100%; height: 52px; padding: 0 var(--s-4); border-radius: var(--r-sm);
  background: var(--c-surface-2); border: 1.5px solid var(--c-line-strong); color: var(--c-text);
  font: inherit; font-size: 17px; font-weight: 700;
  transition: border-color var(--t-base) var(--ease-out);
}
.fld textarea { height: auto; min-height: 96px; padding: 14px var(--s-4); resize: vertical; line-height: 1.4; }
.fld :is(input, textarea):hover { border-color: var(--c-text-3); }
.fld :is(input, textarea):focus { outline: none; border-color: var(--c-green); }
.fld :is(input, textarea)[aria-invalid="true"] { border-color: var(--c-danger); }
.fld__wrap { position: relative; display: block; }
.fld__wrap input { padding-right: 52px; }
.fld__eye { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--c-text-2); font-size: 20px; display: grid; place-items: center; cursor: pointer; }
.fld__help { color: var(--c-text-3); font-size: var(--fs-small); }
.chk { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; color: var(--c-text-2); }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk__box { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); color: transparent; font-size: 15px; transition: background-color var(--t-fast) var(--ease-out); }
.chk input:checked + .chk__box { background: var(--c-green); box-shadow: none; color: var(--c-on-green); }
.chk input:focus-visible + .chk__box { outline: 2px solid var(--c-green-hi); outline-offset: 2px; }

/* Accesso */
.auth { padding: 0; border: 0; background: transparent; color: var(--c-text); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.auth::backdrop { background: rgb(5 7 6 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.auth[open] { display: grid; place-items: center; }
.auth__in {
  position: relative; width: min(440px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: var(--s-7) var(--s-6) var(--s-6); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line);
}
.auth__x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-surface-2); color: var(--c-text); font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.auth__t { font-size: 40px; padding-right: 52px; }
.auth__f { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.auth__msg { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: rgb(255 93 61 / .12); color: #FF8A70; font-size: var(--fs-small); }
.auth__msg.is-ok { background: var(--c-green-tint); color: var(--c-green-hi); }
.auth__link { justify-self: center; min-height: 44px; border: 0; background: none; color: var(--c-green-hi); font: inherit; font-weight: 800; cursor: pointer; }
.auth__hint { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--c-text-3); font-size: var(--fs-small); }
.auth__hint i { font-size: 18px; flex: none; }

/* Tablet e telefono */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--photo { grid-column: span 2; }
  .tile--green { grid-column: span 2; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: var(--s-6); padding-top: calc(env(safe-area-inset-top) + 104px); }
  .has-strip .hero { padding-top: calc(env(safe-area-inset-top) + 148px); }
  .hero__media { min-height: 0; padding: var(--s-5) 0 72px; }
  .hero__media .phone--front { --pw: min(68vw, 280px); }
  .hero__media .phone--back { --pw: min(48vw, 210px); right: 2%; top: 8%; }
  .story { padding-top: var(--s-8); }
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage { display: none; }
  .step { min-height: 0; max-width: none; opacity: 1; padding: var(--s-8) 0 0; }
  .step .step__ico { animation: none; }
  .phone--inline { display: block; --pw: min(72vw, 290px); margin: var(--s-5) auto 0; }
  .desk, .invite, .contact { padding-block: var(--s-8); }
  .browser__bar { height: 30px; }
  /* da telefono si vede la parte sinistra del gestionale, più grande */
  .browser .vid { aspect-ratio: 4 / 3; object-position: left top; }
  .browser__bar span { width: 8px; height: 8px; }
  .flow { grid-template-columns: 1fr; gap: var(--s-6); --ico: 60px; }
  .flow::before { left: calc(var(--ico) / 2 - 1px); right: auto; top: calc(var(--ico) / 2); bottom: 40px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--c-green), var(--c-green-hi)); }
  .flow__i { grid-template-columns: var(--ico) 1fr; column-gap: var(--s-4); row-gap: var(--s-1); }
  .flow__ico { grid-row: span 2; margin: 0; }
  .contact { grid-template-columns: 1fr; gap: var(--s-6); }
  .contact__f, .contact__ok { padding: var(--s-6) var(--s-5); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--photo, .tile--green { grid-column: auto; }
  .tile { min-height: 220px; }
  .tile--photo { min-height: 320px; }
}
@media (max-width: 420px) {
  .hero__cta .btn--big { flex: 1; padding: 0 18px; font-size: 18px; }
}

/* Movimento: entrata della hero, sezioni che salgono, la linea degli inviti, la miccia */
@media (prefers-reduced-motion: no-preference) {
  .hero__h .ln > span { animation: l-up 900ms var(--ease-out) both; }
  .hero__h .ln:nth-child(2) > span { animation-delay: 120ms; }
  .hero__sub { animation: l-rise 800ms var(--ease-out) 380ms both; }
  .hero__cta { animation: l-rise 800ms var(--ease-out) 500ms both; }
  .hero__media .phone--front { animation: l-phone 1300ms var(--ease-out) 200ms both; }
  .hero__media .phone--back { animation: l-phone-b 1500ms var(--ease-out) 450ms both; }
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .tile { transition-delay: calc(var(--d, 0) * 90ms); }
  .bento .tile:nth-child(2) { --d: 1; } .bento .tile:nth-child(3) { --d: 2; } .bento .tile:nth-child(4) { --d: 3; } .bento .tile:nth-child(5) { --d: 4; }
  .tile--fuse.is-in .fuse::before { animation: l-fuse 9s linear infinite; }
  .tile--photo img { transition: transform 1200ms var(--ease-out); }
  .tile--photo:hover img { transform: scale(1.04); }
  .flow::before { transition: transform 1400ms var(--ease-out) 200ms; }
  .flow.is-in::before { transform: none; }
  .flow__i:nth-child(1) .flow__ico { transition-delay: 150ms; }
  .flow__i:nth-child(2) .flow__ico { transition-delay: 750ms; }
  .flow__i:nth-child(3) .flow__ico { transition-delay: 1350ms; }
  .js .flow__i { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .flow.is-in .flow__i { opacity: 1; transform: none; }
  .flow.is-in .flow__i:nth-child(2) { transition-delay: 600ms; }
  .flow.is-in .flow__i:nth-child(3) { transition-delay: 1200ms; }
  .contact__ok:not([hidden]) .contact__check { animation: l-pop 700ms var(--ease-spring) both; }
  .contact__ok:not([hidden]) :is(h3, p) { animation: l-rise 700ms var(--ease-out) 150ms both; }
  .auth[open] .auth__in { animation: l-rise 420ms var(--ease-out) both; }
  /* Scorrendo: il telefono dietro sale più lento, la finestra del coach si raddrizza */
  @supports (animation-timeline: view()) {
    .hero__media { animation: l-par linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .browser.is-in { animation: l-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes l-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes l-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes l-phone { from { opacity: 0; transform: translateY(80px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes l-phone-b { from { opacity: 0; transform: translate(-60px, 60px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes l-par { to { transform: translateY(-12%); } }
@keyframes l-tilt { from { transform: perspective(1400px) rotateX(14deg) scale(.92); } to { transform: none; } }
@keyframes l-fuse { 0% { --k: 100%; } 92% { --k: 0%; } 100% { --k: 100%; } }
