/* ============================================================
   EccoChi — landing "Rivelazione notturna"
   Palette: petrolio notte + verde verificato + glow chiamata.
   Type: Bricolage Grotesque (display) · Instrument Sans (body)
         · Spline Sans Mono (codici, eyebrow, dati).
   ============================================================ */

:root {
    --bg:        #071a1e;
    --bg-raised: #0c262b;
    --surface:   #103137;
    --line:      rgba(237, 246, 243, .1);
    --line-soft: rgba(237, 246, 243, .06);

    --ink:       #edf6f3;
    --muted:     #8fb0ac;

    --verified:  #2fe08c;
    --verified-dim: rgba(47, 224, 140, .14);
    --ring:      #4eb8ff;
    --ring-dim:  rgba(78, 184, 255, .12);
    --danger:    #ff6b6b;

    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --body:    "Instrument Sans", system-ui, sans-serif;
    --mono:    "Spline Sans Mono", ui-monospace, monospace;

    --maxw: 1120px;
    --radius: 20px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* ---------------- Base ---------------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--verified); color: var(--bg); }

img, svg { display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; stroke-width: 2; flex: none; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--verified); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.015em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .5em; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }

em { font-style: normal; color: var(--verified); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

.section { padding: clamp(80px, 12vh, 140px) 0; }
.section.raised {
    background: var(--bg-raised);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--verified);
    margin-bottom: 1.1em;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    max-width: 58ch;
    margin-bottom: 1.6em;
}

/* ---------------- Bottoni & chip ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .82em 1.7em;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--verified);
    color: #05231a;
    box-shadow: 0 8px 28px rgba(47, 224, 140, .28);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(47, 224, 140, .4); }

.btn-outline { border-color: rgba(237, 246, 243, .28); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: .55em 1.2em; font-size: .9rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .5em 1em;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .03);
    color: var(--muted);
    font-size: .88rem;
}
.chip .ic { color: var(--verified); }

.section-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* ---------------- Nav ---------------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(20px, 4vw, 40px);
    transition: background .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(7, 26, 30, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line-soft);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.nav-links > a:not(.btn) {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
    transition: color .18s ease;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }

@media (max-width: 640px) {
    .nav-links > a:not(.btn) { display: none; }

    /* Su telefono la barra compare solo dopo lo scroll: in cima i pulsanti sono nella hero. */
    .nav { opacity: 0; visibility: hidden; transform: translateY(-100%);
           transition: background .3s ease, border-color .3s ease, opacity .25s ease, transform .25s ease, visibility .25s; }
    .nav.scrolled { opacity: 1; visibility: visible; transform: none; }

    .hero .hero-mobile-cta { display: grid; justify-items: center; gap: 16px; }
    [data-os="ios"] .hero-mobile-cta .store-badge-play,
    [data-os="android"] .hero-mobile-cta .store-badge-ios { display: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    .nav { transition: none; }
}

