/* ==========================================================================
   Slancio — landing page
   Core Matrix s.r.l. — HTML/CSS/JS puri, nessuna dipendenza
   ========================================================================== */

/* ------------------------------- Token ---------------------------------- */
:root {
  /* Brand */
  --brand: oklch(0.53 0.18 255);            /* ≈ #2554c7 */
  --brand-hover: oklch(0.47 0.18 255);
  --brand-active: oklch(0.42 0.17 255);
  --brand-soft: oklch(0.95 0.025 255);
  --brand-softer: oklch(0.975 0.012 255);
  --brand-ring: oklch(0.53 0.18 255 / 0.35);
  --brand-deep: oklch(0.32 0.12 258);

  /* Superfici e testo */
  --bg: #ffffff;
  --bg-alt: oklch(0.975 0.005 250);
  --surface: #ffffff;
  --border: oklch(0.91 0.008 250);
  --border-strong: oklch(0.85 0.01 250);
  --text: oklch(0.22 0.02 255);
  --text-2: oklch(0.42 0.02 255);
  --text-3: oklch(0.55 0.015 255);
  --inverse: #ffffff;

  /* Stati */
  --ok: oklch(0.55 0.14 150);
  --ok-bg: oklch(0.96 0.03 150);
  --warn: oklch(0.62 0.13 75);
  --warn-bg: oklch(0.965 0.04 85);
  --err: oklch(0.55 0.19 25);
  --err-bg: oklch(0.96 0.025 20);

  /* Tipografia */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1120px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 24px;

  /* Ombre */
  --shadow-s: 0 1px 2px oklch(0.25 0.03 255 / 0.06), 0 1px 3px oklch(0.25 0.03 255 / 0.08);
  --shadow-m: 0 2px 4px oklch(0.25 0.03 255 / 0.05), 0 8px 24px oklch(0.25 0.03 255 / 0.09);
  --shadow-l: 0 4px 8px oklch(0.25 0.03 255 / 0.05), 0 24px 64px -12px oklch(0.35 0.08 255 / 0.22);

  --nav-h: 68px;
}

