/* =========================================================================
   Sito commerciale
   Linguaggio sobrio, quasi editoriale: bianco, grigi freddi, antracite,
   un solo accento controllato. Bordi sottili, ombre quasi assenti.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Palette */
  --white: #ffffff;
  --gray-50: #f5f6f8;
  --gray-100: #eceef1;
  --line: #e1e4e8;
  --line-strong: #c9ced5;
  --text: #16181c;          /* nero morbido */
  --text-2: #3a3f47;        /* antracite */
  --muted: #5b626d;         /* 6.2:1 su bianco */
  --accent: #9a4324;        /* unico colore secondario, 6.6:1 su bianco */
  --accent-soft: #f6ece8;

  --mark-1: #1c1f24;
  --mark-2: #5b636e;
  --mark-3: #b9c0c8;

  /* Tipografia */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-xs: .8125rem;

  /* Spazi e forme */
  --container: 1200px;
  --gutter: 16px;
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius-sm: 6px;
  --radius: 10px;
  --shadow-soft: 0 1px 2px rgba(22, 24, 28, .04), 0 12px 32px -18px rgba(22, 24, 28, .18);
  --ease: cubic-bezier(.2, .6, .2, 1);
  --header-h: 64px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

#contenuto:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: calc(760px + var(--gutter) * 2); }
.container.narrow-wide { max-width: calc(980px + var(--gutter) * 2); }

.main { flex: 1; }

/* ------------------------------------------------------------- elementi */

.eyebrow {
  margin-bottom: 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions--center { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.button--primary { background: var(--text); color: var(--white); }
.button--primary:hover { background: var(--text-2); }
.button--secondary { background: var(--white); border-color: var(--line-strong); color: var(--text); }
.button--secondary:hover { border-color: var(--text); }
.button--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button--ghost:hover { background: var(--gray-50); border-color: var(--text-2); }
.button--sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-small); }
.button--lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.button--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-2);
  vertical-align: middle;
}
.badge--plan, .badge--accent { color: var(--accent); }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: .9875rem; color: var(--text-2); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: .5em;
  width: 10px; height: 5px;
  border-left: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- marchio */

.mark { flex: none; }
.mark__plane--1 { fill: var(--mark-1); }
.mark__plane--2 { fill: var(--mark-2); }
.mark__plane--3 { fill: var(--mark-3); }

@keyframes plane-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.page--home .site-header .mark__plane,
.mark--animated.is-visible .mark__plane {
  animation: plane-in .6s var(--ease) both;
}
.page--home .site-header .mark__plane--2,
.mark--animated.is-visible .mark__plane--2 { animation-delay: .08s; }
.page--home .site-header .mark__plane--3,
.mark--animated.is-visible .mark__plane--3 { animation-delay: .16s; }
.js .mark--animated:not(.is-visible) .mark__plane { opacity: 0; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: .14em; }

.nav { display: flex; align-items: center; gap: 32px; flex: 1; }
.nav__list { display: flex; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 8px; }
.nav__login { margin-left: auto; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 18px; height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-header__inner { gap: 12px; }
  .site-header__actions { margin-left: auto; }

  /* Con JS: menu compatto apribile. Senza JS: link in riga scorrevole. */
  .js .nav-toggle { display: block; }
  .js .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .js .site-header.is-open .nav { display: flex; }
  .js .nav__list { flex-direction: column; gap: 0; margin: 0; }
  .js .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.0625rem;
    color: var(--text);
  }
  .js .nav__login { margin: 0; border-bottom: 0; }

  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
}

/* ---------------------------------------------------------------- sezioni */

