/* Stili specifici della homepage (non condivisi con le pagine CMS). Token e componenti base in style.css. */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.section-head p { margin-top: 12px; color: var(--ink3); font-size: 1.08rem; }

/* ─── HERO ─── */
.home-hero {
    position: relative;
    padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px);
    background-color: #fff;
    background-image:
        linear-gradient(to right, rgba(26,86,232,.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26,86,232,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    border-bottom: 1px solid var(--border);
}
.home-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, #fff); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 400px); gap: clamp(32px, 4vw, 56px); align-items: start; }
.pill { display: inline-block; background: var(--net-pale); color: var(--net); font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 22px; }
.hero-left h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.3vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.hero-left .subtitle { margin-top: 22px; max-width: 52ch; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink3); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stack-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stack-chips span { display: inline-block; padding: 6px 13px; border-radius: 100px; background: #fff; border: 1px solid var(--border); color: var(--ink3); font-size: .88rem; font-weight: 500; }

.hero-stats { display: none; gap: 32px; margin-top: 28px; }
.hero-stat-n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; display: block; }
.hero-stat-l { font-size: .85rem; color: var(--muted); }

.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 32px -18px rgba(18,40,120,.25); padding: clamp(20px, 3.5vw, 28px); }
.hero-card h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.hero-card .card-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

.launch-countdown { display: none; gap: 10px; margin-bottom: 20px; }
.launch-countdown.visible { display: flex; }
.launch-countdown .unit { flex: 1; text-align: center; background: var(--surface); border-radius: 12px; padding: 12px 4px; }
.launch-countdown .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.launch-countdown .lbl { font-size: .75rem; color: var(--muted); margin-top: 4px; }

.live-banner { display: none; text-align: center; }
.live-banner.visible { display: block; }
.live-banner h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; }
.live-banner p { color: var(--muted); margin-bottom: 20px; }

.waitlist-form .field { margin-bottom: 14px; }
.waitlist-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.waitlist-form input { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.waitlist-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(26,86,232,.18); }
.user-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.user-type-toggle button { font-family: var(--font-body); font-size: .88rem; font-weight: 600; padding: 11px 6px; white-space: nowrap; border-radius: 8px; border: 0; background: transparent; color: var(--ink3); cursor: pointer; transition: background .15s, color .15s; }
.user-type-toggle button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 6px rgba(12,20,36,.12); }
.waitlist-form button[type="submit"] { width: 100%; margin-top: 4px; }
.waitlist-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
.waitlist-form .fineprint { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.waitlist-form .fineprint a { color: var(--muted); }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .92rem; display: none; }
.form-message.success { display: block; background: var(--green-pale); color: #065f46; }
.form-message.error { display: block; background: #fee2e2; color: #991b1b; }

/* ─── DUE LATI ─── */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.track { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; }
.track h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.track > p { color: var(--ink3); }
.track ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 14px; }
.track li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink2); }
.track li svg { width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.track .btn { align-self: flex-start; margin-top: auto; }
.track.dark { background: var(--night); color: #fff; }
.track.dark > p, .track.dark li { color: #c4cde4; }
.track.dark li svg { color: #6ee7b7; }

/* ─── ANATOMIA DEL PROFILO ─── */
.profile-sec { background: var(--surface); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.pcard { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; }
.pcard .sample { position: absolute; top: 16px; right: 16px; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 100px; }
.pcard-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.avatar { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--blue-pale); border: 2px dashed rgba(26,86,232,.4); display: grid; place-items: center; color: var(--blue); }
.avatar svg { width: 34px; height: 34px; }
.pname { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.ptitle { color: var(--ink3); font-size: .93rem; margin-top: 2px; }
.badge-net { display: inline-block; margin-top: 8px; font-size: .75rem; font-weight: 600; color: var(--net); background: var(--net-pale); padding: 3px 10px; border-radius: 100px; }
.pbio { color: var(--ink3); font-size: .95rem; margin-bottom: 18px; }
.pstack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pstack span { font-size: .8rem; font-weight: 500; padding: 4px 11px; border-radius: 100px; background: var(--surface); color: var(--ink2); }
.pmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; font-size: .88rem; }
.pmeta dt { color: var(--muted); }
.pmeta dd { font-weight: 600; color: var(--ink2); }
.tips { list-style: none; display: grid; gap: 4px; margin-top: 8px; }
.tips a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.tips strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.tips span { display: block; margin-top: 4px; color: var(--ink3); font-size: .95rem; }
.tips a:hover strong { color: var(--blue); }

/* ─── CONFRONTO ─── */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: #fff; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink2); width: 22%; }
.compare td { color: var(--ink3); }
.compare .us { background: var(--blue-pale); color: var(--ink); font-weight: 500; }
.compare thead .us { background: var(--blue); color: #fff; border-bottom-color: var(--blue); border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 12px 12px; border-bottom: 0; }
.sr-only { position: absolute; left: -9999px; }

/* ─── PRINCIPI ─── */
.principles { background: var(--surface); }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.pr svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 16px; }
.pr h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.pr p { color: var(--ink3); font-size: .95rem; }
.soon-badge { position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 700; color: var(--net); background: var(--net-pale); padding: 3px 10px; border-radius: 100px; }

/* ─── GUIDE ─── */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.guides h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.guides ul { list-style: none; }
.guides a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 600; }
.guides a small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.guides a:hover { color: var(--blue); }
.guides .more { margin-top: 18px; display: inline-block; font-weight: 600; color: var(--blue); text-decoration: none; border: 0; padding: 0; }

/* ─── CTA FINALE ─── */
.final-cta { padding: 0 0 clamp(56px, 9vw, 104px); }
.final-box { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px); display: grid; gap: 20px; justify-items: start; }
.final-box h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; }
.final-box p { max-width: 50ch; color: #dbe5ff; font-size: 1.08rem; }

@media (max-width: 960px) {
    .hero-grid, .profile-grid, .tracks, .guides, .pr-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 560px; }
    .hero-left h1 { font-size: clamp(1.9rem, 6.6vw, 2.8rem); }
}

/* Confronto: su schermi stretti ogni riga diventa una scheda con l'etichetta di colonna */
@media (max-width: 760px) {
    .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
    .compare thead { position: absolute; left: -9999px; }
    .compare tbody tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
    .compare tbody th { background: var(--surface); border-bottom: 1px solid var(--border); }
    .compare td { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
    .compare td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .85rem; }
    .compare .us, .compare tbody tr:last-child .us { border-radius: 0; }
    .compare td:last-child { border-bottom: 0; }
}

/* ─── FASE WAITLIST: spiegazione e cambio ruolo nel form ─── */
.phase-note { margin-top: 28px; max-width: 54ch; padding: 14px 18px; border-left: 3px solid var(--net); background: var(--net-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.phase-note strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.phase-note p { color: var(--ink3); font-size: .95rem; line-height: 1.55; }
.role-hint { margin: -6px 0 16px; font-size: .88rem; color: var(--muted); }
.waitlist-form .field[hidden] { display: none; }
