/* ================================================================
   THE COMMISSION — Landing page v2 (mobile-first)
   ================================================================ */

html:has(body.lp-site) {
    overflow-x: hidden;
}

body.lp-site {
    overflow-x: hidden;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body.lp-site .city-skyline,
body.lp-site .film-grain,
body.lp-site .city-haze {
    display: none;
}

body.lp-site .guest-topbar {
    display: none;
}

body.lp-site .app-shell {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}

body.lp-site .app-layout {
    gap: 0;
    min-width: 0;
}

body.lp-site .main-area {
    min-width: 0;
    overflow-x: hidden;
}

body.lp-site .content {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
    min-width: 0;
    gap: 0;
}

.lp {
    --lp-bg: #080809;
    --lp-surface: #111114;
    --lp-line: #2a2826;
    --lp-text: #ece4d8;
    --lp-muted: #9a9288;
    --lp-dim: #6a6258;
    --lp-gold: #c9a84c;
    --lp-gold-dim: #8a7040;
    --lp-green: #3d6b3f;
    --lp-green-hi: #4e8a52;
    --lp-font-display: "Cinzel", Georgia, serif;
    --lp-font-ui: "Inter", system-ui, sans-serif;
    --lp-radius: 8px;
    --lp-pad: clamp(16px, 4vw, 28px);
    --lp-max: 1120px;

    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font-ui);
}

/* ── Top bar ── */
.lp-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--lp-pad);
    background: rgba(8, 8, 9, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-text);
    min-width: 0;
}

.lp-brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lp-gold);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
    flex-shrink: 0;
}

.lp-brand-text {
    font-family: var(--lp-font-display);
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-brand-text em {
    font-style: normal;
    color: var(--lp-gold);
}

.lp-topnav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lp-topnav-link {
    display: none;
    font-size: 13px;
    color: var(--lp-muted);
    text-decoration: none;
    padding: 8px 10px;
}

.lp-topnav-link:hover {
    color: var(--lp-text);
}

@media (min-width: 480px) {
    .lp-topnav-link {
        display: inline-block;
    }
}

/* ── Buttons ── */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: var(--lp-font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.lp-btn:active {
    transform: scale(0.98);
}

.lp-btn--primary {
    background: linear-gradient(180deg, var(--lp-green-hi) 0%, var(--lp-green) 100%);
    border-color: #5a9a5e;
    color: #f5f0e8;
}

.lp-btn--primary:hover {
    filter: brightness(1.08);
}

.lp-btn--ghost {
    background: transparent;
    border-color: var(--lp-line);
    color: var(--lp-muted);
}

.lp-btn--ghost:hover {
    border-color: #4a4540;
    color: var(--lp-text);
}

.lp-btn--gold {
    padding: 10px 16px;
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.35);
    color: var(--lp-gold);
    font-size: 12px;
}

.lp-btn--gold:hover {
    background: rgba(201, 168, 76, 0.2);
}

.lp-btn--block {
    width: 100%;
}

/* ── Hero ── */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 8vw, 72px) var(--lp-pad) clamp(32px, 6vw, 56px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(61, 107, 63, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0e0e10 0%, var(--lp-bg) 100%);
    pointer-events: none;
}

.lp-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.35;
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.lp-hero-inner {
    position: relative;
    max-width: var(--lp-max);
    margin: 0 auto;
}

.lp-kicker {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lp-gold-dim);
}

.lp-title {
    margin: 0 0 16px;
    font-family: var(--lp-font-display);
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--lp-text);
}

.lp-title span {
    color: var(--lp-gold);
}

.lp-lead {
    margin: 0 0 24px;
    max-width: 540px;
    font-size: clamp(15px, 3.5vw, 17px);
    line-height: 1.65;
    color: var(--lp-muted);
}

.lp-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

@media (min-width: 480px) {
    .lp-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.lp-hero-actions .lp-btn {
    width: 100%;
}

@media (min-width: 480px) {
    .lp-hero-actions .lp-btn {
        width: auto;
    }
}

.lp-ranks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 11px;
    color: var(--lp-dim);
    letter-spacing: 0.04em;
}

