/* EXOfattura — landing v4
   Tema chiaro, palette del logo (#0193DB → #0055B7), animazioni leggere senza librerie. */

:root {
  --ink: #0b1220;
  --ink-2: #1d2939;
  --text: #475467;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e8ef;
  --line-2: #eef1f6;
  --bg: #fff;
  --bg-soft: #f6f8fb;
  --bg-tint: #f2f7fd;

  --brand-1: #0193db;
  --brand-2: #0055b7;
  --brand: #0a6ad0;
  --brand-ink: #0b4ea2;
  --brand-50: #eef6ff;
  --brand-100: #d9ebff;
  --brand-200: #b6d8ff;
  --grad: linear-gradient(135deg, #0193db 0%, #0055b7 100%);

  --ok: #067a55;
  --ok-500: #12b76a;
  --ok-50: #e7f7ef;

  --dark: #0b1220;
  --dark-2: #0f172a;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 14px 28px -10px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .05);
  --shadow-lg: 0 40px 80px -24px rgba(0, 63, 140, .22), 0 12px 24px -12px rgba(16, 24, 40, .08);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Urbanist", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }

::selection { background: var(--brand-100); color: var(--ink); }

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

.sr-only {
  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: fixed;
  z-index: 200;
  top: 12px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:not(:focus) { clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.section { position: relative; padding: 112px 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.h2 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
}

.lead {
  max-width: 640px;
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.section-head--center { max-width: 780px; margin: 0 auto; text-align: center; }
.section-head--center .h2,
.section-head--center .lead { margin-left: auto; margin-right: auto; }

.grad-text {
  color: var(--brand-2);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono { font-family: var(--mono); }

/* Bottoni */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i--arrow { transform: translateX(3px); }
.btn:hover .i--ext { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 1px 2px rgba(0, 40, 100, .25), 0 10px 22px -8px rgba(1, 100, 210, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0, 40, 100, .25), 0 16px 30px -10px rgba(1, 100, 210, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { transform: translateY(-1px); border-color: #cdd5df; box-shadow: var(--shadow-sm); }

.btn--white { color: var(--brand-2); background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 20, 60, .45); }
.btn--white:hover { transform: translateY(-1px); background: #f3f8ff; }

.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--dark-outline { color: #e2e8f0; border-color: rgba(255, 255, 255, .18); }
.btn--dark-outline:hover { transform: translateY(-1px); color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); }

.btn--sm { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* Loader iniziale */
.loader { display: none; }

.js .loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .55s var(--ease), visibility .55s;
  animation: loaderFailsafe .01s 4s forwards;
}
.no-loader .loader { display: none; }
.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__inner { display: grid; justify-items: center; gap: 26px; }

.loader__mark { width: 96px; height: auto; overflow: visible; transition: transform .6s var(--ease); }
.is-loaded .loader__mark { transform: scale(1.18); }

.loader__mark polygon {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: xPiece .7s var(--ease-out) forwards;
}
.loader__mark polygon:nth-child(1) { animation-delay: .05s; }
.loader__mark polygon:nth-child(2) { animation-delay: .17s; }
.loader__mark polygon:nth-child(3) { animation-delay: .11s; }
.loader__mark polygon:nth-child(4) { animation-delay: .23s; }
.loader__mark polygon:nth-child(5) { animation-delay: .29s; }
.loader__mark polygon:nth-child(6) { animation-delay: .35s; }
.loader__mark polygon:nth-child(7) { animation-delay: .41s; }

.loader__bar {
  width: 128px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line-2);
}
.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  animation: loadBar 1.1s var(--ease) .15s forwards;
}

@keyframes xPiece {
  from { opacity: 0; transform: translate(-10px, 12px) scale(.5); }
  to { opacity: 1; transform: none; }
}
@keyframes loadBar { to { transform: scaleX(1); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Transizione in uscita verso il gestionale */
.leave {
  position: fixed;
  z-index: 99;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.is-leaving .leave { opacity: 1; visibility: visible; }
.leave__box { display: grid; justify-items: center; gap: 14px; color: var(--text); font-size: 14.5px; font-weight: 500; }
.leave__box svg { width: 56px; height: auto; animation: pulseMark 1.2s var(--ease) infinite; }
@keyframes pulseMark { 50% { transform: scale(.9); opacity: .7; } }

/* Barra di avanzamento lettura */
.progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Header */
.header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.header.is-scrolled,
.header.nav-open {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: rgba(228, 232, 239, .9);
  box-shadow: 0 6px 24px -16px rgba(16, 24, 40, .25);
}
.header .container { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 21px; }

.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(16, 24, 40, .045); }
.nav a .i { width: 14px; height: 14px; }
.nav a[aria-current="true"] { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__register { display: none; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 76px) 0 104px;
  background: linear-gradient(180deg, #f3f8ff 0%, #fff 58%);
}

.hero__bg { position: absolute; z-index: 0; inset: 0; pointer-events: none; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 78, 162, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 78, 162, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 18%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 18%, #000 25%, transparent 72%);
}

.hero__glow {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--1 {
  top: -380px;
  width: 760px;
  height: 760px;
  margin-left: -620px;
  background: radial-gradient(circle, rgba(1, 147, 219, .2), transparent 64%);
}
.hero__glow--2 {
  top: -240px;
  width: 680px;
  height: 680px;
  margin-left: 20px;
  background: radial-gradient(circle, rgba(0, 85, 183, .15), transparent 64%);
  animation-duration: 23s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(70px, 50px, 0) scale(1.1); }
}

.hero .container { position: relative; z-index: 1; }

.hero__copy { max-width: 900px; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-xs);
  font-size: 13.5px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pill__tag {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ok);
  background: var(--ok-50);
  font-size: 12.5px;
  font-weight: 600;
}

.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-500); }
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ok-500);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping {
  from { opacity: .8; transform: scale(.5); }
  to { opacity: 0; transform: scale(1.6); }
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(40px, 6.4vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .04em .1em; }
.hero__title .line > span { display: inline-block; }

.hero__lead {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: clamp(17px, 1.6vw, 19.5px);
  line-height: 1.65;
}

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

.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .i { width: 16px; height: 16px; color: var(--ok-500); stroke-width: 2.6; }

/* Catena automatizzata */
.flow-wrap { margin-top: 64px; perspective: 1800px; }

.flow {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0;
}
.flow::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(1, 147, 219, .45), rgba(255, 255, 255, 0) 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.flow__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-2);
}
.flow__dots { display: flex; gap: 6px; }
.flow__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.flow__title { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.flow__title .i { width: 16px; height: 16px; color: var(--brand); }
.flow__ref {
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.flow__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--brand-ink);
  background: var(--brand-50);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .4s, color .4s;
}
.flow__state .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.1s ease-in-out infinite; }
.flow__state.is-done { color: var(--ok); background: var(--ok-50); }
.flow__state.is-done .dot { animation: none; }
@keyframes blink { 50% { opacity: .25; } }

.flow__body { padding: 38px 32px 28px; }

.flow__rail { position: relative; transition: opacity .35s var(--ease); }
.flow__rail.is-fading { opacity: .35; }

.flow__track {
  position: absolute;
  z-index: 0;
  top: 26px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
}
.flow__fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform .75s var(--ease);
}
.flow__packet {
  position: absolute;
  top: 50%;
  left: calc(var(--p, 0) * 100%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2.5px solid var(--brand-1);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(1, 147, 219, .14), 0 0 18px rgba(1, 147, 219, .65);
  transition: left .75s var(--ease), top .75s var(--ease);
}
.flow.is-reset .flow__fill,
.flow.is-reset .flow__packet,
.flow.is-reset .step__node,
.flow.is-reset .step__tick,
.flow.is-reset .step__meta { transition: none !important; }

.flow__steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.step { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 6px; text-align: center; }

.step__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted-2);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: color .45s var(--ease), background-color .45s, border-color .45s, box-shadow .45s, transform .45s var(--ease);
}
.step__node > .i { width: 22px; height: 22px; }
.step__node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--brand-1);
  border-radius: 21px;
  opacity: 0;
}
.step.is-active .step__node {
  color: var(--brand);
  border-color: var(--brand-200);
  box-shadow: 0 0 0 5px rgba(1, 147, 219, .1), var(--shadow-sm);
  transform: translateY(-3px);
}
.step.is-active .step__node::after { animation: ring 1.3s var(--ease-out) infinite; }
.step.is-done .step__node {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 10px 20px -8px rgba(1, 100, 210, .6);
}
@keyframes ring {
  from { opacity: .7; transform: scale(.88); }
  to { opacity: 0; transform: scale(1.22); }
}

