/* MTwin — pagina principale e pagine delle app (si aggiunge a style.css, stesso tema di MTPick) */

/* ---------- Apertura «di scena»: MT entra, le strisce della velocità scattano, WIN arriva in corsivo ---------- */
.show {
  position: fixed; inset: 0; z-index: 100; display: none;
  place-items: center; background: #1f2026; color: #ccc; overflow: hidden;
}
.js .show { display: grid; }
.show.done { animation: show-out .55s var(--ease) forwards; }
.show.gone { display: none !important; }
.show::before {               /* lampo di luce che attraversa la scena */
  content: ""; position: absolute; inset: -20% -60%;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  transform: translateX(-60%); animation: show-sweep 1.1s .55s var(--ease) both;
}
.show-logo { display: flex; align-items: center; font: 800 clamp(64px, 15vw, 190px)/1 "DejaVu Sans", var(--sans); letter-spacing: -.02em; }
.show-logo .mt { color: #ccc; animation: show-mt .5s cubic-bezier(.2, 1.4, .3, 1) both; }
.show-logo .stripes { position: relative; width: .62em; height: .72em; margin: 0 .02em 0 .05em; }
.show-logo .stripes i {
  position: absolute; right: 0; height: .045em; border-radius: 1px;
  background: linear-gradient(90deg, rgba(200,64,66,0), #c84042);
  transform-origin: right center; animation: show-stripe .42s var(--ease) both;
}
.show-logo .stripes i:nth-child(1) { top: 6%;  width: 62%; animation-delay: .38s; }
.show-logo .stripes i:nth-child(2) { top: 25%; width: 92%; animation-delay: .32s; }
.show-logo .stripes i:nth-child(3) { top: 45%; width: 100%; animation-delay: .28s; }
.show-logo .stripes i:nth-child(4) { top: 65%; width: 85%; animation-delay: .34s; }
.show-logo .stripes i:nth-child(5) { top: 85%; width: 62%; animation-delay: .4s; }
.show-logo .win {
  color: #c84042; font-size: .77em; font-style: italic; transform: skewX(-12deg);
  animation: show-win .5s .5s cubic-bezier(.15, 1.3, .3, 1) both;
}
.show-apps {
  position: absolute; left: 0; right: 0; bottom: 18%; display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px);
  font: 700 clamp(13px, 1.6vw, 18px)/1 var(--mono); letter-spacing: .3em; color: #8d8f96;
}
.show-apps span { opacity: 0; animation: show-app .4s var(--ease) both; }
.show-apps span:nth-child(1) { animation-delay: .9s; }
.show-apps span:nth-child(2) { animation-delay: 1.02s; }
.show-apps span:nth-child(3) { animation-delay: 1.14s; }
.show-skip {
  position: absolute; right: 20px; bottom: 20px; border: 1px solid #44464e; background: transparent; color: #8d8f96;
  font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
@keyframes show-mt { from { opacity: 0; transform: translateX(-38vw) scale(1.4); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes show-stripe { from { transform: scaleX(0); opacity: 0; } 60% { opacity: 1; } to { transform: scaleX(1); opacity: 1; } }
@keyframes show-win { from { opacity: 0; transform: translateX(30vw) skewX(-30deg); filter: blur(8px); } to { opacity: 1; transform: skewX(-12deg); filter: none; } }
@keyframes show-app { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes show-sweep { to { transform: translateX(60%); } }
@keyframes show-out {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
@media (prefers-reduced-motion: reduce) { .js .show { display: none; } }
/* mentre c'è la scena la pagina sotto resta ferma */
.showing { overflow: hidden; }

/* ---------- Pagina principale ---------- */
.home-hero { padding-top: 72px; }
/* mentre c'è la scena le comparse aspettano: partono quando la scena si apre */
.showing .m.in { animation-play-state: paused; }
.home-hero .headline { max-width: 900px; }
.apps-sec { padding-top: 56px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.app-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px var(--line) inset, 0 18px 50px -28px rgba(40, 30, 20, .35);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line) inset, 0 30px 70px -30px rgba(40, 30, 20, .45); }
.app-card .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e6e4dd; }
.app-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.app-card:hover .shot img { transform: scale(1.05); }
.app-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.app-card .body p { margin: 0; color: var(--ink-2); font-size: 16px; flex: 1; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head .ico { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 10px -2px rgba(40,30,20,.25); }
.app-head .logo { height: 30px; width: auto; }
.status { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.status.free { background: #e3f1e4; color: #2f7a39; }
.status.beta { background: #fbf0dc; color: #9a6514; }
.status.soon { background: var(--soft); color: var(--muted); }
.app-card .btn { align-self: flex-start; }

/* ---------- Pagine delle app ---------- */
.feat-box { margin-top: 110px; padding: 30px 32px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line) inset; }
.feat-box h3 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.01em; }
a.studio { text-decoration: none; }
@media (max-width: 720px) { .app-head .logo { height: 22px; } .feat-box { padding: 22px; } }

/* ---------- Vendita (anteprima PayPal) ---------- */
.buy { margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 40px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line) inset, 0 30px 70px -40px rgba(40,30,20,.4); }
.buy h2 { margin-bottom: 18px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); font: 600 13px/1 var(--mono); color: var(--ink); }
.buy-card { background: var(--bg); border-radius: 16px; padding: 28px; box-shadow: 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; gap: 12px; }
.price { display: flex; flex-direction: column; margin-bottom: 8px; }
.price .amount { font-size: 46px; font-weight: 700; letter-spacing: -.02em; }
.price .vat { font: 13px/1.4 var(--mono); color: var(--muted); }
.pp { height: 50px; border: 0; border-radius: 999px; font: 600 16px/1 var(--sans); cursor: not-allowed; display: grid; place-items: center; }
.pp-gold { background: #ffc439; }
.pp-word { font: italic 800 22px/1 Verdana, var(--sans); letter-spacing: -.02em; }
.pp-word i { color: #003087; font-style: italic; } .pp-word b { color: #009cde; font-style: italic; }
.pp-card { background: #2c2e2f; color: #fff; }
.pp-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pp-demo { margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--red); text-align: center; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; padding: 24px; } }
