/* ==========================================================================
   PresenceReport — Shared Marketing Stylesheet
   Contains: design tokens, base reset, typography, buttons, eyebrow,
   sticky nav, footer, scroll-reveal, reduced-motion baseline.
   Page-specific styles stay inline in each HTML file.
   ========================================================================== */

:root {
    /* Brand palette — light/airy adaptation of the app tokens */
    --bg: #FAFBFD;
    --surface: #FFFFFF;
    --pale: #E2EDEF;
    --pale-soft: #EEF4F5;
    --brand: #15484E;
    --brand-soft: #8FBCC5;
    --ink: #063B41;
    --ink-body: #3D5B5F;
    --ink-mute: #7A9398;
    --line: #E4ECEE;
    --accent: #10b981;
    --accent-dark: #059669;
    --warn: #f59e0b;
    --error: #ef4444;

    /* Shadows — layered soft */
    --shadow-sm: 0 1px 2px rgba(6, 59, 65, 0.04), 0 2px 8px rgba(6, 59, 65, 0.04);
    --shadow-md: 0 4px 12px rgba(6, 59, 65, 0.06), 0 12px 32px rgba(6, 59, 65, 0.06);
    --shadow-lg: 0 8px 24px rgba(6, 59, 65, 0.08), 0 24px 64px rgba(6, 59, 65, 0.08);
    --shadow-xl: 0 12px 32px rgba(6, 59, 65, 0.10), 0 32px 80px rgba(6, 59, 65, 0.12);

    /* Type */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Eyebrow label --- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--brand);
    opacity: 0.5;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
}
.btn-ghost:hover { color: var(--brand); }
.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: white;
}
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ============================ NAV ============================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(250, 251, 253, 0.75);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
    border-bottom-color: var(--line);
    background: rgba(250, 251, 253, 0.92);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--ink) 100%);
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-body);
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-toggle {
    display: none;
    font-size: 24px;
    color: var(--ink);
}

/* ============================ FOOTER ============================ */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}
.footer-brand .nav-logo {
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand) 100%);
}
.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
    margin-bottom: 20px;
}
.footer-legal {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
}
.footer-legal strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}
.footer-origin {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================ SCROLL REVEAL ============================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================ RESPONSIVE BASE ============================ */
@media (max-width: 880px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
