* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.logo { width: 34px; height: 34px; display: block; flex: none; border-radius: 8px; object-fit: cover; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-600); color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .12s ease, filter .12s ease;
}
.nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  color: var(--teal-700); background: color-mix(in srgb, var(--teal-600) 12%, transparent);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -1.2px; font-weight: 800; }
h1 .accent { color: var(--teal-700); }
.lede { font-size: 18px; color: var(--ink-500); margin-top: 18px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.meta-note { font-size: 13px; color: var(--ink-500); }

/* Phone mockup */
.phone-stack { position: relative; display: grid; place-items: center; }
.phone {
  width: 270px; border-radius: 34px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; display: block; border-radius: 25px; }

/* Sections */
section.block { padding: 56px 0; }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.6px; text-align: center; }
.section-sub { text-align: center; color: var(--ink-500); margin-top: 10px; margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal-600) 14%, transparent); color: var(--teal-700);
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-500); }

/* Screens gallery */
/* auto-fit: quattro schermate stanno in fila sul desktop e si riflowano a 2x2
   sui formati intermedi, senza lasciare un telefono orfano su una riga da solo. */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; align-items: start; }
.screens .phone { width: 100%; max-width: 260px; margin: 0 auto; }

/* Badge Google Play: asset ufficiale, non ridisegnato.
   Le brand guidelines vietano di modificarlo o ricostruirlo. */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 60px; width: auto; display: block; }

/* Fascia per chi ha ancora l'app presa dal sito (sideload). Transitoria:
   si toglie quando il traffico dal sideload si esaurisce. */
.legacy {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.legacy .txt h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.legacy .txt p { font-size: 15px; color: var(--ink-500); max-width: 62ch; }
.legacy .go {
  display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: auto;
  background: var(--teal-600); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
}
.legacy .go:hover { filter: brightness(1.06); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-500); font-size: 14px; text-align: center; }
footer a { color: inherit; }
/* Meta asks for clear space around its logos: half a logo away from anything else. */
footer .social { margin-top: 12px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
footer .social a { display: inline-flex; align-items: center; gap: 11px; }

/* Language, theme and download leave no room for the name on a phone: the logo stays. */
@media (max-width: 460px) {
  .brand-name { display: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .phone-stack { order: -1; }
  .features, .screens { grid-template-columns: 1fr; }
  .screens .phone { max-width: 300px; }
}
