/* ============================================================
   Public marketing site styles.
   Design philosophy (Section 1): minimal, professional, content-first.
   Deliberately NO glassmorphism, neon, floating blobs, huge gradients, or
   animated backgrounds — just white space, sharp type, and consistent
   spacing. Brand tokens (#2563EB etc.) come from design-system.css so the
   site and the app dashboard stay visually consistent (Section 11.2).
   ============================================================ */

.public-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0F172A;
    background: #FFFFFF;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary, #2563EB);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Navigation ---- */
.public-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid #E2E8F0;
    padding: 0.85rem 0;
}
.public-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0F172A;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.public-brand i { color: var(--primary, #2563EB); }
.public-nav-links { gap: 1.75rem; }
.public-nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.public-nav-links a:hover { color: var(--primary, #2563EB); }

/* ---- Hero (Section 3.2) ---- */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    border-bottom: 1px solid #F1F5F9;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0F172A;
}
.hero p.lead {
    font-size: 1.2rem;
    color: #475569;
    max-width: 34rem;
}
.hero-screenshot {
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    background: #fff;
}

/* Mock dashboard preview (stand-in until a real screenshot is dropped in). */
.mock-dashboard { width: 100%; display: block; }

/* ---- Section rhythm ---- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: #F8FAFC; }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0F172A;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: #64748B;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

/* ---- Trust chips (Section 3.3) ---- */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.trust-chip {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.trust-chip i { color: var(--success, #10B981); }

/* ---- Feature grid (Section 3.4) ---- */
.feature-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #EFF6FF;
    color: var(--primary, #2563EB);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}
.feature-card h5 { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature-card p { color: #64748B; font-size: 0.92rem; margin-bottom: 0; }

/* ---- Security section (Section 4) ---- */
.security-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #F1F5F9;
}
.security-item:last-child { border-bottom: none; }
.security-item i {
    color: var(--primary, #2563EB);
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.security-item h6 { font-weight: 600; margin-bottom: 0.2rem; }
.security-item p { color: #64748B; font-size: 0.92rem; margin-bottom: 0; }

/* ---- Pricing (Section 5.1) ---- */
.price-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
}
.price-card.featured {
    border-color: var(--primary, #2563EB);
    box-shadow: 0 12px 30px -15px rgba(37, 99, 235, 0.35);
}
.price-amount { font-size: 2.4rem; font-weight: 800; color: #0F172A; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0; }
.price-card li {
    padding: 0.4rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.price-card li i { color: var(--success, #10B981); }

/* ---- FAQ (Section 5.3) ---- */
.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #fff;
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    color: #0F172A;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after { content: "\002B"; color: #94A3B8; font-size: 1.2rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: #64748B; margin: 0.75rem 0 0; font-size: 0.95rem; }

/* ---- Legal / content pages ---- */
.legal-page { max-width: 48rem; margin: 0 auto; padding: 3.5rem 0; }
.legal-page h1 { font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.legal-page .updated { color: #94A3B8; font-size: 0.9rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { color: #334155; line-height: 1.7; }

/* ---- Status page (Section 8) ---- */
.status-hero { text-align: center; padding: 3.5rem 0 2rem; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
}
.status-operational { background: #ECFDF5; color: #047857; }
.status-maintenance { background: #FFFBEB; color: #B45309; }
.status-incident { background: #FEF2F2; color: #B91C1C; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

/* ---- Footer ---- */
.public-footer {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 3.5rem 0 2rem;
    margin-top: 2rem;
}
.public-footer h6 {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    margin-bottom: 0.9rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
}
.footer-links a:hover { color: var(--primary, #2563EB); }

/* ---- Cookie banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: #fff;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.15);
    padding: 1rem 0;
}

/* ---- Subtle motion only (Section 11.1): fade/slide on scroll-in ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(12px);
        animation: fadeUp 0.5s ease forwards;
    }
    @keyframes fadeUp {
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero { padding: 3.5rem 0 2.5rem; text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-screenshot { margin-top: 2.5rem; }
}
