/**
 * Customer storefront — tenant-branded public pages.
 *
 * Design tokens match the legacy styles.css (`u:/mtcc-print/styles.css` :root)
 * so the new storefront looks 1:1 with the existing MTCC site. Tenant
 * primary color is injected via CSS var on <body style="--brand:...">.
 */

/* ============================================================
   ACCESSIBILITY (#45 mechanical pass)
   ============================================================ */

/* Skip-to-main link — visually hidden until keyboard-focused.
   Lets keyboard users bypass the topbar nav on every page. */
.sf-skip-link {
    position: absolute;
    left: 8px;
    top: -40px;
    background: #7c3aed;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    z-index: 10000;
    transition: top 0.15s ease;
}
.sf-skip-link:focus {
    top: 8px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Universal focus indicator for keyboard navigation. Mouse clicks don't
   trigger :focus-visible (per the spec), so this is keyboard-only. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Honor user's motion preference. Disables animations + transitions for
   users who set prefers-reduced-motion: reduce in their OS. Includes the
   payment-success green overlay (#payment-success-overlay), fadeUp
   animations on landing, slideout transitions, etc. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    /* Tokens that genuinely re-alias (--brand reads from --primary set by
       admin-base.css, --card is a literal) stay here. Self-referencing
       redeclarations like `--text: var(--text)` were a leftover from a
       legacy variable-rename and computed as INVALID (a custom property
       that references itself produces no value), which caused
       `.sf-footer { background: var(--text) }` to fall back to
       transparent → user saw a white footer instead of the intended dark
       MTCC chrome. The values originate in admin-base.css; we just
       inherit them. */
    --brand: var(--primary);
    --brand-dark: var(--primary-dark);
    --brand-light: var(--primary-light);
    --card: #ffffff;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: rgba(0,0,0,0.12) 0 1px 3px;
    --shadow-md: rgba(0,0,0,0.12) 0 1px 3px, rgba(0,0,0,0.24) 0 1px 2px;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.25rem;
    --space-2xl: 1.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
html { overflow-x: hidden; }
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TOP BAR — persistent, logo + track/call links
   ============================================================ */
.sf-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: env(safe-area-inset-top, 0px) calc(24px + env(safe-area-inset-right, 0px)) 0 calc(24px + env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: calc(64px + env(safe-area-inset-top, 0px));
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.sf-brand img {
    height: 40px;
    width: auto;
    display: block;
}
.sf-topnav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.sf-topnav a {
    color: var(--subtext);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.sf-topnav a:hover { color: var(--brand); }
.sf-topnav-call {
    color: var(--brand) !important;
    background: var(--brand-light);
    padding: 8px 14px;
    border-radius: 999px;
}
.sf-topnav-call:hover { background: #e0d6fc; text-decoration: none; }

@media (max-width: 520px) {
    .sf-topnav a:not(.sf-topnav-call) { display: none; }
    .sf-topnav-call { padding: 7px 10px; font-size: 0.78rem; }
    .sf-brand img { height: 34px; }
}

/* ============================================================
   MAIN + layout
   ============================================================ */
.sf-main {
    flex: 1;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 48px;
}
@media (max-width: 640px) {
    .sf-main { padding: 16px 16px 32px; }
}

/* ============================================================
   HERO BANNER — matches legacy styles.css:67
   ============================================================ */
.hero-banner {
    background: linear-gradient(135deg, #fafafa 0%, #f5f3ff 100%);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand);
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent) 0%, color-mix(in srgb, var(--brand) 2%, transparent) 100%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30px; right: 80px;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, transparent) 0%, color-mix(in srgb, var(--brand) 1%, transparent) 100%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.hero-logo {
    flex-shrink: 0;
    padding-right: 2rem;
    border-right: 1px solid var(--border);
}
.hero-logo .header-logo {
    max-height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.hero-text p {
    color: var(--subtext);
    margin: 0;
    font-size: 0.95rem;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}
.hero-badge {
    background: #fff;
    color: var(--text);
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 500;
    border: 1px solid var(--brand);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--brand) 10%, transparent);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-badge-icon { margin-right: 0.15rem; }
.hero-cta { margin-top: 1.25rem; }

@media (max-width: 720px) {
    .hero-banner { padding: 1.5rem 1.25rem; }
    .hero-content { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
    .hero-logo { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1rem; width: 100%; }
    .hero-logo .header-logo { max-height: 56px; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-features { gap: 0.35rem; }
    .hero-badge { font-size: 0.68rem; padding: 0.3rem 0.55rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.sf-btn:active { transform: scale(0.98); }
.sf-btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--brand) 30%, transparent);
}
.sf-btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 35%, transparent);
    text-decoration: none;
}
.sf-btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.sf-section { margin: 2.5rem 0; }
.sf-section-header { margin-bottom: 1rem; }
.sf-section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0;
}
.sf-section-sub {
    font-size: 0.88rem;
    color: var(--subtext);
    margin: 2px 0 0;
}
.sf-section-header-centered { text-align: center; margin-bottom: 1.5rem; }

/* ============================================================
   EVENT CARDS
   ============================================================ */
.sf-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.sf-event-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
}
.sf-event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}
@media (hover: hover) {
    .sf-event-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
        text-decoration: none;
    }
    .sf-event-card:hover::before { transform: scaleX(1); }
}
.sf-event-card:active {
    transform: scale(0.99);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sf-event-badge {
    align-self: flex-start;
    background: var(--brand-light);
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.sf-event-body { flex: 1; }
.sf-event-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 6px;
}
.sf-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sf-event-chip {
    background: #f9fafb;
    color: var(--subtext);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}
.sf-event-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    margin-top: 2px;
}

