/* MSD-SMM — Guest / Landing / Auth */

.theme-default {
    --saas-bg: #fafafa;
    --saas-surface: #ffffff;
    --saas-border: #e4e4e7;
    --saas-text: #18181b;
    --saas-muted: #71717a;
    --saas-primary: #18181b;
    --saas-radius: 12px;
    --saas-radius-sm: 8px;
    --saas-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.theme-default.saas-guest {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--saas-bg);
    color: var(--saas-text);
    -webkit-font-smoothing: antialiased;
}

.guest-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--saas-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.guest-logo {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.03em;
    color: var(--saas-text);
    text-decoration: none;
}

.guest-navbar__actions {
    gap: 0.5rem 0.75rem;
    max-width: 100%;
}

.guest-navbar__locale .locale-selector {
    gap: 0.35rem;
}

.guest-navbar__locale .locale-selector__group {
    min-width: 6.25rem;
}

.guest-navbar__locale .locale-selector__select {
    min-width: 6.5rem;
    background-color: var(--saas-surface);
}

@media (max-width: 575.98px) {
    .guest-navbar .container {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .guest-navbar__actions {
        width: 100%;
        justify-content: space-between;
    }

    .guest-navbar__locale {
        flex: 1 1 auto;
        min-width: 0;
    }

    .guest-navbar__buttons {
        flex: 0 0 auto;
    }
}

/* Hero */
.hero-section {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: #f4f4f5;
    border: 1px solid var(--saas-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--saas-muted);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--saas-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.features-section {
    padding: 3rem 0 5rem;
}

.feature-card {
    background: var(--saas-surface);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--saas-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--saas-radius-sm);
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--saas-text);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--saas-muted);
    margin: 0;
    line-height: 1.55;
}

/* Auth centered */
.saas-guest-auth {
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
}

.auth-card-wrap {
    max-width: 420px;
}

.auth-card-wrap:has(.auth-card-wide) {
    max-width: 520px;
}

.auth-card {
    background: var(--saas-surface);
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius);
    box-shadow: var(--saas-shadow);
    padding: 2rem 2rem 1.75rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.auth-card .auth-sub {
    color: var(--saas-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.auth-footer-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.auth-footer-links a {
    color: var(--saas-text);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

/* Shared guest buttons — mirror client */
.btn-saas-primary {
    background: #18181b;
    color: #fff !important;
    border: 1px solid #18181b;
    border-radius: 8px;
    font-weight: 500;
}

.btn-saas-primary:hover {
    background: #27272a;
    border-color: #27272a;
    color: #fff !important;
}

.btn-saas-ghost {
    background: transparent;
    color: #18181b !important;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    font-weight: 500;
}

.btn-saas-ghost:hover {
    background: #f4f4f5;
}

.form-control:focus {
    border-color: #a1a1aa;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.alert-saas-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.alert-saas-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.guest-footer {
    border-top: 1px solid var(--saas-border);
    background: var(--saas-surface);
}
