/* ═══════════════════════════════════════════════════════════════════
   Landing v2 — Showcase
   Mobile = D2 Immersive Wall · Desktop = D1 Editorial
   Color tokens mirror direction-showcase.jsx `sh` palette.
   ═══════════════════════════════════════════════════════════════════ */

body.v2-landing {
    background: #0b0a12;
    background-image: none;
    color: #f4f2f8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    overscroll-behavior: none;
    min-height: 100vh;
    min-height: 100dvh;
}

body.v2-landing.v2-locked {
    overflow: hidden;
}

/* Reset existing .container padding/max-width — v2 owns its own layout.
   Top padding reserves space for the fixed .top-nav (56px from style.css)
   so the hero eyebrow pill isn't clipped behind it. */
body.v2-landing main.v2-main {
    padding: 56px 0 80px;
    margin: 0;
    max-width: none;
    z-index: auto;
}

/* Hide the helpers we keep around just so app.js doesn't crash */
body.v2-landing .v2-app-scaffold {
    display: none !important;
}

/* ── Top bar — reuse .top-nav styles from style.css for the logo,
   tighten the dark backdrop a touch to match the design palette ── */
body.v2-landing .top-nav {
    background: rgba(11, 10, 18, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Age gate full-screen overlay ─────────────────────────────── */
.v2-agegate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 7, 12, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.25s ease;
}

.v2-agegate.v2-agegate-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.v2-agegate-card {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(180deg, #100e1a, #0b0a12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                inset 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.v2-agegate-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.v2-agegate-card h2 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 1.1;
    margin: 0 0 8px;
    color: #f4f2f8;
}

.v2-agegate-card p {
    font-size: 13.5px;
    color: #9690a8;
    line-height: 1.5;
    margin: 0 0 18px;
}

.v2-agegate-confirm,
.v2-agegate-decline {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v2-agegate-confirm {
    padding: 13px 16px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.1px;
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.32);
    margin-bottom: 8px;
}

.v2-agegate-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.4);
}

.v2-agegate-decline {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #9690a8;
    font-size: 13px;
    font-weight: 500;
}

.v2-agegate-decline:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: #dad7e2;
}

.v2-agegate-fineprint {
    font-size: 10.5px;
    color: #5d586d;
    line-height: 1.5;
    margin-top: 14px;
    text-align: center;
}

/* ─── Hero (shared shell) ─────────────────────────────────────── */
.v2-hero {
    position: relative;
    overflow: hidden;
}

.v2-hero-glow,
.v2-hero-glow-amber,
.v2-hero-glow-violet-soft {
    position: absolute;
    pointer-events: none;
}

.v2-hero-glow {
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.32), transparent 70%);
    filter: blur(40px);
}

.v2-hero-glow-amber {
    top: 40px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 183, 64, 0.18), transparent 70%);
    filter: blur(40px);
}

.v2-hero-glow-violet-soft {
    top: 120px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
    filter: blur(36px);
}

.v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.32);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #a78bfa;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 600;
}

.v2-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    animation: v2-pulse 2s ease-in-out infinite;
}

.v2-hero-title {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-weight: 400;
    margin: 0;
    color: #f4f2f8;
    text-wrap: balance;
}

.v2-hero-title em {
    font-style: italic;
}

.v2-grad {
    background: linear-gradient(135deg, #a78bfa, #f5b740);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-grad-amber {
    background: linear-gradient(135deg, #f5b740, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v2-hero-text {
    color: #dad7e2;
    line-height: 1.55;
    text-wrap: pretty;
    margin: 0;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.v2-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border-radius: 999px;
}

.v2-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.32);
}

.v2-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.4);
}

.v2-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #f4f2f8;
    font-weight: 500;
}

.v2-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.24);
}

/* ─── Mobile hero (D2 Immersive) — default ─────────────────── */
.v2-hero-mobile {
    padding: 32px 18px 24px;
    display: block;
}

.v2-hero-desktop {
    display: none;
}

.v2-hero-mobile .v2-hero-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.v2-hero-mobile .v2-eyebrow {
    margin-bottom: 14px;
}

.v2-hero-mobile .v2-hero-title {
    font-size: 44px;
    line-height: 0.95;
    letter-spacing: -1.4px;
}

.v2-hero-mobile .v2-hero-text {
    margin-top: 14px;
    font-size: 14.5px;
    max-width: 100%;
}