/* Fallback per browser senza oklch */
@supports not (color: oklch(0.5 0.1 255)) {
  :root {
    --brand: #2554c7;
    --brand-hover: #1e46ab;
    --brand-active: #193b91;
    --brand-soft: #e7edfa;
    --brand-softer: #f4f7fd;
    --brand-ring: rgba(37, 84, 199, 0.35);
    --brand-deep: #14275c;
    --bg-alt: #f6f7f9;
    --border: #e4e6ea;
    --border-strong: #d2d5db;
    --text: #191d27;
    --text-2: #4b5162;
    --text-3: #6d7385;
    --ok: #1d9a53;
    --ok-bg: #e5f6ec;
    --warn: #b97e14;
    --warn-bg: #faf1dc;
    --err: #cc3d2e;
    --err-bg: #fae9e6;
    --shadow-s: 0 1px 2px rgba(20, 28, 51, 0.06), 0 1px 3px rgba(20, 28, 51, 0.08);
    --shadow-m: 0 2px 4px rgba(20, 28, 51, 0.05), 0 8px 24px rgba(20, 28, 51, 0.09);
    --shadow-l: 0 4px 8px rgba(20, 28, 51, 0.05), 0 24px 64px -12px rgba(30, 50, 110, 0.22);
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
kbd { font-family: var(--font-mono); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--inverse);
  border-radius: var(--radius-s);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ------------------------------ Layout ----------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 780px; }

.section { padding-block: 104px; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-2);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow-light { color: oklch(0.82 0.06 255); }
@supports not (color: oklch(0.5 0.1 255)) {
  .eyebrow-light { color: #a8bdf0; }
}

/* ------------------------------ Bottoni ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: var(--inverse);
  box-shadow: 0 1px 2px oklch(0.35 0.12 255 / 0.3), inset 0 1px 0 oklch(1 0 0 / 0.12);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); transform: translateY(1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-s);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: 14px 28px; font-size: 1.0625rem; border-radius: 12px; }

/* ------------------------------ Navbar ------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: oklch(1 0 0 / 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (color: oklch(0.5 0.1 255)) {
  .navbar { background: rgba(255, 255, 255, 0.85); }
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
}
.brand:hover { text-decoration: none; }

.brand-logo { width: 32px; height: 32px; flex: none; }

.brand-name {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.btn) {
  color: var(--text-2);
  font-weight: 550;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); text-decoration: none; }

.btn-nav { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-s);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Hero ------------------------------------ */
.hero {
  position: relative;
  padding-block: 96px 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52rem 30rem at 82% -12%, var(--brand-soft), transparent 65%),
    radial-gradient(40rem 26rem at -10% 30%, var(--brand-softer), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}

.hero-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.375rem, 1.6rem + 3.9vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero .accent {
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-2);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 34px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* --------------------------- Mockup dashboard ----------------------------- */
.mockup-wrap {
  margin-top: 72px;
  perspective: 1600px;
}

.browser-frame {
  max-width: 960px;
  margin-inline: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot-r { background: #f0655a; }
.dot-y { background: #f0b933; }
.dot-g { background: #55ba55; }

.browser-url {
  margin-inline: auto;
  padding: 3px 18px;
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 420px;
  font-size: 0.8125rem;
  text-align: left;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--brand-deep);
  color: oklch(0.88 0.02 255);
  padding: 16px 10px;
}
@supports not (color: oklch(0.5 0.1 255)) {
  .app-sidebar { color: #ccd6ee; }
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 16px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.app-sidebar-brand svg { width: 22px; height: 22px; }

.app-nav { display: grid; gap: 2px; }

.app-nav li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.app-nav li.active {
  background: oklch(1 0 0 / 0.13);
  color: #fff;
  font-weight: 650;
}
@supports not (color: oklch(0.5 0.1 255)) {
  .app-nav li.active { background: rgba(255, 255, 255, 0.13); }
}

.app-nav-ic {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 4px;
  border: 1.6px solid currentColor;
  opacity: 0.7;
}
.app-nav li.active .app-nav-ic { opacity: 1; }

.app-sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 4px;
  border-top: 1px solid oklch(1 0 0 / 0.12);
  font-size: 0.6875rem;
}
@supports not (color: oklch(0.5 0.1 255)) {
  .app-sidebar-foot { border-top-color: rgba(255, 255, 255, 0.12); }
}

.app-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
}

.app-main {
  background: var(--bg-alt);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }

.app-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
}

.app-search kbd {
  padding: 1px 6px;
  font-size: 0.625rem;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-alt);
  color: var(--text-2);
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  min-width: 0;
}

.kpi-label {
  font-size: 0.6875rem;
  color: var(--text-3);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi-delta { font-size: 0.6875rem; font-weight: 600; }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.warn { color: var(--warn); }

.app-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.app-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
}

.app-panel-link { color: var(--brand); font-size: 0.75rem; font-weight: 600; }

.access-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
}
.access-list li + li { border-top: 1px solid var(--border); }

.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.status-dot.err { background: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }

.acc-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.625rem;
  font-weight: 700;
}

.acc-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-time { margin-left: auto; color: var(--text-3); font-size: 0.75rem; flex: none; }

.chip {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.6563rem;
  font-weight: 650;
  white-space: nowrap;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-err { background: var(--err-bg); color: var(--err); }

/* --------------------------- Strip fiducia -------------------------------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 44px;
}

.trust-item { display: grid; gap: 2px; text-align: center; }

.trust-value {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.trust-label { color: var(--text-2); font-size: 0.9375rem; }

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

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius-m);
  background: var(--brand-soft);
  color: var(--brand);
}
.feature-icon svg { width: 23px; height: 23px; }

.feature-card h3 {
  font-size: 1.0938rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p { color: var(--text-2); font-size: 0.9375rem; }

/* ---------------------------- Focus check-in ------------------------------ */
.checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.checkin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

.checkin-band {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  color: #fff;
}
.checkin-band svg { width: 28px; height: 28px; }

.checkin-ok .checkin-band { background: var(--ok); }
.checkin-warn .checkin-band { background: var(--warn); }
.checkin-err .checkin-band { background: var(--err); }

.checkin-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 14px;
  padding: 20px 22px;
}

.checkin-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 750;
  font-size: 1rem;
  grid-row: span 1;
}
.checkin-ok .checkin-ava { background: var(--ok-bg); color: var(--ok); }
.checkin-warn .checkin-ava { background: var(--warn-bg); color: var(--warn); }
.checkin-err .checkin-ava { background: var(--err-bg); color: var(--err); }

