/*
  APICE: sito di presentazione.

  Idea di layout: la strada finta della Home dell'app come filo conduttore.
  Pannelli di vetro sopra una strada vista dall'alto, un solo colore forte (il
  blu del marchio), e l'arancione che compare solo quando si passa all'auto,
  come nell'app. Font e colori sono quelli dell'app (Montserrat, palette
  "Liquid Glass"). Tutto è self-hosted: nessuna richiesta a terzi.
*/

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/spacemono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/spacemono-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Tema chiaro (palette dell'app) */
  --bg: #eaf0f7;
  --bg-soft: #f4f7fb;
  --fg: #0b1020;
  --sub: #46506a;
  --line: rgba(11, 16, 32, 0.12);

  --accent: #1e90ff; /* blu del marchio (moto) */
  --accent-ink: #0a64c8; /* il blu per testi sul chiaro */
  --on-accent: #03111f;
  --accent-glow: rgba(30, 144, 255, 0.4);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(255, 255, 255, 0.95);
  --shadow: 0 18px 50px -18px rgba(15, 40, 90, 0.32);

  --road: #d3dce9;
  --road-edge: #ffffff;
  --road-dash: #ffffff;

  --green: #12b868;
  --red: #ff3b5c;
  --gold: #ffc24b;
  --ok: #0f9a58;
  --no: #c8304b;
  --warn-bg: rgba(255, 194, 75, 0.2);
  --warn-line: rgba(180, 120, 0, 0.45);
  --todo-bg: rgba(255, 59, 92, 0.12);
  --todo-fg: #b0213a;

  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1160px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a101c;
    --bg-soft: #0f1626;
    --fg: #f0f8ff;
    --sub: rgba(240, 248, 255, 0.78);
    --line: rgba(240, 248, 255, 0.14);
    --accent-ink: #5cb8ff;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-line: rgba(255, 255, 255, 0.14);
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
    --road: #161f31;
    --road-edge: #2a3652;
    --road-dash: rgba(240, 248, 255, 0.5);
    --green: #2be38a;
    --ok: #2be38a;
    --no: #ff6b86;
    --warn-bg: rgba(255, 210, 63, 0.12);
    --warn-line: rgba(255, 210, 63, 0.4);
    --todo-bg: rgba(255, 59, 92, 0.2);
    --todo-fg: #ff9fb0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a101c;
  --bg-soft: #0f1626;
  --fg: #f0f8ff;
  --sub: rgba(240, 248, 255, 0.78);
  --line: rgba(240, 248, 255, 0.14);
  --accent-ink: #5cb8ff;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --road: #161f31;
  --road-edge: #2a3652;
  --road-dash: rgba(240, 248, 255, 0.5);
  --green: #2be38a;
  --ok: #2be38a;
  --no: #ff6b86;
  --warn-bg: rgba(255, 210, 63, 0.12);
  --warn-line: rgba(255, 210, 63, 0.4);
  --todo-bg: rgba(255, 59, 92, 0.2);
  --todo-fg: #ff9fb0;
  color-scheme: dark;
}

/* Auto: l'arancione dell'app al posto del blu (solo il selettore Moto/Auto) */
:root[data-vehicle="auto"] {
  --accent: #ff7e00;
  --accent-ink: #b45300;
  --on-accent: #1f0e00;
  --accent-glow: rgba(255, 126, 0, 0.42);
}
@media (prefers-color-scheme: dark) {
  :root[data-vehicle="auto"]:not([data-theme="light"]) {
    --accent-ink: #ffa54d;
  }
}
:root[data-vehicle="auto"][data-theme="dark"] {
  --accent-ink: #ffa54d;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 450;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 1.2rem + 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.9rem, 1rem + 3.2vw, 3.2rem);
}
h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-mono);
}
.muted {
  color: var(--sub);
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Vetro, bottoni, chip ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 34px -10px var(--accent-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px var(--accent-glow);
  text-decoration: none;
}
.btn svg {
  width: 1.25em;
  height: 1.25em;
}
.btn--ghost {
  background: var(--glass);
  color: var(--fg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.btn--sm {
  min-height: 2.6rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}
.lamp {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent), 0 0 12px var(--green);
  flex: none;
}
.lamp--off {
  background: transparent;
  border: 2px solid var(--sub);
  box-shadow: none;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-ink);
  letter-spacing: 0.02em;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  padding-block: 12px;
  pointer-events: none;
}
.site-header .bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
  padding: 0.4rem 0.6rem 0.4rem 1.15rem;
  border-radius: 999px;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  margin-right: auto;
  padding-block: 0.25rem;
}
/* Il logo è nella pagina (non una maschera CSS): così si vede anche aprendo
   i file dal computer, dove Chrome blocca le maschere. */
