/* voqira: stessi colori e superfici dell'app (Common/DesignSystem/DesignSystem.swift). Poco testo, molto spazio. */
:root {
  --bg-top: #0B1018;
  --bg-bottom: #070A0F;
  --ink: #F2F5FA;
  --soft: #C6CFDC;
  --muted: #9AA4B4;
  --tertiary: #7D8797;
  --on-primary: #0B0F16;
  --highlight: rgb(160 195 245);
  --panel: rgb(255 255 255 / 0.05);
  --edge: rgb(255 255 255 / 0.10);
  --margin: clamp(20px, 4vw, 56px);
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg-bottom); color: var(--ink);
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(140 180 240 / 0.4); }
.soft { color: var(--muted); }

.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(min(680px, 95vw) min(680px, 95vw) at 78% 12%, rgb(88 120 170 / 0.26), transparent 70%),
    radial-gradient(min(740px, 100vw) min(740px, 100vw) at 8% 60%, rgb(60 95 150 / 0.16), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg-bottom));
}

/* Barra */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px var(--margin); transition: background-color .3s var(--ease); }
.bar.scrolled { background: rgb(9 12 18 / 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--edge); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.mark .icon { width: 32px; height: 32px; border-radius: 8px; background: #0d0f14; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--edge); }
.mark .icon img { width: 24px; height: 24px; }
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--on-primary); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.pill:hover { background: #E4ECF6; }
.pill:active { transform: scale(.96); }
.pill.big { min-height: 52px; padding: 0 26px; font-size: 17px; }

/* App Store */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border-radius: 14px; background: rgb(255 255 255 / 0.1); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--edge); transition: transform .2s var(--ease), background-color .2s; }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store span { display: flex; flex-direction: column; text-align: left; font-size: 19px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.store small { font-size: 12px; font-weight: 500; color: var(--soft); }
.store.light { background: #fff; color: var(--on-primary); box-shadow: none; }
.store.light small { color: #3b4250; }
.store:hover { transform: translateY(-1px); }
.store:active { transform: scale(.97); }

/* Telefono: una schermata dell'app (393×852) dentro una cornice, scalata alla larghezza. */
.device { --w: 340px; width: var(--w); margin: 0 auto; }
.device .glass { position: relative; aspect-ratio: 410 / 869; border-radius: calc(var(--w) * 0.16); padding: calc(var(--w) * 0.021); background: linear-gradient(135deg, #5c616b, #22252b 20%, #121418 50%, #22252b 80%, #5c616b); box-shadow: 0 40px 90px rgb(0 0 0 / 0.55), 0 12px 30px rgb(0 0 0 / 0.35); }
.device .glass::before { content: ""; position: absolute; inset: 1.5px; border-radius: inherit; background: #050608; }
.device .screen, .device img { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.139); overflow: hidden; }
.device .screen > div { position: absolute !important; left: 0; top: 0; width: 393px; height: 852px; transform: scale(var(--k, .82)); transform-origin: 0 0; }

/* Primo schermo */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--margin) clamp(64px, 10vh, 120px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 750; }
.hero .lead { margin: 26px 0 34px; max-width: 30ch; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--soft); }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-device .device { --w: min(360px, 72vw); }

/* Dal vivo: le bolle arrivano una alla volta. */
.js .live .b { opacity: 0; transform: translateY(14px) scale(.98); }
.js .live.play .b { animation: bubble .55s var(--ease) both; animation-delay: calc(.4s + var(--i) * 1.05s); }
.js.reduce .live .b { opacity: 1; transform: none; animation: none; }
@keyframes bubble { to { opacity: 1; transform: none; } }

/* Tastiera */
.keyboard { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 12vh, 140px) var(--margin) 0; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--highlight); }
.keyboard h2, .features h2, .private h2, .pricing h2, .faq h2, .cta h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 720; }
.keyboard h2 { margin: 14px auto 0; max-width: 18ch; }
.sub { margin: 20px auto 0; max-width: 44ch; font-size: clamp(18px, 1.5vw, 20px); color: var(--soft); }
.kb-stage { margin-top: 56px; text-align: left; }
.kb-stage .device { --w: min(340px, 74vw); }
.kb-text .w { opacity: 0; transition: opacity .18s; }
.kb-text .w.in { opacity: 1; }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kb-ctx { text-align: left; }
.kb-ctx .in, .kb-ctx .out { display: flex; margin-top: 8px; }
.kb-ctx .out { justify-content: flex-end; }
.kb-ctx .in span, .kb-ctx .out span { max-width: 250px; padding: 8px 13px; border-radius: 18px; font-size: 16px; line-height: 21px; color: #fff; background: #26252a; }
.kb-ctx .out span { background: #0a84ff; }
.kb-ctx .meta { font-size: 15px; line-height: 2.4; color: #8e8e93; border-bottom: 0.5px solid rgb(255 255 255 / 0.14); }
.kb-ctx .nt { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.kb-ctx .nl { font-size: 17px; line-height: 1.6; color: #fff; }
.kb-ctx .nl::before { content: "•  "; color: #8e8e93; }
.kb-ctx .chan { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.kb-ctx .sl { font-size: 15px; line-height: 1.4; color: #d1d1d6; margin-top: 10px; }
.kb-ctx .sl b { display: block; color: #fff; font-weight: 700; }
.ticker { margin: 56px calc(var(--margin) * -1) 0; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 44px; padding-right: 44px; flex: none; animation: slide 38s linear infinite; }
.ticker li { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--tertiary); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-100%); } }

/* Funzioni */
.features { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--margin) 0; }
.features h2 { max-width: 16ch; }
.tiles { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; height: 600px; padding: 30px 28px 0; border-radius: 30px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge); }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; font-weight: 680; }
.tile p { margin-top: 10px; color: var(--soft); font-size: 16px; }
.tile .device { --w: 260px; position: absolute; left: 50%; top: 250px; translate: -50% 0; }
.small { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.small .ic { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2); }
.small svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.small h3 { margin-top: 16px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.small p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Privacy */
.private { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--margin) 0; }
.statement { margin-top: 26px; max-width: 40ch; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--soft); }
.figures { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--edge); padding-top: 32px; }
.figures dt { font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures dd { margin-top: 10px; color: var(--muted); max-width: 24ch; }
.text-link { display: inline-block; margin-top: 36px; font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Prezzi */
.pricing { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--margin) 0; }
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { padding: 26px 26px 28px; border-radius: 26px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge); }
.plan.first { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1.5px rgb(242 245 250 / 0.5); }
.plan .name { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .price { margin-top: 10px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .desc { margin-top: 6px; color: var(--soft); font-size: 16px; }
.fine { margin-top: 20px; color: var(--tertiary); font-size: 14px; }

/* Domande */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--margin) 0; }
.answers { margin-top: 32px; }
.answers details { border-bottom: 1px solid var(--edge); }
.answers summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 300; color: var(--muted); transition: rotate .25s var(--ease); }
.answers details[open] summary::after { rotate: 45deg; }
.answers details p { padding: 0 0 22px; color: var(--soft); max-width: 62ch; }