.v2-hero-mobile .v2-cta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.v2-hero-mobile .v2-btn {
    padding: 11px 18px;
    font-size: 13.5px;
}

.v2-hero-mobile .v2-btn-secondary {
    padding: 11px 16px;
    font-size: 13px;
}

.v2-hero-mobile .v2-btn-primary {
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.3);
}

/* ─── Desktop hero (D1 Editorial) ────────────────────────────── */
@media (min-width: 900px) {
    .v2-hero-mobile {
        display: none;
    }
    .v2-hero-desktop {
        display: block;
        padding: 72px 48px 56px;
    }
    .v2-hero-desktop .v2-hero-glow {
        top: -160px;
        width: 720px;
        height: 460px;
    }
    .v2-hero-desktop .v2-hero-glow-amber {
        top: 60px;
        width: 320px;
        height: 320px;
    }
    .v2-hero-desktop .v2-hero-inner {
        position: relative;
        max-width: 920px;
        margin: 0 auto;
        text-align: center;
    }
    .v2-hero-desktop .v2-eyebrow {
        margin-bottom: 22px;
    }
    .v2-hero-desktop .v2-hero-title {
        font-size: 76px;
        line-height: 0.96;
        letter-spacing: -1.2px;
    }
    .v2-hero-desktop .v2-hero-text {
        margin: 24px auto 0;
        max-width: 580px;
        font-size: 17px;
    }
    .v2-hero-desktop .v2-cta-row {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    .v2-hero-desktop .v2-btn {
        padding: 14px 26px;
        font-size: 15px;
    }
    .v2-hero-desktop .v2-btn-secondary {
        padding: 14px 22px;
    }
}

/* ─── Prompt strip (marquee) ─────────────────────────────────── */
.v2-strip {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
}

.v2-strip-fade-l,
.v2-strip-fade-r {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.v2-strip-fade-l { left: 0; background: linear-gradient(90deg, #0b0a12, transparent); }
.v2-strip-fade-r { right: 0; background: linear-gradient(270deg, #0b0a12, transparent); }

.v2-strip-track {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    width: max-content;
    animation: v2-marquee 36s linear infinite;
}

.v2-strip-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.32);
    font-size: 12px;
    color: #dad7e2;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.v2-strip-chip svg {
    color: #a78bfa;
    flex-shrink: 0;
}

@keyframes v2-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes v2-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* ─── Wall section header (desktop only) ─────────────────────── */
.v2-wall-head {
    display: none;
}

@media (min-width: 900px) {
    .v2-wall-head {
        display: flex;
        padding: 40px 48px 18px;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }
}

.v2-wall-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #a78bfa;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.v2-wall-h2 {
    margin: 0;
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-weight: 500;
    font-size: 36px;
    letter-spacing: -0.6px;
    line-height: 1.1;
    color: #f4f2f8;
}

.v2-wall-aside {
    font-size: 12.5px;
    color: #9690a8;
    line-height: 1.55;
    max-width: 360px;
}

/* ─── Wall ──────────────────────────────────────────────────────
   CSS Grid (row-major) instead of `column-count` (column-major).
   Items flow LEFT-TO-RIGHT, TOP-TO-BOTTOM — so source order matches
   what users see when they scan the wall reading-style. With every
   card at aspect-ratio 2/3 the visual is identical to the masonry
   look but the source-order semantics are predictable. */
.v2-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 14px 12px 12px;
}

@media (min-width: 900px) {
    .v2-wall {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 0 48px 40px;
    }
}

.v2-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #100e1a;
    aspect-ratio: 2 / 3;
    display: block;
}

.v2-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v2-card-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 35% 25%,
        oklch(0.32 0.12 var(--v2-hue, 270)),
        oklch(0.18 0.08 var(--v2-hue, 270)) 75%);
    overflow: hidden;
}

.v2-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
}

.v2-card-bg::before {
    content: '?';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: auto;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 32px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.32);
    font-weight: 400;
}

.v2-card-grad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(8, 6, 12, 0.78));
    pointer-events: none;
}