.logo svg {
  display: block;
  width: 5.6rem;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--glass-strong);
}
.tool {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
}
.tool:hover {
  background: var(--glass-strong);
}
.tool svg {
  width: 1.2rem;
  height: 1.2rem;
}
.tool .i-sun {
  display: none;
}
.tool .i-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool .i-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .tool .i-moon {
    display: none;
  }
}
:root[data-theme="dark"] .tool .i-sun {
  display: block;
}
:root[data-theme="dark"] .tool .i-moon {
  display: none;
}
.menu-btn {
  display: none;
}
@media (max-width: 880px) {
  .menu-btn {
    display: inline-grid;
  }
  .nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% - 4px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border-radius: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    pointer-events: auto;
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.9rem 1rem;
  }
  .site-header .wrap {
    position: relative;
  }
  .site-header .btn--sm {
    display: none;
  }
}

/* ---------- Sezioni ---------- */
main {
  display: block;
}
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.section-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head p {
  color: var(--sub);
  font-size: 1.15rem;
}
.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.road {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.road svg {
  width: 100%;
  height: 100%;
}
.road .r-edge {
  stroke: var(--road-edge);
}
.road .r-base {
  stroke: var(--road);
}
.road .r-dash {
  stroke: var(--road-dash);
  stroke-dasharray: 34 46;
  animation: drive 7s linear infinite;
}
.road .r-glow {
  stroke: var(--accent);
  opacity: 0.2;
  filter: blur(26px);
}
.hero.is-off .road .r-dash {
  animation-play-state: paused;
}
@keyframes drive {
  to {
    stroke-dashoffset: -160;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.hero-copy .lead {
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.35rem);
  color: var(--sub);
  max-width: 34rem;
  font-weight: 500;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  transition: color 0.3s ease;
}
.seg {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  gap: 0.2rem;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
}
.seg button svg {
  width: 1.3rem;
  height: 1.3rem;
}
.seg button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem 0.6rem 0.95rem;
  border-radius: 16px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.15;
  min-height: 3.5rem;
  position: relative;
}
.store svg {
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}
.store b {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.store[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}
.soon {
  position: absolute;
  top: -0.6rem;
  right: -0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 1rem;
}
.hero-stage .phone {
  --w: min(310px, 74vw);
}
.float {
  position: absolute;
  z-index: 2;
}
.float--gps {
  top: 7%;
  left: -2%;
}
.float--gauge {
  top: 40%;
  right: -4%;
  width: 11rem;
  padding: 0.85rem 1rem 0.75rem;
  border-radius: 22px;
}
.float--last {
  bottom: 9%;
  left: -6%;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  display: grid;
  gap: 0.1rem;
}
.float--last b {
  font-size: 1.15rem;
  font-weight: 800;
}
.float--last span {
  font-size: 0.8rem;
  color: var(--sub);
  font-weight: 600;
}
.gauge svg {
  width: 100%;
  height: auto;
}
.gauge .g-track {
  stroke: var(--line);
}
.gauge .g-arc {
  stroke: var(--accent);
}
.gauge .g-needle {
  stroke: var(--fg);
  transform-origin: 80px 82px;
}
.gauge .g-label {
  font-weight: 700;
  font-size: 0.85rem;
}
.gauge .g-label b {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--sub);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-facts svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent-ink);
}
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .float--gauge {
    right: 0;
  }
  .float--last {
    left: 0;
  }
  .float--gps {
    left: 0;
  }
}
@media (max-width: 560px) {
  .float--gauge,
  .float--last {
    display: none;
  }
}

