/* ══════════════════════════════════════════════════════════════
   TIPAK — landing page (validazione idea: aziende locali)
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:      #050505;
    --bg2:     #0c0c0c;
    --card:    #111111;
    --b:       #1e1e1e;
    --b2:      #2a2a2a;
    --pri:     #f8fafc;
    --mut:     #94a3b8;
    --acc:     #ff6a00;
    --acc-a:   rgba(255, 106, 0, 0.12);
    --acc-b:   rgba(255, 106, 0, 0.28);
    --green:   #16a34a;
    --red:     #e11d48;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--pri);
    background: var(--bg);
    line-height: 1.5;
}

a { color: inherit; }

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--b);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 15px;
    text-decoration: none;
}

.nav-cta {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: var(--acc);
    color: #050505;
    padding: 9px 16px;
    border-radius: 8px;
    transition: opacity .15s;
}

.nav-cta:hover { opacity: .85; }

/* ── Hero ── */
.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 90px 6vw 70px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--acc);
    background: var(--acc-a);
    border: 1px solid var(--acc-b);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5.5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--mut);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-sub strong { color: var(--pri); }

/* ── Waitlist form ── */
.waitlist-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--b2);
    color: var(--pri);
    font-size: 14px;
    font-family: inherit;
    padding: 13px 16px;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s;
}

.waitlist-form input::placeholder { color: var(--mut); }
.waitlist-form input:focus { border-color: var(--acc); }
.waitlist-form input.invalid { border-color: var(--red); }

.waitlist-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--acc);
    color: #050505;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 18px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
}

.waitlist-form button:hover { opacity: .88; }
.waitlist-form button:active { transform: scale(.97); }
.waitlist-form button:disabled { opacity: .5; cursor: default; }

.form-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--mut);
}

.form-note.success { color: var(--green); font-weight: 600; }
.form-note.error { color: var(--red); font-weight: 600; }

@media (max-width: 520px) {
    .waitlist-form { flex-direction: column; }
    .waitlist-form button { justify-content: center; }
}

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mut);
    text-decoration: none;
    transition: color .15s;
}

.scroll-hint i { font-size: 11px; }
.scroll-hint:hover { color: var(--acc); }

/* ── Sections ── */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 6vw;
    border-top: 1px solid var(--b);
}

.section h2 {
    text-align: center;
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.5px;
    max-width: 640px;
    margin: 0 auto 46px;
}

/* ── Demo mappa ── */
.demo-sub {
    text-align: center;
    color: var(--mut);
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 14.5px;
}

.demo-tag {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--acc);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.map-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--b);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    min-height: 320px;
}

.map-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* chrome decorativo — rende la mappa credibile senza dipendenze esterne */
.map-zoom {
    position: absolute;
    top: 50px;
    right: 12px;
    display: flex;
    flex-direction: column;
    background: var(--bg2);
    border: 1px solid var(--b2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 3;
}

.map-zoom span {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--mut);
}

.map-zoom span:first-child { border-bottom: 1px solid var(--b2); }

.map-scale {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.map-scale-bar {
    width: 34px;
    height: 3px;
    background: var(--mut);
    border-radius: 1px;
}

.map-scale-label {
    font-size: 10px;
    color: var(--mut);
}

.you-are-here {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.yah-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .3);
    position: relative;
    z-index: 2;
}

.yah-ring {
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    animation: yah-pulse 2.2s ease-out infinite;
}

.yah-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--pri);
    background: rgba(5, 5, 5, .7);
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    margin-top: 2px;
}

@keyframes yah-pulse {
    0%   { width: 12px; height: 12px; opacity: .6; }
    100% { width: 46px; height: 46px; opacity: 0; }
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--acc);
    border: 2px solid #050505;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    animation: pin-pulse 2.6s ease-in-out infinite;
    z-index: 2;
}

.map-pin:hover { transform: translate(-50%, -50%) scale(1.12); }

.map-pin.active {
    background: var(--pri);
    animation: none;
    box-shadow: 0 0 0 5px var(--acc-a);
}

@keyframes pin-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, .35); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 106, 0, 0); }
}

.detail-panel {
    background: var(--card);
    border: 1px solid var(--b);
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-placeholder {
    text-align: center;
    color: var(--mut);
}

.detail-placeholder i {
    font-size: 22px;
    color: var(--acc);
    margin-bottom: 12px;
}

.detail-placeholder p { font-size: 13px; }

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--acc-a);
    color: var(--acc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.detail-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-meta {
    font-size: 12.5px;
    color: var(--mut);
    margin-bottom: 14px;
}

.detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--acc-a);
    color: var(--acc);
    border: 1px solid var(--acc-b);
}

.badge-size {
    background: var(--b2);
    color: var(--mut);
    border-color: var(--b2);
}

.badge-open {
    background: rgba(22, 163, 74, .12);
    color: var(--green);
    border-color: rgba(22, 163, 74, .3);
}

.detail-distance {
    font-size: 12.5px;
    color: var(--mut);
    margin-bottom: 18px;
}

.detail-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--acc);
    color: #050505;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .15s;
}

.detail-cta:hover { opacity: .88; }

.detail-future {
    margin-top: 10px;
    font-size: 11px;
    color: var(--mut);
    font-style: italic;
    text-align: center;
}

@media (max-width: 760px) {
    .demo-grid { grid-template-columns: 1fr; }
    .map-card { aspect-ratio: 4 / 3; min-height: 260px; }
}

/* ── Problem cards — recap leggero, non spiegazione primaria ── */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--b);
    border-radius: 12px;
    padding: 18px 16px;
}

.card i {
    font-size: 16px;
    color: var(--acc);
    background: var(--acc-a);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card p {
    font-size: 12.5px;
    color: var(--mut);
}

/* ── Steps ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
    padding: 0 10px;
}

.step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--acc-b);
    color: var(--acc);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 13.5px;
    color: var(--mut);
}

@media (max-width: 720px) {
    .cards, .steps { grid-template-columns: 1fr; }
}

/* ── CTA finale ── */
.cta-final {
    text-align: center;
}

.cta-final p {
    color: var(--mut);
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ── Footer ── */
.foot {
    text-align: center;
    padding: 30px 6vw 50px;
    color: var(--mut);
    font-size: 12px;
}