/* ============================================================
   HOW IT WORKS — 3 steps
   ============================================================ */
.sf-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.sf-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 22px 18px 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}
.sf-step-number {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.sf-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.sf-step-body {
    font-size: 0.82rem;
    color: var(--subtext);
    line-height: 1.5;
}

/* ============================================================
   PICKUP LOCATIONS
   ============================================================ */
.sf-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.sf-location-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-md);
}
.sf-location-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.sf-location-address {
    font-size: 0.84rem;
    color: var(--subtext);
    margin-bottom: 6px;
}
.sf-location-details {
    font-size: 0.8rem;
    color: #4b5563;
    background: var(--brand-light);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 8px;
    display: inline-block;
}

/* ============================================================
   BOTTOM CTA BANNER
   ============================================================ */
.sf-cta-banner {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 2.5rem 0 0;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--brand) 25%, transparent);
}
.sf-cta-text h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.sf-cta-text p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}
.sf-cta-banner .sf-btn-primary {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.sf-cta-banner .sf-btn-primary:hover {
    background: #f9f7ff;
    box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
    .sf-cta-banner { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.sf-footer {
    background: var(--text);
    color: #c4b5fd;
    padding: 32px 24px 20px;
    margin-top: 48px;
}
.sf-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}
.sf-footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sf-footer-brand {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.sf-footer-sub { font-size: 0.8rem; color: #a78bfa; }
.sf-footer-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a78bfa;
    margin-bottom: 4px;
}
.sf-footer a {
    color: #ddd6fe;
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.12s;
}
.sf-footer a:hover { color: #fff; text-decoration: underline; }
.sf-footer .sf-muted { color: #8b5cf6; font-size: 0.78rem; }
.sf-footer-bottom {
    max-width: 1080px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid #2d2438;
    text-align: center;
    font-size: 0.78rem;
    color: #8b5cf6;
}


/* ============================================================
   LANDING-PAGE POLISH (Phase 1)
   Hero CTA meta line, trust features strip, illustrated How-It-Works
   icons, custom-quote section, scroll-reveal animation. All additive —
   none of this overrides earlier rules.
   ============================================================ */

/* Hero CTA meta — sits next to the primary CTA, conveys "from $X / fast / available". */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-cta-meta {
    color: var(--subtext);
    font-size: 0.85rem;
    line-height: 1.4;
}
.hero-cta-meta strong { color: var(--text); font-weight: 700; }

/* Hero badges — make the inline SVG icons inherit the brand colour. */
.hero-badge .hero-badge-icon {
    display: inline-flex;
    align-items: center;
    color: var(--brand);
    margin-right: 0;
}
.hero-badge .hero-badge-icon svg { display: block; }

/* Trust features strip — 4 columns on desktop, 2 on tablet, 1 on phone. */
.sf-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f3ff 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 0 0 var(--space-2xl);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sf-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.sf-trust-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--brand);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--brand) 8%, transparent);
}
.sf-trust-text { min-width: 0; }
.sf-trust-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.sf-trust-sub {
    font-size: 0.76rem;
    color: var(--subtext);
    margin-top: 3px;
    line-height: 1.35;
}
@media (max-width: 880px) {
    .sf-trust-strip { grid-template-columns: 1fr 1fr; gap: 18px 22px; padding: 18px; }
}
@media (max-width: 520px) {
    .sf-trust-strip { grid-template-columns: 1fr; gap: 14px; }
}

/* Illustrated How-It-Works steps — icon container with a small numbered chip. */
.sf-step-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, transparent) 0%, color-mix(in srgb, var(--brand) 2%, transparent) 100%);
    border: 1.5px solid color-mix(in srgb, var(--brand) 20%, transparent);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.22, 1.35, 0.36, 1),
                box-shadow 0.25s ease-out;
}
.sf-step:hover .sf-step-icon {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 18%, transparent);
}
.sf-step-num {
    position: absolute;
    top: -8px; right: -8px;
    width: 24px; height: 24px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 30%, transparent);
}

