:root {
  --accent: #0bc90f;
  --surface: #ffffff;
  --surface-var: #f3f4f6;
  --outline: #e5e7eb;
  --on: #444444;
  --on-var: #808080;
  --on-accent: #121212;
  --radius: 24px;
  --max-w: 1080px;
  --font: "Poppins", system-ui, sans-serif;
}
 
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #121212; --surface-var: #1e1e1e; --outline: #2c2c2c; --on: #e3e3e3; --on-var: #8e8e93;
  }
}
:root[data-theme="dark"] {
  --surface: #121212; --surface-var: #1e1e1e; --outline: #2c2c2c; --on: #e3e3e3; --on-var: #8e8e93;
}
 
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
 
body {
  margin: 0;
  background: var(--surface);
  color: var(--on);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
 
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }
 
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
 
.fade-line {
  height: 1.5px;
  margin: 0 32px;
  background: linear-gradient(90deg, transparent, var(--outline), var(--on-var), var(--outline), transparent);
}
 
/* ---------- Header ---------- */
 
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--on);
  text-decoration: none;
}
.logo-img, .logo svg { width: 46px; height: 46px; border-radius: 13px; }
 
/* Barra di navigazione */
nav.pill {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-var);
  border: 3px solid var(--outline);
  border-radius: 24px;
}
nav.pill a {
  color: var(--on-var);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 18px;
  transition: color 0.15s;
}
nav.pill a:hover { color: var(--accent); }
 
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 24px;
  border: 1px solid transparent;
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--surface); border-color: var(--outline); color: var(--on); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }
 
/* ---------- Hero ---------- */
 
.hero { padding: 64px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
h1.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--on);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--on-var); font-size: 1.08rem; max-width: 46ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
 
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--surface-var);
  border: 1px solid var(--outline);
  display: flex; align-items: center; justify-content: center;
  color: var(--on);
  transition: color 0.15s, border-color 0.15s;
}
.social-btn svg { width: 25px; height: 25px; }
.social-btn:hover { color: var(--accent); border-color: var(--accent); }
 
.swatches { display: flex; align-items: center; gap: 10px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--outline);
  cursor: pointer; padding: 0;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--on); }
 
/* ---------- Cards ---------- */
 
.card {
  background: var(--surface-var);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
 
.shot { padding: 10px; border-radius: var(--radius); background: var(--surface-var); border: 1px solid var(--outline); overflow: hidden; }
.shot img { width: 100%; height: auto; border-radius: 16px; }
.shot.empty {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-var); font-size: 0.85rem;
  border-style: dashed;
}
 
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { padding: 22px 20px; text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat-txt { color: var(--on-var); font-size: 0.85rem; margin-top: 4px; }
 
/* ---------- Sections ---------- */
 
section { padding: 56px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p { color: var(--on-var); margin: 0; max-width: 56ch; }
 
.feature { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-bottom: 20px; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 1.35rem; margin: 0 0 10px; }
.feature p { color: var(--on-var); margin: 0 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.78rem; font-weight: 500;
  padding: 4px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--outline); color: var(--on);
}
 
/* FAQ */
.faq { max-width: 760px; }
.faq details { background: var(--surface-var); border-radius: 18px; padding: 16px 22px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--on-var); margin: 10px 0 0; }
 
/* CTA */
.cta { padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: 1.6rem; }
.cta p { margin: 0; color: var(--on-var); }
 
/* ---------- Footer ---------- */
 
footer.site { margin-top: 24px; padding: 28px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--on-var); padding-top: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--on-var); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
 
/* ---------- Privacy ---------- */
 
.legal { padding: 44px 0 80px; }
.back-link { display: inline-block; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 4px; }
.legal .updated { color: var(--on-var); font-size: 0.9rem; margin: 0 0 28px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-body { padding: 32px; }
.legal-body h2 { font-size: 1.1rem; margin: 30px 0 8px; color: var(--on); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--on-var); }
.legal-body ul { padding-left: 22px; }
 
/* ---------- Responsive ---------- */
 
