/* Stili condivisi della landing pubblica (index, pagine dei moduli, contatti). */
:root {
  --primary: #2b49f5;
  --primary-hover: #2843e1;
  --primary-pressed: #243dcb;
  --ink: #15171c;
  --text: #1e293b;
  --muted: #64748b;
  --border: #eae8e5;
  --surface: #ffffff;
  --subtle: #f9f8f7;
  --radius: 16px;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Helvetica", "Arial", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 112px 0; }
.alt { background: var(--subtle); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: 0; margin-bottom: 16px; }
.h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; max-width: 16ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin-top: 20px; }
.center { text-align: center; }
.center .h2, .center .lead { margin-left: auto; margin-right: auto; }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-pressed); }
.btn-ghost { background: #fff; border-color: #e0e0e0; color: var(--ink); }
.btn-ghost:hover { background: #f4f3f3; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .tab:focus-visible, .hero-agent:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) { .nav-links { gap: 18px; font-size: 14px; } }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-login:hover { background: #f4f3f3; }

/* hero */
.hero { padding: 96px 0 72px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 28px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); background: #fff;
}
.pill b { background: #def2d9; color: #388038; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.pill:hover { background: var(--subtle); }
.hero h1 { font-size: min(10.2vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--primary); display: inline-block; }
/* parola a rotazione nel titolo: esce verso l'alto, la successiva entra dal basso */
.hero h1 em.word-out { animation: wordOut .12s ease-in both; }
.hero h1 em.word-in { animation: wordIn .18s ease-out both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-.18em); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.18em); } }
.hero .lead { margin: 28px auto 0; max-width: 64ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-team { display: flex; justify-content: center; align-items: flex-end; margin-top: 72px; }
/* team: avatar vicini e sovrapposti; quello sotto il puntatore sale in primo piano e mostra il nome */
#heroTeam { --size: clamp(66px, 22vw, 144px); --overlap: clamp(20px, 6.4vw, 44px); --ring: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff); padding-bottom: 44px; }
.hero-agent {
  --k: 1; position: relative; z-index: 3; width: calc(var(--size) * var(--k)); margin-left: calc(-1 * var(--overlap) * var(--k));
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer; border-radius: 50%;
}
.hero-agent:first-child { margin-left: 0; }
/* scaletta: grandi al centro, più piccoli verso l'esterno; quelli al centro stanno davanti */
.hero-agent:nth-child(2), .hero-agent:nth-child(5) { --k: .84; z-index: 2; }
.hero-agent:nth-child(1), .hero-agent:nth-child(6) { --k: .68; z-index: 1; }
.hero-agent .av {
  width: 100%; aspect-ratio: 1;
  /* bordo bianco attorno alla sagoma, per staccarla da quella accanto */
  filter: var(--ring);
  transition: transform .25s cubic-bezier(.3,1.4,.5,1), filter .2s ease;
}
.hero-agent span {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, -4px);
  padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
#heroTeam .hero-agent:hover, #heroTeam .hero-agent:focus-visible { z-index: 5; }
.hero-agent:hover .av, .hero-agent:focus-visible .av { transform: translateY(-10px) scale(1.14); }
.hero-agent:hover span, .hero-agent:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
#heroTeam:hover .hero-agent:not(:hover) .av { filter: var(--ring) saturate(.5) brightness(1.18); }
/* l'SVG viene riscritto a ogni frame: senza questo il click parte su un nodo già sostituito e si perde */
.av { pointer-events: none; }
.av svg { width: 100%; height: 100%; overflow: visible; }

/* demo: copia dell'interfaccia app (components/appbarnew/sidebar.tsx + pages/agent/Agent.tsx) */
.demo { padding: 0 0 112px; }
.app {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 660px; text-align: left;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(20,20,30,.04), 0 24px 60px -24px rgba(20,20,30,.18);
  font-size: 14px; line-height: 20px; letter-spacing: normal; color: #000;
}
.sb { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fdfdfd; border-right: 1px solid #f0efed; }
.sb-top { padding: 8px; flex: none; }
.sb-ws { display: flex; align-items: center; gap: 8px; padding: 8px; height: 40px; border-radius: 8px; }
.sb-ws img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; flex: none; }
.sb-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: #e5e5e5 transparent; }
.sb-title { padding: 8px; font-size: 12px; font-weight: 500; line-height: 20px; color: #646464; }
.sb-list { display: flex; flex-direction: column; gap: 4px; }
.sb-agent, .sb-entry {
  display: flex; align-items: center; gap: 8px; padding: 8px; width: 100%; border: 0; background: none;
  font: inherit; color: #000; text-align: left; white-space: nowrap; min-width: 0;
}
.sb-agent { border-radius: 8px; font-weight: 500; cursor: pointer; }
.sb-entry { border-radius: 6px; }
.sb-agent:hover, .sb-entry:hover, .sb-ws:hover, .sb-agent[aria-selected="true"] { background: #efefef; }
.sb-agent:active { background: #e5e5e5; }
.sb-agent .av { width: 22px; height: 22px; flex: none; }
.sb-agent span, .sb-entry .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-entry svg, .sb-help svg { width: 20px; height: 20px; color: #667083; flex: none; }
.sb-entry .n { font-size: 12px; color: #64748b; }
.sb-chip { padding: 0 6px; height: 20px; display: flex; align-items: center; border-radius: 10px; font-size: 11px; font-weight: 700; background: #5c00a324; color: #553b69; }
.sb-bottom { display: flex; align-items: center; gap: 4px; padding: 8px; flex: none; }
.sb-help { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.ag { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.ag-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; flex: none; }
.ag-head .av { width: 28px; height: 28px; flex: none; }
.ag-name { flex: 1; font-size: 15px; color: #111; }
.ag-info { display: flex; }
.ag-info svg { width: 18px; height: 18px; color: #6b7280; }
.ag-body { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.ag-time { text-align: center; font-size: 13px; color: #64748b; margin: 8px 0; flex: none; }
.bub { padding: 10px 14px; max-width: 70%; font-size: 14px; line-height: 1.5; border-radius: 18px; flex: none; overflow-wrap: anywhere; }
.bub.agent { align-self: flex-start; background: #eee; color: #111; border-bottom-left-radius: 4px; }
.bub.user { align-self: flex-end; background: #1a1a1a; color: #fff; border-bottom-right-radius: 4px; }
.bub p { margin: 0 0 8px; }
.bub ul, .bub ol { margin: 0 0 8px; padding-left: 20px; }
.bub li { margin-bottom: 2px; }
.bub > :last-child { margin-bottom: 0; }
.bub table { border-collapse: collapse; margin: 0 0 8px; }
.bub th, .bub td { border: 1px solid rgba(0,0,0,.15); padding: 4px 8px; text-align: left; }
.bub table { overflow-wrap: normal; }
.bub th, .bub td:not(:first-child) { white-space: nowrap; }
.bub.progress { display: flex; flex-direction: column; gap: 4px; }
.bub.progress div { transition: opacity .2s ease; }
.bub.progress span { color: #64748b; }
.ag-busy { display: flex; align-items: flex-end; flex: none; }
.ag-busy .av { width: 44px; height: 44px; }
.ag-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex: none; }
.ag-clip, .ag-send { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ag-clip svg, .ag-send svg { width: 18px; height: 18px; }
.ag-clip { color: #6b7280; }
.ag-send { background: #1a1a1a; color: #fff; }
.ag-pill { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; background: #f3f4f6; color: #9ca3af; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.ag-menu, .ag-clip .plus { display: none; }
.app { position: relative; }
.app:not(.is-mobile) > .ag { grid-area: 1 / 2; }
.sb-entry { transition: background-color .2s ease; }
.sb-entry.on { background: #efefef; }
/* nel mockup desktop la sidebar non scorre: le voci in fondo sfumano come nell'app quando c'è altro sotto (maskImage di sidebar.tsx) */
.app:not(.is-mobile) .sb-scroll {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent 100%);
}
.sb-agent .av { transition: opacity .2s ease; }

/* demo: gli avatar dell'hero volano nella sidebar, poi a turno lavorano nelle pagine simulate della piattaforma */
.hero-agent { transform-origin: 50% 55.2%; will-change: transform; }

.actor { position: absolute; left: 0; top: 0; z-index: 6; width: 44px; height: 44px; pointer-events: none; opacity: 0; transition: transform .75s cubic-bezier(.55,0,.2,1), opacity .25s ease; }
.actor.on { opacity: 1; }
.actor.jump { transition: opacity .25s ease; }
.actor .av { width: 44px; height: 44px; filter: drop-shadow(0 6px 10px rgba(20,20,30,.28)); }
.actor-tip { position: absolute; left: 48px; top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.actor.talk .actor-tip { opacity: 1; transform: none; }
.actor.flip .actor-tip { left: auto; right: 8px; top: 48px; }
.actor.flip.up .actor-tip { top: -30px; }

/* pagine simulate della piattaforma (ModuleLayout: titolo + azione, tab, contenuto) */
.pv { grid-area: 1 / 2; display: none; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; padding: 24px 32px; overflow: hidden; position: relative; background: #fff; color: #2e2d2a; }
.app.on-page > .ag { display: none; }
.app.on-page > .pv { display: flex; }
.pv.in > * { animation: fadeUp .35s ease both; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; color: #000; }
.pv-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .25s ease; }
.pv-btn.ghost { background: #fff; color: #2e2d2a; box-shadow: inset 0 0 0 1px rgba(42,28,0,.14); }
.pv-btn.done { background: #34C77B; }
.pv-tabs { display: flex; gap: 22px; margin-top: -4px; border-bottom: 1px solid rgba(42,28,0,.07); font-weight: 500; color: rgba(44,44,43,.6); }
.pv-tabs span { padding-bottom: 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pv-tabs .on { color: #000; border-color: #000; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-kpis > div { padding: 12px 14px; border: 1px solid rgba(42,28,0,.08); border-radius: 12px; }
.pv-kpis small { display: block; font-size: 12px; color: rgba(44,44,43,.6); }
.pv-kpis b { font-size: 20px; font-weight: 700; line-height: 1.4; color: #000; }
.pv-row { display: grid; grid-template-columns: var(--cols); gap: 12px; align-items: center; min-height: 52px; padding: 6px 10px; margin: 0 -10px; border-bottom: 1px solid rgba(42,28,0,.07); border-radius: 8px; transition: background-color .4s ease; }
.pv-row > span { min-width: 0; }
.pv-row b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-row small { display: block; font-size: 12px; color: rgba(44,44,43,.6); }
.pv-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.pv-th { min-height: 0; padding-block: 8px; border-radius: 0; font-size: 12px; font-weight: 500; color: rgba(44,44,43,.6); }
.pv-row.hl { background: #fff6e0; }
.pv-row.new { animation: rowIn .5s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } }
.pv .chip { display: inline-block; }
.chip.pop { animation: chipPop .4s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes chipPop { from { opacity: 0; transform: scale(.6); } }
.pv-level { display: block; height: 6px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; }
.pv-level i { display: block; height: 100%; border-radius: inherit; background: #34C77B; transition: background-color .4s ease; }
.pv-level.low i { background: #EE4145; }
.pv-week { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); border: 1px solid rgba(42,28,0,.08); border-radius: 12px; overflow: hidden; }
.pv-week > * { border-left: 1px solid rgba(42,28,0,.06); border-top: 1px solid rgba(42,28,0,.06); }
.pv-week > :nth-child(8n + 1) { border-left: 0; }
.pv-week > :nth-child(-n + 8) { border-top: 0; }
.pv-day { padding: 8px 0; text-align: center; font-size: 12px; font-weight: 600; }
.pv-slot { display: grid; place-items: center; font-size: 12px; color: rgba(44,44,43,.6); }
.pv-cell { display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 6px; transition: background-color .4s ease; }
.pv-cell.warn { background: #fdecec; }
.pv-cell i { padding: 4px 6px; border-left: 3px solid; border-radius: 5px; font-style: normal; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.pv-cell i.new { animation: chipPop .45s cubic-bezier(.3,1.5,.5,1) both; }
.pv-card { position: absolute; right: 24px; bottom: 24px; z-index: 2; width: 340px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 44px -18px rgba(20,20,30,.4); font-size: 13px; animation: fadeUp .35s ease both; }
.pv-card h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: #000; }
.pv-card .av, .pv-toast .av { display: block; width: 22px; height: 22px; flex: none; }
.pv-card.gone { animation: cardOut .3s ease both; }
@keyframes cardOut { to { opacity: 0; transform: translateY(8px); } }
.pv-card ul { margin: 10px 0 14px; padding-left: 18px; color: #3d4654; }
.pv-acts { display: flex; justify-content: flex-end; gap: 8px; }
.pv-toast { position: absolute; left: 50%; bottom: 24px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 12px; background: #1a1a1a; color: #fff; font-size: 13px; white-space: nowrap; transform: translateX(-50%); animation: toastIn .35s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.tap { animation: tap .5s ease; }
@keyframes tap { from { box-shadow: 0 0 0 0 rgba(43,73,245,.45); } to { box-shadow: 0 0 0 10px rgba(43,73,245,0); } }

/* versione mobile dell'app (ramo isMobile di Agent.tsx + MobileTopBar + drawer): sotto 900px e sempre dentro il telefono */
.app.is-mobile { position: relative; grid-template-columns: minmax(0, 1fr); height: 640px; }
/* Menu mobile come in VerticalNavBar.tsx / AppSidebar.tsx: sidebar a tutto schermo sotto la pagina; aprendo il menu la pagina
   scivola via a destra, scegliendo una voce rientra da destra (300ms, easeInOut di MUI). */
.app.is-mobile .sb { position: absolute; inset: 0; width: 100%; z-index: 0; border-right: 0; visibility: hidden; transition: visibility 0s linear 300ms; }
.app.is-mobile.menu-open .sb { visibility: visible; transition-delay: 0s; }
.app.is-mobile .ag { position: relative; z-index: 1; transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -8px 0 24px rgba(0,0,0,.08); }
.app.is-mobile.menu-open .ag { transform: translateX(100%); box-shadow: none; }
.app.is-mobile .ag-head { gap: 8px; padding: 0 8px; }
.app.is-mobile .ag-menu { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #111; cursor: pointer; flex: none; padding: 0; }
.app.is-mobile .ag-menu svg { width: 22px; height: 22px; }
.app.is-mobile .ag-head .av { width: 32px; height: 32px; }
.app.is-mobile .ag-name { font-size: 16px; font-weight: 600; line-height: 1.3; color: #000; }
.app.is-mobile .ag-info { width: 40px; height: 40px; display: grid; place-items: center; }
.app.is-mobile .ag-info svg { width: 20px; height: 20px; color: #111; }
.app.is-mobile .bub { max-width: 85%; }
.app.is-mobile .ag-clip { width: 48px; height: 48px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); color: #111; }
.app.is-mobile .ag-clip .clip { display: none; }
.app.is-mobile .ag-clip .plus { display: block; width: 22px; height: 22px; }
.app.is-mobile .ag-pill { height: 48px; border-radius: 24px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.10); font-size: 16px; }
.note { font-size: 12px; color: #94a3b8; margin-top: 14px; text-align: center; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 14px; }
.row + .row { border-top: 1px solid var(--border); }
.row b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.chip.red { background: #f5d9d9; color: #a63333; }
.chip.yellow { background: #f7f2c7; color: #8c7a1a; }
.chip.green { background: #def2d9; color: #388038; }
.chip.blue { background: #d9e8f5; color: #2e6194; }
.chip.gray { background: #ededed; color: #595959; }
.fade-in { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }


/* bento agenti */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.card { border-radius: var(--radius); padding: 28px; background: var(--tint); display: flex; flex-direction: column; min-height: 340px; cursor: pointer; }
.card:hover { box-shadow: 0 18px 40px -24px rgba(20,20,30,.35); }
.card:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card-open { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.card .av { width: 84px; height: 84px; margin-bottom: 20px; }
.card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.card p { font-size: 15px; color: #3d4654; margin-top: 8px; }
/* palco della card: domanda -> l'agente pensa -> risposta che si disegna, poi la domanda successiva */
.stage { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; height: 236px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.stage-q { align-self: flex-end; max-width: 92%; background: #1a1a1a; color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.stage-a { align-self: stretch; background: rgba(255,255,255,.82); border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.stage-dots { align-self: flex-start; display: flex; gap: 4px; background: rgba(255,255,255,.82); border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.stage-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: dot 1s ease-in-out infinite; }
.stage-dots i:nth-child(2) { animation-delay: .15s; }
.stage-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.a-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; animation: fadeUp .35s ease both; }
.a-row + .a-row { border-top: 1px solid rgba(0,0,0,.07); }
.a-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row b { font-weight: 600; white-space: nowrap; }
.a-row em { font-style: normal; color: #64748b; white-space: nowrap; }
.a-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 4px 0; animation: fadeUp .35s ease both; }
.a-bar b { font-weight: 600; white-space: nowrap; }
.a-bar .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; }
.a-bar .fill { height: 100%; width: 0; border-radius: 3px; background: var(--c); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.a-kpi b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-kpi span { display: block; margin-top: 4px; color: #3d4654; }
.a-kpi em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.06); }
.a-text { animation: fadeUp .35s ease both; }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.stat { border-top: 2px solid var(--ink); padding-top: 20px; }
.stat b { display: block; font-size: clamp(56px, 9vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 17px; }

/* funzioni */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .f-text { order: 2; }
.f-text h3 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
.f-text p:not(.eyebrow) { color: var(--muted); margin-top: 16px; max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex: none; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }
.mock { border: 1px solid var(--border); border-radius: 20px; background: var(--subtle); padding: 24px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi small { display: block; font-size: 12px; color: #7a7872; font-weight: 500; }
.kpi b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; }
.up { color: #388038; } .down { color: #a63333; }
.chart { margin-top: 12px; padding: 16px; }
.chart small { font-size: 12px; color: #7a7872; font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: #dfe4fe; }
.bars i.on { background: var(--primary); }
.days { display: flex; gap: 8px; margin-top: 6px; font-size: 11px; color: #94a3b8; }
.days span { flex: 1; text-align: center; }
.table .row { font-size: 13px; padding: 11px 14px; }
.table .row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .head { font-size: 12px; font-weight: 500; color: #7a7872; }

/* moduli: tre card affiancate. In alto etichetta, titolo e freccia; sotto l'anteprima su foglio bianco che esce dal bordo inferiore */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.mod { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 20px; padding: 24px 28px 0; background: #fff; border-radius: 20px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s ease; }
.mod:hover { box-shadow: 0 18px 40px -24px rgba(20,20,30,.35); }
.mod:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.mod-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; align-content: start; }
.mod-head small { grid-column: 1 / -1; font-size: 15px; font-weight: 500; color: var(--text); }
.mod-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.mod-go { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); transition: transform .2s ease; }
.mod-go::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.mod:hover .mod-go { transform: translateX(3px); }
.mod-shot { height: 240px; padding: 14px 16px 0; background: #fff; border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 10px 30px -18px rgba(20,20,30,.35); overflow: hidden; color: #2c2c2b; }
/* replica in piccolo delle pagine dell'app (components/layout/ModuleLayout.tsx: titolo, tab, azione; poi la tabella della pagina) */
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-head b { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; color: #000; white-space: nowrap; }
.ap-head b span { margin-right: 5px; font-weight: 500; color: #a8a5a0; }
.ap-head i { flex: none; padding: 5px 9px; border-radius: 7px; background: var(--primary); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ap-tabs { display: flex; gap: 14px; margin-top: 10px; border-bottom: 1px solid rgba(42,28,0,.07); font-size: 11.5px; font-weight: 500; color: rgba(44,44,43,.6); }
.ap-tabs span { padding-bottom: 7px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ap-tabs .on { color: #000; border-color: #000; }
.ap-table { margin-top: 6px; }
.ap-head + .ap-table { margin-top: 12px; border-top: 1px solid rgba(42,28,0,.07); }
.ap-row { display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center; min-height: 40px; padding: 5px 0; border-bottom: 1px solid rgba(42,28,0,.07); font-size: 11.5px; line-height: 1.3; }
.ap-row > span, .ap-row > b { min-width: 0; }
.ap-row em { display: block; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-row small { display: block; font-size: 10px; color: rgba(44,44,43,.6); }
.ap-row b { font-weight: 600; white-space: nowrap; }
.ap-row .r { text-align: right; }
.ap-row .low { color: #a63333; }
.ap-row .chip { font-size: 10px; padding: 2px 6px; }
.ap-th { min-height: 0; padding: 7px 0; font-size: 10px; font-weight: 500; color: rgba(44,44,43,.6); }
.ap-bar { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; }
.ap-bar b { font-weight: 700; }
.ap-bar .ap-nav { color: rgba(44,44,43,.6); font-size: 14px; line-height: 1; }
.ap-bar i { margin-left: auto; padding: 4px 8px; border: 1px solid rgba(42,28,0,.12); border-radius: 7px; font-style: normal; font-size: 10.5px; font-weight: 500; }
.ap-cal { margin-top: 8px; border: 1px solid rgba(42,28,0,.07); border-radius: 8px; overflow: hidden; }
.ap-days { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid rgba(42,28,0,.07); text-align: center; font-size: 9.5px; color: rgba(44,44,43,.6); }
.ap-days span { padding: 4px 0; }
.ap-days b { display: block; font-size: 11.5px; font-weight: 600; color: #2c2c2b; }
.ap-days .on b { color: var(--primary); }
.ap-grid { display: grid; grid-template-columns: repeat(7, 1fr); height: 200px; background: repeating-linear-gradient(to bottom, transparent 0 calc(100% / 7 - 1px), rgba(42,28,0,.06) calc(100% / 7 - 1px) calc(100% / 7)); }
.ap-grid > div { position: relative; border-left: 1px solid rgba(42,28,0,.06); }
.ap-grid > div:first-child { border-left: 0; }
.ap-grid i { position: absolute; left: 2px; right: 2px; padding: 3px 3px 0; border-radius: 4px; border-left: 2px solid; font-style: normal; font-size: 8.5px; font-weight: 600; line-height: 1.1; overflow: hidden; }
.ev-c { background: #fdeadd; border-color: #EC7032; color: #9a4313; }
.ev-s { background: #dfe9fd; border-color: #3B82F6; color: #1f4fa3; }
.ev-b { background: #def2e6; border-color: #34C77B; color: #1c7044; }
@media (max-width: 1040px) {
  .mods { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
}

/* app mobile: telefono a risoluzione iPhone (393x852 punti) con dentro l'app vera in versione mobile, ridotto con zoom se non ci sta */
.phone-fit { min-width: 0; }
.phone { width: 413px; margin: 0 auto; border-radius: 62px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -30px rgba(20,20,30,.4); }
.screen { position: relative; width: 393px; height: 852px; border-radius: 52px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ios-status { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 36px 0; font-size: 16px; font-weight: 600; color: #000; letter-spacing: normal; }
.ios-status::before { content: ""; position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ios-status i { width: 25px; height: 12px; border: 1.5px solid #000; border-radius: 4px; position: relative; opacity: .9; }
.ios-status i::after { content: ""; position: absolute; inset: 1.5px; border-radius: 1.5px; background: #000; }
.ios-home { height: 28px; flex: none; display: grid; place-items: center; }
.ios-home::after { content: ""; width: 138px; height: 5px; border-radius: 3px; background: #111; }
.screen .app.is-mobile { flex: 1; min-height: 0; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.store { display: block; border-radius: 8px; transition: opacity .15s; }
.store:hover { opacity: .82; }
.store img { height: 48px; width: auto; }

/* step */
/* step: tre blocchi distinti, numero + titolo + testo da un lato e una piccola rappresentazione dall'altro */
.steps { display: grid; margin-top: 28px; overflow: hidden; }
/* uno step alla volta: sono sovrapposti nella stessa cella, così l'altezza non cambia al cambio */
.steps > .step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.steps > .feature.step { margin-top: 0; }
#come-si-parte { padding: 88px 0; }
.steps > .step.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.steps > .step.was { transform: translateX(-40px); }
.steps-nav { display: flex; gap: 8px; margin-top: 28px; }
.steps-nav button { width: 56px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.steps-nav i { display: block; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.steps-nav b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ink); }
.steps-nav .on b { animation: stepFill 4s linear forwards; }
@keyframes stepFill { to { width: 100%; } }
@media (hover: hover) { .steps-nav:has(+ .steps:hover) .on b { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .steps > .step { transform: none; transition: none; }
  .steps-nav .on b { width: 100%; animation: none; }
  .step.on .talk > * { animation: none; }
}
.step .mock { display: flex; flex-direction: column; gap: 12px; }
.cal { padding: 18px; }
.cal b, .setup b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cal small, .setup small { font-size: 13px; color: #7a7872; }
/* tutte le integrazioni: tre colonne, tre righe e mezza visibili, il resto si scorre */
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 56px; gap: 8px; max-height: 212px; margin: 16px -8px 0 0; padding: 1px 8px 1px 1px; overflow-y: auto; overscroll-behavior: contain; }
.pos-grid::-webkit-scrollbar { width: 6px; }
.pos-grid::-webkit-scrollbar-track { background: var(--subtle); border-radius: 999px; }
.pos-grid::-webkit-scrollbar-thumb { background: #cfccc7; border-radius: 999px; }
@supports not selector(::-webkit-scrollbar) { .pos-grid { scrollbar-width: thin; scrollbar-color: #cfccc7 var(--subtle); } }
.pos-grid span { display: grid; place-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.pos-grid img { max-width: 100%; max-height: 34px; object-fit: contain; }
.pos-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; font-weight: 500; color: var(--ink); }
.pos-grid .on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: #f5f6ff; }
.setup { padding: 16px 18px; }
.setup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.talk { display: flex; flex-direction: column; gap: 12px; }
.talk small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--primary); }
/* i messaggi compaiono uno dopo l'altro quando lo step diventa visibile */
.step.on .talk > * { animation: fadeUp .35s ease both; }
.step.on .talk > :nth-child(2) { animation-delay: .35s; }
.step.on .talk > :nth-child(3) { animation-delay: .7s; }
.step.on .talk > :nth-child(4) { animation-delay: 1.05s; }
.step.on .talk > :nth-child(5) { animation-delay: 1.4s; }
.talk .bub { max-width: 82%; }
.talk-a { display: flex; align-items: flex-end; gap: 10px; }
.talk-a .av { width: 36px; height: 36px; flex: none; }
.talk-a .bub { flex: 1; min-width: 0; max-width: none; background: #fff; border: 1px solid var(--border); }
@media (max-width: 960px) {
  .steps { margin-top: 20px; }
  .steps > .step { align-content: start; }
  .steps-nav { margin-top: 20px; }
  .steps-nav button { flex: 1; width: auto; }
}

/* per chi è: si sceglie il tipo di attività e il riquadro cambia colore, testo e conversazione di esempio */
.who-box { margin-top: 56px; }
.who-tabs-wrap { position: relative; }
.who-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.who-more { display: none; }
.who-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; overflow: hidden; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease; }
.who-tab svg { width: 18px; height: 18px; flex: none; color: var(--c); transition: color .25s ease; }
.who-tab:hover { border-color: var(--c); }
.who-tab:active { transform: scale(.97); }
.who-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.who-tab.on { background: var(--c); border-color: var(--c); color: #fff; }
.who-tab.on svg { color: #fff; }
/* la barra sotto la voce attiva fa da timer del cambio automatico */
.who-tab.on.auto::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: rgba(255,255,255,.75); animation: stepFill 5s linear forwards; }
.who-box.paused .who-tab::after { animation-play-state: paused; }
@media (hover: hover) { .who-box:hover .who-tab::after { animation-play-state: paused; } }
.who-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; min-height: 400px; margin-top: 16px; padding: 48px; border-radius: 24px; background: var(--c); color: #fff; overflow: hidden; isolation: isolate; transition: background-color .5s ease; }
.who-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(0,0,0,.5), rgba(0,0,0,.12)); }
.who-big { position: absolute; left: -40px; bottom: -60px; z-index: -2; width: 300px; color: rgba(255,255,255,.14); }
.who-big svg { display: block; width: 100%; height: auto; stroke-width: 1; }
.who-big.in svg { animation: whoIcon .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes whoNudge { 50% { transform: translateX(3px); } }
@keyframes whoIcon { from { opacity: 0; transform: translateY(40px) rotate(-18deg) scale(.8); } }
.who-text h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.who-text p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.9); max-width: 44ch; }
.who-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.who-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 13px; font-weight: 600; }
.who-text.in > *, .who-text.in .who-chips li { animation: fadeUp .45s ease both; }
.who-text.in > p { animation-delay: .08s; }
.who-text.in .who-chips li:nth-child(1) { animation-delay: .18s; }
.who-text.in .who-chips li:nth-child(2) { animation-delay: .26s; }
.who-text.in .who-chips li:nth-child(3) { animation-delay: .34s; }
.who-text.in .who-chips li:nth-child(n+4) { animation-delay: .42s; }
.who-chat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 20px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 48px -28px rgba(0,0,0,.55); }
.who-chat .stage-dots { background: #eee; }
@media (max-width: 960px) {
  .who-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
  .who-big { left: auto; right: -30px; bottom: auto; top: -30px; width: 200px; }
}
@media (max-width: 640px) {
  .who-box { margin-top: 40px; }
  /* le voci scorrono in orizzontale: sfumatura ai bordi e freccia a destra finché ce ne sono altre da vedere */
  .who-tabs-wrap { margin: 0 -16px; }
  .who-tabs { --l0: 0px; --l1: 0px; --r0: 0px; --r1: 0px; flex-wrap: nowrap; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent var(--l0), #000 var(--l1), #000 calc(100% - var(--r1)), transparent calc(100% - var(--r0))); mask-image: linear-gradient(to right, transparent var(--l0), #000 var(--l1), #000 calc(100% - var(--r1)), transparent calc(100% - var(--r0))); }
  .who-tabs.more-l { --l0: 36px; --l1: 100px; }
  .who-tabs.more-r { --r0: 36px; --r1: 100px; }
  .who-tabs.more-l ~ .who-prev, .who-tabs.more-r ~ .who-next { display: grid; }
  .who-more { position: absolute; top: calc(50% - 2px); right: 10px; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; box-shadow: 0 6px 14px -6px rgba(20,20,30,.35); transform: translateY(-50%); cursor: pointer; }
  .who-prev { right: auto; left: 10px; }
  .who-prev::before { rotate: 180deg; }
  .who-more::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3l5 5-5 5' fill='none' stroke='%2315171c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: whoNudge 1.4s ease-in-out infinite; }
  .who-tabs::-webkit-scrollbar { display: none; }
  .who-stage { padding: 24px 20px 20px; border-radius: 20px; }
  .who-chat { min-height: 230px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .who-tab.on.auto::after, .who-big.in svg, .who-text.in > *, .who-text.in .who-chips li, .who-more::before { animation: none; }
  .who-stage { transition: none; }
}

/* confronto con gli altri gestionali: la colonna iammi è evidenziata */
.cmp { margin-top: 56px; border: 1px solid var(--border); border-radius: 20px; background: #fff; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.cmp-row + .cmp-row { border-top: 1px solid var(--border); }
.cmp-row > span { padding: 18px 24px; font-size: 15px; }
.cmp-k { font-weight: 600; color: var(--ink); }
.cmp-row > :nth-child(2) { background: #f5f6ff; box-shadow: inset 1px 0 0 #dfe4fe, inset -1px 0 0 #dfe4fe; }
.cmp-head > span { padding-top: 22px; padding-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--muted); align-self: end; }
.cmp-us { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cmp-us img { height: 18px; width: auto; }
.cmp-us b { padding: 3px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; }
.cmp-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cmp-yes, .cmp-no { display: flex; gap: 10px; align-items: flex-start; }
.cmp-yes { color: var(--ink); font-weight: 500; }
.cmp-no { color: var(--muted); }
.cmp-yes::before, .cmp-no::before { content: ""; width: 18px; height: 18px; margin-top: 2px; flex: none; border-radius: 50%; background: center / contain no-repeat; }
.cmp-yes::before { background-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cmp-no::before { background-color: #ededed; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6.2 6.2l5.6 5.6M11.8 6.2l-5.6 5.6' fill='none' stroke='%23898989' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
  /* su mobile ogni riga diventa una scheda: voce sopra, poi iammi e gli altri */
  .cmp-row { grid-template-columns: minmax(0, 1fr); }
  .cmp-row > span { padding: 10px 18px; }
  .cmp-row > .cmp-k { padding-top: 18px; }
  .cmp-row > :last-child { padding-bottom: 18px; }
  .cmp-row > :nth-child(2) { box-shadow: none; }
  .cmp-head { display: none; }
  .cmp-head + .cmp-row { border-top: 0; }
  .cmp-yes::after { content: "iammi"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--primary); }
  .cmp-no::after { content: "Altri"; margin-left: auto; font-size: 12px; font-weight: 600; color: #a3a09b; }
}

/* prezzi (valori da iammi.it) */
.pricing { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 56px; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.plan h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.plan-sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 24px; border: 1px solid var(--border); border-radius: 999px; background: var(--subtle); }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--border); }
.seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.price { margin-top: 28px; font-size: clamp(52px, 7vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.price-note { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.price-detail { margin-top: 2px; font-size: 15px; color: var(--muted); min-height: 1.55em; }
.plan .btn { margin-top: 28px; }
.plan-demo { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.plan-demo:hover { color: var(--ink); }
.plan.dark { background: var(--ink); border-color: var(--ink); }
.plan.dark h3 { color: #fff; }
.plan.dark .plan-sub, .plan.dark .plan-text { color: #aab1bd; }
.plan-big { margin-top: 28px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.plan-text { margin-top: 12px; font-size: 15px; }
.plan.dark .btn { margin-top: auto; background: #fff; color: var(--ink); }
.plan.dark .btn:hover { background: #ececec; }
.plan.dark .plan-text + .btn { margin-top: 28px; }

/* faq */
.faq { max-width: 760px; margin: 56px auto 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* cta finale */
.final { text-align: center; }
.final .box { background: var(--ink); border-radius: 28px; padding: 88px 24px; color: #fff; }
.final h2 { color: #fff; font-size: clamp(32px, 5vw, 60px); font-weight: 700; max-width: 18ch; margin: 0 auto; }
.final p { color: #aab1bd; margin: 20px auto 0; max-width: 48ch; }
.final .hero-team { margin: 0 auto 40px; gap: 12px; }
.final .hero-team .av { width: 56px; height: 56px; }
.final .btn { margin-top: 36px; }
.final .btn-primary { background: #fff; color: var(--ink); }
.final .btn-primary:hover { background: #ececec; }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; font-size: 14px; color: #aab1bd; }

/* footer */
footer { padding: 64px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot img { height: 22px; width: auto; margin-bottom: 16px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a:hover { color: var(--ink); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }

/* pagine secondarie (moduli, contatti) */
.page-hero { padding: 88px 0 56px; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero .hero-cta { justify-content: flex-start; }
.crumb { display: inline-flex; gap: 6px; margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.page-shot { padding: 0 0 112px; }
.page-shot .mod-shot { height: auto; max-width: 880px; margin: 0 auto; padding: 24px 24px 12px; border-bottom: 1px solid var(--border); border-radius: 18px; font-size: 13px; }
.page-shot .ap-row { font-size: 13px; min-height: 48px; }
.page-shot .ap-th { font-size: 11.5px; min-height: 0; }
.page-shot .ap-head b { font-size: 20px; }
.page-shot .ap-head i, .page-shot .ap-bar i { font-size: 12px; }
.page-shot .ap-tabs, .page-shot .ap-bar { font-size: 13px; }
.page-shot .ap-grid { height: 280px; }
.page-shot .ap-grid i { font-size: 10.5px; }
.page-shot .ap-days { font-size: 11px; }
.page-shot .ap-days b { font-size: 13px; }
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.ask { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 500; color: var(--ink); }
.ask::before { content: "“"; flex: none; font-size: 28px; line-height: .9; font-weight: 800; color: var(--primary); }
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.other { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 20px; background: #fff; transition: box-shadow .2s ease; }
.other:hover { box-shadow: 0 18px 40px -24px rgba(20,20,30,.35); }
.other small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.other b { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.other:hover .mod-go { transform: translateX(3px); }

/* contatti: form a sinistra, recapiti a destra */
.step-mock { display: flex; flex-direction: column; gap: 12px; }
.page-contact { padding-top: 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-form { padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.contact-form h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.contact-form > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.contact-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field.full, .contact-form .btn, .form-privacy { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #dcd9d5; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a3a09b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,73,245,.15); }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }
.form-privacy { font-size: 13px; color: var(--muted); }
.form-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.form-status.ok { background: #def2d9; color: #2c6a2c; }
.form-status.err { background: #f5d9d9; color: #a63333; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card { padding: 24px 28px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.contact-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.contact-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.contact-card .link { display: inline-flex; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--primary); }
.contact-card .link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .contact, .asks, .others { grid-template-columns: minmax(0, 1fr); }
  .page-shot { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 48px 0 40px; }
  .page-shot { padding-bottom: 64px; }
  .page-shot .mod-shot { padding: 16px 14px 8px; overflow-x: auto; }
  .contact-form { padding: 24px 20px; }
  .contact-form form { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn { justify-self: stretch; }
}

/* comparsa allo scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  section { padding: 80px 0; }
  .nav-links { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature + .feature { margin-top: 80px; }
  .feature.flip .f-text { order: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .demo { padding-bottom: 80px; }
}
/* sotto 900px la finestra desktop dell'app non serve: resta solo il telefono simulato più in basso */
@media (max-width: 899px) {
  .demo { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero > .wrap > .hero-team { margin-top: 48px; }
  .hero-agent span { font-size: 13px; }
  .nav-in { gap: 12px; height: 60px; }
  .nav-login { display: none; }
  .bento, .stats { grid-template-columns: 1fr; }
  /* card collaboratori: su cellulare solo avatar, nome e descrizione, senza la conversazione simulata */
  .card { min-height: 0; }
  .card .stage { display: none; }
  .card { min-height: 0; }
  .bub { max-width: 85%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: span 2; }
  .mock { padding: 14px; }
  .final .box { padding: 56px 20px; border-radius: 20px; }
  .final .btn { white-space: normal; height: auto; min-height: 48px; padding: 12px 22px; max-width: 100%; }
  .final .hero-team .av { width: 40px; height: 40px; }
  .final .hero-team { gap: 6px; }
  .demo { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fade-in, .a-row, .a-bar, .a-text, .stage-dots i { animation: none; }
  .a-bar .fill { transition: none; }
  .app.is-mobile .ag, .app.is-mobile .sb { transition: none; }
  .hero-agent .av, .hero-agent span { transition: none; }
}

/* replica 1:1 della pagina Gestione costi / Fatture (ModuleLayout + FatturaTable.tsx): disegnata a 1700px e scalata con zoom da pages.js */
.pg-fit { max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(20,20,30,.35); overflow: hidden; }
.pg { position: relative; display: grid; grid-template-columns: 260px 1440px; width: 1700px; height: 1060px; overflow: hidden; background: #fff; color: #2e2d2a; font-family: "Inter", "Helvetica", "Arial", sans-serif; text-align: left; }
.pg svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg-main { min-width: 0; padding-bottom: 16px; }
.pg-head { padding: 16px 32px 0; }
.pg-head-in { display: flex; flex-direction: column; gap: 24px; padding: 16px 16px 12px; }
.pg-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; color: #000; }
.pg-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pg-tabs { display: flex; gap: 4px; }
.pg-tab { padding: 6px 12px; border-radius: 24px; font-size: 14px; font-weight: 500; line-height: 20px; color: #000; }
.pg-tab.on { background: #ededed; }
.pg-actions { display: flex; align-items: center; gap: 8px; }
.pg-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 3px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 22px; white-space: nowrap; color: #667083; }
.pg-btn svg { width: 16px; height: 16px; }
.pg-group { display: flex; }
.pg-btn.pri { background: #2b49f5; color: #fff; border-radius: 8px 0 0 8px; }
.pg-btn.chev { background: #2b49f5; color: #fff; border-radius: 0 8px 8px 0; border-left: 1px solid rgba(255,255,255,.16); }
.pg-body { padding: 0 32px; }
.pg-row { display: grid; grid-template-columns: 40px 130px 110px minmax(0, 1fr) 110px 90px 110px 155px 180px 170px 90px; font-size: 14px; line-height: 21px; letter-spacing: -0.15px; }
.pg-row > div { min-width: 0; padding: 8px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid rgba(42,28,0,.07); border-right: 1px solid rgba(42,28,0,.07); }
.pg-row.td > div { height: 60px; overflow: hidden; }
.pg-row.th > div { height: 37px; flex-direction: row; align-items: center; justify-content: flex-start; background: #fff; color: #7d7a75; font-weight: 400; line-height: 16.8px; border-right: 0; }
.pg-row .c { align-items: center; text-align: center; }
.pg-row .r { align-items: flex-end; text-align: right; }
.pg-row.th .r { justify-content: flex-end; }
.pg-row.th .c { justify-content: center; }
.pg-row .cb { align-items: center; padding: 8px; }
.pg-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row small { font-size: 12px; line-height: 18px; color: rgba(44,44,43,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row .tot { font-weight: 600; }
.pg-row .tf { flex-direction: row; align-items: center; justify-content: flex-end; gap: 0; padding: 8px; }
.pg-row .ic { display: grid; place-items: center; width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; color: #667083; }
.pg-row .ic svg { width: 16px; height: 16px; }
.pg-row .cb i { display: grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1px solid #eae8e5; border-radius: 4px; background: #fff; }
.pg-row .txt { font-size: 13px; font-weight: 600; line-height: 22px; color: #667083; white-space: nowrap; padding: 0 8px; }
.pg-row .act { padding: 0 4px; color: #2c2c2b; }
.pg-row .ph { color: #a8a5a0; padding: 0 4px; }
.pg-row .off { opacity: .5; }
.pg-row .late { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #a63333; }
.pg-row .late svg { width: 16px; height: 16px; }
.pg-row .chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 28px; padding: 0 8px; border-radius: 4px; font-size: 14px; font-weight: 500; line-height: 21px; letter-spacing: normal; }
.pg-row .chip.yellow { background: #f7f2c7; color: #8c7a1a; }
.pg-row .chip.green { background: #def2d9; color: #388038; }
.pg-row .chip.blue { background: #d9e8f5; color: #2e6194; }
.pg-row .chip.gray { background: #ededed; color: #595959; }
.pg-row .chip i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; box-sizing: border-box; animation: pgspin 1s linear infinite; }
@keyframes pgspin { to { transform: rotate(360deg); } }
.pg-row.ft > div { height: 37px; flex-direction: row; align-items: center; justify-content: flex-start; font-weight: 600; color: #2c2c2b; border-top: 1px solid rgba(42,28,0,.07); border-right: 1px solid rgba(42,28,0,.07); }
.pg-row.ft .r { justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .pg-row .chip i { animation: none; } }
.pg .sb { height: auto; }
.pg .sb-entry.on { background: #e8e7e5; }
.pg .sb-entry.on .l { font-weight: 500; }
.pg-av { position: relative; width: 22px; height: 22px; flex: none; background: var(--c); }
.pg-av::before { content: ""; position: absolute; left: 6px; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 7px 0 0 #fff; }
.pg-av.squircle { border-radius: 36%; }
.pg-av.circle { border-radius: 50%; }
.pg-av.drop { border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; }
.pg-av.hexagon { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.pg-av.blob { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
.pg-av.cloud { border-radius: 45% 55% 50% 50% / 55% 50% 50% 45%; }

/* agente Analista che esegue le riconciliazioni (animato da pages.js) */
.pg-agent { position: absolute; left: 0; top: 0; z-index: 5; width: 44px; height: 44px; pointer-events: none; opacity: 0; transition: transform .9s cubic-bezier(.4,0,.2,1), opacity .4s ease; will-change: transform; }
.pg-agent.on { opacity: 1; }
.pg-agent .pg-av { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 16px -4px rgba(236,72,153,.55); animation: pgbob 1.6s ease-in-out infinite; }
.pg-agent .pg-av::before { left: 12px; top: 16px; width: 6px; height: 6px; box-shadow: 14px 0 0 #fff; }
.pg-agent.work .pg-av { animation: pgwork .5s ease-in-out infinite; }
.pg-say { position: absolute; left: 30px; bottom: 46px; padding: 6px 12px; border-radius: 12px 12px 12px 4px; background: #f7dee5; border: 1px solid rgba(236,72,153,.25); color: #000; font-size: 13px; font-weight: 500; line-height: 18px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(20,20,30,.3); opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.pg-say.on { opacity: 1; transform: none; }
.pg-row .chip.orange { background: #faebd1; color: #99611a; }
@keyframes pgbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pgwork { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .pg-agent { display: none; } }

/* versione mobile della replica: telefono con la pagina in versione mobile (ModuleLayout + MobileCard), sotto 900px al posto della finestra */
.pg-mob { display: none; }
@media (max-width: 899px) { .pg-fit { display: none; } .pg-mob { display: block; } }
.pg-mob svg { flex: none; }
.ph-app { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; color: #2c2c2b; font-family: "Inter", "Helvetica", "Arial", sans-serif; text-align: left; letter-spacing: normal; }
.ph-bar { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid transparent; transition: border-color .15s; }
.ph-bar.scrolled { border-color: #ececec; }
.ph-bt { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s; }
.ph-bar.scrolled .ph-bt { opacity: 1; }
.ph-menu { display: grid; place-items: center; width: 40px; height: 40px; color: #111; }
.ph-page { position: relative; flex: 1; min-height: 0; overflow: hidden; padding-bottom: 96px; }
.ph-title { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 12px; }
.ph-title h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; color: #000; }
.ph-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-tools > * { flex: none; }
.ph-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 6px 8px 6px 12px; border-radius: 24px; background: #ededed; font-size: 14px; font-weight: 500; line-height: 20px; color: #000; }
.ph-pill svg { width: 16px; height: 16px; }
.pg-mob .pg-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 3px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 22px; white-space: nowrap; color: #667083; }
.pg-mob .pg-btn svg { width: 16px; height: 16px; }
.pg-mob .pg-group { display: flex; }
.pg-mob .pg-btn.pri { background: #2b49f5; color: #fff; border-radius: 8px 0 0 8px; }
.pg-mob .pg-btn.chev { background: #2b49f5; color: #fff; border-radius: 0 8px 8px 0; border-left: 1px solid rgba(255,255,255,.16); }
.ph-list { display: flex; flex-direction: column; gap: 12px; padding: 6px 8px; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.ph-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid #e8e6e3; border-radius: 12px; background: #fff; flex: none; }
.ph-ct { display: flex; align-items: flex-start; gap: 8px; }
.ph-cb { margin: -2px 0 0 -4px; padding: 4px; }
.ph-cb i { display: block; width: 20px; height: 20px; box-sizing: border-box; border: 1px solid #eae8e5; border-radius: 4px; background: #fff; }
.ph-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-tt b { font-size: 16px; font-weight: 700; line-height: 24px; color: #2c2c2b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-tt small { font-size: 12px; line-height: 18px; color: rgba(44,44,43,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-ac { display: flex; flex: none; margin: -2px -8px 0 0; }
.ph-ac span { display: grid; place-items: center; width: 32px; height: 32px; color: #667083; }
.ph-ac svg { width: 16px; height: 16px; }
.ph-am { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ph-am b { font-size: 16px; font-weight: 700; line-height: 24px; }
.ph-card hr { margin: 0; border: 0; border-top: 1px solid #e0e0e0; }
.ph-r { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; font-size: 14px; }
.ph-r > span:first-child { color: rgba(44,44,43,.6); flex: none; }
.ph-r .v { color: #2c2c2b; }
.ph-pay { display: flex; justify-content: flex-end; }
.ph-pay .txt { font-size: 13px; font-weight: 600; line-height: 22px; color: #667083; }
.ph-st .chip, .ph-st .chip.blue { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 4px; font-size: 14px; font-weight: 500; line-height: 21px; }
.ph-st .chip.yellow { background: #f7f2c7; color: #8c7a1a; }
.ph-st .chip.green { background: #def2d9; color: #388038; }
.ph-st .chip.blue { background: #d9e8f5; color: #2e6194; }
.ph-st .chip.gray { background: #ededed; color: #595959; }
.ph-st .chip.orange { background: #faebd1; color: #99611a; }
.ph-st .chip i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; box-sizing: border-box; animation: pgspin 1s linear infinite; }
.ph-chat { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 5; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 10px; border-radius: 26px; background: #fff; border: 1px solid #ececec; box-shadow: 0 4px 8px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.16), 0 24px 48px rgba(0,0,0,.10); }
.ph-chat span { flex: 1; min-width: 0; font-size: 16px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-chat i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1a1a1a; color: #fff; flex: none; }
.ph-ava { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #EC4899; flex: none; }
.ph-ava::before { content: ""; position: absolute; left: 8px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 11px 0 0 #fff; }
.ph-ava.work { animation: pgwork .5s ease-in-out infinite; }
/* telefono tagliato a metà: si vede solo la parte alta, per non occupare troppo spazio */
.pg-mob .phone { padding-bottom: 0; border-radius: 62px 62px 0 0; box-shadow: none; }
.pg-mob .screen { height: 560px; border-radius: 52px 52px 0 0; }
.pg-mob .ios-home { display: none; }
.ph-title { transition: transform .8s cubic-bezier(.4,0,.2,1); position: relative; z-index: 1; background: #fff; }
.ph-list { position: relative; }
@media (max-width: 899px) { .page-shot { padding-bottom: 0; } .page-shot .note { display: none; } }

/* sezione "Chiedilo ai collaboratori": telefono con la chat a sinistra, domande cliccabili a destra */
.ask-hint { margin-top: 12px; color: var(--muted); font-size: 16px; }
.asks.asks-col { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
button.ask { width: 100%; text-align: left; font-family: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
button.ask:hover { border-color: var(--primary); }
button.ask.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,73,245,.12); }
.ask-phone { padding-bottom: 0; border-radius: 62px 62px 0 0; box-shadow: none; }
.ask-phone .screen { height: 640px; border-radius: 52px 52px 0 0; }
.ask-phone .app.is-mobile .ag { box-shadow: none; }
.ask-phone .av .ph-ava { width: 100%; height: 100%; }
.ask-phone .ag-head .av { width: 32px; height: 32px; }
.ask-phone .bub { font-size: 15px; }
.ask-phone .ag-busy .av { width: 36px; height: 36px; }
.ask-photo { width: 132px; height: 160px; margin-bottom: 8px; border-radius: 8px; background: #fff repeating-linear-gradient(to bottom, transparent 0 12px, #e5e5e5 12px 13px); padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); position: relative; }
.ask-photo::before { content: ""; position: absolute; left: 14px; right: 40px; top: 14px; height: 8px; border-radius: 4px; background: #c9c9c9; }
.ask-photo::after { content: "186,40"; position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 700; color: #444; }
.ask-phone .bub.user { background: #1a1a1a; }
.ask-sec { padding-bottom: 0; }
.ask-sec .feature { align-items: end; }
.ask-sec .f-text { padding-bottom: 24px; }

/* pagina magazzino: replica della lista articoli di un magazzino */
.pg-tt { display: flex; flex-direction: column; gap: 4px; }
.pg-back { font-size: 13px; font-weight: 500; line-height: 18px; color: #7d7a75; }
.pg-back::before { content: "‹ "; }
.pg-btn.pri.solo { border-radius: 8px; }
.pg-body.mg .pg-row { grid-template-columns: minmax(0, 1fr) 160px 240px 140px 260px 140px; }
.pg-row .q { transition: background .4s, color .4s; }
.pg-row .q.flash, .ph-q.flash { background: #fff3c4; color: #8c6a00; border-radius: 4px; }
.ph-q { transition: background .4s, color .4s; padding: 0 4px; margin: 0 -4px; }
.ph-ql { font-size: 14px; color: rgba(44,44,43,.6); }
.ph-title .pg-tt h2 { margin: 0; }
body[data-page="magazzino"] .ph-ava { background: #F1A33A; border-radius: 0; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
body[data-page="magazzino"] .pg-agent .pg-av { border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(241,163,58,.5)); }
body[data-page="magazzino"] .pg-say { background: #fbebcf; border-color: #f1d49c; }
.pg-body.mg .pg-row > div { border-right: 0; }
.pg-head-in.row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.pg-head-in.row .pg-bar { flex: none; }
.pg-view:not(.on) { display: none; }
.pg-body.ml .pg-row { grid-template-columns: minmax(0, 1fr) 260px 160px 90px; }
.pg-body.ml .pg-row > div { border-right: 0; }
.pg-body.ar .pg-row { grid-template-columns: 40px minmax(0, 1fr) 130px 170px 170px 100px 170px 90px; }
.pg-body.ar .pg-row > div { border-right: 0; }
.pg-cur { position: absolute; left: 34px; top: 30px; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); transition: transform .15s; transform-origin: 0 0; }
.pg-agent.click .pg-cur { transform: scale(.82); }
.pg-rip { position: absolute; z-index: 6; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid #F1A33A; pointer-events: none; animation: pgrip .6s ease-out forwards; }
@keyframes pgrip { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.pg .sb-entry.hot, .pg-row.td.hot > div { background: rgba(0,0,0,.04); }
.pg-back.hot { color: #000; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .pg-rip { animation: none; opacity: 0; } }
.pg-cur { left: 0; top: 0; width: 24px; height: 24px; z-index: 2; }
body[data-page="magazzino"] .pg-agent .pg-av { margin: 14px 0 0 16px; }

/* pagina staff: replica del calendario turni e dell'elenco collaboratori */
.pg-view .pg-group { position: relative; }
.pg-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 4; min-width: 200px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #e8e6e3; box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.pg-menu.on { opacity: 1; transform: none; }
.pg-menu span { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; color: #2c2c2b; }
.pg-menu span.hot { background: rgba(0,0,0,.06); }
.pg-btn.sel { gap: 6px; border: 1px solid #e8e6e3; }
.stbox { display: flex; margin: 8px 32px 0; border: 1px solid rgba(42,28,0,.1); border-radius: 16px; overflow: hidden; }
.stcal { flex: 2 1 0; min-width: 0; border-right: 1px solid rgba(42,28,0,.1); }
.stside { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.cal-tb { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 20px 20px; font-size: 14px; }
.cal-view { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-weight: 500; color: #2c2c2b; }
.cal-view svg { color: #667083; }
.cal-mid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
.cal-mid b { min-width: 120px; text-align: center; font-size: 18px; font-weight: 600; color: #000; }
.cal-nav { display: grid; place-items: center; width: 32px; height: 32px; color: #667083; font-size: 22px; line-height: 1; }
.cal-r { display: flex; gap: 8px; }
.cal-today { padding: 4px 12px; border-radius: 8px; background: #2b49f5; color: #fff; font-weight: 600; font-size: 13px; line-height: 22px; }
.cal-pdf { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid #dc2626; border-radius: 8px; color: #dc2626; font-weight: 600; font-size: 13px; line-height: 22px; }
.cal-h, .cal-b { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.cal-h { box-shadow: inset 0 -1px 0 rgba(42,28,0,.1); }
.cal-h > div { padding: 13px 0; text-align: center; font-size: 14px; font-weight: 600; color: #2c2c2b; }
.cal-h > div.today, .cal-b > div.today { background: rgba(145,158,171,.08); }
.cal-b > div { position: relative; height: 672px; border-left: 1px solid rgba(145,158,171,.2); background: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(145,158,171,.2) 47px 48px); }
.cal-b > .cal-hrs { border-left: 0; background: none; }
.cal-hrs span { position: absolute; right: 8px; transform: translateY(-10px); font-size: 14px; color: #2c2c2b; }
.cal-ev { position: absolute; left: 0; right: 0; box-sizing: border-box; display: block; padding: 2px 4px; border-radius: 6px; font-style: normal; font-size: 13px; line-height: 20px; overflow: hidden; background: #fff; }
.cal-ev::before { content: ""; position: absolute; inset: 0; border-radius: 6px; background: currentColor; opacity: .24; }
.cal-ev > * { position: relative; display: block; filter: brightness(.48); }
.cal-ev b { font-weight: 700; }
.cal-ev.c { color: #EC7032; }
.cal-ev.s { color: #3B82F6; }
.cal-ev.b { color: #34C77B; }
.cal-ev.gap { visibility: hidden; }
.cal-ev.flash::after { content: ""; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(43,73,245,.55); }
.cal-ev.hot { opacity: .85; }
.ag-tb { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid rgba(42,28,0,.1); }
.ag-tb b { font-size: 16px; font-weight: 600; color: #000; }
.ag-list { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.ag-r { display: flex; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; }
.ag-r span { flex: none; color: rgba(44,44,43,.6); }
.ag-r i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-right: -8px; }
.ag-r b { font-weight: 400; padding-left: 8px; color: #2c2c2b; }
.ag-cost { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-top: 1px solid rgba(42,28,0,.1); }
.ag-cost > b { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #2c2c2b; }
.ag-cost div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(42,28,0,.1); font-size: 14px; }
.ag-cost div:first-of-type { border-top: 0; }
.ag-cost span { color: rgba(44,44,43,.6); }
.ag-cost em { font-style: normal; font-weight: 600; color: #2c2c2b; }
.pg-body.st .pg-row { grid-template-columns: 64px minmax(0, 1fr) 180px 160px 220px 90px; }
.pg-body.st .pg-row > div { border-right: 0; }
.stav { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 600; }
.ph-day { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; font-size: 15px; }
.ph-day span { color: #667083; font-size: 20px; }
.ph-day b { font-weight: 600; color: #000; }
.ph-ct .ph-q { flex: none; align-self: center; font-size: 14px; font-weight: 600; }
.ph-q.gap { color: #a63333; }
.ph-card.hot-card { border-color: #d99a9a; }
body[data-page="staff"] .ph-ava { background: #3B82F6; border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
body[data-page="staff"] .pg-agent .pg-av { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; box-shadow: 0 6px 16px -4px rgba(59,130,246,.55); margin: 14px 0 0 16px; }
body[data-page="staff"] .pg-say { background: #dfe9fd; border-color: #b9cdf6; }
body[data-page="staff"] .pg-rip { border-color: #3B82F6; }
.cal-sel { position: absolute; left: 0; right: 0; height: 0; z-index: 1; border-radius: 6px; background: rgba(43,73,245,.14); box-shadow: inset 0 0 0 1.5px rgba(43,73,245,.5); transition: height .9s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.cal-ev.drag { z-index: 2; box-shadow: 0 8px 18px rgba(0,0,0,.2); transition: top .9s cubic-bezier(.4,0,.2,1), height .9s cubic-bezier(.4,0,.2,1); }

/* avatar degli agenti: stessi SVG della homepage (landing/avatars/*.svg) */
img.pg-av { display: block; object-fit: contain; background: none; clip-path: none; border-radius: 0; }
.pg-agent img.pg-av { width: 44px; height: 44px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.22)); }
body[data-page] .pg-agent img.pg-av { border-radius: 0; box-shadow: none; }
body[data-page="costi"] .pg-agent img.pg-av, body:not([data-page]) .pg-agent img.pg-av { margin: 0; }
.ph-ava { background: url("/assets/avatars/costi.svg") center / contain no-repeat; border-radius: 0; clip-path: none; }
.ph-ava::before { display: none; }
body[data-page="magazzino"] .ph-ava { background-image: url("/assets/avatars/magazzino.svg"); background-color: transparent; border-radius: 0; clip-path: none; }
body[data-page="staff"] .ph-ava { background-image: url("/assets/avatars/staff.svg"); background-color: transparent; border-radius: 0; }
.pg-say { background: #f7dee5; border-color: rgba(236,72,153,.25); }
body[data-page="magazzino"] .pg-say { background: #f7f2c7; border-color: rgba(241,163,58,.35); }
body[data-page="staff"] .pg-say { background: #d9e8f5; border-color: rgba(59,130,246,.3); }

/* homepage, sezione app mobile: telefono tagliato a metà come nelle pagine dei moduli */
#mobile { padding-bottom: 0; }
#mobile .feature { align-items: end; }
#mobile .f-text { padding-bottom: 64px; }
#mobile .phone { padding-bottom: 0; border-radius: 62px 62px 0 0; box-shadow: none; }
#mobile .screen { height: 640px; border-radius: 52px 52px 0 0; }
#mobile .ios-home { display: none; }

/* moduli in arrivo: card non cliccabili con etichetta "Prossimamente" */
.mod.soon { cursor: default; }
.mod.soon:hover { box-shadow: none; }
.mod.soon .mod-shot { opacity: .55; }
.soon-tag { align-self: start; padding: 5px 10px; border-radius: 999px; background: #ededed; color: #595959; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mod.soon .mod-head small { grid-column: 1; grid-row: 1; align-self: center; }
.mod.soon .soon-tag { grid-column: 2; grid-row: 1; }
.mod.soon .mod-head h3 { grid-column: 1 / -1; grid-row: 2; }
.mods.mods-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.mods-soon .mod { row-gap: 16px; padding: 22px 28px 0; }
.mods-soon .mod-shot { height: 190px; padding-top: 12px; }
@media (max-width: 899px) { .mods.mods-soon { grid-template-columns: minmax(0, 1fr); } }

/* tutte le card moduli con la stessa altezza compatta delle card "Prossimamente" */
.mods .mod { row-gap: 16px; padding: 22px 28px 0; }
.mods .mod-shot { height: 190px; padding-top: 12px; }
.mods .mod-head small { grid-column: 1; grid-row: 1; align-self: center; }
.mods .mod-go, .mods .soon-tag { grid-column: 2; grid-row: 1; }
.mods .mod-head h3 { grid-column: 1 / -1; grid-row: 2; }
.mods:not(.mods-soon) .mod-shot { height: 155px; }

/* sezione "Prossimamente" nelle pagine dei moduli */
.soon-inline { display: inline-block; margin-bottom: 14px; }
.soon-shot { height: auto; padding: 16px; border-bottom: 1px solid var(--border); border-radius: 14px; opacity: .9; }

.form-privacy { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-privacy input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }

/* landing delle campagne a pagamento (scopri.html): hero con form, niente menu */
.lp-hero { padding: 72px 0 96px; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-hero .pill { margin-bottom: 24px; }
.lp-hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.lp-hero h1 em { font-style: normal; color: var(--primary); }
.lp-hero .lead { margin-top: 24px; }
.lp-hero .ticks { margin-top: 28px; }
.lp-team { display: flex; margin-top: 36px; }
.lp-team img { width: 52px; height: 52px; margin-left: -10px; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.lp-team img:first-child { margin-left: 0; }
.lp-team-cap { margin-top: 10px; font-size: 14px; color: var(--muted); }
.lp-form { box-shadow: 0 24px 60px -24px rgba(21,23,28,.25); }
.lp-form .field textarea { min-height: 88px; }
.lp-form .btn { justify-self: stretch; }
.lp-opt { font-weight: 400; color: var(--muted); }
.lp-form-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.lp-form form[hidden] + .form-status + .lp-form-note { display: none; }

.lp-logos { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-logos p { text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.lp-marquee { overflow: hidden; margin-top: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: lpScroll 45s linear infinite; }
.lp-track img { height: 32px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .7; }
@keyframes lpScroll { to { transform: translateX(calc(-50% - 24px)); } }

.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.lp-card { padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.lp-card b { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #e8ecff; color: var(--primary); font-size: 15px; font-weight: 700; }
.lp-card h3, .lp-step h3 { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.lp-card p, .lp-step p { margin-top: 10px; font-size: 15px; color: var(--muted); }

.lp-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.lp-agent { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--tint); }
.lp-agent img { width: 56px; height: 56px; flex: none; }
.lp-agent h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.lp-agent p { margin-top: 6px; font-size: 15px; }
.talk-a .av img { width: 100%; height: 100%; }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; counter-reset: lp-step; }
.lp-step { padding-top: 24px; border-top: 2px solid var(--ink); }
.lp-step::before { counter-increment: lp-step; content: "0" counter(lp-step); font-size: 14px; font-weight: 700; color: var(--primary); }
.lp-step h3 { margin-top: 12px; }

.lp-price { padding: 48px; border-radius: 24px; background: #e8ecff; }
.lp-price .h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; }
.lp-price > p:not(.eyebrow) { margin-top: 12px; max-width: 56ch; }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.lp-plan { padding: 24px; border: 1px solid transparent; border-radius: 18px; background: #fff; }
.lp-plan.best { border-color: var(--primary); box-shadow: 0 18px 40px -24px rgba(43,73,245,.55); }
.lp-plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.lp-plan h3 span { padding: 2px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.lp-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 16px; }
.lp-plan-price strong { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.lp-plan.best .lp-plan-price strong { color: var(--primary); }
.lp-plan-price small { font-size: 15px; color: var(--muted); }
.lp-plan p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.lp-price-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; }
.lp-price-foot p { font-weight: 600; color: var(--ink); }
.final .lp-team { justify-content: center; margin: 0 0 32px; }
.final .lp-team img { filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)); }
.lp-foot { padding: 0 0 40px; }
.lp-foot .legal { margin-top: 0; }
.lp-foot a { text-decoration: underline; text-underline-offset: 2px; }
.lp-sticky { display: none; }

@media (max-width: 960px) {
  .lp-grid, .lp-cards, .lp-agents, .lp-steps, .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-grid { gap: 40px; }
}
@media (max-width: 640px) {
  .lp-hero { padding: 40px 0 64px; }
  .lp-card { padding: 24px; }
  .lp-price { padding: 28px 20px; }
  .lp-price .btn { width: 100%; }
  .lp-sticky { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; transition: opacity .2s, transform .2s; }
  .lp-sticky .btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(43,73,245,.6); }
  .lp-sticky.off { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .lp-foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .lp-track img[aria-hidden] { display: none; }
}

/* banner cookie (cookies.js) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(21, 23, 28, .14);
  font-size: 14px; line-height: 1.5; color: var(--text);
}
.cookie-banner a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions .btn { flex: 1; }
}
