/* ── Variables ──────────────────────────────────────────── */
:root {
    --background: #f5f5f5;
    --surface: #ffffff;
    --surface-strong: #f7f3ff;
    --text: #202124;
    --muted: #5f6368;
    --accent: #3b4fa1;
    --accent-soft: #e8ebf7;
    --stroke: rgba(0, 0, 0, 0.08);
    --shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    --shadow-lg: 0 4px 16px rgba(60, 64, 67, 0.12);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Public Sans", "Google Sans", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-page {
    flex: 1 0 auto;
    width: 100%;
}

a { color: inherit; }

h1, h2, h3 {
    margin: 0;
    font-family: "Public Sans", "Google Sans", sans-serif;
    font-weight: 600;
}

/* ── Shared button base (used by public forms / analytics) ── */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.button--primary { background: var(--accent); color: #fff; }
.button--ghost   { background: var(--accent-soft); border-color: rgba(103,58,183,.18); color: var(--accent); }

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
}

/* ── Global site footer ─────────────────────────────────── */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--stroke);
    background: var(--surface);
}

.site-footer--inline {
    position: static;
    margin-top: auto;
    background: rgba(10, 25, 80, 0.82);
    border-top-color: rgba(255, 255, 255, 0.12);
}

.site-footer--inline .site-footer__product {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer--inline .site-footer__powered {
    color: rgba(255, 255, 255, 0.92);
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--muted);
    white-space: nowrap;
}

.site-footer__product {
    color: var(--muted);
}

.site-footer__sep {
    opacity: 0.45;
}

.site-footer__powered {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.site-footer__powered:hover {
    text-decoration: underline;
}

body:has(.auth-page) .site-footer,
body:has(.plans-page) .site-footer {
    background: rgba(10, 25, 80, 0.92);
    border-top-color: rgba(255, 255, 255, 0.12);
}

body:has(.auth-page) .site-footer__product,
body:has(.plans-page) .site-footer__product {
    color: rgba(255, 255, 255, 0.72);
}

body:has(.auth-page) .site-footer__powered,
body:has(.plans-page) .site-footer__powered {
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
    .site-footer__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 12px;
        gap: 4px 8px;
        white-space: normal;
        text-align: center;
    }

    .site-footer__sep {
        display: none;
    }
}