@media (max-width: 860px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav.pill { display: none; }
  .wrap { padding: 0 18px; }
  .cta { padding: 30px 24px; }
  .legal-body { padding: 22px; }
  .site-bar { gap: 8px; padding: 18px 0; min-height: 65px; }
  .header-actions { gap: 6px; }
  .btn-small { padding: 8px 13px; font-size: 0.78rem; }
  .prefs summary { width: 36px; height: 36px; border-radius: 12px; }
  .prefs summary svg { width: 17px; height: 17px; }
  .prefs-panel { width: 220px; right: -10px; }
  header.site .wrap { padding: 0 22px; }
}
@media (max-width: 400px) {
  .logo { font-size: 1.15rem; gap: 7px; }
  .logo-img, .logo svg { width: 30px; height: 30px; border-radius: 9px; }
  .btn-small { padding: 7px 11px; font-size: 0.72rem; }
}
 
 
/* ---------- Header: aspetto (tema + colore) ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.prefs { position: relative; }
.prefs summary {
  list-style: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-var); border: 1px solid var(--outline); color: var(--on);
}
.prefs summary::-webkit-details-marker { display: none; }
.prefs summary svg { width: 20px; height: 20px; }
.prefs[open] summary { border-color: var(--accent); color: var(--accent); }
.prefs-panel {
  position: absolute; right: 0; top: 50px; width: 260px; padding: 18px;
  background: var(--surface-var); border: 1px solid var(--outline);
  border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.prefs-label { font-size: 0.78rem; font-weight: 600; color: var(--on-var); margin: 0 0 8px; }
.prefs-label:not(:first-child) { margin-top: 16px; }
.seg { display: flex; background: var(--outline); border-radius: 12px; padding: 3px; }
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--on-var);
  font: 500 0.82rem var(--font); padding: 7px 0; border-radius: 9px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); font-weight: 700; }
 
/* ---------- Badge Google Play ---------- */
.badge img { height: 56px; width: auto; }
.badge { display: inline-block; transition: transform 0.15s; }
.badge:hover { transform: translateY(-2px); }
 
/* ---------- Hero shot ---------- */
.hero-shot { display: flex; justify-content: center; }
.hero-shot img { max-height: 560px; width: auto; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
 
/* ---------- Feature grid (solo testo) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; }
.feat-icon {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--outline); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.05rem; margin: 0 0 8px; }
.feat p { color: var(--on-var); font-size: 0.92rem; margin: 0; }
 
/* ---------- Gallery ---------- */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 4px 24px 20px; scroll-snap-type: x proximity; }
.gallery img, .gallery .ph {
  height: 460px; width: auto; flex: 0 0 auto; border-radius: 22px;
  scroll-snap-align: center; border: 1px solid var(--outline);
}
.gallery .ph { width: 230px; display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--on-var); font-size: 0.85rem; }
 
/* ---------- Review ---------- */
.review { padding: 44px; text-align: center; }
.stars { display: flex; justify-content: center; gap: 6px; color: var(--accent); margin-bottom: 14px; }
.stars svg { width: 28px; height: 28px; }
.review h2 { margin: 0 0 8px; font-size: 1.6rem; }
.review p { margin: 0 auto 24px; color: var(--on-var); max-width: 48ch; }
 
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .gallery img, .gallery .ph { height: 380px; } .review { padding: 30px 22px; } }
 
/* Feature rows con screenshot */
.feature-shot { display: flex; justify-content: center; }
.feature-shot img { max-height: 520px; width: auto; max-width: 100%; border-radius: 22px; border: 1px solid var(--outline); }
.feature-shot .ph { width: 240px; height: 420px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--outline); border-radius: 22px; color: var(--on-var); font-size: 0.85rem; }
.more { text-align: center; padding-top: 24px; }
.more h3 { font-size: 1.15rem; margin: 0 0 14px; }
.more .tags { justify-content: center; }
@media (max-width: 600px) { .feature-shot img { max-height: 440px; } .logo { font-size: 1.5rem; } .logo-img, .logo svg { width: 40px; height: 40px; } }