.checkin-info { display: grid; gap: 1px; min-width: 0; }
.checkin-info strong { font-size: 1.0625rem; letter-spacing: -0.01em; }
.checkin-info span { color: var(--text-3); font-size: 0.8125rem; }

.checkin-msg,
.checkin-alerts {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--text-2);
}

.checkin-msg {
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
}

.checkin-alerts { display: grid; gap: 6px; }

.checkin-alerts li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.8438rem;
}
.checkin-alerts li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.checkin-warn .checkin-alerts li { background: var(--warn-bg); color: var(--warn); }
.checkin-err .checkin-alerts li { background: var(--err-bg); color: var(--err); }

.checkin-caption {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-2);
}
.checkin-caption strong { color: var(--text); }

/* -------------------------- App per gli iscritti -------------------------- */
.appmob {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.appmob-copy h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-bottom: 16px;
}

.appmob-copy .section-sub { margin-bottom: 30px; }

.appmob-list {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.appmob-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.appmob-list li strong { color: var(--text); font-weight: 650; }

.appmob-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.appmob-check svg { width: 11px; height: 11px; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 8px 22px;
  border-radius: 12px;
  background: var(--brand-deep);
  color: #fff;
  line-height: 1.25;
  box-shadow: var(--shadow-s);
}

.store-badge small {
  font-size: 0.6563rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge strong {
  font-size: 1.0313rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Mockup smartphone */
.phone-frame {
  width: min(300px, 100%);
  margin-inline: auto;
  padding: 10px;
  border-radius: 44px;
  background: var(--brand-deep);
  box-shadow: var(--shadow-l);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border-radius: 34px;
  background: var(--bg-alt);
  overflow: hidden;
  font-size: 0.8125rem;
  text-align: left;
}

.phone-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
}

.phone-time { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.01em; }

.phone-notch {
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 76px;
  height: 17px;
  border-radius: 99px;
  background: var(--brand-deep);
}

.phone-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 11px;
}
.phone-signal i { width: 3px; border-radius: 1.5px; background: var(--text); }
.phone-signal i:nth-child(1) { height: 4px; }
.phone-signal i:nth-child(2) { height: 6px; }
.phone-signal i:nth-child(3) { height: 8px; }
.phone-signal i:nth-child(4) { height: 11px; }

.phone-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px 2px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-m);
}

.phone-toast-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--ok-bg);
  color: var(--ok);
}
.phone-toast-ic svg { width: 13px; height: 13px; }

.phone-toast-txt {
  display: grid;
  font-size: 0.6875rem;
  color: var(--text-3);
  min-width: 0;
}
.phone-toast-txt strong { font-size: 0.75rem; color: var(--text); letter-spacing: -0.01em; }

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 6px;
}

.phone-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.6875rem;
  font-weight: 700;
}

.phone-hello { display: grid; line-height: 1.25; min-width: 0; }
.phone-hello strong { font-size: 0.9063rem; letter-spacing: -0.01em; }
.phone-hello small { font-size: 0.6875rem; color: var(--text-3); }

.phone-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.phone-bell svg { width: 15px; height: 15px; }
.phone-bell::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--err);
  border: 1.5px solid var(--surface);
}

.phone-cards {
  display: grid;
  gap: 10px;
  padding: 8px 12px 14px;
}

.phone-card {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
}

.phone-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-card-label {
  font-size: 0.6563rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.phone-card-title { font-size: 0.9688rem; font-weight: 700; letter-spacing: -0.01em; }

.phone-card-meta { font-size: 0.6875rem; color: var(--text-3); }

.phone-meter {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: var(--brand-soft);
  overflow: hidden;
}
.phone-meter i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
}

.phone-now {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-now-copy { display: grid; gap: 2px; min-width: 0; }

.phone-now-value {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.phone-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  margin-left: auto;
  flex: none;
}
.phone-bars i { width: 8px; border-radius: 3px; background: var(--brand-soft); }
.phone-bars i:nth-child(1) { height: 30%; }
.phone-bars i:nth-child(2) { height: 48%; }
.phone-bars i:nth-child(3) { height: 38%; }
.phone-bars i:nth-child(4) { height: 72%; }
.phone-bars i:nth-child(5) { height: 100%; }
.phone-bars i:nth-child(6) { height: 60%; }
.phone-bars i.on { background: var(--brand); }

.phone-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: auto;
  padding: 9px 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.phone-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 0.5938rem;
  font-weight: 600;
  color: var(--text-3);
}
.phone-tab svg { width: 17px; height: 17px; }
.phone-tab.active { color: var(--brand); font-weight: 700; }