/* Custom quote section (no inline styles — promoted to class). */
.sf-custom-quote {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border: 1px solid #ede9fe;
    border-radius: 16px;
    padding: 28px 32px;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Scroll-reveal: sections fade up as they enter the viewport. The
   IntersectionObserver in landing.php toggles the .is-revealed class. */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   LANDING REDESIGN (May 2026) — catalog-driven storefront. All classes are
   prefixed `lp-` and build on the shared tokens in admin-base.css. Imagery is
   convention-based (assets/catalog/categories/{cat}.*, assets/tenants/{slug}/
   hero.*); branded placeholders render until real images are dropped in.
   ============================================================================ */

/* Roomier container for the landing + quote page (opt-in via
   $mainClass='sf-main sf-main-wide'). Defined after .sf-main so it wins. */
.sf-main-wide { max-width: 1440px; }

/* ---- Hero ---------------------------------------------------------------- */
.lp-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
    align-items: center;
    margin: 0.5rem 0 1rem;
    padding: 2.25rem 2.25rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0) 45%),
        linear-gradient(160deg, #ffffff 0%, #faf8ff 60%, #f5f1fe 100%);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    color: var(--brand-dark);
    background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.18);
    padding: 6px 12px; border-radius: var(--radius-pill);
}
.lp-eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 0 rgba(124,58,237,0.5); animation: lpPulse 2.4s var(--ease-out) infinite;
}
@keyframes lpPulse {
    0% { box-shadow: 0 0 0 0 rgba(124,58,237,0.45); }
    70% { box-shadow: 0 0 0 7px rgba(124,58,237,0); }
    100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
}
.lp-hero-title {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.75rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
    color: var(--text); margin: 0.9rem 0 0.7rem;
}
.lp-grad {
    background: linear-gradient(100deg, var(--brand) 0%, #a855f7 50%, var(--brand-dark) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.lp-hero-sub {
    font-size: 1.02rem; line-height: 1.55; color: var(--subtext);
    max-width: 34rem; margin: 0 0 1.4rem;
}
/* Hero search — modelled on the prominent quote-page input (.rq-input): a
   large, inviting box with a gradient action button rather than a thin pill. */
.lp-search {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 2px solid rgba(124,58,237,0.22);
    border-radius: 16px; padding: 8px 8px 8px 18px;
    max-width: 38rem; box-shadow: 0 8px 26px rgba(124,58,237,0.10);
    transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.lp-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-focus), 0 8px 26px rgba(124,58,237,0.14); }
.lp-search-ico { color: var(--brand); flex-shrink: 0; }
.lp-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-family: var(--font-main); font-size: 1.05rem; color: var(--text);
    padding: 14px 0; min-width: 0;
}
.lp-search input::placeholder { color: var(--muted); }
.lp-search-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    border: 0; cursor: pointer; font-family: var(--font-main); font-weight: 700; font-size: 0.95rem;
    color: #fff; background: var(--gradient-brand);
    padding: 13px 22px; border-radius: 11px; box-shadow: var(--shadow-brand);
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.lp-search-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-brand-lg); }
.lp-search-btn svg { transition: transform var(--dur-base); }
.lp-search-btn:hover svg { transform: translateX(2px); }
.lp-search-hint { font-size: 0.82rem; color: var(--subtext); margin-top: 11px; }
.lp-search-hint a { color: var(--brand-dark); font-weight: 600; }
.lp-hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 1.3rem; }
.lp-btn-ghost {
    font-size: 0.92rem; font-weight: 600; color: var(--brand-dark);
    text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color var(--dur-base);
}
.lp-btn-ghost:hover { border-color: var(--brand); }
.lp-hero-trust {
    display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none;
    margin: 1.6rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--border-light);
}
.lp-hero-trust li {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.lp-hero-trust svg { color: var(--green); flex-shrink: 0; }

/* Hero visual + placeholder */
.lp-hero-visual { position: relative; min-height: 280px; }
.lp-hero-img {
    width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-brand-lg); display: block;
}
.lp-hero-ph {
    position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
    background:
        radial-gradient(100% 100% at 30% 10%, rgba(168,85,247,0.18), rgba(124,58,237,0) 60%),
        linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
    overflow: hidden; box-shadow: var(--shadow-brand-lg);
}
.lp-ph-card {
    position: absolute; border-radius: 12px;
    box-shadow: 0 14px 34px rgba(40,10,80,0.30); border: 1px solid rgba(255,255,255,0.6);
}
.lp-ph-card-a { width: 46%; height: 30%; left: 16%; top: 20%; transform: rotate(-8deg); background: rgba(255,255,255,0.96); }
.lp-ph-card-b { width: 46%; height: 30%; left: 38%; top: 34%; transform: rotate(6deg); background: rgba(237,233,254,0.96); }
.lp-ph-card-c { width: 40%; height: 26%; left: 26%; top: 52%; transform: rotate(-3deg); background: rgba(255,255,255,0.92); }
.lp-ph-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lp-ph-logo img { width: 42%; max-width: 150px; opacity: 0.95; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25)); }

