/* ==========================================================================
   MKsociety — public marketing site (landing + guest auth pages)
   Scoped under `.site` so it never collides with the admin theme (app.css).
   Mobile-first, blue + green brand, subtle gradients, shadows and motion.
   ========================================================================== */

.site {
    --site-blue: #2563eb;
    --site-blue-600: #1d4ed8;
    --site-blue-700: #1e40af;
    --site-blue-050: #eff6ff;
    --site-blue-100: #dbeafe;
    --site-green: #16a34a;
    --site-green-600: #15803d;
    --site-green-050: #f0fdf4;
    --site-navy: #0f172a;
    --site-slate: #475569;
    --site-muted: #64748b;
    --site-line: #e2e8f0;
    --site-bg-alt: #f8fafc;
    --site-radius: 16px;
    --site-radius-sm: 12px;
    --site-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --site-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px -12px rgba(16, 24, 40, .18);
    --site-shadow-lg: 0 30px 60px -25px rgba(15, 23, 42, .35);

    font-family: 'Inter', 'Mukta', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.site h1, .site h2, .site h3, .site h4 {
    font-family: 'Mukta', 'Inter', system-ui, sans-serif;
    letter-spacing: -.015em;
    color: var(--site-navy);
}

.site-skip {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--site-blue);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 0 0 .5rem 0;
}
.site-skip:focus { left: 0; color: #fff; }

.site a { color: var(--site-blue); text-decoration: none; }
.site a:hover { color: var(--site-blue-600); }

.site :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--site-line);
    box-shadow: 0 10px 30px -20px rgba(15, 23, 42, .4);
    background: rgba(255, 255, 255, .96);
}
.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
}
.site-nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    color: var(--site-navy);
}
.site-brand:hover { color: var(--site-navy); }
.site-brand-logo {
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 0 0 1px var(--site-line);
}
.site-brand-name { font-size: 1.15rem; letter-spacing: -.02em; }

.site-lang {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
}
.site-lang a { color: var(--site-muted); }
.site-lang a:hover, .site-lang a.is-active { color: var(--site-blue); }
.site-lang span { color: var(--site-line); }

.site-nav-toggle {
    border: 1px solid var(--site-line);
    background: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--site-navy);
}
.site-nav-toggle:hover { border-color: var(--site-blue-100); }

.site-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    gap: 1.5rem;
    align-items: center;
}
.site-menu a {
    position: relative;
    color: var(--site-slate);
    font-weight: 500;
    padding: .35rem 0;
    transition: color .15s ease;
}
.site-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--site-blue);
    transition: right .25s ease;
}
.site-menu a:hover { color: var(--site-blue); }
.site-menu a:hover::after { right: 0; }

/* Login CTA */
.site-menu a.site-menu-cta {
    display: inline-block;
    background: var(--site-blue);
    color: #fff;
    padding: .45rem .95rem;
    border-radius: 999px;
    font-weight: 600;
}
.site-menu a.site-menu-cta:hover { background: var(--site-blue-600); color: #fff; }
.site-menu a.site-menu-cta::after { display: none; }

/* Mobile panel — welded into the top-right corner: flush right, merged with the header */
.site-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    /* Full-bleed: .site-nav is a centered .container — pull past its margin
       so the panel always touches the screen edge (50% - 50vw === 0 when the
       container fills the viewport, negative when it is narrower). */
    right: calc(50% - 50vw);
    left: auto;
    width: min(84vw, 320px);
    background: #fff;
    border: 1px solid var(--site-line);
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 0 8px;
    box-shadow: -20px 24px 44px -26px rgba(15, 23, 42, .4);
    padding: .5rem;
    gap: .125rem;
    z-index: 1040;
    animation: site-menu-in .18s ease-out;
}