/* Da desktop i link compaiono appena si scorre: in cima alla pagina solo logo e pulsante. */
@media (min-width: 641px) {
    .nav-links > a:not(.btn) {
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s, color .18s ease;
    }
    .nav.scrolled .nav-links > a:not(.btn) { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-links > a:not(.btn) { transition: none; }
}

/* Pulsante diviso: Verifica (webapp) | Scarica (badge degli store in fondo). */
.split-cta { display: inline-flex; border-radius: 999px; box-shadow: 0 8px 28px rgba(47, 224, 140, .22); }
.split-cta a {
    padding: .55em 1.1em;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid var(--verified);
    transition: background .18s ease, color .18s ease;
}
.split-cta .split-left { background: var(--verified); color: #05231a; border-radius: 999px 0 0 999px; padding-left: 1.3em; }
.split-cta .split-left:hover { background: #5fe9a6; }
.split-cta .split-right { color: var(--ink); background: rgba(7, 26, 30, .6); border-left: 0; border-radius: 0 999px 999px 0; padding-right: 1.3em; }
.split-cta .split-right:hover { background: var(--verified-dim); }

/* ---------------- Hero ---------------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 90px;
    overflow: hidden;
}

.hero-night {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 78% 34%, var(--ring-dim), transparent 65%),
        radial-gradient(700px 500px at 12% 82%, rgba(47, 224, 140, .05), transparent 70%);
    transition: opacity 1s ease;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    width: 100%;
}

.kicker {
    font-family: var(--mono);
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ring);
    margin-bottom: 1.4em;
}

/* Su una riga sua ma con la propria altezza di riga: niente spazio grande sotto "EccoChi." */
.h1-line2 { display: block; margin-top: .12em; font-weight: 500; font-size: .62em; line-height: 1.15; letter-spacing: -.01em; }

.hero-sub {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    max-width: 46ch;
    margin: 1.4em 0 2em;
}
.hero-sub strong { display: block; margin-top: .6em; color: var(--ink); font-weight: inherit; }

.hero-mobile-cta { display: none; }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
    /* Non è un .reveal: sta nella fascia bassa che l'osservatore ignora, e .reveal azzererebbe
       il translateX che lo centra. Compare da solo poco dopo il caricamento. */
    animation: hint-in .8s ease .6s both;
}
@keyframes hint-in { from { opacity: 0; } to { opacity: 1; } }
.scroll-hint span {
    width: 1px;
    height: 34px;
    background: linear-gradient(var(--muted), transparent);
    animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
    0%   { transform: scaleY(.2); transform-origin: top; opacity: 0; }
    45%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(.2); transform-origin: bottom; opacity: 0; }
}

/* ---------------- Signature: la rivelazione ---------------- */

.hero-demo { position: relative; }
.hero-demo::before {
    content: "";
    position: absolute;
    inset: -60px -40px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--ring-dim), transparent);
    filter: blur(8px);
    transition: background 1s ease;
    pointer-events: none;
}
.hero-demo.is-verified::before {
    background: radial-gradient(closest-side, var(--verified-dim), transparent);
}

/* Le due facce stanno nella stessa cella: la scheda prende l'altezza della più alta. */
.reveal-card {
    position: relative;
    display: grid;
    min-height: 330px;
    max-width: 380px;
    margin: 0 auto;
    perspective: 1400px;
}

.face {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, var(--surface), var(--bg-raised) 70%);
    box-shadow: var(--shadow);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform .8s cubic-bezier(.3, .7, .25, 1);
}
.face-unknown { transform: rotateY(0deg); }
.face-verified { transform: rotateY(-180deg); border-color: rgba(47, 224, 140, .35); }

.is-verified .face-unknown { transform: rotateY(180deg); }
.is-verified .face-verified { transform: rotateY(0deg); }

@media (prefers-reduced-motion: reduce) {
    .face { transition: opacity .3s ease; transform: none !important; }
    .face-verified { opacity: 0; pointer-events: none; }
    .is-verified .face-unknown { opacity: 0; }
    .is-verified .face-verified { opacity: 1; }
}

/* faccia sconosciuta */
.call-time {
    position: absolute;
    top: 18px;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--muted);
}
.call-ring {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
}
.call-ring > span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--ring);
    opacity: .28;
}
/* Anelli fermi: a pulsare è solo la notifica da toccare, per non confondere. */
.call-ring > span:nth-child(2) { transform: scale(1.3); opacity: .12; }
.call-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ring-dim);
    color: var(--ring);
    font-size: 1.35rem;
}
.call-number {
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .06em;
}
.call-label { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.call-quote {
    margin-top: 20px;
    font-style: italic;
    color: var(--muted);
    font-size: .95rem;
}

/* faccia verificata */
.v-badge {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .35em .95em;
    border-radius: 999px;
    background: var(--verified-dim);
    color: var(--verified);
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 14px;
}
.v-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.v-type { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.v-rows { width: 100%; max-width: 270px; }
.v-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--line-soft);
    font-size: .9rem;
}
.v-row dt { color: var(--muted); }
.v-row dd { font-weight: 600; }
.v-foot {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--verified);
    letter-spacing: .04em;
}

/* la notifica che arriva mentre squilla */
.push-entry { margin-bottom: 22px; text-align: center; }
.push-hint {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 12px;
    min-height: 1.5em;
    transition: color .3s ease;
}
.push-hint.ok { color: var(--verified); }