/* ---- Section headings ---------------------------------------------------- */
.lp-h2 {
    font-size: clamp(1.35rem, 1rem + 1vw, 1.7rem); font-weight: 800;
    letter-spacing: -0.01em; color: var(--text); margin: 0;
}
.lp-sub { font-size: 0.95rem; color: var(--subtext); margin: 0.35rem 0 0; }
.lp-shop-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.lp-head-link {
    font-size: 0.88rem; font-weight: 600; color: var(--brand-dark);
    text-decoration: none; white-space: nowrap;
}
.lp-head-link:hover { text-decoration: underline; }
.lp-edge-head { text-align: center; margin-bottom: 1.6rem; }
.lp-edge-head .lp-sub { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---- Shop-by-product grid ------------------------------------------------ */
.lp-cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1.1rem;
}
.lp-cat-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md);
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base), border-color var(--dur-base);
}
.lp-cat-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-card-hover);
    border-color: rgba(124,58,237,0.35);
}
.lp-cat-img { position: relative; aspect-ratio: 4 / 3; background: var(--border-light); overflow: hidden; }
.lp-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease-out); }
.lp-cat-card:hover .lp-cat-img img { transform: scale(1.05); }
.lp-cat-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(124,58,237,0.12), rgba(124,58,237,0) 60%),
        linear-gradient(160deg, #f7f4ff 0%, #efe9fe 100%);
}
.lp-cat-ph-ico { font-size: 3rem; line-height: 1; filter: drop-shadow(0 4px 8px rgba(124,58,237,0.18)); opacity: 0.9; }
.lp-cat-count {
    position: absolute; top: 10px; right: 10px;
    font-size: 0.68rem; font-weight: 700; color: var(--brand-dark);
    background: rgba(255,255,255,0.92); border: 1px solid var(--border-light);
    padding: 3px 9px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.lp-cat-body { padding: 0.85rem 1rem 0.95rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.lp-cat-name { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.25; }
.lp-cat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.lp-cat-price { font-size: 0.85rem; color: var(--subtext); }
.lp-cat-price strong { font-size: 0.98rem; font-weight: 800; color: var(--text); }
.lp-cat-price-quote { font-weight: 700; color: var(--brand-dark); }
.lp-cat-go {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand-dark);
    transition: background var(--dur-base), color var(--dur-base), transform var(--dur-base) var(--ease-spring);
}
.lp-cat-card:hover .lp-cat-go { background: var(--brand); color: #fff; transform: translateX(2px); }
.lp-no-results, .lp-empty {
    text-align: center; padding: 2.5rem 1rem; color: var(--subtext);
    border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg);
}
.lp-no-results a, .lp-empty a { color: var(--brand-dark); font-weight: 600; }

/* ---- Featured product banner (editorial hero tile) ----------------------- */
.lp-shop { display: flex; flex-direction: column; gap: 1.4rem; }
.lp-feature {
    display: grid; grid-template-columns: 1.15fr 1fr; text-decoration: none;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl);
    overflow: hidden; box-shadow: var(--shadow-md); min-height: 300px;
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base), border-color var(--dur-base);
}
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(124,58,237,0.35); }
.lp-feature-media { position: relative; overflow: hidden; min-height: 260px; }
.lp-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out); }
.lp-feature:hover .lp-feature-media img { transform: scale(1.04); }
.lp-feature-ph {
    width: 100%; height: 100%; min-height: 260px; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(168,85,247,0.22), rgba(124,58,237,0) 60%),
        linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.lp-feature-ph-ico { font-size: 5rem; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25)); }