.site-menu.is-open a {
    display: block;
    width: 100%;
    padding: .75rem .9rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--site-navy);
    transition: background .15s ease, color .15s ease;
}
.site-menu.is-open a:hover { background: var(--site-blue-050); color: var(--site-blue); }
.site-menu.is-open a::after { display: none; }
.site-menu.is-open a.site-menu-cta {
    text-align: center;
    background: var(--site-blue);
    color: #fff;
    font-weight: 600;
    margin-top: .375rem;
    padding: .8rem .9rem;
}
.site-menu.is-open a.site-menu-cta:hover { background: var(--site-blue-600); color: #fff; }

@keyframes site-menu-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

/* Dimmed backdrop shown while the mobile menu is open.
   Hidden it must not catch taps (it covers the whole viewport), otherwise every
   link below the header is unclickable on mobile; only the visible state does. */
.site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1025;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.site-menu-backdrop.is-visible { opacity: 1; pointer-events: auto; }

body.site-lock { overflow: hidden; }

@media (min-width: 992px) {
    .site-nav-toggle { display: none; }
    .site-menu { display: flex; }
    .site-menu.is-open {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        width: auto;
        border: 0;
        box-shadow: none;
        padding: 0;
        background: transparent;
        animation: none;
    }
    .site-menu.is-open a { display: inline; width: auto; padding: .35rem 0; border-radius: 0; font-size: inherit; color: var(--site-slate); }
    .site-menu.is-open a:hover { background: transparent; }
    .site-menu.is-open a.site-menu-cta { display: inline-block; width: auto; margin-top: 0; padding: .45rem .95rem; border-radius: 999px; }
    .site-menu-backdrop { display: none; }
}

/* ---- Shared section chrome --------------------------------------------- */
.site-section { padding: 3.5rem 0; }
/* Offset in-page anchors so the sticky header never covers the target heading
   (mirrors the .site-legal-section value used on the legal pages). */
.site-section[id] { scroll-margin-top: 96px; }
.site-section-alt { background: var(--site-bg-alt); }
.site-section-head { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.site-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-blue-600);
    background: var(--site-blue-050);
    border-radius: 999px;
    padding: .3rem .7rem;
    margin-bottom: .8rem;
}
.site-section-title { font-size: 1.7rem; font-weight: 700; color: var(--site-navy); margin-bottom: .6rem; }
.site-section-lead { color: var(--site-muted); margin: 0; }

@media (min-width: 768px) {
    .site-section { padding: 5rem 0; }
    .site-section-title { font-size: 2.1rem; }
}

/* ---- Hero --------------------------------------------------------------- */
.site-hero {
    padding: 3rem 0 3.5rem;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(22, 163, 74, .10), transparent 60%),
        radial-gradient(800px 480px at 6% 0%, rgba(37, 99, 235, .13), transparent 62%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.site-hero-title { font-size: 1.95rem; font-weight: 700; line-height: 1.22; color: var(--site-navy); margin-bottom: 1rem; }
.site-hero-lead { font-size: 1.05rem; color: var(--site-slate); margin-bottom: 1rem; max-width: 34rem; }
.site-hero-sub { font-size: .92rem; color: var(--site-muted); margin-bottom: 1.6rem; max-width: 34rem; }
.site-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.site-hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; color: var(--site-slate); font-size: .92rem; }
.site-hero-points i { color: var(--site-green); margin-right: .35rem; }

@media (min-width: 768px) {
    .site-hero { padding: 4.5rem 0 5rem; }
    .site-hero-title { font-size: 2.75rem; }
}

/* ---- Login card --------------------------------------------------------- */
.site-login { border-radius: var(--site-radius); box-shadow: var(--site-shadow) !important; }
.site-login-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.site-login-logo { border-radius: 10px; object-fit: contain; }
.site-login-title { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--site-navy); }
.site-login-sub { font-size: .82rem; color: var(--site-muted); margin: 0; }

.site .btn-primary { background: var(--site-blue); border-color: var(--site-blue); color: #fff; }
.site .btn-primary:hover, .site .btn-primary:focus { background: var(--site-blue-600); border-color: var(--site-blue-600); color: #fff; }
.site .btn-outline-primary { color: var(--site-blue); border-color: #bfdbfe; }
.site .btn-outline-primary:hover { background: var(--site-blue); border-color: var(--site-blue); color: #fff; }
.site .btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.site .btn-primary:hover { box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .8); transform: translateY(-1px); }

/* ---- Features ----------------------------------------------------------- */
.site-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 576px) { .site-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .site-features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.site-feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow-sm);
    padding: 1.4rem 1.4rem 1.5rem;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow);
    border-color: var(--site-blue-100);
}
.site-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--site-blue-600);
    background: var(--site-blue-050);
    margin-bottom: .9rem;
}
.site-feature-card:nth-child(2n) .site-feature-icon { color: var(--site-green-600); background: var(--site-green-050); }
.site-feature-title { font-size: 1.08rem; font-weight: 600; margin-bottom: .35rem; }
.site-feature-text { font-size: .9rem; color: var(--site-muted); margin: 0; }

/* ---- Product screenshots (horizontal scroll-snap carousel) -------------- */
.site-shots { position: relative; }

.site-shots-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
}
.site-shots-track::-webkit-scrollbar { display: none; }