/* ----------------------------- Come funziona ------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--inverse);
  font-weight: 750;
  font-size: 1.0625rem;
  box-shadow: 0 0 0 6px var(--brand-soft);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step p { color: var(--text-2); font-size: 0.9375rem; }

/* ------------------------------ White-label ------------------------------- */
.section-brandband {
  background:
    radial-gradient(46rem 26rem at 88% 115%, oklch(0.45 0.16 255 / 0.55), transparent 65%),
    radial-gradient(38rem 22rem at 0% -20%, oklch(0.45 0.15 255 / 0.4), transparent 60%),
    var(--brand-deep);
  color: #fff;
}
@supports not (color: oklch(0.5 0.1 255)) {
  .section-brandband {
    background:
      radial-gradient(46rem 26rem at 88% 115%, rgba(42, 84, 180, 0.55), transparent 65%),
      radial-gradient(38rem 22rem at 0% -20%, rgba(42, 84, 180, 0.4), transparent 60%),
      #14275c;
  }
}

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

.whitelabel-copy h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin-bottom: 16px;
}

.whitelabel-copy p {
  font-size: 1.0625rem;
  color: oklch(0.86 0.03 255);
}
@supports not (color: oklch(0.5 0.1 255)) {
  .whitelabel-copy p { color: #c3d0ec; }
}

.wl-app {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  color: var(--text);
}

.wl-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.wl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-m);
  background: var(--brand-soft);
  color: var(--brand);
  outline: 2px dashed var(--brand);
  outline-offset: 3px;
}
.wl-logo svg { width: 21px; height: 21px; }

.wl-name { font-weight: 750; font-size: 1.0625rem; letter-spacing: -0.01em; }

.wl-badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.wl-rows { display: grid; gap: 12px; padding: 24px 20px 28px; }

.wl-row {
  height: 13px;
  border-radius: 99px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.wl-row.w90 { width: 90%; }
.wl-row.w70 { width: 70%; }
.wl-row.w55 { width: 55%; }

/* --------------------------------- FAQ ------------------------------------ */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) { border-color: var(--brand-ring); }

.faq-heading { font-size: 1rem; font-weight: 600; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.faq-question:hover { color: var(--brand); }

.faq-chevron {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-3);
  transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--text-2); font-size: 0.9375rem; max-width: 62ch; }

/* ------------------------------ CTA finale -------------------------------- */
.section-cta {
  background:
    radial-gradient(44rem 26rem at 50% -30%, var(--brand-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.cta-final { text-align: center; }

.cta-final h2 {
  font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.625rem);
  letter-spacing: -0.025em;
  font-weight: 780;
  line-height: 1.12;
  margin-bottom: 16px;
  text-wrap: balance;
}

.cta-final > p {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: 40px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.cta-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.cta-contacts svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.cta-contacts a { font-weight: 600; }

/* -------------------------------- Footer ---------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}
.footer-brand .brand-logo { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 1.125rem; }

.footer-legal,
.footer-links {
  font-size: 0.875rem;
  color: var(--text-3);
}

.footer-links { display: inline-flex; gap: 10px; align-items: center; }
.footer-links a { color: var(--text-2); font-weight: 550; }
.footer-links a:hover { color: var(--brand); }

/* --------------------------- Reveal on scroll ----------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.no-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 960px) {
  .section { padding-block: 80px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .checkin-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }

  .whitelabel { grid-template-columns: 1fr; gap: 40px; }
  .appmob { grid-template-columns: 1fr; gap: 48px; }

  .app-kpis { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 168px 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-m);
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-links > a:not(.btn) {
    padding: 12px 6px;
    font-size: 1.0625rem;
    border-radius: var(--radius-s);
  }

  .btn-nav { margin: 10px 0 0; justify-content: center; padding: 13px 20px; }

  .hero { padding-block: 64px 76px; }
  .mockup-wrap { margin-top: 52px; }

  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .app-kpis { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .acc-time { display: none; }
  .phone-frame { width: min(280px, 100%); }
  .phone-screen { min-height: 520px; }
  .store-badge { flex: 1 1 calc(50% - 6px); align-items: center; }
}