.lp-feature-copy { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.lp-feature-eyebrow {
    align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--brand-dark); background: var(--brand-light); padding: 4px 11px; border-radius: var(--radius-pill);
}
.lp-feature-name { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; color: var(--text); line-height: 1.1; margin: 0.7rem 0 0; letter-spacing: -0.01em; }
.lp-feature-tag { font-size: 1rem; line-height: 1.5; color: var(--subtext); margin: 0.55rem 0 0; max-width: 32rem; }
.lp-feature-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.2rem; font-size: 1rem; font-weight: 700; color: var(--brand-dark); }
.lp-feature-cta strong { color: var(--text); font-weight: 800; }
.lp-feature-cta svg { transition: transform var(--dur-base) var(--ease-spring); }
.lp-feature:hover .lp-feature-cta svg { transform: translateX(3px); }

/* Product badge on a media area (featured + cards) */
.lp-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.03em; color: var(--brand-dark);
    background: rgba(255,255,255,0.94); border: 1px solid var(--border-light);
    padding: 4px 11px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.lp-badge-feat { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.14); border-color: transparent; }

/* ---- Venue edge ---------------------------------------------------------- */
.lp-edge { margin: 2.5rem 0; }
.lp-edge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.lp-edge-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.25rem; box-shadow: var(--shadow-md);
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.lp-edge-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.lp-edge-ico {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--brand); background: linear-gradient(150deg, rgba(124,58,237,0.10), rgba(124,58,237,0.03));
    border: 1.5px solid rgba(124,58,237,0.18); margin-bottom: 0.85rem;
}
.lp-edge-title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.lp-edge-body { font-size: 0.85rem; line-height: 1.5; color: var(--subtext); }

/* ---- Active events ------------------------------------------------------- */
.lp-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.25rem; }
/* Event cards — full poster style (matches the product cards): hue/image art,
   top-left building + acronym, name + date overlaid on a scrim, brand TOP-border
   accent, hover-lift. */
.lp-event-card {
    position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
    border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); background: hsl(var(--h, 262) 40% 90%);
    transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base), border-color var(--dur-base);
}
.lp-event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: hsl(var(--h, 262) 60% 58%); }
.lp-event-art {
    position: absolute; inset: 0; background-image: var(--bp-img, none); background-size: cover; background-position: center;
}
.lp-event-card.is-ph .lp-event-art {
    background:
        radial-gradient(120% 90% at 28% 14%, hsl(var(--h, 262) 90% 76% / 0.62), transparent 58%),
        radial-gradient(110% 90% at 86% 100%, hsl(calc(var(--h, 262) + 26) 88% 64% / 0.45), transparent 55%),
        linear-gradient(155deg, hsl(var(--h, 262) 78% 92%) 0%, hsl(var(--h, 262) 64% 78%) 100%);
}
.lp-event-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(22,9,44,0.5) 0%, rgba(22,9,44,0) 30%),
        linear-gradient(0deg, rgba(22,9,44,0.86) 0%, rgba(22,9,44,0.32) 32%, transparent 56%);
}
.lp-event-head { position: absolute; z-index: 3; top: 13px; left: 15px; right: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lp-event-bldg { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.lp-event-acr { font-size: 1.55rem; font-weight: 900; line-height: 1; letter-spacing: 0.01em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.lp-event-overlay { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 15px 16px 16px; color: #fff; }
.lp-event-name { font-size: 1.05rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0,0,0,0.5); margin-bottom: 0.5rem; }
.lp-event-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-event-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.92); }
.lp-event-chip svg { color: rgba(255,255,255,0.8); }

/* ---- How it works -------------------------------------------------------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 0.5rem; }
.lp-step {
    text-align: center; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.6rem 1.25rem; box-shadow: var(--shadow-md);
}
.lp-step-ico {
    position: relative; width: 64px; height: 64px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center; color: var(--brand);
    background: linear-gradient(150deg, rgba(124,58,237,0.10), rgba(124,58,237,0.02));
    border: 1.5px solid rgba(124,58,237,0.20); border-radius: 18px;
}
.lp-step-num {
    position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 0.74rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand);
}
.lp-step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.lp-step-body { font-size: 0.88rem; line-height: 1.5; color: var(--subtext); }
.lp-pickups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.lp-pickup { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-md); }
.lp-pickup-name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.lp-pickup-addr { font-size: 0.84rem; color: var(--subtext); margin-top: 3px; }
.lp-pickup-details { display: inline-block; font-size: 0.78rem; color: var(--brand-dark); background: var(--brand-light); padding: 4px 9px; border-radius: 6px; margin-top: 8px; }

/* ---- Custom-quote panel -------------------------------------------------- */
.lp-quote {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    margin: 2.5rem 0; padding: 1.75rem 2rem; border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); border: 1px solid #e4d9fb;
}
.lp-quote-copy { flex: 1 1 320px; min-width: 0; }
.lp-quote-tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
}
.lp-quote-h { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0.5rem 0 0.4rem; }
.lp-quote-p { font-size: 0.95rem; line-height: 1.55; color: var(--subtext); margin: 0; max-width: 38rem; }
.lp-cta { margin-bottom: 0.5rem; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .lp-hero { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1.5rem; }
    .lp-hero-visual { order: -1; min-height: 0; }
    .lp-hero-ph { aspect-ratio: 16 / 9; max-height: 240px; }
    .lp-edge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .lp-feature { grid-template-columns: 1fr; min-height: 0; }
    .lp-feature-media, .lp-feature-ph { min-height: 0; aspect-ratio: 16 / 9; }
    .lp-feature-copy { padding: 1.5rem 1.4rem; }
}
@media (max-width: 640px) {
    .lp-steps { grid-template-columns: 1fr; }
    .lp-shop-head { align-items: flex-start; }
    .lp-quote { padding: 1.4rem 1.25rem; }
    .lp-cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
    .lp-cat-name { font-size: 0.92rem; }
}
@media (max-width: 460px) {
    .lp-edge-grid { grid-template-columns: 1fr; }
    .lp-hero-cta { gap: 12px; }
}


