/* Un solo carattere, dentro l'app: Geist (licenza OFL in fonts/), niente chiamate a Google, funziona anche offline */
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(fonts/geist.woff2) format("woff2"); }
/* Allenatore vocale
   Layout: telefono = contenuto + barra a schede in basso; computer (≥ 900px) = barra laterale + contenuto centrato.
   Colori: fondo neutro (grafite o bianco), testo quasi nero/bianco; dal 21/10 i colori del logo (DECISIONS #159):
   blu volpe #2233FF = colore principale (pulsanti, link, scheda attiva, fumetto «Tu»; sul fondo scuro il testo blu è
   schiarito per restare leggibile), arancio volpe = accento (avanzamento, voto, medaglie, pulsante «Prova gratis»).
   Ambra per i consigli, rosso per gli allarmi, verde per ciò che va bene. Scuro di base; il chiaro si sceglie in Profilo. */
:root {
  --bg: #0e1116;
  --bg-2: #13171d;
  --surface: #161a21;
  --ink: #f2f4f7;
  --ink-2: #c3c9d4;
  --muted: #aeb5c2;
  --line: #2a303a;
  --accent: #a3abff;
  --accent-2: #c7ccff;
  --accent-ink: #0e1116;
  --accent-soft: #1d2150;
  --brand: #2233ff;
  --brand-ink: #ffffff;
  --hot: #ff7a33;
  --hot-ink: #141414;
  --cta: #ff6a1a;
  --coach: #f1c462;
  --coach-bg: #2a2416;
  --bad: #ff8f87;
  --bad-bg: #3a1d1b;
  --good: #7ee2a8;
  --good-bg: #14301f;
  --gold: #ff8f57;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --track: #2a303a;
  --reco-bg: var(--accent-soft); --reco-ink: var(--ink);
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --bg-2: #edeff3; --surface: #ffffff; --ink: #141414; --ink-2: #3a3d46; --muted: #555a66; --line: #dce0e7;
  --accent: #2233ff; --accent-2: #1a27c4; --accent-ink: #ffffff; --accent-soft: #e9ebff;
  --brand: #2233ff; --brand-ink: #ffffff; --hot: #e2570f; --hot-ink: #141414; --cta: #ff6a1a;
  --coach: #8a5a00; --coach-bg: #fbf2de; --bad: #b0322b; --bad-bg: #fae5e2; --good: #1f7a44; --good-bg: #e3f3e8; --gold: #b0460b;
  --shadow: 0 1px 2px rgba(11, 15, 25, 0.06), 0 4px 16px rgba(11, 15, 25, 0.05); --track: #e3e6ec; --reco-bg: var(--accent); --reco-ink: var(--accent-ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; line-height: 1.2; }
h1 { font-size: 1.65rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num { font-variant-numeric: tabular-nums; }
.svgi { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Struttura */
.shell { min-height: 100%; display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.main { min-width: 0; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.page { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; min-width: 0; }
.topbar > .row { flex: 1 1 auto; min-width: 0; justify-content: flex-end; flex-wrap: nowrap; }
.prodchip { min-width: 0; }
@media (max-width: 420px) { .topbar .brand span.brand-name { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; flex: none; display: block; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; display: grid; place-items: center; }
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.tab { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 0.72rem; min-width: 0; overflow: hidden; font-weight: 700; border-radius: 12px; }
.tab[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
@media (min-width: 900px) {
  .shell { grid-template-columns: 240px 1fr; }
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); }
  .side .brand { padding: 6px 10px 18px; }
  .side .tab { grid-template-columns: 22px 1fr; justify-items: start; align-items: center; gap: 12px; font-size: 0.95rem; padding: 10px 12px; }
  .side .spacer { flex: 1; }
  .tabbar { display: none; }
  .main { padding: 24px 32px 48px; }
  .topbar .brand { visibility: hidden; }
}

/* Superfici */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .g2.stack { grid-template-columns: 1fr; } }
.section-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 0.82rem; font-weight: 700; }
.chip.accent { background: var(--accent-soft); color: var(--accent-2); }
.chip.gold { background: var(--coach-bg); color: var(--gold); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }

/* Controlli */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
@media (hover: hover) { .btn:not(:disabled):hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); } .btn.primary:not(:disabled):hover { filter: brightness(1.08); } }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.field { display: grid; gap: 4px; font-size: 0.9rem; color: var(--ink-2); font-weight: 700; min-width: 0; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 400; min-height: 44px; }
textarea.input { resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 3px; gap: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.scrolls { mask-image: linear-gradient(90deg, #000 85%, transparent); }
.seg button { flex: none; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Cruscotto */
.hello { display: grid; gap: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.kpi b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.goal { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ring { width: 84px; height: 84px; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--track); }
.ring .val { stroke: var(--hot); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 0.6s; }
.ring text { font-family: var(--font-display); font-weight: 750; font-size: 20px; fill: var(--ink); }
.reco { background: var(--reco-bg); color: var(--reco-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.reco .muted { color: inherit; opacity: 0.85; }
.reco .btn { background: var(--reco-ink); color: var(--reco-bg); border-color: transparent; }
.level { display: grid; gap: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--hot); border-radius: 99px; }
.skill { display: grid; grid-template-columns: 96px 1fr 38px; gap: 10px; align-items: center; font-size: 0.9rem; }
.skill b { text-align: right; font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { fill: var(--accent); opacity: 0.1; }
.chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 0.8rem; padding: 6px 8px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); }

/* Allenamenti */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mode { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); color: var(--ink); }
.mode:hover { border-color: var(--accent); }
.mode .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.mode strong { font-family: var(--font-display); font-size: 1.08rem; }
.mode p { color: var(--muted); font-size: 0.9rem; }
.mode .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.picker { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-block: 8px; }

/* Libreria */
.search { position: relative; }
.search .svgi { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.search .input { padding-left: 42px; }
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
details.acc > summary .chip { margin-left: auto; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
details.acc[open] > summary::after { content: "–"; }
details.acc .acc-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.item { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.item:first-child { border-top: 0; padding-top: 0; }
.item .t { font-weight: 700; }
.listen { border: 0; background: var(--accent-soft); color: var(--accent-2); border-radius: 999px; padding: 5px 11px; font-size: 0.8rem; font-weight: 700; justify-self: start; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.listen .svgi { width: 16px; height: 16px; }
.card h2:has(> .svgi), .card h3:has(> .svgi) { display: flex; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
td.num, th.num { text-align: right; }
mark { background: var(--coach-bg); color: inherit; border-radius: 3px; }

/* Progressi */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; background: var(--surface); }
.badge .medal { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coach-bg); color: var(--gold); }
.badge.locked { opacity: 0.55; }
.badge.locked .medal { background: var(--bg-2); color: var(--muted); }
.badge b { font-size: 0.92rem; }
.badge span { font-size: 0.8rem; color: var(--muted); }
.hist { display: grid; }
.hist button { border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; padding: 12px 2px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; color: var(--ink); }
.hist .sc { font-family: var(--font-display); font-weight: 750; font-size: 1.2rem; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.pill.win { background: var(--good-bg); color: var(--good); }
.pill.lost { background: var(--bad-bg); color: var(--bad); }

/* Sessione */
.overlay { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; }
.overlay .inner { flex: 1; min-height: 0; max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.s-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.s-kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-head h2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.s-head .row { flex-wrap: nowrap; align-items: center; }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.meter { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bad), var(--coach), var(--good)); transition: width 0.4s; }
.log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.msg { padding: 11px 14px; border-radius: 16px; max-width: 88%; overflow-wrap: anywhere; white-space: pre-line; }
.msg .who { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.msg.them { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.me .who { color: inherit; opacity: 0.8; }
.msg.coach, .msg.alarm, .msg.model, .msg.info { align-self: stretch; max-width: none; font-size: 0.95rem; border-radius: 12px; }
.msg.coach { background: var(--coach-bg); border-left: 3px solid var(--coach); }
.msg.alarm { background: var(--bad-bg); border-left: 3px solid var(--bad); }
.msg.model { background: var(--surface); border: 1px dashed var(--accent); }
.msg.info { background: var(--bg-2); }
.live { min-height: 1.4em; color: var(--muted); font-style: italic; text-align: center; font-size: 0.95rem; }
.controls { display: flex; gap: 8px; align-items: stretch; }
.mic { flex: 1; min-width: 0; border: 0; border-radius: 18px; padding: 0 18px; font-size: 1.05rem; font-weight: 700; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; }
.mic #micText { overflow: hidden; text-align: center; line-height: 1.2; overflow-wrap: anywhere; } /* a 390 px «Ti ascolto · tocca per inviare» va su due righe, non si taglia */
.icon-btn { flex: none; width: 60px; min-height: 60px; padding: 0; border-radius: 18px; display: grid; place-items: center; }
.s-actions { display: flex; gap: 8px; }
.s-actions:not(:has(> :not([hidden]))) { display: none; }
.s-actions > .btn { flex: 1; }
.typed { display: flex; gap: 8px; align-items: stretch; }
.typed textarea { flex: 1; min-width: 0; resize: none; }
.typed .btn { flex: none; }
/* Telefoni bassi: più spazio alla conversazione */
@media (max-height: 700px) {
  .overlay .inner { gap: 8px; }
  .s-head h2 { font-size: 1.15rem; }
  .cust { padding: 6px 10px; }
  .mic, .icon-btn { min-height: 52px; }
  .live { min-height: 1.2em; font-size: 0.9rem; }
}
.mic[data-state="listening"] { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 35%, transparent); animation: listening 1.6s ease-in-out infinite; }
@keyframes listening { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent); } }
.mic[data-state="blocked"] { background: var(--bg-2); color: var(--ink-2); }
.mic[data-state="thinking"] { background: var(--surface); color: var(--muted); border: 2px dashed var(--line); }
@media (prefers-reduced-motion: reduce) { .mic[data-state="listening"] { animation: none; } }
.mic[data-state="speaking"] { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.mic .dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.mic[data-state="listening"] .dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: 0.4; } }
.flash { flex: 1; display: grid; align-content: center; gap: 14px; }
.flash .face { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-height: 220px; display: grid; align-content: center; gap: 12px; box-shadow: var(--shadow); text-align: center; }
.flash .face .q { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.flash .face .a { font-size: 1.05rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }

/* Voto */
.report { overflow-y: auto; }
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.score-hero .big { font-family: var(--font-display); font-size: 4.2rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.quote { font-size: 1.05rem; border-left: 3px solid var(--accent); padding-left: 12px; }
ol.clean { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.delta-up { color: var(--good); font-weight: 700; }
.delta-down { color: var(--bad); font-weight: 700; }

/* Avvisi, finestre */
.toasts { pointer-events: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 12px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); font-weight: 700; display: flex; gap: 10px; align-items: center; }
:root[data-theme="light"] .toast { background: var(--ink); color: var(--surface); border-color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
body:has(.overlay) .toasts, body.no-tabs .toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(10, 16, 14, 0.45); display: grid; place-items: end center; }
@media (min-width: 640px) { .modal { place-items: center; } }
.sheet { background: var(--bg); width: min(100%, 560px); max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: grid; gap: 14px; overscroll-behavior: contain; }
@media (min-width: 640px) { .sheet { border-radius: 20px; } }
.warn { background: var(--coach-bg); border-left: 3px solid var(--coach); padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; display: grid; gap: 10px; justify-items: center; }
.copyline { white-space: pre-line; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Stampa dell'attestato: solo il riquadro */
@media print {
  /* Sulla carta sempre i colori chiari, anche col tema scuro */
  :root, :root[data-theme] { --bg: #ffffff; --bg-2: #f3f4f6; --surface: #ffffff; --ink: #0b0f19; --ink-2: #3a4150; --muted: #555c6b; --line: #d0d5de;
    --accent: #1f5fb8; --accent-2: #174a90; --accent-ink: #ffffff; --accent-soft: #e6eefa; --coach: #8a5a00; --coach-bg: #fbf2de;
    --bad: #b0322b; --bad-bg: #fae5e2; --good: #1f7a44; --good-bg: #e3f3e8; --gold: #8a5a00; --track: #e3e6ec; color-scheme: light; }
  body.printing-cert > *:not(.modal) { display: none !important; }
  body.printing-cert .modal { position: static; background: none; }
  body.printing-cert .sheet { box-shadow: none; max-height: none; }
  body.printing-cert .sheet > *:not(.certificate) { display: none !important; }
  body.printing-cert .certificate { border-color: #1f5fb8 !important; }
  /* Manuale stampato: solo il contenuto, colori chiari, una sezione non spezzata a metà */
  body.printing-manual { background: #fff; color: #111; font-size: 11pt; }
  body.printing-manual .tabbar, body.printing-manual .side, body.printing-manual .topbar, body.printing-manual .strip,
  body.printing-manual button, body.printing-manual select, body.printing-manual label, body.printing-manual .bar, body.printing-manual .toasts { display: none !important; }
  body.printing-manual .shell { display: block; }
  body.printing-manual .main { padding: 0; }
  body.printing-manual .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; background: #fff; color: #111; }
  body.printing-manual .reco { display: none !important; }
  body.printing-manual .print-head { display: block !important; }
}
.print-head { display: none; }

/* Cliente in sessione */
.cust { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.cav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; background: var(--bg-2); color: var(--ink-2); transition: background 0.4s, color 0.4s; }
.cav.cold { background: var(--bg-2); color: var(--ink-2); }
.cav.mild { background: var(--coach-bg); color: var(--coach); }
.cav.warm, .cav.hot { background: var(--good-bg); color: var(--good); }
.chip.mood.cold { background: var(--bg-2); }
.chip.mood.mild { background: var(--coach-bg); color: var(--coach); }
.chip.mood.warm, .chip.mood.hot { background: var(--good-bg); color: var(--good); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 0.72rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; background: var(--good-bg); color: var(--good); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.msg.me .tag { background: rgba(255, 255, 255, 0.92); color: #1f7a44; }
.msg.me .tag.bad { color: #b0322b; }

/* Voto e cruscotto */
.sring { width: 104px; height: 104px; flex: none; }
.sring circle { fill: none; stroke-width: 10; }
.sring .track { stroke: var(--track); }
.sring .val { stroke: var(--hot); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; animation: ring 0.9s ease-out; }
.sring.mid .val { stroke: var(--coach); }
.sring.low .val { stroke: var(--bad); }
.sring text { font-family: var(--font-display); font-weight: 750; font-size: 30px; fill: var(--ink); }
.sring text.of { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--muted); }
@keyframes ring { from { stroke-dashoffset: 276; } }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; position: relative; }
.metric b { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.metric span { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.metric small { font-size: 0.74rem; color: var(--muted); }
.metric .mk { position: absolute; top: 8px; right: 10px; font-weight: 700; color: var(--muted); }
.metric.good { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.metric.good .mk { color: var(--good); }
.metric.ok .mk { color: var(--coach); }
.metric.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.metric.bad .mk { color: var(--bad); }

/* Sfida del giorno */
.challenge { border-color: color-mix(in srgb, var(--coach) 45%, var(--line)); background: linear-gradient(180deg, var(--coach-bg), var(--surface) 70%); }
/* Sfida della settimana: classifica col soprannome */
.sfida-board { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.sfida-board h3 { margin: 0; font-size: 0.95rem; }
.sfida-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sfida-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--bg-2); font-size: 0.92rem; }
.sfida-list li .num { width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.sfida-list li .ell { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfida-strip .small { flex: none; }
/* «Preparami per domani»: il piano nel resoconto */
.prep-plan h3 { margin: 4px 0 0; font-size: 0.95rem; }
.prep-plan .item.fix .t { display: block; font-weight: 700; }
/* «Prepara la chiamata» (DECISIONS #173) */
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cp-list button.sel { background: var(--accent-soft); border-radius: 10px; padding-inline: 10px; border-bottom-color: transparent; }
.cp-list button .svgi { color: var(--accent); }
.cp-list button:last-child { border-bottom: 0; }
.card > h2 + .item { border-top: 0; padding-top: 0; }
.ev { font-size: .8rem; color: var(--muted); }
.ev q { font-style: italic; }
.chip.good { background: var(--good-bg); color: var(--good); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; }

/* Calendario a quadretti: un solo colore, più scuro = più attività */
.heat { display: block; }
.heat .ax { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.hm.l0 { fill: var(--track); }
.hm.l1 { fill: color-mix(in srgb, var(--accent) 25%, var(--bg-2)); }
.hm.l2 { fill: color-mix(in srgb, var(--accent) 50%, var(--bg-2)); }
.hm.l3 { fill: color-mix(in srgb, var(--accent) 75%, var(--bg-2)); }
.hm.l4 { fill: var(--accent); }

/* Presentazione */
.tour { display: grid; gap: 12px; text-align: center; justify-items: center; padding-block: 8px; }
.tour-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.tour-ic .svgi { width: 32px; height: 32px; }
.tour .grid { width: 100%; }
.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--hot); width: 22px; border-radius: 99px; }

/* Accesso */
.lock { min-height: 80vh; display: grid; place-items: center; }
.lock-card { width: min(100%, 380px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.lock-p { border: 2px solid transparent; background: none; border-radius: 14px; padding: 6px 8px; display: grid; justify-items: center; gap: 4px; color: var(--ink); }
.lock-p.on { border-color: var(--accent); }

/* Schermata d'ingresso e piani */
.btn.big { min-height: 58px; font-size: 1.08rem; }
.plans .num.big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 750; }
.plans ul { padding-left: 18px; display: grid; gap: 4px; }
.plan-pro { border: 2px solid var(--accent); }
.doc { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; padding-bottom: 48px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.legal { text-align: center; }
.legal a { color: inherit; }
.sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.sample-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: baseline; }
.sample-row p { margin: 0; }
.s-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--accent); }
@media (max-width: 380px) { .sample-row { grid-template-columns: 1fr; gap: 2px; } }

/* Prima schermata: niente barre di navigazione vuote */
body.no-tabs .tabbar, body.no-tabs .side { display: none; }
body.no-tabs .shell { grid-template-columns: 1fr; }
.linkbtn { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.9rem; text-decoration: underline; padding: 8px 4px; min-height: 44px; cursor: pointer; }
.linkbtn:hover { color: var(--bad); }
.avatar .svgi { width: 20px; height: 20px; }
.strip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); flex-wrap: wrap; }
.strip > .svgi { color: var(--accent-2); flex: none; }
.strip-text { flex: 1 1 180px; font-size: 0.92rem; font-weight: 700; }
.strip .input { flex: 1 1 120px; min-height: 44px; }
.strip .btn { min-height: 44px; padding: 6px 14px; }
.strip-x { border: 0; background: none; color: var(--muted); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-hero > div { display: grid; gap: 6px; justify-items: start; }
.debrief .fix { border-left: 3px solid var(--accent); padding-left: 12px; }
.debrief .fix .t { font-weight: 700; }
.plans3 { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .plans3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan .price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 750; margin: 0; }
.plan .price.small-price { font-size: 1.05rem; }
.plan ul { padding-left: 18px; display: grid; gap: 4px; margin: 0; flex: 1; }
.plan > .chip { align-self: flex-start; }

/* Squadra: cruscotto del capo */
.tm-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.92rem; }
.tm-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 44px; margin: 6px 0; }
.tm-bars i { display: block; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 3px; }
.tm-bars i.empty { background: var(--line); }
.tm-seller .card-head { flex-wrap: wrap; gap: 4px 10px; }

/* Logo Dealkata (volpe col gi, DECISIONS #159): schermata d'avvio, marchio grande in prima pagina, mascotte una volta sola */
.boot { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.boot img { width: 72px; height: 72px; border-radius: 18px; }

/* ============================================================
   Prima pagina (DECISIONS #160): una sola famiglia (Geist), titolo grande e stretto, un solo punto forte:
   il «tatami» blu volpe con l'esempio animato di un giro. Il resto è quieto: testo, righe sottili, niente schede uguali.
   Segue il telefono (chiaro/scuro). Movimento solo nell'esempio, spento con prefers-reduced-motion.
   ============================================================ */
body:has(.landing) .main { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.landing { max-width: 1120px; margin: 0 auto; display: block; }
.landing h1, .landing h2, .landing h3 { text-wrap: balance; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-top: max(4px, env(safe-area-inset-top)); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.lp-brand .logo { width: 34px; height: 34px; border-radius: 9px; }
.lp-top-r { display: flex; align-items: center; gap: 6px; }
.lp-lang { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 0.9rem; border-radius: 10px; }
.lp-lang:hover { color: var(--ink); }
.btn.lp-ghost { background: transparent; border-color: var(--line); }
.btn.lp-ghost:hover { border-color: var(--ink-2); }

/* Apertura */
.lp-hero { display: grid; gap: 36px; padding: 28px 0 64px; align-items: center; }
.lp-hero h1 { font-size: clamp(2.45rem, 9.6vw, 4.5rem); font-weight: 780; letter-spacing: -0.045em; line-height: 0.98; max-width: 12ch; }
.lp-sub { margin-top: 20px; font-size: clamp(1.06rem, 2.4vw, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.lp-invite { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; font-weight: 650; font-size: 0.95rem; }
.lp-invite .svgi { color: var(--hot); width: 20px; height: 20px; margin-top: 2px; }
/* Offerta di lancio (#177, ?ref=producthunt) */
.lp-promo { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--hot); border-radius: 14px; display: grid; gap: 10px; max-width: 46ch; }
.lp-promo p { font-size: 0.98rem; line-height: 1.45; }
.lp-promo .btn.lp-secondary { min-height: 48px; justify-self: start; border-color: var(--hot); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn.lp-primary { background: var(--cta); border-color: var(--cta); color: var(--hot-ink); min-height: 56px; padding: 12px 24px; border-radius: 14px; font-size: 1.06rem; font-weight: 720; letter-spacing: -0.01em; transition: transform 0.15s, background 0.15s; }
.btn.lp-primary:hover { background: #ff7d36; }
.btn.lp-primary:active { transform: translateY(1px); }
.btn.lp-primary .svgi { width: 18px; height: 18px; fill: currentColor; stroke-width: 1.4; }
.btn.lp-secondary { min-height: 56px; padding: 12px 22px; border-radius: 14px; background: transparent; border-color: var(--line); font-size: 1.02rem; }
.btn.lp-secondary:hover { border-color: var(--ink-2); }
.lp-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); max-width: 46ch; }
@media (max-width: 520px) { .lp-cta .btn { width: 100%; } }

/* Il tatami: pannello blu volpe con il giro d'esempio */
.lp-demo { margin: 0; display: grid; gap: 12px; }
.lp-demo-card { position: relative; background-color: var(--brand); border-radius: 28px; padding: 22px 16px; overflow: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 60px; background-position: -1px -1px; }
.lp-screen { background: var(--bg); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 40, 0.6); }
.lp-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.lp-demo-head b { font-size: 1.02rem; letter-spacing: -0.01em; }
.lp-demo-mood { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.lp-demo-mood .meter { flex: 1; }
.lp-demo-mood .chip { min-width: 9.5em; justify-content: center; transition: background 0.4s, color 0.4s; }
.lp-demo-log { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; border-top: 1px solid var(--line); }
.lp-demo-log .msg { font-size: 0.95rem; line-height: 1.4; max-width: 90%; }
.lp-demo-log .msg.coach { font-size: 0.92rem; }
.lp-demo-score { display: flex; align-items: center; gap: 14px; padding: 6px 16px 16px; }
.lp-demo-score .sring { width: 64px; height: 64px; }
.lp-demo-score p { display: grid; gap: 2px; }
.lp-demo-score span { color: var(--muted); font-size: 0.9rem; }
.lp-demo [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lp-demo [data-step].on { opacity: 1; transform: none; }
.lp-demo-score.on { opacity: 1; }
/* Telefono: l'esempio è lungo, i passi ancora nascosti lascerebbero un grande riquadro vuoto: si vede già completo */
@media (max-width: 720px) { .lp-demo [data-step] { opacity: 1; transform: none; } }
.lp-demo-score .sring .val { animation: none; }
.lp-demo-score.on .sring .val { animation: ring 0.9s ease-out; }
.lp-demo figcaption { font-size: 0.85rem; color: var(--muted); padding-left: 4px; }
@media (prefers-reduced-motion: reduce) {
  .lp-demo [data-step], .lp-demo-mood .chip, .lp-demo .meter > i { transition: none; }
  .lp-demo-score.on .sring .val { animation: none; }
  .btn.lp-primary { transition: none; }
}

/* Sezioni */
.lp-sec { padding: 56px 0; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.lp-sec h2, .lp-final h2 { font-size: clamp(1.65rem, 4.4vw, 2.4rem); font-weight: 760; letter-spacing: -0.035em; line-height: 1.08; max-width: 22ch; }
.lp-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 56ch; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.lp-steps li { display: grid; gap: 8px; align-content: start; }
.lp-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 760; font-size: 1rem; font-variant-numeric: tabular-nums; }
.lp-steps h3 { font-size: 1.18rem; font-weight: 720; letter-spacing: -0.015em; margin-top: 6px; }
.lp-steps p { color: var(--muted); max-width: 36ch; }
.lp-teach { justify-self: start; }

.lp-get { align-items: start; }
.lp-get-text { display: grid; gap: 28px; }
.lp-list { margin: 0; display: grid; gap: 22px; }
.lp-list > div { display: grid; gap: 4px; }
.lp-list dt { display: flex; align-items: center; gap: 10px; font-weight: 720; font-size: 1.06rem; letter-spacing: -0.01em; }
.lp-list dt .svgi { color: var(--accent); width: 20px; height: 20px; }
.lp-list dd { margin: 0 0 0 30px; color: var(--muted); max-width: 52ch; }
.landing .sample { border-radius: 20px; padding: 20px; gap: 14px; box-shadow: none; }
.landing .sample figcaption { font-weight: 650; color: var(--ink-2); }
.landing .sample-row { grid-template-columns: 104px 1fr; padding-top: 12px; border-top: 1px solid var(--line); }
.landing .s-label { text-transform: none; letter-spacing: 0; font-size: 0.88rem; font-weight: 650; color: var(--muted); }

.lp-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-team-list li { display: flex; gap: 10px; align-items: flex-start; max-width: 60ch; }
.lp-team-list .svgi { color: var(--good); width: 20px; height: 20px; margin-top: 2px; }
.lp-belts { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--line); border-radius: 16px; max-width: 560px; }
.lp-belt-row { display: flex; gap: 6px; }
.lp-belt-row i { flex: 1; height: 10px; border-radius: 3px; background: var(--b); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.lp-belts p { font-size: 0.95rem; color: var(--ink-2); }
#lTeam { justify-self: start; }

/* Lista d'attesa e prezzo fondatori */
.lp-wait { display: grid; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 18px; scroll-margin-top: 16px; }
.lp-wait-pitch { display: grid; gap: 18px; align-content: start; }
.lp-wait-pitch .mascot { width: 84px; height: auto; background: var(--brand); border-radius: 18px; padding: 10px 8px 4px; }
.lp-wait-pitch h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 760; letter-spacing: -0.035em; line-height: 1.1; }
.lp-wait-pitch p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; }
.lp-wait .wl-form { gap: 12px; }
.lp-wait #wlGo { min-height: 52px; font-size: 1.02rem; }
.lp-wait .strip { align-self: start; }

/* Domande */
.lp-faq-list { display: grid; max-width: 760px; border-top: 1px solid var(--line); }
.lp-faq-list details { border-bottom: 1px solid var(--line); }
.lp-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; font-weight: 680; font-size: 1.06rem; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
.lp-faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lp-faq-list details p { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .lp-faq-list summary::after { transition: none; } }

/* Chiusura e piè di pagina */
.lp-final { padding: 56px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.lp-final .lp-cta { align-items: center; }
.lp-final #lAcc:empty { display: none; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 8px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.lp-foot .lp-brand { font-size: 1rem; }
.lp-foot .lp-brand .logo { width: 26px; height: 26px; border-radius: 7px; }
.lp-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.lp-foot-links a { color: var(--ink-2); padding: 10px 0; }
.lp-foot-links #lLang { display: inline-flex; align-items: center; gap: 12px; }
.lp-foot-links b { color: var(--ink); font-weight: 650; }

@media (min-width: 720px) {
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .lp-demo-card { padding: 32px 28px; }
  .lp-wait { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; padding: 36px; }
}
@media (min-width: 960px) {
  .lp-top { min-height: 72px; }
  .lp-hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; padding: 40px 0 88px; }
  .lp-sec, .lp-final { padding: 88px 0; }
  .lp-get { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .lp-get .sample { margin-top: 64px; }
  .lp-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
  .lp-team > * { grid-column: 1; }
  .lp-team .lp-belts { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
}

/* Pagella condivisibile (DECISIONS #164): anteprima nel foglio prima di creare il link */
.sc-prev { display: grid; gap: 6px; background: var(--brand); color: #fff; border-radius: 18px; padding: 18px; }
.sc-prev-n { font-size: 3rem; font-weight: 780; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-prev-n small { font-size: 1.2rem; opacity: 0.75; margin-left: 4px; }
.sc-prev-o { font-weight: 680; font-size: 1.1rem; line-height: 1.25; }
.sc-img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 18px; margin: 0 auto; }

/* «Salta la fila» (DECISIONS #166): il posto in fila dopo l'iscrizione */
.fila { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fila-pos { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; }
.fila-pos b { color: var(--accent); font-variant-numeric: tabular-nums; }
.fila .row { flex-wrap: wrap; }
.fila-step { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--accent-soft); }

/* Cinture come livelli (DECISIONS #167): il badge accanto al nome della cintura; salita = un solo movimento, breve */
.belt-card { display: flex; align-items: center; gap: 16px; }
.belt-card h2 { margin-bottom: 4px; }
.belt-card > div { display: grid; gap: 4px; min-width: 0; }
.belt-img { flex: none; border-radius: 50%; }
.belt-up { border-color: var(--accent); }
.belt-up .belt-img { animation: beltUp 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes beltUp { 0% { transform: scale(0.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .belt-up .belt-img { animation: none; } }

/* «Agenda del giorno» (DECISIONS #175): caricamento, giornata, «Com'è andata?», resoconto, riepilogo */
.pill.wait { background: var(--coach-bg); color: var(--gold); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.ag-ok { background: var(--good-bg); border-left: 3px solid var(--good); padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.ag-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 18px 14px; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; }
.ag-drop .svgi { width: 30px; height: 30px; color: var(--accent); }
.ag-drop:focus-within { border-color: var(--accent); }
.ag-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 10px; font-size: 0.86rem; align-items: center; }
.ag-map .col { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; overflow-wrap: anywhere; }
.ag-map .input { min-height: 38px; padding: 6px 10px; }
.ag-prev { font-size: 0.85rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ag-prev div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); }
.ag-prev div:first-child { border-top: 0; background: var(--bg-2); color: var(--muted); font-weight: 700; }
.ag-day { display: grid; }
.ag-slot { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ag-slot:first-child { border-top: 0; }
.ag-slot > :not(.tm) { grid-column: 2; }
.ag-slot .tm { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink-2); grid-row: 1 / span 3; padding-top: 1px; }
.ag-slot.done .tm, .ag-slot.done .nm { color: var(--muted); }
.ag-slot.now { background: var(--coach-bg); border-radius: 12px; padding-inline: 10px; margin-inline: -10px; border-top-color: transparent; }
.ag-slot.now + .ag-slot { border-top-color: transparent; }
.ag-slot .nm { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.ag-slot .pill:not(.win):not(.lost):not(.wait) { background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.ag-slot .acts { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.ag-step { display: grid; gap: 8px; }
.ag-step .n { font-size: 0.75rem; font-weight: 750; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.ag-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-chips .chip { border: 1px solid transparent; font: inherit; font-size: 0.85rem; font-weight: 700; min-height: 36px; cursor: pointer; }
.ag-chips .chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.ag-mic { border: 0; border-radius: 16px; font: inherit; font-size: 1rem; font-weight: 700; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: 100%; cursor: pointer; }
.ag-mic .dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.ag-mic.on .dot { animation: agPulse 1s ease-in-out infinite; }
@keyframes agPulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .ag-mic.on .dot { animation: none; } }
.ag-fix { display: grid; gap: 4px; }
.ag-fix .t { font-weight: 700; }
.ag-drill { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: var(--bg-2); }
.ag-drill .btn { justify-self: start; }
.ag-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-bar { height: 12px; display: flex; }
.ag-bar > i { border-radius: 0; flex: none; }
/* «Trova clienti» (DECISIONS #174): tipi a tocco, le 10 con il motivo, il percorso senza mappa */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.pick { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); min-height: 40px; padding: 6px 12px; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.chip.pick[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.sm { min-height: 40px; padding: 6px 11px; font-size: 0.88rem; border-radius: 10px; }
.btn.sm .svgi { width: 18px; height: 18px; }
.flow { display: grid; gap: 6px; font-size: 0.9rem; }
.flow .s { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.flow .s i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 0.75rem; font-weight: 750; }
.lead { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.lead:first-child { border-top: 0; padding-top: 0; }
.lead > :not(.rank) { grid-column: 2; min-width: 0; }
.lead .rank { grid-column: 1; grid-row: 1 / span 4; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-weight: 750; display: grid; place-items: center; font-size: 0.85rem; }
.lead b { overflow-wrap: anywhere; }
.lead .pill { flex: none; background: var(--bg-2); color: var(--ink-2); }
.lead .pill.lost { background: var(--bad-bg); color: var(--bad); }
.lead .why { display: grid; gap: 3px; font-size: 0.86rem; }
.why .ck { color: var(--ink-2); }
.why .ck::before { content: "✓ "; color: var(--good); font-weight: 700; }
.why .qt { color: var(--muted); font-style: italic; }
.lead .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.osm { font-size: 0.75rem; color: var(--muted); text-align: center; }
.osm a { color: inherit; }
.find-path { gap: 10px; }
.path { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.path .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; grid-row: span 2; }
.path b { font-size: 0.98rem; }
.path.main { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
@media (hover: hover) { .path:hover { border-color: var(--accent); } }
