/* IBM Plex Sans (interfaccia) e IBM Plex Mono (numeri, sovrimpressioni della scopia).
   Self-hosted, SIL OFL 1.1: vedi README.md e OFL.txt nelle cartelle. File «split» ufficiali di IBM (@ibm/plex-*):
   Latin1 per ogni peso, più il gruppo Pi (frecce, ≤ ≥ ≈, ✓) nel solo peso 400, scaricato solo se la pagina lo usa.
   Non è importato da nessuna parte: lo collega l'app. URL relativi a questo file: reggono qualunque base ('./', /isocentro/). */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-Bold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-Regular-Pi.woff2") format("woff2");
  unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono/IBMPlexMono-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono/IBMPlexMono-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A3, U+00A4-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono/IBMPlexMono-Regular-Pi.woff2") format("woff2");
  unicode-range: U+0E3F, U+2032-2033, U+2070, U+2075-2079, U+2080-2081, U+2083, U+2085-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+2713, U+274C, U+2B0E-2B11;
}

/*
 * Stile di cardiodrome.com. Linguaggio visivo del simulatore: grafite, IBM Plex Sans e Mono,
 * etichette da strumento (maiuscoletto monospazio), accento lime del video di lancio.
 *
 * Solo CSS moderno con ripieghi: scroll-driven animations e view transitions dove ci sono, niente
 * dove mancano; tutto il movimento si spegne con «riduci movimento». Nessuna libreria.
 */

/* ── Token ── */
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-raised: #0f1216;
  --surface: #14171c;
  --surface-2: #1a1e24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-control: #5d6570;
  --text: #e6e9ee;
  --text-strong: #ffffff;
  --text-2: #a7afba;
  --text-3: #808995;
  --accent: #c6f432;
  --accent-ink: #0b0d10;
  --accent-soft: rgba(198, 244, 50, 0.12);
  --accent-glow: rgba(198, 244, 50, 0.22);
  --alarm: #ff6b5a;
  --focus: #ffffff;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@view-transition {
  navigation: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 50% -220px, rgba(198, 244, 50, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  outline: none;
}

a {
  color: var(--text-strong);
  text-decoration-color: var(--line-control);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  color: var(--text-strong);
  text-wrap: balance;
  margin: 0;
}
p {
  text-wrap: pretty;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.icon {
  flex: none;
}

/* ── Interruttore del simulatore: data-access su <html>, riscritto dal Worker ── */
.only-open {
  display: none !important;
}
html[data-access='open'] .only-open {
  display: revert !important;
}
html[data-access='open'] .btn.only-open {
  display: inline-flex !important;
}
html[data-access='open'] .only-closed {
  display: none !important;
}
/* invito a mano (predefinito) o link subito dopo l'iscrizione */
.only-after {
  display: none !important;
}
html[data-access='after-signup'] .only-after {
  display: revert !important;
}
html[data-access='open'] .only-invite,
html[data-access='after-signup'] .only-invite {
  display: none !important;
}

/* ── Pulsanti ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text-strong);
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 0 var(--accent-glow);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 30px -8px var(--accent-glow);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}
.btn.sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
}
.btn.lg {
  min-height: 52px;
  padding: 13px 24px;
  font-size: 16px;
}
.btn .icon {
  transition: transform 0.2s var(--ease);
}
.btn.primary:hover .icon {
  transform: translateX(2px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ── Testata ── */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top[data-scrolled] {
  border-bottom-color: var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 64px;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0
    max(var(--gutter), env(safe-area-inset-left));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 14px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-strong);
  padding: 10px 0;
}
.logo {
  color: var(--accent);
}
.nav {
  display: none;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.lang {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 0;
}
.lang:hover {
  color: var(--text-strong);
}
@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}
@media (max-width: 420px) {
  .top-actions .btn {
    display: none !important;
  }
}