/* ============================================================================
   BROWSE PAGE (/products) — "Cinematic Light" streaming catalog.
   Immersive full-bleed hero + edge-bleed lanes + key-art poster cards with
   overlaid metadata + depth/motion, in a bright retail palette. Placeholders
   are art-directed per category via --h (brand-cohesive hue). Prefixed `bp-`.
   ============================================================================ */
.bp { --gutter: clamp(18px, 5vw, 64px); --h: 262; color: var(--text); }
.bp-wrap { max-width: 1820px; margin: 0 auto; padding: 0 var(--gutter); width: 100%; box-sizing: border-box; }

/* ---- Immersive hero ---- */
.bp-hero { position: relative; min-height: clamp(460px, 74vh, 760px); overflow: hidden; isolation: isolate; }
.bp-hero-art {
    position: absolute; inset: -4%; z-index: 0; background-size: cover; background-position: center;
    animation: bpKen 26s ease-in-out infinite alternate; will-change: transform;
}
.bp-hero.is-ph .bp-hero-art {
    background:
        radial-gradient(70% 80% at 76% 22%, hsl(var(--h) 92% 70% / 0.55), transparent 60%),
        radial-gradient(60% 70% at 18% 92%, hsl(calc(var(--h) + 28) 92% 72% / 0.40), transparent 60%),
        linear-gradient(135deg, hsl(var(--h) 80% 97%) 0%, hsl(var(--h) 70% 90%) 55%, hsl(calc(var(--h) - 18) 68% 86%) 100%);
}
@keyframes bpKen { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.bp-hero-glyph {
    position: absolute; right: 6%; top: 46%; transform: translateY(-50%); z-index: 1;
    font-size: clamp(8rem, 22vw, 20rem); line-height: 1; opacity: 0.55;
    filter: drop-shadow(0 20px 50px hsl(var(--h) 60% 40% / 0.35));
}
.bp-hero-veil {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(80deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.78) 26%, rgba(255,255,255,0.18) 52%, rgba(255,255,255,0) 70%),
        linear-gradient(0deg, var(--bg) 1.5%, rgba(250,248,255,0) 36%);
}
.bp-hero-search { position: absolute; z-index: 4; top: clamp(20px, 4.5vh, 48px); left: 0; right: 0; }
.bp-hero-body { position: absolute; z-index: 3; bottom: clamp(40px, 8vh, 92px); left: 0; right: 0; }
.bp-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-dark);
}
.bp-hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px hsl(var(--h) 80% 60% / 0.25); }
.bp-hero-name {
    font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.5rem); font-weight: 800; letter-spacing: -0.035em;
    line-height: 0.98; color: var(--text-2); margin: 0.55rem 0 0; max-width: 14ch;
    text-shadow: 0 2px 30px rgba(255,255,255,0.6);
}
.bp-hero-tag { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); line-height: 1.45; color: var(--subtext); margin: 0.9rem 0 0; max-width: 34ch; }
.bp-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 1.6rem; }
.bp-hero-cta {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    font-weight: 800; font-size: 1.02rem; color: #fff; background: var(--gradient-brand);
    padding: 15px 28px; border-radius: 13px; box-shadow: var(--shadow-brand-lg);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.bp-hero-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px hsl(var(--h) 70% 45% / 0.45); }