.hero-push {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 14px 18px;
    text-align: left;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(237, 246, 243, .08), rgba(237, 246, 243, .04));
    backdrop-filter: blur(6px);
    color: var(--ink);
    font-family: var(--body);
    cursor: pointer;
    opacity: 0;
    transform: translateY(18px) scale(.97);
    pointer-events: none;
    transition: opacity .5s ease, transform .5s cubic-bezier(.3, .7, .25, 1.15),
                border-color .3s ease, box-shadow .3s ease;
}
.hero-push.in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.hero-push.in:hover {
    border-color: rgba(47, 224, 140, .45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4), 0 0 0 4px var(--verified-dim);
}
.hero-push.tap { transform: scale(.96); }

/* Pulsazione mentre la notifica aspetta il tocco: due contorni verdi che si allargano e
   svaniscono, sfasati, come gli anelli della chiamata in arrivo (.call-ring). */
.hero-push::before,
.hero-push::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--verified);
    opacity: 0;
    pointer-events: none;
}
.hero-push.in:not(.tap)::before,
.hero-push.in:not(.tap)::after { animation: push-pulse 2.4s ease-out infinite; }
.hero-push.in:not(.tap)::after { animation-delay: 1.2s; }
@keyframes push-pulse {
    0%   { inset: 0; border-radius: 18px; opacity: .7; }
    100% { inset: -16px; border-radius: 30px; opacity: 0; }
}

.hp-mark { flex: none; width: 34px; height: 34px; color: var(--ink); }
.hp-body { display: grid; gap: 2px; min-width: 0; }
.hp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: .78rem;
}
.hp-head b { color: var(--verified); font-weight: 600; letter-spacing: .02em; }
.hp-now { color: var(--muted); }
.hp-title { font-weight: 600; font-size: .98rem; }
.hp-sub { color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
    .hero-push { transition: none; }
    .hero-push, .hero-push.tap { transform: none; }
    .hero-push.in:not(.tap)::before, .hero-push.in:not(.tap)::after { animation: none; }
}

.verified-foot {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .4s ease .25s, transform .4s ease .25s, visibility .4s .25s;
}
.hero-demo.is-verified .verified-foot { opacity: 1; visibility: visible; transform: none; }
.verified-msg { color: var(--verified); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) {
    .verified-foot { transition: none; transform: none; }
}

.code-note {
    text-align: center;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(143, 176, 172, .6);
}

/* ---------------- Il problema ---------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 44px 0;
}
.stat {
    padding: 26px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .02);
}
.stat-num {
    font-family: var(--mono);
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 6px;
    line-height: 1.1;
}
.stat p { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.turn { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 54ch; }
.turn s { color: var(--danger); text-decoration-thickness: 2px; }
.turn strong { color: var(--verified); }

/* ---------------- Come funziona ---------------- */

.flow-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .03);
    margin-top: 8px;
}
.flow-tab {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .6em 1.3em;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: 600 .92rem var(--body);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.flow-tab.active { background: var(--verified); color: #05231a; }
.flow-tab:not(.active):hover { color: var(--ink); }

.flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
    margin-top: 56px;
}

.steps { list-style: none; display: grid; gap: 10px; }
.step {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    opacity: .5;
    transition: opacity .3s ease, border-color .3s ease, background .3s ease;
}
.step:hover { opacity: .85; }
.step.active {
    opacity: 1;
    border-color: var(--line);
    background: rgba(237, 246, 243, .03);
}
.step-n {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .3s ease;
}
.step.active .step-n {
    background: var(--verified);
    border-color: var(--verified);
    color: #05231a;
}
.step p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* telefono */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
    width: 250px;
    height: 500px;
    border-radius: 42px;
    border: 1px solid rgba(237, 246, 243, .16);
    background: #04141a;
    box-shadow: var(--shadow), inset 0 0 0 6px #02090c;
    position: relative;
    overflow: hidden;
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 22px;
    border-radius: 999px;
    background: #02090c;
    z-index: 2;
}
.phone-screen { position: absolute; inset: 6px; border-radius: 36px; overflow: hidden; }

.screen {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px 20px 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}
.screen.active { opacity: 1; transform: none; }

.s-call, .s-dictate, .s-verify, .s-result, .s-lock { text-align: center; width: 100%; }

.s-ring {
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ring-dim);
    color: var(--ring);
    font-size: 1.2rem;
}
.s-from { font-family: var(--mono); font-weight: 600; font-size: 1.02rem; }
.s-sub { color: var(--muted); font-size: .78rem; margin-top: 6px; }