.lp-ranks span:not([aria-hidden]) {
    padding: 5px 10px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.lp-ranks .is-hi {
    color: #c8c0b4;
    border-color: #3a3836;
}

.lp-ranks .is-top {
    color: var(--lp-gold);
    border-color: rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.08);
}

.lp-ranks span[aria-hidden] {
    color: #4a4540;
    font-size: 14px;
}

/* ── Stats ── */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
}

@media (min-width: 720px) {
    .lp-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lp-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px var(--lp-pad);
    background: var(--lp-surface);
    text-align: center;
}

.lp-stat strong {
    font-family: var(--lp-font-display);
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 700;
    color: var(--lp-text);
    line-height: 1.1;
}

.lp-stat span {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

.lp-stat--gold strong {
    color: var(--lp-gold);
}

/* ── Auth ── */
.lp-auth {
    display: grid;
    gap: 28px;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: clamp(32px, 6vw, 56px) var(--lp-pad);
}

@media (min-width: 900px) {
    .lp-auth {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 48px;
    }
}

.lp-section-title {
    margin: 0 0 12px;
    font-family: var(--lp-font-display);
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-text);
}

.lp-section-lead {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--lp-muted);
}

.lp-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lp-checklist li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #b8b0a4;
}

.lp-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lp-green-hi);
    font-weight: 700;
}

.lp-auth-card {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: linear-gradient(165deg, #141416 0%, #0f0f11 100%);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lp-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--lp-line);
}

.lp-tab {
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--lp-dim);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.lp-tab:hover {
    color: var(--lp-muted);
}

.lp-tab.is-active {
    color: var(--lp-gold);
    border-bottom-color: var(--lp-gold);
    background: rgba(201, 168, 76, 0.04);
}

.lp-auth-body {
    padding: 24px 20px 28px;
}

.lp-form {
    display: grid;
    gap: 16px;
}

.lp-field {
    display: grid;
    gap: 6px;
}

.lp-field span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

.lp-field input,
.lp-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    background: #0a0a0c;
    color: var(--lp-text);
    font-family: var(--lp-font-ui);
    font-size: 16px; /* prevents iOS zoom */
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.lp-site .lp-btn {
    font-family: var(--lp-font-ui);
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

body.lp-site .lp-carousel-arrow {
    font-family: var(--lp-font-ui);
    text-transform: none;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

body.lp-site .lp-auth-body .alert {
    word-break: break-word;
}

.lp-field input:focus,
.lp-field textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.lp-switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--lp-dim);
}

.lp-switch a {
    color: var(--lp-gold);
    text-decoration: none;
}

.lp-switch a:hover {
    text-decoration: underline;
}

.lp-appeal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--lp-line);
}

.lp-appeal h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--lp-text);
}

.lp-appeal p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--lp-muted);
}

.lp-auth-body .alert {
    margin-bottom: 16px;
    font-size: 13px;
}

/* ── Pillars ── */
.lp-pillars {
    display: grid;
    gap: 1px;
    background: var(--lp-line);
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
}

@media (min-width: 720px) {
    .lp-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lp-pillar {
    padding: 22px var(--lp-pad);
    background: #0d0d0f;
    text-align: center;
}

@media (min-width: 720px) {
    .lp-pillar {
        text-align: left;
    }
}

.lp-pillar h3 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lp-gold);
}

.lp-pillar p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--lp-muted);
}

/* ── Features carousel ── */
.lp-world {
    padding: clamp(36px, 6vw, 56px) var(--lp-pad) clamp(28px, 5vw, 40px);
    max-width: var(--lp-max);
    margin: 0 auto;
}

.lp-world-head {
    margin-bottom: 24px;
    text-align: center;
}

@media (min-width: 720px) {
    .lp-world-head {
        text-align: left;
        max-width: 620px;
    }
}

.lp-carousel {
    padding: 0;
    max-width: none;
}

.lp-carousel-shell {
    display: flex;
    align-items: stretch;
    gap: 0;
}

@media (max-width: 599px) {
    .lp-carousel-shell {
        flex-direction: column;
        gap: 10px;
    }
}