.bp-hero-hint { font-size: 0.9rem; color: var(--subtext); }
.bp-hero-hint a { color: var(--brand-dark); font-weight: 600; }

/* Frosted-glass search */
.bp-search {
    display: flex; align-items: center; gap: 11px; max-width: 560px;
    background: rgba(255,255,255,0.62); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.85); border-radius: 16px; padding: 7px 7px 7px 18px;
    box-shadow: 0 14px 44px rgba(70,30,130,0.16); transition: box-shadow 0.25s, border-color 0.25s;
}
.bp-search:focus-within { border-color: var(--brand); box-shadow: 0 14px 44px rgba(70,30,130,0.24), 0 0 0 4px var(--brand-focus); }
.bp-search-ico { color: var(--brand); flex-shrink: 0; }
.bp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-main); font-size: 1rem; color: var(--text); padding: 12px 0; }
.bp-search input::placeholder { color: var(--subtext); }
.bp-search-btn {
    flex-shrink: 0; border: 0; cursor: pointer; font-family: var(--font-main); font-weight: 700; font-size: 0.92rem;
    color: #fff; background: var(--gradient-brand); padding: 12px 20px; border-radius: 11px; box-shadow: var(--shadow-brand);
    transition: transform 0.2s var(--ease-spring);
}
.bp-search-btn:hover { transform: translateY(-1px); }

/* ---- Lanes ---- */
.bp-stage { max-width: 1820px; margin: 0 auto; padding: 1.5rem var(--gutter) 1rem; }
.bp-lane { margin: 2.4rem 0; }
.bp-lane-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bp-lane-title { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); font-weight: 800; letter-spacing: -0.015em; color: var(--text); margin: 0; display: inline-flex; align-items: center; gap: 11px; }
.bp-lane-ico { font-size: 1.2em; }
.bp-lane-nav { display: flex; gap: 9px; opacity: 0.6; transition: opacity 0.2s; }
.bp-lane:hover .bp-lane-nav { opacity: 1; }
.bp-arrow {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--card); color: var(--brand-dark); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}
.bp-arrow:hover { background: var(--brand); color: #fff; transform: scale(1.08); box-shadow: var(--shadow-brand); }
.bp-track {
    display: flex; gap: clamp(13px, 1.1vw, 20px); overflow-x: auto; scroll-snap-type: x proximity;
    scroll-behavior: smooth; scrollbar-width: none;
    /* overflow-x:auto forces overflow-y to auto, which would clip the hover
       lift + glow shadow on every side. The glow reaches ~50px above, ~88px
       below and ~60px left/right of a card, so pad PAST that on ALL sides
       (left/right use the full gutter), then reclaim the space with negative
       margins. The shadow renders in full and spills into the (transparent)
       surrounding content instead of hitting a hard clip edge — "flows freely". */
    padding: 56px var(--gutter) 104px var(--gutter);
    margin: -40px calc(-1 * var(--gutter)) -76px calc(-1 * var(--gutter));
    scroll-padding-left: var(--gutter);
}
.bp-track::-webkit-scrollbar { display: none; }

/* ---- Poster card: key-art with overlaid metadata ---- */
.bp-card {
    flex: 0 0 auto; width: clamp(186px, 15.5vw, 234px); aspect-ratio: 3 / 4;
    position: relative; border-radius: 16px; overflow: hidden; text-decoration: none;
    scroll-snap-align: start; background: hsl(var(--h) 40% 92%);
    box-shadow: var(--shadow-md);
    transition: transform 0.42s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.bp-card:hover { transform: translateY(-10px) scale(1.045); box-shadow: 0 30px 60px hsl(var(--h) 65% 40% / 0.34); z-index: 5; }
.bp-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.bp-card:hover .bp-card-art { transform: scale(1.09); }
.bp-card.is-ph .bp-card-art {
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(120% 85% at 28% 12%, hsl(var(--h) 92% 78% / 0.65), transparent 58%),
        radial-gradient(100% 90% at 88% 100%, hsl(calc(var(--h) + 26) 88% 66% / 0.45), transparent 55%),
        linear-gradient(155deg, hsl(var(--h) 78% 95%) 0%, hsl(var(--h) 66% 82%) 100%);
}
.bp-card-glyph { font-size: clamp(2.8rem, 4vw, 3.6rem); line-height: 1; filter: drop-shadow(0 8px 16px hsl(var(--h) 60% 35% / 0.30)); transition: transform 0.42s var(--ease-spring); }
.bp-card:hover .bp-card-glyph { transform: scale(1.12) rotate(-3deg); }
.bp-card-badge {
    position: absolute; top: 11px; left: 11px; z-index: 3;
    font-size: 0.63rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-dark);
    background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    padding: 4px 10px; border-radius: var(--radius-pill); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bp-card-grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(24,10,46,0.82) 0%, rgba(24,10,46,0.30) 30%, rgba(24,10,46,0) 52%); }
