/* Sesh Score Landing Pages — dark, app-branded, mobile-first funnels.
 *
 * Used by QR / invite / campaign landing pages (store.html, go.html, …)
 * whose only job is: hook the visitor, punt them to the app store.
 *
 * Paired with landingCore.js. See KAN-591 / KAN-532.
 */

/* ===== Tokens ===== */
.page-landing {
    --l-bg: #0B0F0E;
    --l-bg-raised: #141A18;
    --l-bg-card: #1C2421;
    --l-text: #F8FAFC;
    --l-text-muted: #9CA3AF;
    --l-text-dim: #6B7280;
    --l-primary: #22C55E;
    --l-primary-dark: #16A34A;
    --l-accent-purple: #7C3AED;
    --l-accent-indigo: #4F46E5;
    --l-gradient-brand: #15803D;
    --l-gradient-accent: linear-gradient(135deg, #7C3AED, #4F46E5);
    --l-border: rgba(255, 255, 255, 0.08);
    --l-border-strong: rgba(255, 255, 255, 0.14);
    --l-radius: 14px;
    --l-radius-lg: 22px;
    --l-radius-pill: 999px;
    --l-shadow-glow: 0 0 40px rgba(34, 197, 94, 0.25);
    --l-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --l-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --l-transition: 0.2s ease;
    --l-container: 520px;
    --l-container-wide: 720px;
}

/* KAN-971: light theme, following the browser; dark stays the fallback. */
@media (prefers-color-scheme: light) {
    .page-landing {
        --l-bg: #FFFFFF;
        --l-bg-raised: #F6F7F6;
        --l-bg-card: #F1F3F2;
        --l-text: #111827;
        --l-text-muted: #4B5563;
        --l-text-dim: #6B7280;
        --l-primary: #15803D;
        --l-primary-dark: #166534;
        --l-border: rgba(0, 0, 0, 0.1);
        --l-border-strong: rgba(0, 0, 0, 0.18);
        --l-shadow-glow: none;
        --l-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
}

/* ===== Reset & base ===== */
.page-landing {
    margin: 0;
    padding: 0;
    font-family: var(--l-font);
    background: var(--l-bg);
    color: var(--l-text);
    line-height: 1.55;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.page-landing *,
.page-landing *::before,
.page-landing *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.page-landing a {
    color: var(--l-primary);
    text-decoration: none;
    transition: color var(--l-transition);
}

.page-landing a:hover { color: var(--l-primary-dark); }

.page-landing img { max-width: 100%; height: auto; display: block; }

/* ===== Shell & containers ===== */
.l-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem 1.25rem 2rem;
}

.l-shell--compact { justify-content: center; }

.l-container {
    width: 100%;
    max-width: var(--l-container);
    margin: 0 auto;
}

.l-container-wide {
    width: 100%;
    max-width: var(--l-container-wide);
    margin: 0 auto;
}

/* ===== Brand header (not hero — small, identifier only) ===== */
.l-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.l-brand img { height: 28px; width: auto; }

.l-brand-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: var(--l-text);
}

/* ===== Hero ===== */
.l-hero {
    text-align: center;
    padding: 1rem 0 1.75rem;
}

.l-hero-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 6px 24px rgba(34, 197, 94, 0.35));
}

.l-hook {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--l-text);
}

.l-hook-accent {
    background: var(--l-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.l-subtitle {
    font-size: 1.0625rem;
    color: var(--l-text-muted);
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* ===== App store badges ===== */
.l-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 520px) {
    .l-badges {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
}

.l-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.5rem;
    border-radius: var(--l-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform var(--l-transition), box-shadow var(--l-transition), background var(--l-transition);
    min-height: 56px;
    min-width: 200px;
}

.l-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.l-badge:active { transform: translateY(0); }

.l-badge svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.l-badge--ios {
    background: #FFFFFF;
    color: #000 !important;
}

.l-badge--android {
    background: var(--l-gradient-brand);
    color: #FFFFFF !important;
    box-shadow: var(--l-shadow-glow);
}

/* KAN-748: "Join Android Beta" CTA — replaces the Google Play badge while
 * ANDROID_AVAILABLE=false. Visually distinct from the iOS badge but shares
 * sizing/alignment so the badge row stays balanced. */
.l-badge--beta {
    background: var(--l-gradient-brand);
    color: #FFFFFF !important;
    box-shadow: var(--l-shadow-glow);
}

.l-badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}

.l-badge-text small {
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.l-badge-text strong {
    font-size: 1.0625rem;
    font-weight: 600;
}

/* ===== Auto-redirect notice ===== */
.l-redirect {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--l-text-dim);
}

.l-redirect.is-visible { display: inline-flex; }

.l-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--l-primary);
    border-radius: 50%;
    animation: l-spin 0.7s linear infinite;
}

@keyframes l-spin { to { transform: rotate(360deg); } }

/* ===== Content sections (optional, below hero) ===== */
.l-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--l-bg-raised);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-lg);
    box-shadow: var(--l-shadow-card);
}

.l-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--l-primary);
    margin-bottom: 0.75rem;
}

.l-section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--l-text);
}

/* ===== Feature rows (compact bullet list with icons) ===== */
.l-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.l-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.l-feature-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--l-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.l-feature-icon svg { width: 20px; height: 20px; }

.l-feature-body h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--l-text);
    margin-bottom: 0.125rem;
}

.l-feature-body p {
    font-size: 0.875rem;
    color: var(--l-text-muted);
    line-height: 1.4;
}

/* ===== Card for store attribution / social proof ===== */
.l-attribution {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin: 0 auto 1.5rem;
    max-width: 360px;
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius-pill);
    font-size: 0.875rem;
    color: var(--l-text-muted);
}

.l-attribution-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--l-primary);
    box-shadow: 0 0 8px var(--l-primary);
    flex-shrink: 0;
}

/* ===== Footer (minimal) ===== */
.l-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--l-text-dim);
}

.l-footer-links {
    display: inline-flex;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.l-footer-links a { color: var(--l-text-muted); }
.l-footer-links a:hover { color: var(--l-text); }

/* ===== Utility ===== */
.l-hidden { display: none !important; }

/* ===== Small-screen tuning ===== */
@media (max-width: 360px) {
    .l-hook { font-size: 1.5rem; }
    .l-subtitle { font-size: 1rem; }
    .l-badge { min-width: 0; width: 100%; }
}