/* ---------- Telefono ---------- */
.phone {
  --w: 250px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  aspect-ratio: 426 / 898;
  padding: calc(var(--w) * 0.028);
  border-radius: 15.7% / 7.5%;
  background: linear-gradient(150deg, #2a2f3a, #090c12 45%, #20252f);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16) inset, 0 40px 80px -30px var(--accent-glow),
    0 30px 60px -25px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.3s ease;
}
.phone .screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 13.7% / 6.3%;
  background: #000;
}
.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.phone .screen::after {
  content: "";
  position: absolute;
  top: 1.3%;
  left: 50%;
  width: 31%;
  height: 4.1%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
/* Una immagine per tema: si vede quella del tema attivo */
.t-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-light {
    display: none !important;
  }
  :root:not([data-theme="light"]) .t-dark {
    display: block !important;
  }
}
:root[data-theme="dark"] .t-light {
  display: none !important;
}
:root[data-theme="dark"] .t-dark {
  display: block !important;
}
[hidden] {
  display: none !important;
}

/* ---------- Funzioni ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 9vw, 8rem);
}
.feature:last-child {
  margin-bottom: 0;
}
.feature--flip .feature-media {
  order: -1;
}
.feature-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.feature-copy p {
  color: var(--sub);
}
.feature-copy h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.ticks {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-weight: 550;
}
.ticks svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--accent-ink);
  margin-top: 0.15rem;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--sub);
  vertical-align: middle;
}
.tag--premium {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.feature-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
}
.feature-media .phone {
  --w: min(250px, 42vw);
}
.feature-media .phone:nth-child(2) {
  margin-top: 2rem;
}
.feature-media--one .phone {
  --w: min(290px, 70vw);
}
@media (max-width: 880px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--flip .feature-media {
    order: 0;
  }
}

/* Piccole schede (E poi) */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mini {
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.mini > svg {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--accent-ink);
}
.mini p {
  color: var(--sub);
  font-size: 0.97rem;
}
@media (max-width: 980px) {
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card da condividere */
.cards-block {
  margin-top: clamp(4rem, 9vw, 8rem);
}
.cards-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem var(--gutter) 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.cards-rail figure {
  margin: 0;
  flex: none;
  width: clamp(190px, 26vw, 250px);
  scroll-snap-align: start;
  display: grid;
  gap: 0.7rem;
}
.cards-rail img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--glass);
}
.cards-rail img.on-photo {
  background: linear-gradient(160deg, #3b5d7c, #1b2a3d 55%, #5a4630);
}
.cards-rail figcaption {
  font-size: 0.9rem;
  font-weight: 650;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Come funziona ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1.5rem;
  border-radius: var(--radius);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  box-shadow: 0 8px 22px -6px var(--accent-glow);
}
.steps p {
  color: var(--sub);
  font-size: 0.98rem;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Moto e Auto ---------- */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.mode {
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.mode::before {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 80%;
  background: radial-gradient(closest-side, var(--mode-c), transparent);
  opacity: 0.28;
  pointer-events: none;
}
.mode--moto {
  --mode-c: #1e90ff;
  --mode-ink: #0a64c8;
}
.mode--auto {
  --mode-c: #ff7e00;
  --mode-ink: #b45300;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mode--moto {
    --mode-ink: #5cb8ff;
  }
  :root:not([data-theme="light"]) .mode--auto {
    --mode-ink: #ffa54d;
  }
}
:root[data-theme="dark"] .mode--moto {
  --mode-ink: #5cb8ff;
}
:root[data-theme="dark"] .mode--auto {
  --mode-ink: #ffa54d;
}
.mode h3 {
  color: var(--mode-ink);
  font-size: 1.6rem;
  font-weight: 800;
}
.mode ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  position: relative;
}
.mode li {
  padding-left: 1.4rem;
  position: relative;
  font-weight: 550;
}
.mode li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 3px;
  border-radius: 2px;
  background: var(--mode-c);
}
@media (max-width: 760px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Dati e "non fa" ---------- */
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 880px) {
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
}
.panel {
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel > * + * {
  margin-top: 1rem;
}
.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.flow li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.flow li:first-child {
  border-top: 0;
}
.flow b {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-ink);
}
.flow span {
  font-weight: 550;
  font-size: 0.98rem;
}
@media (max-width: 520px) {
  .flow li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}