.section { padding: var(--section) 0; }
.section--muted { background: var(--gray-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--flush { padding-top: 0; }
.section + .section--muted, .section--muted + .section { margin-top: 0; }

.section-header { max-width: 720px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header--center .section-text { margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem);
  letter-spacing: -.028em;
  line-height: 1.12;
  text-wrap: balance;
}
.section-text {
  margin-top: 20px;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  color: var(--muted);
}

.page-intro { padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-title {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  letter-spacing: -.035em;
  line-height: 1.06;
  text-wrap: balance;
  max-width: 20ch;
}
.page-intro .lead { margin-top: 24px; }

.prose { color: var(--text-2); max-width: 64ch; }
.prose p + p { margin-top: 1em; }

/* ------------------------------------------------------------- screenshot */

.shot { margin: 0; }
.shot__frame {
  position: relative;
  aspect-ratio: var(--shot-ratio, 16 / 10);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-100);
}
.shot__frame img { width: 100%; height: auto; }
/* Solo area di lavoro: nasconde la sidebar dell'applicazione */
.shot--content .shot__frame img {
  width: calc(100% * var(--shot-zoom));
  max-width: none;
  transform: translateX(var(--shot-x));
}
.shot--wide .shot__frame { border-radius: 12px; }

/* Mobile: ingrandisce l'angolo in alto a sinistra dell'area di lavoro,
   così testi e numeri restano leggibili invece di ridurre tutta la schermata */
@media (max-width: 639px) {
  .shot--content .shot__frame { aspect-ratio: 4 / 3; }
  .shot--content .shot__frame img { width: calc(100% * var(--shot-zoom) * 1.75); }
}

/* -------------------------------------------------------------------- hero */

.hero { padding: clamp(3rem, 2rem + 4vw, 6.5rem) 0 clamp(4rem, 3rem + 4vw, 7rem); overflow: clip; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__copy { animation: fade-up .7s var(--ease) both; }
.hero__title {
  font-size: clamp(2.6rem, 1.7rem + 4.2vw, 5rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero__text {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.05rem + .45vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}
.hero__note { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
.hero__media { position: relative; animation: fade-in .9s .1s var(--ease) both; }

.float-card {
  position: absolute;
  left: 16px;
  bottom: -24px;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  animation: fade-up .7s .45s var(--ease) both;
}
.float-card__label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.float-card__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.float-card__amount { font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.float-card__detail { font-size: var(--fs-xs); color: var(--muted); }

@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  /* Lo screenshot esce dal contenitore fino al bordo della finestra */
  .hero__media { margin-right: calc(min(0px, (var(--container) + var(--gutter) * 2 - 100vw) / 2) - var(--gutter)); }
  .shot--hero .shot__frame { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
  .float-card { left: -40px; bottom: 40px; }
}
@media (max-width: 639px) {
  .hero__copy .actions .button { flex: 1 1 100%; }
  .float-card { position: relative; left: auto; bottom: auto; margin: -28px 12px 0; min-width: 0; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------------- problema */

.problem__grid { display: grid; gap: 48px; align-items: center; }
.problem .section-header { margin-bottom: 0; }

.problem__diagram { display: grid; justify-items: center; gap: 0; }
.problem__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.problem__tools li {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.problem__arrow {
  width: 1px;
  height: 48px;
  margin: 12px 0;
  background: var(--line-strong);
  position: relative;
}
.problem__arrow::after {
  content: "";
  position: absolute;
  left: -4px; bottom: 0;
  width: 9px; height: 9px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.problem__target {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  padding: 18px 20px;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius);
  --mark-1: #ffffff;
  --mark-2: #a9b0b9;
  --mark-3: #5b636e;
}
.problem__target strong { display: block; letter-spacing: .14em; font-size: .9375rem; }
.problem__target span { display: block; font-size: var(--fs-small); color: #c9ced5; }

@media (min-width: 900px) {
  .problem__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* ----------------------------------------------------------------- workflow */

.workflow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  counter-reset: none;
}
.workflow__step {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 28px 36px;
}
/* linea verticale + punto (mobile) */
.workflow__step::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: -8px;
  width: 1px;
  background: var(--line-strong);
}
.workflow__step:last-child::before { display: none; }
.workflow__step::after {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 11px; height: 11px;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--white);
}
.workflow__step:last-child::after { background: var(--text); }
.workflow__index { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.workflow__label { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.workflow__text { font-size: .9375rem; color: var(--muted); }

@media (min-width: 900px) {
  .workflow__steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .workflow__step { padding: 32px 0 0; align-content: start; }
  .workflow__step::before { left: 0; right: -24px; top: 5px; bottom: auto; width: auto; height: 1px; }
  .workflow__step::after { top: 0; }
  .workflow__label { font-size: 1.0625rem; }
}

/* ---------------------------------------------------------- sezione prodotto */

.feature + .feature { padding-top: 0; }
.feature__grid { display: grid; gap: 40px; align-items: center; }
.feature__badge { margin-bottom: 16px; }
.feature__copy .section-title { font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.375rem); }

@media (min-width: 900px) {
  .feature__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature--reverse .feature__copy { order: 2; }
  .feature--reverse .feature__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ------------------------------------------------------------- intelligenza */

.intelligence__grid {
  display: grid;
  gap: 0 32px;
  margin: 0;
}
.intelligence__item { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.intelligence__item dt { font-weight: 600; }
.intelligence__item dd { margin: 4px 0 0; color: var(--muted); font-size: .9875rem; }

@media (min-width: 640px) { .intelligence__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .intelligence__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; } }

/* ------------------------------------------------------------ demo comando */

.command-demo__grid { display: grid; gap: 40px; align-items: center; }
.command-demo__stage {
  padding: clamp(16px, 4vw, 40px);
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.command-demo__video { width: 100%; border-radius: var(--radius-sm); }
.command-demo__static { display: grid; gap: 16px; }
.command-demo__input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: clamp(.9375rem, .9rem + .3vw, 1.0625rem);
}
.command-demo__mic { flex: none; width: 18px; height: 18px; color: var(--text-2); }
.command-demo__result {
  display: grid;
  gap: 2px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.command-demo__status { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.command-demo__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.command-demo__amount { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.command-demo__detail { font-size: var(--fs-small); color: var(--muted); }
.command-demo__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip-button {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}
.chip-button--primary { background: var(--text); border-color: var(--text); color: var(--white); }

.js .command-demo__result { opacity: 0; transform: translateY(6px); transition: opacity .5s .25s var(--ease), transform .5s .25s var(--ease); }
.js .command-demo__stage.is-visible .command-demo__result { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .command-demo__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

/* --------------------------------------------------------------------- tab */

.tabs__list {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  scroll-snap-align: center;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { background: var(--text); color: var(--white); }

.tabs__panel { animation: fade-in .25s var(--ease); }
.tabs__panel + .tabs__panel { margin-top: 48px; }
.js .tabs__panel[data-inactive] { display: none; }
.js .tabs__panel + .tabs__panel { margin-top: 0; }

.tabs__media { max-width: 1100px; margin: 0 auto; }
.tabs__caption {
  display: grid;
  gap: 12px;
  max-width: 1100px;
  margin: 24px auto 0;
}
.tabs__title { display: grid; gap: 10px; justify-items: start; }
.tabs__caption h3 { font-size: 1.25rem; letter-spacing: -.015em; text-wrap: balance; }
.tabs__caption p { color: var(--muted); }

@media (min-width: 900px) {
  .tabs__caption { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 48px; }
}
@media (max-width: 639px) {
  .tabs__list { width: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; }
}

/* ------------------------------------------------------------------ prezzi */

.plans { display: grid; gap: 16px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan--highlighted { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.plan__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 1.25rem; letter-spacing: -.01em; }
.plan__claim { margin-top: 6px; color: var(--muted); font-size: .9375rem; min-height: 1.6em; }
.plan__price { margin: 28px 0 24px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan__currency { font-size: .9375rem; font-weight: 600; color: var(--text-2); }
.plan__amount { font-size: 3rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__period { font-size: .9375rem; color: var(--muted); }
.plan__trial { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.plan__includes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; }
.plan__features { margin-top: 16px; }
.plan > .check-list:not(.plan__features), .plan__includes + .plan__features { margin-top: 12px; }
.plan > .button + .plan__features, .plan > .plan__trial + .plan__features { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan__features li { font-size: .9375rem; }

.plans__note { margin-top: 20px; text-align: center; font-size: var(--fs-small); color: var(--muted); }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .plan { padding: 32px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--highlighted { grid-column: 1 / -1; order: -1; }
}

/* Confronto */
.compare__table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compare__table th, .compare__table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare__table thead th { font-size: var(--fs-small); font-weight: 600; padding-top: 0; border-bottom-color: var(--line-strong); }
.compare__table tbody th { text-align: left; font-weight: 500; color: var(--text-2); }
.compare__table .is-highlighted { background: var(--gray-50); }
.compare__table thead .is-highlighted { background: transparent; box-shadow: inset 0 -2px 0 var(--text); }

.compare__yes, .compare__no { display: inline-block; vertical-align: middle; }
.compare__yes { width: 12px; height: 7px; border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(-45deg) translate(1px, -2px); }
.compare__no { width: 10px; height: 1.5px; background: var(--line-strong); }
.compare__text { font-size: var(--fs-small); color: var(--text-2); }

.compare__mobile { display: none; }
.compare-plan { border: 1px solid var(--line); border-radius: var(--radius); }
.compare-plan + .compare-plan { margin-top: 12px; }
.compare-plan summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.compare-plan summary::-webkit-details-marker { display: none; }
.compare-plan summary span { font-weight: 500; font-size: var(--fs-small); color: var(--muted); margin-left: auto; }
.compare-plan summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s var(--ease);
}
.compare-plan[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.compare-plan ul { list-style: none; margin: 0; padding: 0 18px 8px; }
.compare-plan li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--gray-100); font-size: .9375rem; }

@media (max-width: 719px) {
  .compare__table { display: none; }
  .compare__mobile { display: block; }
}

/* --------------------------------------------------------------- CTA finale */

.cta-final { border-top: 1px solid var(--line); }
.cta-final__inner { display: grid; justify-items: center; text-align: center; }
.cta-final .mark { margin-bottom: 32px; }
.cta-final .section-text { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ auth / form */

.page--auth .main { background: var(--gray-50); }
.auth {
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: calc(440px + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(2.5rem, 2rem + 4vw, 6rem) var(--gutter);
}
.auth--wide { max-width: calc(980px + var(--gutter) * 2); }
.auth__panel {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.auth__panel > .mark { margin-bottom: 24px; }
.auth__title { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -.03em; }
.auth__aside .mark { margin-bottom: 24px; }
.auth__aside .lead { margin-top: 12px; }
.auth__panel .auth__title + .form, .auth__panel .auth__title + .notice { margin-top: 24px; }
.auth__alt { margin-top: 24px; font-size: var(--fs-small); color: var(--muted); }
.auth__alt a { color: var(--text); font-weight: 600; }

@media (min-width: 900px) {
  .auth--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .auth__aside { padding-top: 40px; }
}

.signup-plan { margin-top: 32px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.signup-plan__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.signup-plan__name { margin-top: 6px; font-size: 1.25rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.signup-plan__name span { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.signup-plan__name .plan__amount { font-size: inherit; letter-spacing: 0; color: var(--text-2); }
.signup-plan__name .plan__currency, .signup-plan__name .plan__period { font-size: inherit; font-weight: 500; color: var(--muted); }
.signup-plan__claim { margin-top: 4px; font-size: .9375rem; color: var(--muted); }

.form { display: grid; gap: 18px; }
.form .button { margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); }
.field__optional { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 1rem; /* evita lo zoom automatico su iOS */
  color: var(--text);
  transition: border-color .15s var(--ease);
}
.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% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; border-color: var(--text); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field__help { font-size: var(--fs-xs); color: var(--muted); }

.notice {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--text);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .9375rem;
  color: var(--text-2);
}
.notice--muted { border-left-color: var(--line-strong); background: var(--gray-50); color: var(--muted); }
.auth__panel .notice { margin-bottom: 24px; }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); background: var(--white); font-size: .9375rem; }
.site-footer__inner {
  display: grid;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.site-footer__tagline { margin-top: 12px; max-width: 30ch; color: var(--muted); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.site-footer__links a { color: var(--text-2); text-decoration: none; }
.site-footer__links a:hover { color: var(--text); text-decoration: underline; }
.site-footer__legal {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--gray-100);
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* -------------------------------------------------------- movimento ridotto */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .command-demo__result, .js .mark--animated:not(.is-visible) .mark__plane { opacity: 1; transform: none; }
}