.s-time { font-family: var(--mono); font-size: 2rem; font-weight: 500; margin-bottom: 22px; }
.s-push {
    text-align: left;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .06);
    padding: 12px 14px;
}
.s-push-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .72rem;
    margin-bottom: 6px;
}
.s-push-head .ic { color: var(--verified); }
.s-push-title { font-weight: 600; font-size: .88rem; }
.s-push-body { color: var(--muted); font-size: .78rem; }

.s-bubble {
    display: inline-block;
    border-radius: 14px 14px 14px 4px;
    background: rgba(237, 246, 243, .07);
    padding: 10px 14px;
    font-style: italic;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.s-code {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--verified);
}

.s-vtitle { font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.s-cells { display: flex; justify-content: center; gap: 4px; }
.s-cells span {
    width: 17px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .72rem;
    display: grid;
    place-items: center;
}
.s-cells .gap { border: 0; width: 5px; }
.s-cells .on { border-color: rgba(47, 224, 140, .5); color: var(--verified); }
.s-cells .cur { border-color: var(--ring); }
.s-vbtn {
    margin-top: 18px;
    display: inline-block;
    padding: .55em 1.6em;
    border-radius: 999px;
    background: var(--verified);
    color: #05231a;
    font-weight: 600;
    font-size: .82rem;
}

.s-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--verified-dim);
    color: var(--verified);
    font-size: 1.15rem;
}
.s-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.s-type { color: var(--muted); font-size: .76rem; margin-bottom: 14px; }
.s-rows { text-align: left; font-size: .78rem; }
.s-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--line-soft);
}
.s-rows span { color: var(--muted); }
.s-foot {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--verified);
}

.phone-dots { display: flex; gap: 8px; }
.phone-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: background .3s ease, transform .3s ease;
}
.phone-dots span.on { background: var(--verified); transform: scale(1.25); }

/* ---------------- Card griglie ---------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.card {
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .02);
    transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(47, 224, 140, .35); transform: translateY(-3px); }
.card-ic {
    width: 26px;
    height: 26px;
    color: var(--verified);
    margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .93rem; }

.section.raised .card { background: rgba(237, 246, 243, .03); }

.verticals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* ---------------- Sicurezza ---------------- */

.security-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.security-lead { position: sticky; top: 110px; }
.guarantees { display: flex; flex-wrap: wrap; gap: 10px; }

.chain { list-style: none; display: grid; gap: 0; counter-reset: anello; }
.chain-step {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 26px 0 26px 0;
}
.chain-step + .chain-step { border-top: 1px solid var(--line-soft); }
.chain-step::before {
    counter-increment: anello;
    content: counter(anello, decimal-leading-zero);
    position: absolute;
    right: 0;
    top: 26px;
    font-family: var(--mono);
    font-size: .72rem;
    color: rgba(143, 176, 172, .5);
    letter-spacing: .1em;
}
.chain-ic {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(47, 224, 140, .3);
    background: var(--verified-dim);
    color: var(--verified);
    font-size: 1.1rem;
}
.chain-step h3 { margin-bottom: 6px; }
.chain-step p { color: var(--muted); font-size: .94rem; max-width: 46ch; }

/* ---------------- Privacy ---------------- */

.privacy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.privacy-list { list-style: none; display: grid; gap: 14px; margin-top: 10px; }
.privacy-list li {
    padding-left: 30px;
    position: relative;
    color: var(--muted);
    font-size: .98rem;
}
.privacy-list b { color: var(--ink); }
.privacy-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .48em;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--verified);
    border-bottom: 2px solid var(--verified);
    transform: rotate(-45deg);
}

.privacy-badge { display: grid; justify-items: center; gap: 16px; }
.shield {
    width: 130px;
    height: 130px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(47, 224, 140, .3);
    background: radial-gradient(closest-side, var(--verified-dim), transparent);
    color: var(--verified);
    font-size: 3rem;
}
.shield .ic { width: 1em; height: 1em; }
.shield-label {
    font-family: var(--mono);
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------------- CTA finale ---------------- */

.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}
.final-warning {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin-top: 44px;
    padding: .8em 1.3em;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 107, .3);
    background: rgba(255, 107, 107, .07);
    color: var(--muted);
    font-size: .9rem;
    text-align: left;
}
.final-warning .ic { color: var(--danger); }