.site-shots-slide {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.site-window {
    display: block;
    background: #0f172a;
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--site-shadow-lg);
    overflow: hidden;
}
.site-window-bar { display: flex; gap: 6px; padding: 6px 8px 10px; }
.site-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.site-window-bar span:first-child { background: #ef4444; }
.site-window-bar span:nth-child(2) { background: #f59e0b; }
.site-window-bar span:nth-child(3) { background: #22c55e; }

.site-shot-zoom {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    border-radius: 18px;
    cursor: zoom-in;
}
.site-shot-zoom:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 3px; }

.site-shot-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #f1f5f9;
}

.site-shot-caption { text-align: center; font-size: .82rem; color: var(--site-muted); margin-top: .9rem; }

.site-shots-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.1rem;
}
.site-shots-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--site-line);
    background: #fff;
    color: var(--site-navy);
    font-size: 1.1rem;
    box-shadow: var(--site-shadow-sm);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.site-shots-nav:hover { background: var(--site-blue); border-color: var(--site-blue); color: #fff; }
.site-shots-nav[disabled] { opacity: .4; cursor: default; }

.site-shots-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; }
.site-shots-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--site-line);
    transition: background-color .2s ease, transform .2s ease;
}
.site-shots-dot:hover { background: var(--site-blue-100); }
.site-shots-dot[aria-current="true"] { background: var(--site-blue); transform: scale(1.25); }

.site-shots-hint {
    text-align: center;
    font-size: .82rem;
    color: var(--site-muted);
    margin: .9rem 0 0;
}

/* ---- Screenshot lightbox ------------------------------------------------ */
.site-lightbox {
    width: min(1200px, 92vw);
    max-width: 92vw;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    overflow: visible;
}
.site-lightbox::backdrop { background: rgba(15, 23, 42, .78); }
.site-lightbox-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: var(--site-shadow-lg);
}
.site-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--site-navy);
    font-size: 1rem;
    box-shadow: var(--site-shadow);
}
.site-lightbox-close:hover { background: var(--site-blue); color: #fff; }

/* ---- Share / WhatsApp poster -------------------------------------------- */
.site-share-poster {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
}
.site-share-poster-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow-lg);
    background: #fff;
}
.site-share-points {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.site-share-points li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .95rem;
    color: var(--site-slate);
}
.site-share-points i { color: var(--site-green-600); margin-top: .15rem; }
.site-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.site-share-actions .btn { flex: 1 1 auto; }
@media (max-width: 575.98px) {
    .site-share-actions .btn { flex: 1 1 100%; }
}

/* ---- Steps -------------------------------------------------------------- */
.site-step { height: 100%; background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-radius); padding: 1.75rem 1.5rem; box-shadow: var(--site-shadow-sm); }
.site-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-green));
    margin-bottom: 1rem;
}
.site-step-title { font-size: 1.1rem; font-weight: 600; color: var(--site-navy); margin-bottom: .35rem; }
.site-step-text { color: var(--site-muted); margin: 0; font-size: .92rem; }

/* ---- Pricing ------------------------------------------------------------ */
.site-plan {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--site-shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease;
}
.site-plan:hover { transform: translateY(-4px); box-shadow: var(--site-shadow); }
.site-plan.is-featured { border-color: var(--site-blue); box-shadow: var(--site-shadow); }
.site-plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    background: var(--site-blue);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .25rem .7rem;
}
.site-plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; }
.site-plan-tagline { font-size: .88rem; color: var(--site-muted); margin-bottom: 1rem; }
.site-plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.site-plan-list li { font-size: .9rem; color: var(--site-slate); display: flex; gap: .5rem; align-items: flex-start; }
.site-plan-list i { color: var(--site-green-600); margin-top: .15rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.site-faq { max-width: 800px; margin: 0 auto; display: grid; gap: .75rem; }
.site-faq-item {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius-sm);
    padding: .25rem 1.1rem;
    box-shadow: var(--site-shadow-sm);
    transition: border-color .2s ease;
}
.site-faq-item[open] { border-color: var(--site-blue-100); }
.site-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--site-navy);
    padding: .9rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-faq-item summary::-webkit-details-marker { display: none; }
.site-faq-item summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    color: var(--site-blue);
    font-size: .9rem;
    transition: transform .2s ease;
}
.site-faq-item[open] summary::after { transform: rotate(180deg); }
.site-faq-item p { color: var(--site-muted); font-size: .92rem; margin: 0 0 1rem; }

/* ---- About -------------------------------------------------------------- */
.site-about-text { color: var(--site-slate); line-height: 1.75; }
.site-about-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; color: var(--site-slate); }
.site-about-points i { color: var(--site-green); margin-right: .5rem; }
.site-about-stat {
    height: 100%;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--site-shadow-sm);
}
.site-about-stat strong { display: block; font-size: 1.35rem; color: var(--site-navy); }
.site-about-stat span { font-size: .82rem; color: var(--site-muted); }