.bp-card-meta { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 14px 15px 15px; color: #fff; }
.bp-card-name { font-size: 0.96rem; font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.bp-card-price { font-size: 0.82rem; margin-top: 4px; color: rgba(255,255,255,0.88); }
.bp-card-price strong { font-weight: 800; color: #fff; }
.bp-card-go {
    position: absolute; z-index: 4; top: 42%; left: 50%; transform: translate(-50%,-50%) scale(0.82);
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    font-size: 0.82rem; font-weight: 800; color: var(--brand-dark);
    background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: 9px 16px; border-radius: var(--radius-pill); box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    opacity: 0; transition: opacity 0.28s, transform 0.32s var(--ease-spring);
}
.bp-card:hover .bp-card-go { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---- Home (landing) cinematic pieces ---- */
.bp-hero-mark { position: absolute; z-index: 1; right: 5%; top: 50%; transform: translateY(-50%); opacity: 0.16; pointer-events: none; }
.bp-hero-mark img { width: clamp(170px, 26vw, 440px); filter: drop-shadow(0 16px 40px hsl(var(--h) 50% 40% / 0.35)); }
.lp-narrative { max-width: 1320px; margin: 0 auto; padding: 1.5rem clamp(20px, 5vw, 48px) 48px; }
.bp-lane-actions { display: flex; align-items: center; gap: 16px; }
.bp-card-all {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px;
    text-align: center; color: var(--brand-dark);
    background: linear-gradient(160deg, hsl(262 60% 96%), hsl(262 52% 90%)); border: 1px dashed hsl(262 50% 72%);
}
.bp-card-all-ico { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); transition: transform 0.3s var(--ease-spring); }
.bp-card-all:hover .bp-card-all-ico { transform: translateX(3px) scale(1.06); }
.bp-card-all-txt { font-weight: 800; font-size: 0.95rem; line-height: 1.2; }

/* Top-10 overlay numeral (home Popular lane) — a faded rank number sits ON the
   card's art (top-left). Original spacing kept; badge shifts to the top-right. */
.bp-card-rank {
    position: absolute; z-index: 3; top: -2px; left: 11px;
    font-family: var(--font-main); font-weight: 900; line-height: 1; letter-spacing: -0.05em;
    font-size: 3.7rem; color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 5px rgba(20,8,40,0.5), 0 10px 26px rgba(20,8,40,0.4);
    pointer-events: none; user-select: none;
}
#lpPopTrack .bp-card-badge { left: auto; right: 11px; }

/* ---- Browse "See all" link + Category listing page (/category/{slug}) ---- */
.bp-lane-more { font-size: 0.84rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; white-space: nowrap; }
.bp-lane-more:hover { text-decoration: underline; }
.bp-crumbs { font-size: 0.82rem; margin: 1.25rem 0 0.5rem; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.bp-crumbs a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.bp-crumbs a:hover { text-decoration: underline; }
.bp-crumbs span { color: var(--muted); }
.bp-crumbs strong { color: var(--text); font-weight: 700; }
.bp-cat-head { margin: 0.25rem 0 1.75rem; }
.bp-cat-title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: var(--text); margin: 0; }
.bp-cat-blurb { font-size: 1rem; color: var(--subtext); margin: 0.6rem 0 0; }
.bp-cat-search { max-width: 30rem; margin-top: 1.3rem; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.bp-grid .bp-card { width: auto; }
@media (max-width: 560px) { .bp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } }

@media (hover: none) { .bp-card-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .bp-hero-art { animation: none; } }
@media (max-width: 760px) {
    .bp-hero { min-height: clamp(420px, 70vh, 620px); }
    .bp-hero-veil { background: linear-gradient(80deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.1) 75%), linear-gradient(0deg, var(--bg) 2%, rgba(250,248,255,0) 42%); }
    .bp-hero-glyph { font-size: 9rem; right: -2%; top: 32%; opacity: 0.4; }
    .bp-lane-nav { display: none; }
    .bp-card { width: clamp(150px, 42vw, 180px); }
}