/* ---------------- Footer ---------------- */

.footer {
    border-top: 1px solid var(--line-soft);
    padding: 56px 0 40px;
    background: var(--bg-raised);
}
.footer-inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.footer-claim { color: var(--muted); font-style: italic; }
.footer-copy { color: rgba(143, 176, 172, .55); font-size: .82rem; margin-top: 10px; }

/* ---------------- Reveal allo scroll ---------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover { transform: none; }
    .scroll-hint, .scroll-hint span { animation: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
    .hero { padding-top: 110px; min-height: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-copy { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .scroll-hint { display: none; }

    .flow { grid-template-columns: 1fr; }
    .phone-wrap { order: -1; }
    .phone { width: 230px; height: 460px; }

    .security-grid, .privacy-grid { grid-template-columns: 1fr; }
    .security-lead { position: static; }
    .privacy-badge { justify-items: start; }

    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .reveal-card { min-height: 310px; }
    .privacy-badge { display: none; }
}

/* ---------------- App e verifica online ---------------- */

/* Badge ufficiali degli store alla stessa altezza visibile. Il PNG di Google Play ha un
   margine trasparente sopra e sotto (30 px su 250): si compensa con un margine negativo. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: block; line-height: 0; border-radius: 9px; transition: transform .18s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.store-badge img { height: 48px; width: auto; }
.store-badge-play img { height: 63.2px; margin: -7.6px 0; }


.ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 44px;
    scroll-margin-top: 100px;
}
.way {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 30px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .02);
}
.way p { color: var(--muted); flex: 1; }
.way-app { border-color: rgba(47, 224, 140, .35); background: var(--verified-dim); }
.way-ic { width: 28px; height: 28px; color: var(--verified); }

.final-buttons { align-items: center; }
.final-demo { margin-top: 18px; }

@media (max-width: 640px) {
    .ways { grid-template-columns: 1fr; }
    .store-badges { justify-content: center; }
    .way { align-items: stretch; text-align: left; }
    .way .store-badges { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .store-badge:hover { transform: none; }
}

/* ---------------- Logo ---------------- */

/* Pittogramma: arco nel colore del testo, spunta verde (come _assets/logo). */
.mark-check { stroke: var(--verified); }
.brand-chi { color: var(--verified); }

/* ---------------- Chi siamo ---------------- */

.team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
    max-width: 760px;
}
.team-intro { margin-top: 36px; color: var(--ink); font-weight: 500; max-width: 760px; }
.person {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(237, 246, 243, .02);
}
.person-photo {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(47, 224, 140, .35);
}
.person h3 { margin-bottom: 4px; }
.person-role { color: var(--muted); font-size: .93rem; }
.person-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    margin-top: 8px;
    color: var(--muted);
    font-size: .9rem;
    transition: color .18s ease;
}
.person-link:hover { color: var(--ring); }
.person-link .ic { width: 16px; height: 16px; }

@media (max-width: 640px) {
    .team { grid-template-columns: 1fr; }
}

/* ---------------- Popup degli store ---------------- */

.store-dialog {
    margin: auto;
    width: min(440px, calc(100% - 32px));
    padding: 36px 30px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
    color: var(--ink);
    box-shadow: var(--shadow);
    text-align: center;
}
.store-dialog::backdrop { background: rgba(3, 12, 14, .72); backdrop-filter: blur(4px); }
.store-dialog[open] { animation: store-dialog-in .22s ease-out; }
@keyframes store-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.store-dialog h2 { font-size: 1.7rem; margin-bottom: .45em; }
.store-dialog .eyebrow { margin-bottom: .7em; }
.store-dialog p:not(.eyebrow) { color: var(--muted); font-size: .98rem; }
.store-dialog p + p { margin-top: .7em; }

.store-dialog-ic {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--verified-dim);
    color: var(--verified);
}
.store-dialog-ic .ic { width: 24px; height: 24px; }

.store-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.store-dialog-close:hover { background: var(--line); color: var(--ink); }
.store-dialog-close .ic { width: 20px; height: 20px; }

.store-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}
.store-dialog-actions .btn { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
    .store-dialog[open] { animation: none; }
}