/* ---- Contact ------------------------------------------------------------ */
.site-form { border-radius: var(--site-radius); }
.site-form-hint { font-size: .78rem; color: var(--site-muted); margin-top: .6rem; }
.site-contact-info { display: flex; flex-direction: column; gap: .75rem; }
.site-contact-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    padding: .9rem 1rem;
    color: var(--site-navy);
    box-shadow: var(--site-shadow-sm);
    transition: border-color .15s ease, transform .15s ease;
}
.site-contact-item:hover { color: var(--site-navy); border-color: #bfdbfe; transform: translateX(2px); }
.site-contact-item small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--site-muted); }
.site-contact-item strong { font-weight: 600; }
.site-contact-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.15rem;
    color: var(--site-blue-600);
    background: var(--site-blue-050);
}
.site-contact-icon-wa { color: var(--site-green-600); background: var(--site-green-050); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--site-navy); color: #cbd5e1; padding: 3rem 0 1.5rem; }
.site-brand-footer { color: #fff; }
.site-brand-footer:hover { color: #fff; }
.site-brand-footer .site-brand-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.site-footer-text { color: #94a3b8; font-size: .9rem; margin-top: 1rem; max-width: 26rem; }
.site-footer-text + .site-footer-text { margin-top: .5rem; }
.site-footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer-links a { color: #cbd5e1; font-size: .92rem; overflow-wrap: anywhere; }
.site-footer-links a:hover { color: #fff; }
.site-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .4rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    font-size: .82rem;
    color: #94a3b8;
}
.site-footer-bottom a { color: #cbd5e1; }
.site-footer-bottom a:hover { color: #fff; }

/* ---- Legal pages (privacy / terms / disclaimer) ------------------------- */
.site-legal-hero {
    padding: 2.5rem 0 2rem;
    background:
        radial-gradient(700px 320px at 90% -20%, rgba(37, 99, 235, .10), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--site-line);
}
.site-legal-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--site-muted); margin-bottom: 1rem; }
.site-legal-crumbs a { color: var(--site-muted); }
.site-legal-crumbs a:hover { color: var(--site-blue); }
.site-legal-title { font-size: 1.9rem; font-weight: 700; color: var(--site-navy); margin-bottom: .6rem; }
.site-legal-lead { color: var(--site-slate); max-width: 46rem; margin-bottom: .9rem; }
.site-legal-updated {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--site-muted);
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    padding: .3rem .75rem;
    margin: 0;
}

.site-legal-toc {
    background: var(--site-bg-alt);
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    padding: 1.1rem 1.25rem;
}
.site-legal-toc-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--site-muted); margin-bottom: .75rem; }
.site-legal-toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem .75rem; }
.site-legal-toc a { font-size: .86rem; color: var(--site-slate); }
.site-legal-toc a:hover { color: var(--site-blue); }

.site-legal-section { margin-bottom: 1.75rem; scroll-margin-top: 96px; }
.site-legal-h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .7rem; }
.site-legal-section p { color: var(--site-slate); margin-bottom: .75rem; }
.site-legal-list { padding-left: 1.1rem; margin-bottom: .75rem; color: var(--site-slate); }
.site-legal-list li { margin-bottom: .35rem; }
.site-legal-list li::marker { color: var(--site-blue); }
.site-legal-note {
    display: flex;
    gap: .5rem;
    font-size: .88rem;
    background: var(--site-blue-050);
    border: 1px solid var(--site-blue-100);
    border-radius: var(--site-radius-sm);
    padding: .75rem .9rem;
    color: var(--site-blue-700);
    margin-bottom: 1.75rem;
}
.site-legal-contact { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .5rem; }
.site-legal-contact i { color: var(--site-blue); width: 1.2rem; }
.site-legal-operator { font-size: .85rem; color: var(--site-muted); }
.site-legal-seealso {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    border-top: 1px solid var(--site-line);
    padding-top: 1.25rem;
    margin-top: .5rem;
}
.site-legal-seealso-label { font-size: .85rem; color: var(--site-muted); }
.site-legal-chip {
    font-size: .85rem;
    font-weight: 500;
    background: var(--site-blue-050);
    color: var(--site-blue-600);
    border: 1px solid var(--site-blue-100);
    border-radius: 999px;
    padding: .3rem .8rem;
}
.site-legal-chip:hover { background: var(--site-blue); border-color: var(--site-blue); color: #fff; }

@media (min-width: 768px) {
    .site-legal-title { font-size: 2.4rem; }
}
@media (min-width: 992px) {
    .site-legal-toc { position: sticky; top: 96px; }
    .site-legal-toc ul { grid-template-columns: 1fr; }
}

/* ---- Scroll reveal (progressive enhancement) ---------------------------- */
.has-js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Public auth screens (login / register / password) ------------------ */
body.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-main-auth {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

/* ---- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .site *, .site *::before, .site *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    .has-js .reveal { opacity: 1 !important; transform: none !important; }
}