/* ── Contenitori ── */
.hero,
.product,
.how,
.audience,
.faq,
.signup,
.legal {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.section-intro {
  margin: 18px auto 0;
  max-width: 40em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ── Apertura ── */
.hero {
  position: relative;
  padding-top: clamp(48px, 9vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
  isolation: isolate;
}
.hero::before {
  /* Reticolo da monitor di sala, sfumato verso i bordi. */
  content: '';
  position: absolute;
  inset: 0 0 30% 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-copy {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow {
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  letter-spacing: 0.12em;
  font-size: 11.5px;
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
h1 {
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 8px 0 26px;
}
h1 .accent {
  color: var(--accent);
}
.lead {
  margin: 0 auto 34px;
  max-width: 30em;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--text-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-note {
  margin: 18px 0 0;
  font: 400 13px/1.5 var(--mono);
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.byline {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.hero-stage {
  position: relative;
  max-width: 1120px;
  margin: clamp(48px, 7vw, 88px) auto 0;
}
.hero-stage::before {
  /* Bagliore sotto la finestra. */
  content: '';
  position: absolute;
  inset: 12% 8% -6%;
  z-index: -1;
  /* Sfumatura a più fermate invece di filter: blur(), che su telefono costa un fotogramma intero. */
  background: radial-gradient(
    closest-side,
    rgba(198, 244, 50, 0.16),
    rgba(198, 244, 50, 0.07) 45%,
    rgba(198, 244, 50, 0.02) 75%,
    transparent
  );
}

/* Cornice del simulatore */
.window {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: #0c0e11;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 40px 90px -30px rgba(0, 0, 0, 0.85);
}
/* Clip: immagine d'attesa sotto, video sopra, visibile solo quando gira (site.js mette data-playing). */
.clip-box {
  position: relative;
  overflow: hidden;
  background: #0c0e11;
}
.clip-box picture,
.clip {
  display: block;
  width: 100%;
  height: auto;
}
.clip-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.clip-video[data-playing] {
  opacity: 1;
}

.phone {
  margin: 0;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px;
  background: #050607;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 70px -20px rgba(0, 0, 0, 0.9);
}
.phone .clip-box {
  border-radius: 30px;
}

.hero-window {
  display: none;
}
.hero-phone {
  width: min(300px, 76vw);
  margin: 0 auto;
}
@media (min-width: 760px) {
  .hero-window {
    display: block;
    width: 88%;
  }
  .hero-phone {
    position: absolute;
    right: 0;
    bottom: -11%;
    width: 21%;
    min-width: 170px;
    margin: 0;
    border-radius: 30px;
    padding: 7px;
  }
  .hero-phone .clip-box {
    border-radius: 24px;
  }
}

/* Le tre righe */
.lines {
  list-style: none;
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: 0;
}
.line {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.stat {
  font: 500 clamp(30px, 3.6vw, 42px) / 1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.line-text {
  color: var(--text-2);
  font-size: 16px;
}
@media (min-width: 860px) {
  .lines {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* ── Funzioni ── */
.product {
  padding-top: clamp(72px, 9vw, 128px);
}
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}
.feature-copy {
  max-width: 460px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.idx {
  color: var(--accent);
}
.feature h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 16px;
}
.feature-copy p:not(.kicker) {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}
.feature-media {
  width: 100%;
}
.feature-console .feature-media {
  max-width: 380px;
  justify-self: center;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 88px);
  }
  .feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .feature:nth-of-type(even) .feature-copy {
    order: 2;
  }
  .feature-console,
  .feature-fluoro {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .feature-fluoro .feature-media {
    max-width: 540px;
    justify-self: end;
  }
}

/* ── Accesso anticipato in tre passi ── */
.how {
  padding-top: clamp(64px, 9vw, 120px);
}
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 500 15px/1 var(--mono);
}
.step h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: var(--text-2);
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Per chi ── */
.audience {
  padding-top: clamp(64px, 9vw, 120px);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 15px;
}

/* ── Domande ── */
.faq {
  padding-top: clamp(64px, 9vw, 120px);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
  interpolate-size: allow-keywords;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  color: var(--text-2);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.3s var(--ease),
    content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.answer p {
  margin: 0 0 22px;
  max-width: 44em;
  color: var(--text-2);
}

/* ── Modulo ── */
.signup {
  display: grid;
  gap: 32px;
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
  scroll-margin-top: 64px;
  position: relative;
  isolation: isolate;
}
.signup::before {
  content: '';
  position: absolute;
  inset: 0 max(var(--gutter), env(safe-area-inset-left));
  z-index: -1;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(198, 244, 50, 0.09), transparent 70%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
}
.signup-copy,
.signup-card {
  padding: 0 clamp(20px, 4vw, 56px);
}
.signup h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 16px;
}
.intro {
  margin: 0;
  max-width: 30em;
  color: var(--text-2);
  font-size: 18px;
}
.points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
}
.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
}
.points .icon {
  color: var(--accent);
}
@media (min-width: 960px) {
  .signup {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .signup-copy {
    position: sticky;
    top: 100px;
    padding-right: 0;
  }
  .signup-card {
    padding-left: 0;
  }
}
.form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: rgba(11, 13, 16, 0.75);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-strong);
}
.hint {
  margin-top: -4px;
  font-size: 13px;
  color: var(--text-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-control);
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.3 var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #7a838f;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}
.field select:invalid {
  color: var(--text-3);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field[data-invalid] input,
.field[data-invalid] select {
  border-color: var(--alarm);
}
.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  align-items: start;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.check label {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.notice {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.notice a {
  color: var(--text-2);
}
.field-error,
.form-error {
  margin: 0;
  font-size: 14px;
  color: var(--alarm);
}
.form-error a {
  color: var(--alarm);
}
.form .btn {
  justify-self: start;
  margin-top: 4px;
}
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.thanks {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--accent);
  background: rgba(11, 13, 16, 0.75);
  box-shadow: 0 0 60px -20px var(--accent-glow);
}
.thanks h3 {
  margin: 0 0 8px;
  font-size: 28px;
}
.thanks p {
  margin: 0 0 16px;
  color: var(--text-2);
}
.thanks:focus {
  outline: none;
}
.thanks-mark {
  margin: 0 0 16px;
}
.thanks-mark .logo {
  width: 112px;
  height: auto;
}
.thanks-open {
  display: none;
}
.thanks[data-open] .thanks-open {
  display: block;
}
.thanks[data-open] .thanks-invite {
  display: none;
}

/* ── Dimostrazione ── */
.demo {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: #0c0e11;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}
.demo::backdrop {
  background: rgba(5, 6, 8, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--line);
}
.demo-head h2 {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.demo-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-strong);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.demo-close:hover {
  background: rgba(255, 255, 255, 0.08);
}
.demo video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 90px);
  background: #000;
}

/* ── Pagine di testo ── */
.legal {
  max-width: calc(760px + 2 * var(--gutter));
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: 72px;
}
.legal h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.legal h2 {
  margin: 40px 0 10px;
  font-size: 20px;
  font-weight: 600;
}
.legal p {
  margin: 0 0 14px;
  color: var(--text);
}
.legal .updated {
  font: 400 13px/1.5 var(--mono);
  color: var(--text-3);
  margin-bottom: 8px;
}
.refs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.refs li {
  padding-left: 14px;
  border-left: 2px solid var(--line, rgba(255, 255, 255, 0.12));
}
.legal .refs p {
  margin: 0;
}
.legal .refs .cite {
  color: var(--text);
  overflow-wrap: anywhere;
}
.legal .refs .use {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.94em;
}
.legal.center {
  text-align: center;
  padding-top: clamp(64px, 12vw, 140px);
}
.legal.center p {
  color: var(--text-2);
}
.legal .btn + .btn {
  margin-left: 8px;
}
.code {
  font: 500 clamp(64px, 14vw, 140px) / 1 var(--mono);
  color: var(--accent);
  letter-spacing: -0.04em;
}

/* ── Piede ── */
.foot {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}
.foot-in {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px max(var(--gutter), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}
.foot .brand {
  font-size: 13px;
}
.disclaimer {
  margin: 6px 0 0;
  max-width: 36em;
  color: var(--text-3);
  font-size: 13.5px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}
.foot-links a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
}
.foot-links a:hover {
  color: var(--text-strong);
}
.credits {
  margin: 2px 0 0;
  font-size: 13px;
}
.credits a {
  color: var(--text-2);
}
@media (min-width: 860px) {
  .foot-in {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .foot-links {
    justify-content: flex-end;
  }
  .foot-legal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

/* ── Movimento: solo se l'utente non l'ha ridotto ── */
@media (prefers-reduced-motion: no-preference) {
  .pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse 2.4s var(--ease) infinite;
  }
  @keyframes pulse {
    0% {
      transform: scale(0.6);
      opacity: 0.9;
    }
    80%,
    100% {
      transform: scale(2.2);
      opacity: 0;
    }
  }
  .hero-stage {
    animation: stage-in 1.1s var(--ease) both;
  }
  @keyframes stage-in {
    from {
      transform: translateY(28px);
    }
  }
  @supports (animation-timeline: view()) {
    .section-head,
    .feature-copy,
    .feature-media,
    .step,
    .line,
    .chips,
    .faq-list {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(32px);
      }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  @view-transition {
    navigation: none;
  }
}