/* Chiusura */
.cta { padding: clamp(130px, 20vh, 220px) var(--margin) clamp(80px, 12vh, 140px); text-align: center; }
.cta p { margin: 18px auto 32px; font-size: clamp(18px, 1.5vw, 20px); color: var(--soft); }
.close { padding: 28px var(--margin) 32px; border-top: 1px solid var(--edge); }
.line { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; font-size: 14px; color: var(--muted); }
.line .links { display: flex; gap: 22px; }
.line .links a { color: var(--soft); text-decoration: none; }
.line .links a:hover { color: var(--ink); }
.line > :last-child { text-align: right; }

/* Privacy e supporto */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 10vh, 110px) var(--margin) 80px; }
.doc h1 { font-size: clamp(48px, 7vw, 88px); letter-spacing: -0.045em; line-height: 1; font-weight: 750; }
.doc .lead { margin: 24px 0 0; font-size: 20px; line-height: 1.5; color: var(--soft); }
.updated { margin-top: 18px; color: var(--muted); font-size: 15px; }
.doc section { margin-top: 56px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 650; margin-bottom: 14px; }
.doc section p + p { margin-top: 14px; }
.doc a { text-underline-offset: 4px; }
.contact { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.tip { margin-top: 18px; color: var(--muted); font-size: 15px; }
.doc dl { display: grid; gap: 22px; }
.doc dt { font-weight: 600; }
.doc dd { margin-top: 4px; color: var(--soft); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-device { margin-top: 8px; }
  .tiles { grid-template-columns: 1fr; max-width: 520px; }
  .tile { height: 560px; }
  .small, .plans { grid-template-columns: 1fr; gap: 28px; }
  .figures { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .bar { gap: 12px; }
  .bar nav { display: none; }
  .bar .pill { margin-left: auto; }
  .keyboard, .cta { text-align: left; }
  .keyboard h2, .sub { margin-left: 0; }
  .line { grid-template-columns: 1fr; }
  .line > :last-child { text-align: left; }
  .line .links { flex-wrap: wrap; gap: 8px 20px; }
  .cta p { margin-left: 0; }
}

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker ul { animation: none; }
  .ticker { flex-wrap: wrap; }
  .caret { animation: none; }
}
