/* Sito pubblico (presentazione del prodotto). Separato dallo stile dell'app. */
:root {
  --s-ink: #0b1220;
  --s-muted: #5b6678;
  --s-line: #e6e9f2;
  --s-bg: #ffffff;
  --s-soft: #f5f7fd;
  --s-brand: #4f46e5;
  --s-brand-2: #2563eb;
  --s-accent: #f59e0b;
  --s-green: #16a34a;
  --s-red: #dc2626;
  --s-grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #0ea5e9 100%);
}
html { scroll-behavior: smooth; }
body.site { color: var(--s-ink); background: var(--s-bg); font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.site a { color: var(--s-brand-2); }
.site h1, .site h2, .site h3 { letter-spacing: -0.02em; }

/* ---------- navigazione ---------- */
.s-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.s-nav.scrolled { border-bottom-color: var(--s-line); }
.s-logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.35rem; color: var(--s-ink) !important; text-decoration: none; }
.s-logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--s-grad); box-shadow: 0 0 0 4px rgba(79,70,229,.15); }
.s-nav a.s-link { color: #3b4659; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .35rem .8rem; border-radius: 999px; }
.s-nav a.s-link:hover { color: var(--s-brand); background: var(--s-soft); }
.btn-s { border-radius: 999px; font-weight: 600; padding: .55rem 1.25rem; }
.btn-s-primary { background: var(--s-grad); color: #fff !important; border: 0; box-shadow: 0 8px 22px rgba(79,70,229,.32); transition: transform .15s, box-shadow .2s; }
.btn-s-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,70,229,.42); color: #fff; }
.btn-s-ghost { background: #fff; color: var(--s-ink) !important; border: 1px solid var(--s-line); }
.btn-s-ghost:hover { border-color: var(--s-brand); color: var(--s-brand) !important; }
.btn-s-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }

/* ---------- hero ---------- */
.s-hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; background:
  radial-gradient(1000px 500px at 85% -10%, rgba(79,70,229,.18), transparent 60%),
  radial-gradient(800px 400px at -10% 20%, rgba(14,165,233,.14), transparent 60%), #fff; }
.s-badge { display: inline-flex; align-items: center; gap: .45rem; background: #eef2ff; color: #3730a3; font-weight: 600; font-size: .82rem; border-radius: 999px; padding: .35rem .85rem; }
.s-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.05; }
.s-hero h1 .grad { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-lead { font-size: 1.2rem; color: var(--s-muted); max-width: 34rem; }
.s-micro { font-size: .88rem; color: var(--s-muted); }
.s-micro i { color: var(--s-green); }

/* mockup di prodotto (HTML, non immagini) */
.mock { position: relative; max-width: 560px; margin-inline: auto; }
.mock-window { background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(30,41,90,.35), 0 0 0 1px rgba(15,23,42,.06); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: #f1f4fb; border-bottom: 1px solid var(--s-line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3d9e8; }
.mock-bar small { margin-left: .6rem; color: #8892a6; font-size: .72rem; }
.mock-body { padding: 1rem; background: #f6f8fe; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.mock-kpi { background: #fff; border-radius: 12px; padding: .6rem .75rem; border-left: 4px solid #cbd5e1; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.mock-kpi small { display: block; color: #7a8599; font-size: .68rem; }
.mock-kpi b { font-size: 1.3rem; line-height: 1.1; }
.mock-kpi.red { border-left-color: var(--s-red); } .mock-kpi.red b { color: #b91c1c; }
.mock-kpi.amber { border-left-color: var(--s-accent); } .mock-kpi.blue { border-left-color: var(--s-brand-2); }
.mock-task { background: #fff; border-radius: 12px; padding: .55rem .75rem; margin-bottom: .5rem; border-left: 4px solid #3b82f6; box-shadow: 0 2px 8px rgba(15,23,42,.05); display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .82rem; }
.mock-task small { display: block; color: #7a8599; font-size: .7rem; }
.mock-task.crit { border-left-color: var(--s-red); } .mock-task.high { border-left-color: #f97316; }
.pill { font-size: .66rem; font-weight: 700; border-radius: 999px; padding: .12rem .55rem; white-space: nowrap; }
.pill.crit { background: #fee2e2; color: #b91c1c; } .pill.high { background: #ffedd5; color: #c2410c; } .pill.mid { background: #dbeafe; color: #1d4ed8; }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(30,41,90,.35), 0 0 0 1px rgba(15,23,42,.05); padding: .7rem .9rem; font-size: .8rem; }
.float-mail { right: -18px; bottom: -28px; width: 245px; animation: floaty 6s ease-in-out infinite; }
.float-bal { left: -24px; top: 86px; width: 190px; animation: floaty 7s ease-in-out infinite reverse; }
.float-card .ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sezioni ---------- */
.s-section { padding: 5rem 0; }
.s-soft { background: var(--s-soft); }
.s-eyebrow { color: var(--s-brand); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }
.s-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.s-sub { color: var(--s-muted); font-size: 1.1rem; max-width: 40rem; }
.pain { background: #fff; border: 1px solid var(--s-line); border-radius: 18px; padding: 1.4rem; height: 100%; }
.pain .emo { font-size: 1.8rem; }
.feat { background: #fff; border: 1px solid var(--s-line); border-radius: 20px; padding: 1.6rem; height: 100%; transition: transform .2s, box-shadow .25s, border-color .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(30,41,90,.35); border-color: #c7d2fe; }
.feat .ico { width: 48px; height: 48px; border-radius: 14px; background: #eef2ff; color: var(--s-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.feat h3 { font-size: 1.15rem; font-weight: 700; }
.feat p { color: var(--s-muted); margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.check-list i { color: var(--s-green); margin-top: .15rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--s-grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .8rem; }

/* ---------- prezzi ---------- */
.price-card { background: #fff; border-radius: 28px; padding: 2.2rem; border: 2px solid #c7d2fe; box-shadow: 0 30px 60px -30px rgba(79,70,229,.45); position: relative; }
.price-card .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--s-grad); color: #fff; font-weight: 700; font-size: .78rem; padding: .3rem 1rem; border-radius: 999px; }
.price-big { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price-toggle { display: inline-flex; background: #eef1fa; border-radius: 999px; padding: 4px; }
.price-toggle button { border: 0; background: transparent; padding: .45rem 1.1rem; border-radius: 999px; font-weight: 600; color: #566; }
.price-toggle button.active { background: #fff; color: var(--s-ink); box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.save-chip { background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; margin-left: .3rem; }

/* ---------- FAQ, CTA finale, piè di pagina ---------- */
.s-faq .accordion-item { border: 1px solid var(--s-line); border-radius: 16px !important; overflow: hidden; margin-bottom: .75rem; }
.s-faq .accordion-button { font-weight: 600; background: #fff; }
.s-faq .accordion-button:not(.collapsed) { background: #f5f7ff; color: var(--s-brand); box-shadow: none; }
.s-cta { background: var(--s-grad); color: #fff; border-radius: 32px; padding: 3.5rem 2rem; position: relative; overflow: hidden; }
.s-cta::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.1); }
.s-cta .btn-light { color: var(--s-brand); font-weight: 700; }
.s-footer { background: #0b1220; color: #9aa6bd; padding: 3.5rem 0 2rem; }
.s-footer a { color: #cbd5e8; text-decoration: none; }
.s-footer a:hover { color: #fff; text-decoration: underline; }
.s-footer .s-logo { color: #fff !important; }

/* ---------- pagine legali ---------- */
.legal h1 { font-size: 2rem; font-weight: 800; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; font-weight: 700; }
.legal p, .legal li { color: #2b3547; line-height: 1.7; }

/* ---------- apparizione morbida (rispetta chi riduce le animazioni) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-mail, .float-bal { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 991.98px) {
  .s-hero { padding: 2.5rem 0 3.5rem; }
  .float-bal { display: none; }
  .float-mail { right: 4px; bottom: -34px; }
  .s-section { padding: 3.5rem 0; }
}
