:root {
  --bg: #050608;
  --raised: #0d0f13;
  --line: rgba(244, 244, 240, 0.08);
  --ink: #f4f4f0;
  --soft: rgba(244, 244, 240, 0.72);
  --muted: rgba(244, 244, 240, 0.48);
  --sage: #a8cbb2;
  --slate: #6e8be8;
  --peri: #8a86e0;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Una lingua alla volta: l'altra resta nella pagina ma nascosta. */
[data-ui="it"] [lang="en"]:not(html),
[data-ui="en"] [lang="it"]:not(html) { display: none !important; }

.mono {
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Barra in alto ---------- */

.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(20px, env(safe-area-inset-left)) 18px max(20px, env(safe-area-inset-right));
  background: linear-gradient(var(--bg) 30%, rgba(5, 6, 8, 0));
}
.wordmark { font-size: 24px; font-weight: 600; letter-spacing: -0.045em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.34em; }
.wordmark .mark { width: 1em; height: 1em; flex: none; }
.wordmark .mark g { stroke-width: 44; }
.top nav { display: flex; align-items: center; gap: 6px; }
.lang {
  font: 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; padding: 10px 8px; cursor: pointer;
}
.lang[aria-pressed="true"] { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #0a0c12; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.pill svg { width: 15px; height: 15px; }
.pill.ghost { background: rgba(244, 244, 240, 0.08); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1180px; margin: 0 auto;
  padding: 104px 24px 64px;
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.055em; font-weight: 600;
  margin: 18px 0 22px;
}
.hero h1 [lang] > span { color: var(--muted); }
.hero p.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--soft); max-width: 30ch; margin: 0 0 30px; letter-spacing: -0.01em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hint { margin-top: 26px; display: flex; align-items: center; gap: 10px; }
.hint i { width: 7px; height: 7px; border-radius: 2px; background: var(--sage); animation: pulse 2.6s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Il telefono ---------- */

.stage { position: relative; width: min(390px, 86vw, calc((100svh - 140px) * 390 / 844)); min-width: 280px; aspect-ratio: 390 / 844; }
.stage::before {
  content: ""; position: absolute; inset: 8% -18% -6%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow, rgba(110, 139, 232, 0.32)), transparent);
  filter: blur(30px); transition: background 0.6s;
}
.phone {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
  border-radius: 62px; background: #000; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 9px #111214, 0 0 0 10px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.6);
  user-select: none; -webkit-user-select: none;
}
.island { position: absolute; top: 11px; left: 50%; width: 120px; height: 35px; margin-left: -60px; border-radius: 20px; background: #000; z-index: 9; }

.archive {
  position: absolute; inset: 0; padding: 66px 24px 0;
  background: #0a0b0d; border-radius: 55px;
  transform: scale(0.94) translateY(14px); transform-origin: 50% 0;
}
.archive::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); border-radius: 55px; }
.archive .head { display: flex; justify-content: space-between; align-items: center; }
.archive .name { font-size: 32px; font-weight: 600; letter-spacing: -0.045em; }
.archive .dots { width: 44px; height: 44px; border-radius: 50%; background: #1b1d22; }
.archive .search { margin-top: 24px; height: 46px; border-radius: 23px; background: #15171b; }
.archive .row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.archive .row b { width: 6px; height: 6px; border-radius: 2px; margin-top: 8px; flex: none; }
.archive .row div { flex: 1; font-size: 17px; }
.archive .row small { display: block; color: var(--muted); font-size: 14px; }

.panel {
  position: absolute; left: 8px; right: 8px; bottom: 8px; height: 68%;
  border-radius: 47px; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.grab { position: absolute; top: 9px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(244, 244, 240, 0.4); }
.screen { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28); position: absolute; left: 34px; right: 34px; top: 74px; bottom: 140px; display: flex; flex-direction: column; justify-content: center; }
.screen .mono { color: rgba(244, 244, 240, 0.65); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.screen .mono i { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); animation: pulse 2.6s ease-in-out infinite; }
.screen .title { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.screen .sub { font-size: 17px; color: rgba(244, 244, 240, 0.7); margin-top: 10px; }
.words { font-size: 27px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.words span { display: inline-block; white-space: pre; animation: word 0.42s cubic-bezier(.2, .9, .3, 1.1) both; }
.words span.dim { opacity: 0.55; }
@keyframes word { from { opacity: 0; transform: translateY(8px) scale(0.92); filter: blur(4px); } }
.fact { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(244, 244, 240, 0.14); font-size: 15px; }
.fact span:first-child { font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: rgba(244, 244, 240, 0.6); }
.saved-title { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 4px; }
.saved-sum { font-size: 15px; color: rgba(244, 244, 240, 0.65); margin-bottom: 16px; }
.fade-in { animation: fade 0.5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px) scale(0.985); } }

.bar { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 94px; }
.side {
  position: absolute; top: 12px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(10, 12, 18, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transition: background 0.25s, color 0.25s, transform 0.3s cubic-bezier(.2, .9, .3, 1.3);
}
.side.left { left: 6px; } .side.right { right: 6px; }
.side.lit { background: var(--ink); color: #0a0c12; transform: scale(1.08); }
.side svg { width: 18px; height: 18px; }
.mic {
  position: absolute; left: 50%; top: 2px; width: 72px; height: 72px; margin-left: -36px;
  border-radius: 50%; background: var(--ink); color: #0a0c12;
  display: grid; place-items: center; cursor: grab; touch-action: none;
  transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2);
}
.mic svg { width: 24px; height: 24px; }
.mic.down { cursor: grabbing; transition: none; }
.ring { position: absolute; left: 50%; top: 38px; width: 136px; height: 136px; margin: -68px 0 0 -68px; pointer-events: none; opacity: 0; transform: scale(0.7); transition: opacity 0.3s, transform 0.4s cubic-bezier(.2, .9, .3, 1.2); }
.ring.on { opacity: 1; transform: scale(1); }
.ring circle { fill: none; stroke: rgba(244, 244, 240, 0.55); stroke-width: 4; stroke-dasharray: 1.2 3.35; animation: spin 6s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.caps { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 9px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244, 244, 240, 0.55); }
.caps span { width: 64px; text-align: center; }
.caps span.mid { width: auto; }
.caps span.lit { color: var(--ink); }

/* ---------- Sezioni ---------- */

section { max-width: 1180px; margin: 0 auto; padding: clamp(52px, 7vw, 96px) 24px; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 14px 0 18px; }
h2 [lang] > span { color: var(--muted); }
.section-head p:not(.mono) { font-size: clamp(17px, 1.5vw, 20px); color: var(--soft); max-width: 46ch; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step {
  position: relative; padding: 28px 26px 30px; border-radius: 30px; min-height: 280px;
  background: var(--raised); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.step::before { content: ""; position: absolute; inset: -40% -30% auto; height: 80%; background: radial-gradient(closest-side, var(--tint), transparent); opacity: 0.55; filter: blur(20px); }
.step .num { position: absolute; top: 24px; left: 26px; }
.step h3 { position: relative; font-size: 26px; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 600; }
.step p { position: relative; margin: 0; color: var(--soft); font-size: 16px; }
.step .glyph { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #0a0c12; }
.step .glyph svg { width: 20px; height: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.card {
  position: relative; border-radius: 34px; padding: clamp(26px, 3.4vw, 40px);
  background: var(--raised); border: 1px solid var(--line); overflow: hidden;
}
.card h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; font-weight: 600; margin: 12px 0 10px; }
.card > p { color: var(--soft); margin: 0 0 28px; max-width: 40ch; }
.card.glow::after { content: ""; position: absolute; inset: auto -20% -60%; height: 90%; background: radial-gradient(closest-side, var(--tint), transparent); opacity: 0.5; filter: blur(30px); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(244, 244, 240, 0.06); font-size: 14px; }
.chip b { width: 6px; height: 6px; border-radius: 2px; }

.mini { position: relative; z-index: 1; border-radius: 22px; padding: 20px 22px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.mini .t { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.mini .s { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.qa .q { color: var(--soft); font-size: 15px; margin-bottom: 10px; }
.qa .a { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; font-weight: 500; margin-bottom: 14px; }
.src { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(244, 244, 240, 0.12); font-size: 14px; }
.src span:last-child { font: 10px/1.8 var(--mono); color: var(--peri); text-transform: uppercase; }

.notif {
  position: relative; z-index: 1; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 22px; margin-bottom: 10px;
  background: rgba(40, 42, 50, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif div { flex: 1; font-size: 14px; line-height: 1.35; }
.notif strong { display: block; font-size: 14px; }
.notif small { color: var(--muted); font-size: 12px; }

.widgets { display: flex; gap: 12px; position: relative; z-index: 1; }
.widget {
  width: 128px; height: 128px; border-radius: 28px; padding: 14px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.widget::before { content: ""; position: absolute; inset: 18% 16%; border-radius: 40px; background: var(--deep); filter: blur(16px); }
.widget > * { position: relative; }
.widget .w-mark { font-size: 11px; font-weight: 600; opacity: 0.75; }
.widget .w-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #0a0c12; display: grid; place-items: center; }
.widget .w-btn svg { width: 15px; height: 15px; }
.widget .w-title { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }

.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.p-item { padding: 26px 24px; border-radius: 26px; border: 1px solid var(--line); }
.p-item svg { width: 22px; height: 22px; color: var(--sage); margin-bottom: 30px; }
.p-item h3 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 600; }
.p-item p { margin: 0; color: var(--soft); font-size: 15px; }

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.plan { border-radius: 34px; padding: 34px; border: 1px solid var(--line); background: var(--raised); position: relative; overflow: hidden; }
.plan.pro { background: linear-gradient(160deg, #1d2a52, #0b0e1c 55%); border-color: rgba(138, 134, 224, 0.35); }
.plan h3 { font-size: 30px; letter-spacing: -0.035em; margin: 10px 0 18px; font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--soft); display: flex; justify-content: space-between; gap: 12px; }
.plan li b { color: var(--ink); font-weight: 600; }
.plan .note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-size: 19px; letter-spacing: -0.015em; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); margin: 12px 0 0; max-width: 60ch; }

.final { text-align: center; padding-bottom: 80px; }
.final h2 { margin-left: auto; margin-right: auto; max-width: 14ch; }
.final .cta { justify-content: center; margin-top: 28px; }

footer.site {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.2, .8, .2, 1), transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Pagine di testo (privacy, supporto) ---------- */

.doc { max-width: 720px; margin: 0 auto; padding: 120px 24px 40px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 14px 0 26px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 20px; }
.doc a { color: var(--sage); }
.doc strong { color: var(--ink); }

/* ---------- Schermi piccoli ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; text-align: left; }
  .stage { justify-self: center; margin-top: 8px; }
  .steps, .split, .plans { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .step { min-height: 220px; }
}
@media (max-width: 520px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .top .pill { display: none; }
  .widget { width: 112px; height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