.nots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.nots li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-sm);
  align-items: start;
}
.nots svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--no);
  margin-top: 0.1rem;
}
.nots b {
  display: block;
  font-weight: 750;
  margin-bottom: 0.15rem;
}
.nots span {
  color: var(--sub);
  font-size: 0.97rem;
  display: block;
}
@media (max-width: 760px) {
  .nots {
    grid-template-columns: minmax(0, 1fr);
  }
}
.soon-list {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  color: var(--sub);
  font-weight: 550;
}

/* Affidabilità */
.trust {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust li {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) minmax(0, 14rem);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
}
.trust b {
  font-weight: 750;
}
.meter {
  display: flex;
  gap: 0.3rem;
}
.meter i {
  flex: 1;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--line);
}
.meter i.on {
  background: var(--accent);
}
.trust span {
  font-size: 0.92rem;
  color: var(--sub);
}
@media (max-width: 760px) {
  .trust li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

/* ---------- Prezzi ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.plan {
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.plan--hot {
  border: 2px solid var(--accent);
  position: relative;
}
.plan--hot .tag {
  position: absolute;
  top: -0.8rem;
  right: 1.4rem;
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.plan .price {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan .price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0;
}
.plan p {
  color: var(--sub);
  font-size: 0.97rem;
}
@media (max-width: 880px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
th,
td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
thead th {
  font-weight: 800;
  position: sticky;
  top: 0;
  background: var(--bg-soft);
  white-space: nowrap;
}
td:not(:first-child),
th:not(:first-child) {
  min-width: 8rem;
}
.compare th:first-child {
  width: 44%;
}
.compare td:not(:first-child),
.compare th:not(:first-child) {
  min-width: 10rem;
}
.yes {
  color: var(--ok);
  font-weight: 800;
}
.nope {
  color: var(--sub);
}
.fine {
  font-size: 0.9rem;
  color: var(--sub);
  margin-top: 1rem;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
}
.faq details {
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3.4rem 1.1rem 1.3rem;
  font-weight: 700;
  position: relative;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--accent-ink);
  border-bottom: 2.5px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details > div {
  padding: 0 1.3rem 1.3rem;
  color: var(--sub);
  display: grid;
  gap: 0.7rem;
}
.faq h2 {
  font-size: 1.5rem;
  margin: 2.2rem 0 0.4rem;
}
.faq h2:first-child {
  margin-top: 0;
}
.faq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  align-items: center;
}
.faq-tools input {
  flex: 1 1 16rem;
  min-height: 3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--fg);
  font: inherit;
  font-weight: 550;
}
.faq-tools input::placeholder {
  color: var(--sub);
}
.faq-empty {
  display: none;
  color: var(--sub);
}

/* ---------- CTA finale ---------- */
.cta {
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 6vw, 4.5rem);
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  z-index: -1;
}
.cta p {
  color: var(--sub);
  max-width: 36rem;
  font-size: 1.15rem;
}
.mailline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
}
.copy {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.copy:hover {
  background: var(--glass-strong);
}

/* ---------- Pagine di testo (legali, supporto) ---------- */
.doc-head {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}
.doc-head h1 {
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4rem);
}
.doc-head p {
  color: var(--sub);
  font-size: 1.15rem;
}
.doc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  display: grid;
  gap: 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 2px solid var(--line);
}
.toc a {
  color: var(--sub);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  line-height: 1.3;
}
.toc a:hover {
  color: var(--fg);
}
.toc a.on {
  color: var(--accent-ink);
  border-left-color: var(--accent);
}
.prose {
  max-width: 46rem;
  min-width: 0;
}
.prose > * + * {
  margin-top: 1.05rem;
}
.prose h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  margin-top: 3rem;
  letter-spacing: -0.03em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.9rem;
  font-size: 1.15rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
}
.prose li::marker {
  color: var(--accent-ink);
  font-weight: 700;
}
.prose strong {
  font-weight: 750;
}
.prose .table-wrap {
  margin-block: 1.4rem;
}
.prose table {
  font-size: 0.92rem;
}
.prose td:not(:first-child),
.prose th:not(:first-child) {
  min-width: 9rem;
}
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
}
.callout {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow);
}
.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  border-left-color: var(--gold);
  box-shadow: none;
}
.callout > * + * {
  margin-top: 0.6rem;
}
.callout > strong:first-child {
  display: block;
}
.callout ul {
  margin: 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.updated {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sub);
}
/* Da completare prima del lancio */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-fg);
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-weight: 700;
  padding: 0.05em 0.4em;
  border-radius: 6px;
}
@media (max-width: 920px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.4rem;
    background: var(--glass);
  }
  .toc a {
    border-left: 0;
    margin-left: 0;
  }
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.support-grid .panel {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.support-grid .panel > svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent-ink);
}
.support-grid h3 {
  font-size: 1.1rem;
}
.support-grid p {
  color: var(--sub);
  font-size: 0.97rem;
}
@media (max-width: 880px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.foot-grid h2 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 0.9rem;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.foot-grid a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.foot-grid a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}
.foot-brand p {
  color: var(--sub);
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.97rem;
}
.foot-brand .logo svg {
  width: 7rem;
}
.foot-small {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 0.85rem;
  display: grid;
  gap: 0.5rem;
}
@media (max-width: 880px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .road .r-dash {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .toc,
  .road,
  .site-footer .foot-grid {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .glass,
  .callout {
    box-shadow: none;
  }
}

/* ---------- Novità (una versione per articolo) ---------- */
.release + .release {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--sub);
  font-weight: 600;
}

/* La home "in arrivo", proposta A della tela (scelta il 13 ott 2026).
   La strada sta in fondo, alta quanto serve a non tagliare il bagliore; il
   testo resta sopra l'orizzonte (a 180/510 dell'altezza della strada). */
.teaser-home {
  --road-h: max(17rem, 39.85vw);
}
.teaser-home .site-header .bar {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.teaser-home .site-header .logo {
  visibility: hidden;
}
.teaser-a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h) - 1.5rem);
  padding-block: clamp(0.5rem, 3vh, 2.5rem) calc(var(--road-h) * 0.64 + 1.75rem);
  background: radial-gradient(
    120% 90% at 50% 70%,
    color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%,
    var(--bg) 58%
  );
}
.teaser-a-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.35rem;
  max-width: 66rem;
}
.teaser-wordmark {
  width: clamp(170px, 23.5vw, 300px);
  height: auto;
  color: var(--fg);
}
.teaser-a h1 {
  font-size: clamp(2.3rem, 1rem + 4.3vw, 3.75rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.teaser-a h1 em {
  font-style: normal;
  color: var(--accent);
}
.teaser-a .lead {
  max-width: 40rem;
  color: var(--sub);
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.2rem);
  font-weight: 500;
}
.teaser-cta {
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}
.teaser-road {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--road-h);
  z-index: -1;
}
.teaser-road svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tr-glow-in {
  stop-color: var(--accent);
  stop-opacity: 0.45;
}
.tr-glow-out {
  stop-color: var(--accent);
  stop-opacity: 0;
}
.tr-ridge {
  fill: color-mix(in srgb, var(--accent) 9%, var(--bg));
  opacity: 0.92;
}
.tr-road {
  fill: color-mix(in srgb, var(--accent) 6%, var(--road));
}
.tr-edge {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.28;
  stroke-width: 2;
}
.tr-dash {
  fill: var(--accent);
}
.tr-dash-glow {
  fill: var(--accent);
  opacity: 0.6;
}
@media (max-width: 700px) {
  /* Sul telefono la strada parte subito sotto il testo, senza un vuoto. */
  .teaser-a {
    min-height: auto;
  }
}
