/* ============================================================
   Pedigroom — Landing page CSS
   Moderno, leggero, mobile-ready. Palette brand: teal + arancio.
   Indipendente dal CSS dell'app (style.css).
   ============================================================ */

:root {
    --c-primary: #0E7490;
    --c-primary-600: #0891b2;
    --c-primary-700: #155e75;
    --c-primary-50: #ecfeff;
    --c-accent: #F97316;
    --c-accent-600: #ea580c;
    --c-bg: #ffffff;
    --c-bg-soft: #f6f8fa;
    --c-text: #0f172a;
    --c-muted: #64748b;
    --c-border: #e2e8f0;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow: 0 4px 16px rgba(15,23,42,.08);
    --shadow-lg: 0 20px 50px rgba(15,23,42,.12);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--c-primary-700); text-decoration: none; }
a:hover { color: var(--c-primary); }
img { max-width: 100%; display: block; }
.muted { color: var(--c-muted); }
.center { text-align: center; }

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

/* ============================================================
   Nav
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.nav-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--c-text);
}
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-600));
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links a {
    color: var(--c-text);
    font-weight: 500;
    font-size: 15px;
    transition: color .15s;
}
.nav-links a:hover { color: var(--c-primary); }
.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .05s, background .15s, box-shadow .15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-700); color: #fff; }
.btn-accent {
    background: var(--c-accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(249,115,22,.35);
}
.btn-accent:hover { background: var(--c-accent-600); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-soft); color: var(--c-text); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    /* Sfondo: immagine static sostituibile (vedi templates/landing/index.html).
       Gradient fallback sovrapposto per leggibilità testo. */
    background-color: #ecfeff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(236,254,255,.78) 0%, rgba(255,255,255,.55) 45%, rgba(255,247,237,.35) 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    padding: 96px 0 88px;
    max-width: 720px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14,116,144,.08);
    color: var(--c-primary-700);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-accent);
}
.hero h1 {
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--c-text);
}
.hero h1 .hl { color: var(--c-primary); }
.hero .lead {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--c-muted);
    margin-bottom: 32px;
    max-width: 600px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.hero-trust {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--c-muted);
}
.hero-trust .stars { color: var(--c-accent); letter-spacing: 2px; }

/* ============================================================
   Section base
   ============================================================ */
.section {
    padding: 80px 0;
}
.section-soft { background: var(--c-bg-soft); }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-head h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    margin-bottom: 14px;
}
.section-head p {
    font-size: 18px;
    color: var(--c-muted);
}
.section-head .eyebrow { margin-bottom: 16px; }

/* ============================================================
   Features grid
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
}
.feature .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--c-primary-50);
    color: var(--c-primary);
    display: grid; place-items: center;
    margin-bottom: 16px;
}
.feature.accent .icon { background: #ffedd5; color: var(--c-accent-600); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--c-muted); }
.feature .badge-new {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--c-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================================
   WhatsApp highlight band
   ============================================================ */
.wa-band {
    background: linear-gradient(135deg, var(--c-primary-700), var(--c-primary));
    border-radius: 24px;
    padding: 56px 48px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.wa-band::before {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.wa-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.wa-band p { color: rgba(255,255,255,.88); font-size: 17px; }
.wa-band .wa-features {
    list-style: none;
    margin: 22px 0 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wa-band .wa-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px;
}
.wa-band .wa-features li::before {
    content: "✓";
    width: 22px; height: 22px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
}
.wa-phone {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}
.wa-phone .bubble {
    background: #fff;
    color: var(--c-text);
    border-radius: 18px 18px 18px 4px;
    padding: 16px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 15px;
    max-width: 320px;
    position: relative;
}
.wa-phone .bubble + .bubble {
    margin-top: 12px;
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
    background: #dcfce7;
}
.wa-phone .bubble .meta {
    font-size: 11px;
    color: var(--c-muted);
    margin-top: 6px;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.plan {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
}
.plan.featured {
    border: 2px solid var(--c-primary);
    box-shadow: var(--shadow);
    position: relative;
}
.plan-tag {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--c-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 5px 14px;
    border-radius: 999px;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .desc { font-size: 14px; color: var(--c-muted); min-height: 40px; }
.plan .price {
    font-size: 42px;
    font-weight: 800;
    margin: 18px 0 2px;
}
.plan .price .per { font-size: 15px; font-weight: 500; color: var(--c-muted); }
.plan .price .euro { font-size: 22px; vertical-align: top; }
.plan ul {
    list-style: none;
    padding: 0;
    margin: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before {
    content: "✓";
    color: var(--c-primary);
    font-weight: 700;
    flex-shrink: 0;
}
.plan .btn { width: 100%; }
.plan.featured .btn-primary { background: var(--c-accent); box-shadow: 0 6px 18px rgba(249,115,22,.3); }
.plan.featured .btn-primary:hover { background: var(--c-accent-600); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}
.quote {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.quote .mark {
    font-size: 48px;
    color: var(--c-primary-50);
    line-height: 1;
    font-family: Georgia, serif;
    position: absolute;
    top: 8px; left: 18px;
}
.quote p {
    font-size: 16px;
    color: var(--c-text);
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}
.quote .who {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quote .who .ava {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-600));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 600; font-size: 14px;
}
.quote .who .name { font-weight: 600; font-size: 14px; }
.quote .who .role { font-size: 13px; color: var(--c-muted); }
.quote .stars { color: var(--c-accent); letter-spacing: 2px; margin-bottom: 10px; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta-final {
    background: linear-gradient(135deg, var(--c-primary-50), #ffedd5);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
}
.cta-final h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 14px;
}
.cta-final p {
    font-size: 18px;
    color: var(--c-muted);
    margin-bottom: 28px;
}
.cta-final .hero-cta { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--c-text);
    color: #cbd5e1;
    padding: 56px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { font-size: 14px; color: #94a3b8; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #cbd5e1; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    display: grid; place-items: center;
    color: #cbd5e1;
}
.footer-social a:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ============================================================
   Welcome (post-signup conversion page)
   ============================================================ */
.welcome {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-primary-50) 100%);
    min-height: calc(100vh - 68px - 280px);
    display: flex;
    align-items: center;
}
.welcome-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    text-align: center;
}
.welcome-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-600));
    color: #fff;
    display: grid; place-items: center;
}
.welcome-card h1 {
    font-size: 28px;
    margin-bottom: 12px;
}
.welcome-lead {
    font-size: 17px;
    color: var(--c-muted);
    margin-bottom: 32px;
}
.welcome-lead strong { color: var(--c-text); }
.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-bottom: 32px;
}
.welcome-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: var(--c-bg-soft);
    border-radius: var(--radius-sm);
}
.welcome-step .step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.welcome-step strong { font-size: 15px; }
.welcome-step p { font-size: 14px; color: var(--c-muted); margin-top: 2px; }
.welcome-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.welcome-help {
    font-size: 14px;
    color: var(--c-muted);
}
.welcome-help a { color: var(--c-primary-700); }

@media (max-width: 640px) {
    .welcome-card { padding: 32px 24px; }
    .welcome-card h1 { font-size: 24px; }
    .welcome-cta { flex-direction: column; }
    .welcome-cta .btn { width: 100%; }
}
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .wa-band { grid-template-columns: 1fr; padding: 40px 30px; }
    .wa-phone { display: none; }
    .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        padding: 18px 24px;
        gap: 16px;
        box-shadow: var(--shadow);
    }
    .hero-inner { padding: 64px 0 56px; }
    .section { padding: 56px 0; }
    .features { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-final, .wa-band { padding: 40px 24px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}