.lp-carousel-viewport {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.lp-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.lp-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 280px;
    padding: 24px 22px 28px;
    opacity: 0.4;
    transform: scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    border: none;
    box-sizing: border-box;
}

.lp-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.lp-slide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.lp-slide-icon {
    font-size: 28px;
    line-height: 1;
    opacity: 0.85;
}

.lp-slide-num {
    font-family: var(--lp-font-display);
    font-size: 28px;
    font-weight: 700;
    color: #2a2826;
    line-height: 1;
}

body.lp-site .lp-slide.feature-card::before {
    display: none;
}

.lp-slide h3 {
    margin: 0 0 10px;
    font-family: var(--lp-font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lp-text);
}

.lp-slide > p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--lp-muted);
}

.lp-slide-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.lp-slide-points li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--lp-dim);
}

.lp-slide-points li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--lp-green-hi);
    font-weight: 700;
}

.lp-carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    min-height: 44px;
    align-self: center;
    border-radius: 50%;
    border: 1px solid var(--lp-line);
    background: #141416;
    color: var(--lp-muted);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 599px) {
    .lp-topbar {
        padding: 10px 14px;
    }

    .lp-brand-text {
        font-size: 13px;
    }

    .lp-btn--gold {
        padding: 10px 12px;
        font-size: 11px;
    }

    .lp-hero {
        padding: 28px 16px 24px;
    }

    .lp-title {
        font-size: clamp(28px, 9vw, 40px);
    }

    .lp-auth {
        padding: 28px 16px;
    }

    .lp-auth-body {
        padding: 20px 16px 24px;
    }

    .lp-auth-card {
        width: 100%;
        min-width: 0;
    }

    .lp-world {
        padding: 28px 16px 24px;
    }

    .lp-carousel-shell {
        flex-direction: column;
        gap: 10px;
    }

    .lp-carousel-arrow {
        width: 100%;
        border-radius: 6px;
        min-height: 48px;
        align-self: stretch;
        font-size: 24px;
    }

    .lp-carousel-viewport {
        order: 1;
    }

    [data-feature-carousel-prev] {
        order: 2;
    }

    [data-feature-carousel-next] {
        order: 3;
    }

    .lp-carousel-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lp-slide {
        min-height: 300px;
        padding: 20px 16px 24px;
    }

    .lp-stat {
        padding: 14px 12px;
    }

    .lp-ranks {
        gap: 6px;
    }

    .lp-ranks span:not([aria-hidden]) {
        font-size: 10px;
        padding: 4px 8px;
    }
}

.lp-carousel-arrow:hover {
    background: #1c1c1f;
    color: var(--lp-text);
}

.lp-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 0;
}

.lp-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-carousel-dot,
.lp-carousel-dots button {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.feature-carousel-dot.is-active,
.lp-carousel-dots button.is-active {
    background: var(--lp-gold);
    transform: scale(1.2);
}

.lp-carousel-count {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-dim);
}

/* ── Final CTA ── */
.lp-final {
    text-align: center;
    padding: clamp(40px, 8vw, 64px) var(--lp-pad);
    border-top: 1px solid var(--lp-line);
    background:
        radial-gradient(ellipse 70% 80% at 50% 100%, rgba(61, 107, 63, 0.12) 0%, transparent 60%),
        var(--lp-bg);
}

.lp-final h2 {
    margin: 0 0 10px;
    font-family: var(--lp-font-display);
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lp-text);
}

.lp-final p {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--lp-muted);
}

/* ── Footer ── */
.lp-footer {
    padding: 24px var(--lp-pad) 32px;
    border-top: 1px solid var(--lp-line);
    text-align: center;
    background: #060607;
}

.lp-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--lp-dim);
}

.lp-footer-row a {
    color: var(--lp-gold);
    text-decoration: none;
}

.lp-footer-legal {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: #5a554f;
}

.lp-footer-legal + .lp-footer-legal {
    margin-top: 6px;
}

.lp-footer-legal a {
    color: var(--lp-gold-dim);
    text-decoration: none;
}

.lp-footer-legal strong {
    color: #7a7268;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .lp-carousel-track,
    .lp-slide,
    .lp-btn,
    .lp-carousel-arrow {
        transition: none;
    }
}