.v2-card-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.v2-card-tags span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(11, 10, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    color: #dad7e2;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ─── Inline value props (mobile only) ───────────────────────── */
.v2-values {
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 900px) {
    .v2-values {
        display: none;
    }
}

.v2-value {
    padding: 16px;
    border-radius: 14px;
    background: #100e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-value h3 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0 0 6px;
    color: #f4f2f8;
}

.v2-value p {
    font-size: 13px;
    color: #9690a8;
    line-height: 1.55;
    margin: 0;
    text-wrap: pretty;
}

/* ─── Stats strip ───────────────────────────────────────────── */
.v2-stats-wrap {
    padding: 4px 18px 24px;
}

@media (min-width: 900px) {
    .v2-stats-wrap {
        padding: 20px 48px 40px;
    }
}

.v2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.v2-stat {
    background: #100e1a;
    padding: 16px 10px;
    text-align: center;
}

.v2-stat-v {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 1;
    color: #f4f2f8;
}

.v2-stat-v-italic {
    font-style: italic;
}

.v2-stat-l {
    font-size: 10px;
    color: #9690a8;
    margin-top: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─── Closing CTA ───────────────────────────────────────────── */
.v2-closing {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.v2-closing-mobile {
    display: block;
    padding: 40px 18px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-closing-desktop {
    display: none;
}

@media (min-width: 900px) {
    .v2-closing-mobile {
        display: none;
    }
    .v2-closing-desktop {
        display: block;
        padding: 60px 48px 80px;
    }
}

.v2-closing-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18), transparent 70%);
    pointer-events: none;
}

.v2-closing-glow-amber {
    background: radial-gradient(ellipse at center, rgba(245, 183, 64, 0.10), transparent 70%);
}

.v2-closing-inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.v2-closing-h2 {
    margin: 0;
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -1px;
    color: #f4f2f8;
}

.v2-closing-mobile .v2-closing-h2 {
    font-size: 32px;
    line-height: 1;
    letter-spacing: -1px;
}

@media (min-width: 900px) {
    .v2-closing-desktop .v2-closing-h2 {
        font-size: 44px;
        line-height: 1.05;
        letter-spacing: -0.8px;
    }
}

.v2-closing-h2 em {
    font-style: italic;
}

.v2-amber {
    color: #f5b740;
}

.v2-closing-text {
    font-size: 13.5px;
    color: #9690a8;
    line-height: 1.55;
    max-width: 460px;
    margin: 12px auto 20px;
    text-wrap: pretty;
}

@media (min-width: 900px) {
    .v2-closing-desktop .v2-closing-text {
        font-size: 15.5px;
        margin: 16px auto 26px;
    }
}

.v2-closing .v2-btn-primary {
    padding: 13px 26px;
    font-size: 14px;
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.36);
}

@media (min-width: 900px) {
    .v2-closing-desktop .v2-btn-primary {
        padding: 15px 30px;
        font-size: 15.5px;
    }
}

/* ─── Disclaimer (3-line, parity with current site) ──────────── */
body.v2-landing .v2-disclaimer {
    padding: 24px 18px 20px;
    font-size: 11px;
    color: #5d586d;
    text-align: center;
    line-height: 1.55;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: none;
    margin: 0;
}

/* ─── Sticky CTA (mobile only) ──────────────────────────────── */
.v2-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 18;
    padding: 14px;
    /* iOS safe-area for the home-indicator strip; degrades to 14px on
       browsers that don't support env(). */
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(11, 10, 18, 0.92) 30%, rgba(11, 10, 18, 0.96));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    /* Force a compositor layer so Chrome Android updates the fixed
       position correctly during the URL-bar collapse animation —
       without this the bar floats mid-screen until the next paint.
       2026-05-08. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.v2-sticky-cta.v2-sticky-revealed {
    display: block;
}

@media (min-width: 900px) {
    .v2-sticky-cta {
        display: none !important;
    }
}

.v2-sticky-cta .v2-btn-primary {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.36);
}

.v2-sticky-hint {
    font-size: 10.5px;
    color: #9690a8;
    margin-top: 8px;
    text-align: center;
}

/* Ensure the wall and disclaimer don't sit under the sticky CTA on mobile */
@media (max-width: 899px) {
    body.v2-landing main.v2-main {
        padding-bottom: 110px;
    }
    body.v2-landing .site-footer {
        padding-bottom: 90px;
    }
}

/* ─── Footer parity (current site footer, slight bg tone for v2) ─ */
body.v2-landing .site-footer {
    background: rgba(11, 10, 18, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Tag color override for filled cards (image present) ─── */
.v2-card.v2-card-filled .v2-card-bg {
    display: none;
}