.step__tick {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--ok-500);
  transform: scale(0);
  transition: transform .45s var(--spring);
}
.step__tick .i { width: 11px; height: 11px; stroke-width: 3.6; }
.step.is-done .step__tick { transform: scale(1); }

.step__body { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.step__title { color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.step__sub { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.step__meta {
  max-width: 100%;
  margin-top: 8px;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 6px;
  color: var(--brand-ink);
  background: var(--brand-50);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s, transform .4s var(--ease);
}
.step.is-done .step__meta { opacity: 1; transform: none; }

.flow__panels { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; margin-top: 34px; }

/* Console eventi */
.console {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 328px;
  overflow: hidden;
  border-radius: 14px;
  color: #cbd5e1;
  background: var(--dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  font-family: var(--mono);
  font-size: 12.5px;
}
.console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #94a3b8;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
}
.console__views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.console__views button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #94a3b8;
  background: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.console__views button:hover { color: #e2e8f0; }
.console__views button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .12); }
.console[data-view="biz"] .console__log li.is-api,
.console[data-view="api"] .console__log li.is-biz { display: none; }
.console__live { display: inline-flex; align-items: center; gap: 7px; color: #34d399; }
.console__live .live-dot { background: #34d399; }
.console__live .live-dot::after { border-color: #34d399; }

.console__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  padding: 10px 8px 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
}
.console__log li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 1.2s;
}
.console__log li.is-new { background: rgba(96, 165, 250, .1); animation: logIn .45s var(--ease-out) both; }
.console__log li.is-sep { grid-template-columns: 1fr; color: #64748b; font-size: 11.5px; }
.console__log time { color: #64748b; }
.console__log code { overflow: hidden; color: #e2e8f0; white-space: nowrap; text-overflow: ellipsis; }
.console__log .s { color: #34d399; }
.console__log .s.is-sent { color: #64748b; }

.m {
  min-width: 48px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
}
.m--post { color: #93c5fd; background: rgba(59, 130, 246, .16); }
.m--get { color: #c4b5fd; background: rgba(139, 92, 246, .16); }
.m--hook { color: #6ee7b7; background: rgba(16, 185, 129, .15); }
.m--biz { min-width: 92px; color: #93c5fd; background: rgba(59, 130, 246, .16); }
.m--biz[data-area="magazzino"] { color: #fcd34d; background: rgba(245, 158, 11, .15); }
.m--biz[data-area="logistica"] { color: #c4b5fd; background: rgba(139, 92, 246, .16); }
.m--biz[data-area="banca"] { color: #6ee7b7; background: rgba(16, 185, 129, .15); }
.m--biz[data-area="contabilita"] { color: #f9a8d4; background: rgba(236, 72, 153, .14); }
.console__log li.is-biz code { font-family: var(--font); font-size: 13px; }

@keyframes logIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Anteprima documento */
.doc {
  position: relative;
  min-width: 0;
  height: 328px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.doc__content { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.doc.is-loading .doc__content { opacity: 0; transform: translateY(6px); }

.doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.doc__label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.doc__num { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 19px; font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--line-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .4s, color .4s;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge[data-tone="blue"] { color: var(--brand-ink); background: var(--brand-50); }
.badge[data-tone="green"] { color: var(--ok); background: var(--ok-50); }
.badge.is-bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.08); } }

.doc__party { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 12px 0 6px; }
.doc__party dt { color: var(--muted); font-size: 11.5px; }
.doc__party dd { margin: 0; color: var(--ink-2); font-weight: 600; }

.doc__rows { width: 100%; border-collapse: collapse; }
.doc__rows td { padding: 6px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.doc__rows td span { color: var(--muted); }
.doc__rows td:last-child { text-align: right; font-family: var(--mono); font-size: 12.5px; }

.doc__tot { display: grid; gap: 2px; margin-top: 8px; }
.doc__tot div { display: flex; justify-content: space-between; color: var(--text); }
.doc__tot span:last-child { font-family: var(--mono); font-size: 12.5px; }
.doc__tot .is-total { margin-top: 2px; color: var(--ink); font-weight: 700; font-size: 14px; }
.doc__tot .is-total span:last-child { font-size: 13.5px; }

.doc__status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.doc__status li {
  position: relative;
  padding-top: 10px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  transition: color .4s;
}
.doc__status li::before,
.doc__status li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--line-2);
}
.doc__status li::after {
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.doc__status li.is-on { color: var(--ink-2); }
.doc__status li.is-on::after { transform: scaleX(1); }
.doc__status li[data-ds="paid"]::after { background: var(--ok-500); }

.doc__skeleton {
  position: absolute;
  inset: 18px 20px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: opacity .4s;
  pointer-events: none;
}
.doc:not(.is-loading) .doc__skeleton { opacity: 0; }
.doc__skeleton p { margin-top: 6px; color: var(--muted); font-size: 12.5px; }

.sk {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line-2) 0%, #f9fbfd 40%, var(--line-2) 80%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk--lg { width: 55%; height: 20px; }
.sk--md { width: 80%; }
.sk--sm { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.flow__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.flow__note .i { width: 15px; height: 15px; color: var(--brand); }

/* Integrazioni (marquee) */
.logos { padding: 24px 0 72px; }
.logos__title { color: var(--muted); font-size: 14px; font-weight: 500; text-align: center; }

.marquee {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 12px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip .i { width: 18px; height: 18px; color: var(--brand); }

/* Sezione API (scura) */
.api { overflow: hidden; color: #cbd5e1; background: var(--dark); }
.api::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 147, 219, .2), transparent 62%);
  pointer-events: none;
}
.api::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000, transparent 70%);
  pointer-events: none;
}
.api .container { position: relative; z-index: 1; }
.api .kicker { color: #7cc4ff; }
.api .h2 { color: #fff; }
.api .lead { color: #a8b3c7; }

.api__grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; align-items: center; }

.api__for {
  margin-top: 30px;
  color: #7cc4ff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.api__list { display: grid; gap: 20px; margin-top: 18px; }
.api__list li { display: flex; gap: 14px; }
.api__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(124, 196, 255, .2);
  border-radius: 11px;
  color: #7cc4ff;
  background: rgba(124, 196, 255, .08);
}
.api__list strong { display: block; color: #fff; font-size: 15.5px; font-weight: 600; }
.api__list p { margin-top: 2px; color: #94a3b8; font-size: 14.5px; line-height: 1.55; }
.api__list code { padding: 1px 5px; border-radius: 4px; color: #c7d2fe; background: rgba(255, 255, 255, .07); font-size: .88em; }

.api__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: var(--dark-2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02);
}
.code__bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code__tab {
  position: relative;
  padding: 10px 14px 13px;
  border: 0;
  color: #94a3b8;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s;
}
.code__tab:hover { color: #e2e8f0; }
.code__tab[aria-selected="true"] { color: #fff; }
.code__tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.code__tab[aria-selected="true"]::after { transform: scaleX(1); }

.code__copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin: 0 0 6px auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, .04);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.code__copy:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.code__copy .i { width: 15px; height: 15px; }
.code__copy.is-copied { color: #34d399; border-color: rgba(52, 211, 153, .35); }

.code__panel { animation: fadeIn .35s var(--ease); }
.code__panel[hidden] { display: none; }
.code pre {
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}
.code__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #64748b;
  font-family: var(--mono);
  font-size: 12px;
}
.code__foot b { color: #34d399; font-weight: 600; }

.t-c { color: #64748b; }
.t-k { color: #7dd3fc; }
.t-f { color: #c4b5fd; }
.t-s { color: #a7f3d0; }
.t-p { color: #93c5fd; }
.t-n { color: #fcd34d; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Moduli ERP */
.modules { padding-top: 104px; }
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.mod { padding: 26px 26px 28px; }
.mod h3 { margin-top: 18px; font-size: 20px; }
.mod__list { display: grid; gap: 9px; margin-top: 14px; }
.mod__list li { display: flex; gap: 10px; color: var(--text); font-size: 14.5px; line-height: 1.45; }
.mod__list .i { width: 16px; height: 16px; margin-top: 2px; color: var(--brand); stroke-width: 2.4; }

.mods__note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.mods__note .i { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--brand); }
.mods__note a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line-2);
}
.perks strong { display: block; margin-top: 16px; color: var(--ink); font-size: 16px; font-weight: 600; }
.perks p { margin-top: 6px; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.perk__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-50);
}

/* Funzionalità */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, background-color .45s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(1, 147, 219, .1), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); background: #fff; box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card--wide { display: grid; grid-column: span 2; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.card--wide .mini { margin-top: 30px; }

.card__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--brand);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .45s var(--spring);
}
.card:hover .card__ico { transform: rotate(-6deg) scale(1.06); }
.card h3 { margin-top: 20px; font-size: 21px; }
.card p { margin-top: 8px; color: var(--text); font-size: 15px; line-height: 1.6; }

.tag {
  position: absolute !important;
  top: 26px;
  right: 24px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag--brand { color: var(--brand-ink); border-color: var(--brand-100); background: var(--brand-50); }

.mini {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.mini__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 13.5px;
}
.mini__row .mono { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.mini__row span:nth-child(2) { overflow: hidden; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }

.stock { display: grid; gap: 10px; margin-top: 20px; }
.stock__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; color: var(--text); }
.stock__row b { color: var(--ink-2); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.stock__bar { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 6px; background: var(--line-2); }
.stock__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) .3s;
}
.stock__bar span.is-low { background: linear-gradient(90deg, #f79009, #f04438); }
.card.is-seen .stock__bar span { transform: scaleX(var(--v)); }

.more { margin-top: 28px; padding: 26px 28px; border: 1px dashed var(--line); border-radius: 20px; }
.more__title { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.more__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.more__list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 14px;
  line-height: 1.35;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .25s, transform .25s var(--ease);
}
.more__list li:hover { transform: translateY(-2px); border-color: var(--brand-200); }
.more__list .i { width: 17px; height: 17px; color: var(--brand); }
.more__list small { color: var(--muted); font-size: 12px; font-weight: 500; }

/* Piani */
.pricing { background: var(--bg-soft); }
.pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.billing { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 36px; }

.toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .3s;
}
.toggle button[aria-checked="true"] { color: #fff; }
.toggle__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(11, 18, 32, .5);
  transition: transform .45s var(--ease-out);
}
.toggle[data-mode="yearly"] .toggle__thumb { transform: translateX(100%); }
.save {
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--ok);
  background: var(--ok-50);
  font-size: 11.5px;
  transition: background-color .3s, color .3s;
}
.toggle button[aria-checked="true"] .save { color: #a7f3d0; background: rgba(255, 255, 255, .14); }
.billing__hint { color: var(--muted); font-size: 13px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: 0 28px 56px -20px rgba(1, 100, 210, .35);
}
.plan--featured:hover { box-shadow: 0 34px 64px -20px rgba(1, 100, 210, .45); }

.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.plan h3 { font-size: 22px; }
.plan__badge {
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.plan__badge--muted { color: var(--muted); background: var(--bg-soft); }

.plan__claim { min-height: 44px; margin-top: 8px; color: var(--text); font-size: 14.5px; line-height: 1.5; }

.plan__price { display: flex; align-items: baseline; gap: 2px; margin-top: 22px; }
.plan__amount {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.plan__cur { margin-left: 2px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.plan__per { margin-left: 6px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.plan__price.is-changing .plan__amount { color: var(--brand); }

.plan__note { min-height: 40px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.plan__note b { color: var(--ok); font-weight: 600; }

.plan .btn { margin-top: 18px; }

.plan__features { display: grid; gap: 11px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.plan__features li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.plan__features .i { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); stroke-width: 2.4; }
.plan__features li.is-plus { color: var(--text); font-weight: 600; }

.pricing__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; font-size: 14.5px; }
.pricing__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.pricing__links a .i { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pricing__links a:hover .i { transform: translateY(2px); }
.pricing__links span { color: var(--muted); }

/* Tabella confronto */
.compare { margin-top: 96px; }
.compare__head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.compare__head h3 { font-size: clamp(26px, 2.6vw, 34px); }
.compare__head p { margin-top: 8px; color: var(--text); }

.compare__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.ctable { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.ctable th,
.ctable td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.ctable thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  text-align: center;
  vertical-align: bottom;
  font-weight: 600;
}
.ctable thead th:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}
.ctable thead th.is-featured { box-shadow: inset 0 3px 0 var(--brand-1); }
.ctable__plan { display: block; color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.ctable__price { display: block; margin-top: 4px; color: var(--brand); font-size: 13.5px; font-weight: 600; }
.ctable__alt { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.ctable tbody th[scope="row"] { color: var(--ink-2); font-weight: 500; text-align: left; }
.ctable tbody th[scope="row"] a { margin-left: 6px; color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ctable tbody td { color: var(--text); text-align: center; }
.ctable .is-featured { background: rgba(1, 147, 219, .045); }
.ctable thead th.is-featured { background: #f5fafe; }
.ctable tbody tr:not(.grp) > * { transition: background-color .2s; }
.ctable tbody tr:not(.grp):hover > * { background-color: var(--bg-tint); }

.ctable .grp th {
  padding: 24px 16px 10px;
  color: var(--brand);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.ctable tfoot td { padding: 18px 12px; border-bottom: 0; text-align: center; }
.ctable tfoot td:first-child { color: var(--muted); font-size: 13px; text-align: left; }

.yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--brand); background: var(--brand-50); }
.yes .i { width: 14px; height: 14px; stroke-width: 3; }
.no { color: #c3cad5; }

.compare__hint { display: none; margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

.fine { max-width: 900px; margin: 28px auto 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; text-align: center; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }

.help { margin-top: 32px; padding: 22px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-soft); }
.help strong { color: var(--ink); font-size: 16px; }
.help p { margin-top: 6px; color: var(--text); font-size: 14.5px; }
.help__links { display: grid; gap: 10px; margin-top: 16px; }
.help__links a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.help__links a:hover { color: var(--brand); }
.help__links .i { width: 18px; height: 18px; color: var(--brand); }

.faq__list { display: grid; gap: 12px; }

.qa {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.qa:hover { border-color: #d3dae4; }
.qa[open] { border-color: var(--brand-200); box-shadow: 0 14px 32px -18px rgba(1, 100, 210, .3); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--bg-soft);
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.qa__icon .i { width: 16px; height: 16px; stroke-width: 2.2; }
.qa[open] .qa__icon { color: var(--brand); background: var(--brand-50); transform: rotate(45deg); }
.qa.is-closing .qa__icon { color: var(--muted); background: var(--bg-soft); transform: none; }
.qa__a { overflow: hidden; }
.qa__in { padding: 0 22px 22px; color: var(--text); font-size: 15.5px; line-height: 1.7; }
.qa__in a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* CTA finale */
.cta { padding: 0 0 112px; }
.cta__box {
  position: relative;
  overflow: hidden;
  padding: 76px 48px;
  border-radius: 28px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 44px 88px -28px rgba(0, 85, 183, .5);
  text-align: center;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
}
.cta__mark { position: absolute; right: -50px; bottom: -70px; width: 380px; color: #fff; opacity: .1; transform: rotate(-8deg); fill: currentColor; }
.cta__mark--2 { top: -80px; right: auto; bottom: auto; left: -90px; width: 260px; opacity: .07; transform: rotate(12deg); }
.cta__box > *:not(svg) { position: relative; }
.cta .kicker { color: rgba(255, 255, 255, .85); }
.cta .h2 { margin-left: auto; margin-right: auto; color: #fff; }
.cta .lead { margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .86); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta__phone { margin-top: 24px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.cta__phone a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .4); transition: border-color .2s; }
.cta__phone a:hover { border-color: #fff; }

/* Footer */
.footer { padding: 72px 0 32px; color: #94a3b8; background: var(--dark); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand img { width: auto; height: 21px; }
.footer__brand p { max-width: 320px; margin-top: 18px; line-height: 1.65; }
.footer h4 {
  margin-bottom: 16px;
  color: #e2e8f0;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer ul { display: grid; gap: 10px; }
.footer a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer a .i { width: 14px; height: 14px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .i { width: 17px; height: 17px; margin-top: 3px; color: #7cc4ff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.5px;
}

/* Torna su */
.to-top {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), visibility .35s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-2px); }
.to-top > .i { width: 18px; height: 18px; }
.to-top__ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 2.5; }
.to-top__track { stroke: var(--line-2); }
.to-top__val { stroke: var(--brand-1); stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; }

/* Animazioni d'ingresso */
.js .intro { opacity: 0; }
.is-ready .intro { animation: introUp .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms); }

.js .hero__title .line > span { transform: translateY(110%); }
.is-ready .hero__title .line > span { animation: lineUp 1.05s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms); }

.js .flow { opacity: 0; }
.is-ready .flow { animation: flowIn 1.3s var(--ease-out) .45s both; }

@keyframes introUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes flowIn {
  from { opacity: 0; transform: rotateX(16deg) translateY(56px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js.no-reveal .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1199px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step__sub { display: none; }
}

@media (max-width: 1023px) {
  .section { padding: 88px 0; }

  .nav {
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a::after { display: none; }
  .nav a[aria-current="true"] { background: var(--brand-50); color: var(--brand-ink); }
  .header__actions { margin-left: auto; }
  .nav-toggle { display: inline-grid; }
  .nav a.nav__register {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
  }
  .nav a.nav__register:hover { color: #fff; background: var(--brand-ink); }

  .api__grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-template-columns: 1fr; }

  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__aside { position: static; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .ctable th:first-child {
    position: sticky;
    z-index: 1;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 1px 0 0 var(--line-2);
  }
  .ctable thead th:first-child { z-index: 3; }
  .ctable .grp th { position: static; }
  .compare__hint { display: block; }
}

@media (max-width: 899px) {
  .flow__body { padding: 22px 16px 20px; }
  .flow__steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; gap: 14px; padding: 7px 0; text-align: left; }
  .step__node { width: 44px; height: 44px; border-radius: 13px; }
  .step__node > .i { width: 20px; height: 20px; }
  .step__node::after { border-radius: 18px; }
  .step__body { flex: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .step__sub { display: inline; }
  .step__meta { margin: 0 0 0 auto; }
  .flow__track {
    top: 29px;
    bottom: 29px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px);
  }
  .flow__fill { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .flow__packet { top: calc(var(--p, 0) * 100%); left: 50%; }
  .flow__panels { grid-template-columns: 1fr; margin-top: 22px; }
  .console { height: 236px; }
}

@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }

  .header .btn { display: none; }
  .pill__text { display: none; }
  .pill { padding-right: 6px; }
  .more { padding: 22px 18px; }
  .more__list li { font-size: 13.5px; }
  .ctable { min-width: 640px; font-size: 13.5px; }
  .ctable th,
  .ctable td { padding: 11px 10px; }
  .ctable th:first-child { min-width: 136px; max-width: 150px; }
  .ctable__plan { font-size: 16px; }
  .ctable tfoot .btn { padding: 0 10px; font-size: 13px; }

  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
  .hero__actions .btn { width: 100%; }
  .ticks { flex-direction: column; align-items: center; gap: 8px; }
  .flow-wrap { margin-top: 44px; margin-left: -4px; margin-right: -4px; }
  .flow__bar { padding: 0 14px; }
  .flow__dots,
  .flow__ref { display: none; }
  .step__sub { display: none; }
  .doc { display: none; }
  .console__log code { font-size: 11.5px; }
  .console__log time { display: none; }

  .bento { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; gap: 14px; }
  .mod { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding: 20px 20px 22px; }
  .mod h3 { margin-top: 0; font-size: 19px; }
  .mod__list { grid-column: 1 / -1; }
  .perks { grid-template-columns: 1fr; gap: 26px; margin-top: 48px; padding-top: 36px; }
  .modules { padding-top: 80px; }
  .m--biz { min-width: 0; }
  .card--wide { grid-column: auto; }
  .card { padding: 24px; }
  .tag { top: 22px; right: 20px; }

  .plans { grid-template-columns: 1fr; }
  .toggle button { padding: 0 14px; }

  .api__actions .btn,
  .cta__actions .btn { width: 100%; }
  .code pre { padding: 18px; font-size: 12px; }

  .cta { padding-bottom: 72px; }
  .cta__box { padding: 56px 22px; border-radius: 22px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .intro,
  .js .flow { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
}
