/* ============================================================
   BidPlayer public landing page — shared by the Desktop view
   (Index.cshtml) and the Mobile/Tablet view (Index.Mobile.cshtml).
   ============================================================ */

:root {
    --lp-primary: #8b5cf6;
    --lp-primary-dark: #7c3aed;
    --lp-primary-light: #a78bfa;
    --lp-ink: #150f28;
    --lp-hero-base: #170f2c;
    --lp-text-muted: #6b7280;
    --lp-border: #e9e5f5;
    --lp-radius-lg: 20px;
    --lp-radius-md: 14px;
    --lp-shadow: 0 18px 40px rgba(21, 15, 40, 0.12);
}

* { box-sizing: border-box; }

body.lp-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--lp-ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Element-only selector (not .lp-body-qualified) so it stays lower-specificity
   than every single-class button/link rule below and never overrides them. */
a { text-decoration: none; color: inherit; }
.lp-body img { max-width: 100%; display: block; }
.lp-body button { font-family: inherit; }

.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
    border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary {
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}
.lp-btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(124, 58, 237, 0.45); }
/* Secondary hero button — dark fill on the photo, as in the design */
.lp-btn-ghost {
    background: rgba(12, 8, 24, 0.72); color: #fff;
    border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(4px);
}
.lp-btn-ghost:hover { background: rgba(12, 8, 24, 0.9); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lp-btn-outline { background: transparent; border-color: var(--lp-border); color: var(--lp-ink); }
.lp-btn-outline:hover { border-color: var(--lp-primary); color: var(--lp-primary-dark); }
.lp-btn-white { background: #fff; color: var(--lp-primary-dark); }
.lp-btn-white:hover { color: var(--lp-primary-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.lp-btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }

/* ── Section shell ───────────────────────────────────────── */
.lp-section { padding: 52px 0; }
.lp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.lp-section-title { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.lp-section-sub { color: var(--lp-text-muted); font-size: 14px; margin: 5px 0 0; }
.lp-link-arrow { color: var(--lp-primary-dark); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.lp-link-arrow:hover { color: var(--lp-primary); }

/* ── Hero (shared skin, per-view sizing below) ───────────── */
.lp-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(750px 500px at 52% 28%, rgba(147, 51, 234, 0.32), transparent 68%),
        radial-gradient(950px 550px at 82% 14%, rgba(139, 92, 246, 0.42), transparent 65%),
        radial-gradient(600px 400px at 15% 80%, rgba(109, 40, 217, 0.25), transparent 60%),
        linear-gradient(135deg, #130c27 0%, #1e1344 42%, #2c1a60 72%, #190e36 100%);
}
.lp-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; }
/* The photo fades out along its own left edge, so it dissolves into whatever the
   hero background is painting there — an opaque overlay colour would show a seam. */
.lp-hero-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 24%, rgba(0, 0, 0, 0.78) 52%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 24%, rgba(0, 0, 0, 0.78) 52%, #000 80%);
}
/* Full-width scrim (not photo-width) to keep the copy legible without an edge */
.lp-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg,
        rgba(19, 12, 39, 0.94) 0%,
        rgba(19, 12, 39, 0.62) 28%,
        rgba(19, 12, 39, 0.12) 48%,
        transparent 65%
    );
}
.lp-hero-inner { position: relative; z-index: 2; }
.lp-hero-title { font-size: 46px; line-height: 1.1; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.lp-hero-title span { color: var(--lp-primary-light); }
.lp-hero-subtitle { font-size: 16.5px; font-weight: 700; color: #ece8fb; margin: 0 0 14px; }
.lp-hero-desc { font-size: 14.5px; line-height: 1.7; color: #b9b1d6; margin: 0 0 26px; }
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-hero-script {
    position: absolute; z-index: 3; font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-style: italic; color: #fff; text-align: right; line-height: 1.25; transform: rotate(-5deg);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ── Stat items (bar on desktop, card on mobile) ─────────── */
.lp-stat { display: flex; align-items: center; gap: 12px; }
.lp-stat-icon { font-size: 24px; color: var(--lp-primary); line-height: 1; flex-shrink: 0; }
.lp-stat-value { font-size: 21px; font-weight: 800; line-height: 1.15; }
.lp-stat-label { font-size: 12.5px; color: var(--lp-text-muted); }

/* ── Step tiles (tournament setup → auction → pools) ─────── */
.lp-step {
    position: relative; background: #fff; border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md); padding: 20px 20px 18px; overflow: hidden;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.lp-step:hover { box-shadow: var(--lp-shadow); transform: translateY(-2px); border-color: #d9d0f7; }
.lp-step-num { position: absolute; top: 12px; right: 18px; font-size: 30px; font-weight: 800; line-height: 1; color: rgba(139, 92, 246, 0.16); }
.lp-step-icon {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(124, 58, 237, 0.09));
    color: var(--lp-primary-dark);
}
.lp-step-title { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; }
.lp-step-text { font-size: 13px; color: var(--lp-text-muted); line-height: 1.6; margin: 0; }

/* ── Auctions hero (light — sits on bg-liveauction.webp) ─── */
.lp-auctionhero {
    position: relative; overflow: hidden; background: #fbfaff;
    border-bottom: 1px solid var(--lp-border);
    min-height: 162px; display: flex; align-items: center;
}
/* The source art is ~2172x724, and at a 162px-tall band spanning the full
   (often 1500-1920px) viewport width, `cover` forces such a tall zoom that
   only a ~180px-high sliver of the image (in its own coordinates) is ever
   visible — showing the whole figure top-to-bottom would need a band roughly
   3x this height, so some cropping is unavoidable at this height. (`contain`
   avoids cropping but shows the whole illustration at only ~480px wide,
   too small on a 1500px+ hero for the players to read as more than a
   texture.) object-position is tuned so the crop reads as a deliberate
   close-up — bat, helmet and shoulders in full — rather than an accidental
   slice through mid-swing or the legs. */
.lp-auctionhero-photo { position: absolute; inset: 0; }
.lp-auctionhero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* White on the left fading out to the right: the copy stays readable over a
   near-solid background while the players show through on the far side. */
.lp-auctionhero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 28%,
        rgba(255, 255, 255, 0.60) 52%,
        rgba(255, 255, 255, 0.10) 76%,
        rgba(255, 255, 255, 0) 100%);
}
/* Shares its element with .lp-wrap, so only the vertical padding is set here:
   the shorthand would wipe .lp-wrap's 24px gutter, and overriding its max-width
   would centre the copy instead of lining it up with the logo above. The text
   column is limited on the paragraph itself.
   width:100% matters here specifically: .lp-auctionhero is a flex container
   (for vertical centering), and a flex item with no explicit width shrinks to
   fit its content — which leaves .lp-wrap's `margin: 0 auto` nothing to
   distribute except the leftover space around that shrunk box, centering the
   whole title/subtitle block in the hero instead of pinning it to the left
   edge like the logo above. Stretching the item to 100% first (then letting
   max-width cap it at 1200px, same as .lp-wrap everywhere else) restores that
   left alignment. */
.lp-auctionhero-inner { position: relative; z-index: 2; width: 100%; padding-top: 26px; padding-bottom: 26px; }
.lp-auctionhero-title { font-size: 34px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; color: var(--lp-ink); }
/* max-width tuned so the sentence breaks into two lines of similar length. */
.lp-auctionhero-sub { font-size: 15px; color: var(--lp-text-muted); margin: 0; line-height: 1.6; max-width: 480px; }
.lp-auctionhero-script {
    position: absolute; z-index: 1; right: 56px; top: 46px; text-align: right; line-height: 1.2;
    font-family: 'Brush Script MT', 'Segoe Script', cursive; font-style: italic;
    font-size: 23px; color: var(--lp-primary-dark);
}
/* Hand-drawn style swoosh under the tagline — a curved border, not an image. */
.lp-auctionhero-script::after {
    content: ''; display: block; width: 74%; height: 9px; margin: 1px 2px 0 auto;
    border-bottom: 2.5px solid var(--lp-primary-dark); border-radius: 0 0 62% 38%;
}

/* Toolbar: filter tabs (left) + refresh control (right), sitting just below
   the hero (see Landing/Auctions.cshtml). */
.lp-auctionsection { padding: 20px 0 44px; }
.lp-auctiontoolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.lp-auctiontabs { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-auctiontabs button {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1.5px solid var(--lp-border); background: #fff; border-radius: 24px;
    cursor: pointer; white-space: nowrap;
    font-size: 13.5px; font-weight: 700; padding: 9px 18px; color: var(--lp-ink);
    transition: background .15s, color .15s, border-color .15s;
}
.lp-auctiontabs button i { font-size: 13px; }
.lp-auctiontabs button:hover { border-color: var(--lp-primary); }
.lp-auctiontabs button.active {
    background: var(--lp-primary-dark); border-color: var(--lp-primary-dark); color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, .3);
}

.lp-auctionrefresh { display: flex; align-items: center; gap: 16px; }
.lp-refresh-btn {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1.5px solid var(--lp-border); background: #fff; border-radius: 10px;
    padding: 8px 15px; font-size: 13px; font-weight: 700; color: var(--lp-primary-dark);
    cursor: pointer; transition: background .15s, border-color .15s;
}
.lp-refresh-btn:hover { background: #f8f6fd; border-color: var(--lp-primary); }
.lp-refresh-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--lp-text-muted); white-space: nowrap; }
.lp-refresh-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: lp-refresh-pulse 1.4s infinite; flex-shrink: 0; }
@keyframes lp-refresh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin-icon { display: inline-block; animation: spin 0.7s linear infinite; }

/* ── Page head (interior pages, e.g. Contact) ────────────── */
.lp-pagehead {
    background: radial-gradient(700px 300px at 82% 0%, rgba(139, 92, 246, 0.34), transparent 64%),
                linear-gradient(135deg, #150f28 0%, #1d1440 60%, #2a1c5c 100%);
    color: #fff; padding: 42px 0;
}
.lp-pagehead-title { font-size: 34px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.lp-pagehead-sub { font-size: 14.5px; color: #b9b1d6; margin: 0; max-width: 520px; }
.lp-back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: #c4b5fd; text-decoration: none; font-size: 14px; font-weight: 600; }
.lp-back-link:hover { color: #fff; }

/* ── Contact cards ───────────────────────────────────────── */
.lp-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-contact-card {
    display: block; background: #fff; border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md); padding: 22px 20px;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.lp-contact-card:hover { box-shadow: var(--lp-shadow); transform: translateY(-2px); border-color: #d9d0f7; }
.lp-contact-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-text-muted); margin: 0 0 4px; }
.lp-contact-value { font-size: 16.5px; font-weight: 700; margin: 0 0 12px; word-break: break-word; }
.lp-contact-action { font-size: 13px; font-weight: 700; color: var(--lp-primary-dark); display: inline-flex; align-items: center; gap: 6px; }
.lp-contact-note {
    margin-top: 22px; display: flex; align-items: flex-start; gap: 10px;
    background: #f8f6fd; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-md);
    padding: 16px 18px; font-size: 13px; color: var(--lp-text-muted); line-height: 1.6;
}
.lp-contact-note i { color: var(--lp-primary); font-size: 16px; margin-top: 1px; flex-shrink: 0; }

/* ── CTA banner ──────────────────────────────────────────── */
.lp-cta-banner {
    background: linear-gradient(120deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    border-radius: var(--lp-radius-lg); color: #fff; padding: 26px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.lp-cta-icon {
    width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
}
.lp-cta-title { font-size: 19px; font-weight: 800; margin: 0; }
.lp-cta-text { font-size: 14px; margin: 2px 0 0; opacity: .92; }

/* ── Footer ──────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--lp-border); padding: 22px 0 28px; color: var(--lp-text-muted); font-size: 13.5px; }
.lp-footer-tagline { display: flex; align-items: center; gap: 14px; font-family: 'Brush Script MT', 'Segoe Script', cursive; font-style: italic; font-size: 16px; color: var(--lp-ink); }
.lp-footer-line { width: 42px; height: 1px; background: var(--lp-border); }
.lp-copyright {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--lp-border);
    font-size: 12.5px;
    color: var(--lp-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.lp-copyright-text { color: var(--lp-text-muted); }
.lp-footer-legal { display: inline-flex; align-items: center; gap: 14px; }
.lp-legal-link { color: var(--lp-primary); font-weight: 600; text-decoration: none; transition: color 0.15s ease; font-size: 13px; }
.lp-legal-link:hover { color: var(--lp-primary-dark); text-decoration: underline; }
.lp-legal-divider { color: var(--lp-border); font-size: 13px; user-select: none; }
.lp-footer-mobile .lp-copyright {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.lp-footer-mobile .lp-footer-legal { justify-content: center; gap: 12px; }

/* ============================================================
   DESKTOP VIEW
   ============================================================ */
.lp-desktop-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--lp-border); }
.lp-desktop-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.lp-logo img { height: 42px; width: auto; display: block; }
/* margin-left:auto pulls the nav across to sit beside the header actions rather
   than floating in the middle of the header. The parent keeps justify-content:
   space-between because under 900px this nav is display:none, and that rule is
   what still holds the logo left and the actions right. */
.lp-desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.lp-nav-link { font-size: 14px; font-weight: 600; color: var(--lp-text-muted); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.lp-nav-link:hover { color: var(--lp-ink); }
.lp-nav-link.active { color: var(--lp-primary-dark); border-color: var(--lp-primary-dark); }
.lp-header-actions { display: flex; align-items: center; gap: 10px; }
/* The inline nav is hidden under 900px, so the burger takes over there —
   without it the desktop template has no way to reach any nav link. */
.lp-desktop-header .lp-hamburger { display: none; }

.lp-hero-desktop { min-height: 520px; display: flex; align-items: center; }
.lp-hero-desktop .lp-hero-photo { width: 72%; }
.lp-hero-desktop .lp-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 14%, rgba(0, 0, 0, 0.85) 35%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 14%, rgba(0, 0, 0, 0.85) 35%, #000 60%);
}
.lp-hero-desktop .lp-hero-inner { width: 100%; padding-top: 58px; padding-bottom: 58px; }
.lp-hero-desktop .lp-hero-copy { max-width: 560px; }
.lp-hero-desktop .lp-hero-desc { max-width: 490px; }
.lp-hero-desktop .lp-hero-script { top: 38px; right: 48px; font-size: 22px; }

.lp-statsbar { border-bottom: 1px solid var(--lp-border); background: #fff; }
/* Vertical padding as longhand — the `padding: 22px 0` shorthand would reset
   .lp-wrap's horizontal padding to 0 and let the row run edge to edge. */
.lp-statsbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 22px; padding-bottom: 22px; }
.lp-statsbar .lp-stat { justify-content: center; }
.lp-statsbar .lp-stat + .lp-stat, .lp-statsbar-inner > .lp-stat:not(:first-child) { border-left: 1px solid var(--lp-border); }

.lp-steps-desktop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.lp-how { background: #f8f6fd; border-top: 1px solid var(--lp-border); }
.lp-how-inner { display: flex; align-items: center; gap: 20px 26px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; }
.lp-how-item { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 185px; min-width: 185px; }
.lp-how-item i { color: var(--lp-primary); font-size: 19px; margin-top: 2px; }
.lp-how-item strong { display: block; font-size: 13.5px; font-weight: 700; }
.lp-how-item span { font-size: 12.5px; color: var(--lp-text-muted); line-height: 1.5; }
/* flex-basis:100% forces this to always start its own row and fill it, so the
   button never strands itself at content-width when the 4 items above wrap
   differently at in-between viewport widths — no breakpoint guessing needed. */
.lp-how-inner .lp-btn { flex: 1 1 100%; }
@media (min-width: 1150px) {
    /* Wide enough for items + button on one line without the button forcing a wrap. */
    .lp-how-inner .lp-btn { flex: 0 0 auto; margin-left: auto; }
}

.lp-footer-desktop { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .lp-desktop-nav { gap: 20px; }
    .lp-hero-desktop .lp-hero-photo { width: 55%; }
}
@media (max-width: 900px) {
    .lp-desktop-nav { display: none; }
    .lp-desktop-header .lp-hamburger { display: flex; }
    .lp-auctionhero { min-height: 0; }
    .lp-auctionhero-inner { padding-top: 20px; padding-bottom: 20px; }
    .lp-auctionhero-title { font-size: 22px; }
    .lp-auctionhero-sub { font-size: 12.5px; }
    /* Artwork drops back to a faint wash here — the copy needs the whole width. */
    .lp-auctionhero-photo img { opacity: .5; }
    .lp-auctionhero::before {
        background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.82) 55%,
            rgba(255, 255, 255, 0.62) 100%);
    }
    .lp-auctionsection { padding: 20px 0 34px; }
    /* Tabs and the refresh control stack instead of squeezing onto one row. */
    .lp-auctiontoolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 18px; }
    /* One scrollable row rather than wrapping onto two lines. */
    .lp-auctiontabs {
        flex-wrap: nowrap; overflow-x: auto; gap: 8px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .lp-auctiontabs::-webkit-scrollbar { display: none; }
    .lp-auctiontabs button { font-size: 12.5px; padding: 8px 14px; flex: 0 0 auto; }
    .lp-auctionrefresh { justify-content: space-between; }
    .lp-refresh-status { white-space: normal; }
    .lp-auctionhero-script { display: none; }
    .lp-hero-title { font-size: 36px; }
    /* Copy would otherwise run across the player photo — drop the long
       paragraph and narrow the column, matching the mobile hero treatment. */
    .lp-hero-desktop .lp-hero-desc { display: none; }
    .lp-hero-desktop .lp-hero-copy { max-width: 64%; }
    .lp-hero-desktop { min-height: 420px; }
    .lp-statsbar-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .lp-statsbar-inner > .lp-stat:nth-child(odd) { border-left: none; }
    .lp-steps-desktop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    /* .lp-how-item's flex-basis:185px lets 2-3 items fit per row up to ~866px,
       which stranded the CTA button as its own left-aligned row in that range —
       stack everything at the same 900px tier the nav/steps grid already use. */
    .lp-how-inner { flex-direction: column; align-items: stretch; gap: 20px; }
    .lp-how-item { flex: none; min-width: 0; }
    .lp-how-inner .lp-btn { width: 100%; }
}
@media (max-width: 700px) {
    .lp-hero-desktop .lp-hero-photo { width: 55%; }
    .lp-hero-desktop .lp-hero-copy { max-width: 70%; }
    .lp-steps-desktop { grid-template-columns: 1fr; }
    .lp-footer-desktop { flex-direction: column; align-items: flex-start; gap: 10px; }
    .lp-footer-desktop .lp-footer-tagline { justify-content: flex-start; }
    .lp-copyright { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .lp-footer-legal { justify-content: center; gap: 12px; }
}

/* ============================================================
   MOBILE / TABLET VIEW
   ============================================================ */
.lp-mobile-header {
    position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--lp-border);
    padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-mobile-header .lp-logo img { height: 34px; width: auto; display: block; }
.lp-mobile-header-actions { display: flex; align-items: center; gap: 10px; }
/* Plain icon, no chrome — but a full 40px hit area for touch. */
.lp-hamburger {
    width: 40px; height: 40px; margin-right: -8px; border: none; background: none; padding: 0;
    display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; color: var(--lp-ink);
}
.lp-hamburger:active { opacity: .6; }

.lp-mobile-nav-panel {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 300px); background: #fff; z-index: 60;
    transform: translateX(100%); transition: transform .25s ease; box-shadow: -12px 0 30px rgba(0, 0, 0, .15);
    padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.lp-mobile-nav-panel.open { transform: translateX(0); }
.lp-mobile-nav-scrim {
    position: fixed; inset: 0; background: rgba(21, 15, 40, 0.45); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lp-mobile-nav-scrim.open { opacity: 1; pointer-events: auto; }
.lp-mobile-nav-close { align-self: flex-end; width: 36px; height: 36px; border-radius: 10px; border: none; background: #f3f0fb; font-size: 16px; margin-bottom: 8px; }
.lp-mobile-nav-link { padding: 13px 10px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--lp-ink); }
.lp-mobile-nav-link:hover, .lp-mobile-nav-link:active { background: #f3f0fb; }
.lp-mobile-nav-divider { height: 1px; background: var(--lp-border); margin: 10px 0; }
.lp-mobile-nav-panel .lp-btn { margin-top: 4px; }

.lp-hero-mobile { padding: 20px 0 56px; position: relative; }
.lp-hero-mobile .lp-hero-photo { width: 68%; }
.lp-hero-mobile::before {
    background: linear-gradient(90deg, rgba(20, 13, 38, 0.94) 0%, rgba(20, 13, 38, 0.55) 44%, rgba(20, 13, 38, 0) 80%);
}
.lp-hero-mobile .lp-hero-photo img {
    object-fit: cover;
    object-position: 65% 52%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 12%, rgba(0, 0, 0, 0.85) 38%, #000 65%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 12%, rgba(0, 0, 0, 0.85) 38%, #000 65%);
}
.lp-hero-mobile .lp-hero-copy { max-width: 100%; }
.lp-hero-mobile .lp-hero-title { font-size: 28px; margin-bottom: 8px; line-height: 1.12; max-width: 72%; }
.lp-hero-mobile .lp-hero-subtitle { font-size: 13.5px; margin-bottom: 14px; max-width: 72%; }
.lp-hero-mobile .lp-hero-desc { font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; max-width: 72%; }
.lp-hero-mobile .lp-hero-actions-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}
.lp-hero-mobile .lp-hero-actions-mobile .lp-btn {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
@media (max-width: 390px) {
    .lp-hero-mobile .lp-hero-actions-mobile { gap: 6px; }
    .lp-hero-mobile .lp-hero-actions-mobile .lp-btn { padding: 8px 10px; font-size: 12px; }
}
.lp-hero-script-mobile { top: 14px; right: 14px; font-size: 17px; }

.lp-stats-card {
    background: #fff; border-radius: var(--lp-radius-lg); box-shadow: var(--lp-shadow);
    margin: -38px 16px 0; position: relative; z-index: 5; padding: 18px 16px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px;
}
.lp-stats-card .lp-stat-value { font-size: 18px; }

.lp-section-mobile { padding: 30px 16px; }
.lp-section-mobile .lp-section-title { font-size: 20px; }
.lp-steps-mobile { display: grid; grid-template-columns: 1fr; gap: 12px; }

.lp-cta-banner-mobile { flex-direction: column; align-items: stretch; }
.lp-cta-banner-mobile .lp-btn { width: 100%; }
.lp-cta-banner-mobile-head { display: flex; align-items: center; gap: 14px; }

.lp-footer-mobile { text-align: center; }
.lp-footer-mobile .lp-footer-tagline { justify-content: center; }

/* Tablet shares this view — more room, so the layout opens up */
@media (min-width: 620px) {
    .lp-hero-mobile { padding: 30px 0 62px; }
    .lp-hero-mobile .lp-hero-copy { max-width: 58%; }
    .lp-hero-mobile .lp-hero-title { font-size: 34px; }
    .lp-hero-mobile .lp-hero-subtitle { font-size: 15px; }
    .lp-hero-mobile .lp-hero-desc { font-size: 14px; }
    .lp-stats-card { grid-template-columns: repeat(4, 1fr); margin: -44px 24px 0; padding: 22px 20px; }
    .lp-section-mobile { padding: 40px 24px; }
    .lp-section-mobile .lp-section-title { font-size: 24px; }
    .lp-steps-mobile { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .lp-cta-banner-mobile { flex-direction: row; align-items: center; }
    .lp-cta-banner-mobile .lp-btn { width: auto; }
}

/* Contact page at narrow widths — 3 cols (base) → 2 → 1 */
@media (max-width: 900px) {
    .lp-pagehead { padding: 28px 0; }
    .lp-pagehead-title { font-size: 26px; }
    .lp-pagehead-sub { font-size: 13.5px; }
    .lp-contact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .lp-contact-card { padding: 18px 16px; }
}
@media (max-width: 620px) {
    .lp-contact-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Step-by-step guide pages ───────────────────────── */
.lp-help-toc { order: 2; position: sticky; top: 24px; border-left: 1px solid var(--lp-border); padding-left: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.lp-help-toc-title { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-text-muted); }
.lp-help-toc a { color: var(--lp-text-muted); }
.lp-help-toc a:hover { color: var(--lp-primary-dark); }
.lp-guide-body { order: 1; max-width: 820px; font-size: 15px; line-height: 1.65; }
.lp-guide-h { font-size: 22px; font-weight: 800; margin: 40px 0 12px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 20px; }
.lp-guide-h:first-child { margin-top: 0; }
.lp-guide-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-primary); color: #fff; font-size: 14px; flex-shrink: 0; }
.lp-guide-list { padding-left: 20px; }
.lp-guide-list li { margin-bottom: 6px; }
.lp-guide-body a { color: var(--lp-primary-dark); }
.lp-guide-req { color: #dc2626; font-weight: 700; }
.lp-guide-fields { border: 1px solid var(--lp-border); border-radius: var(--lp-radius-md); overflow: hidden; margin: 14px 0; }
.lp-guide-fields > div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 10px 16px; font-size: 14px; }
.lp-guide-fields > div:nth-child(odd) { background: #faf9ff; }
.lp-guide-fields span { color: var(--lp-text-muted); }
.lp-guide-shot { margin: 16px 0 0; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-md); overflow: hidden; box-shadow: var(--lp-shadow); }
.lp-guide-shot img { width: 100%; height: auto; }
.lp-guide-shot:has(> img) { border: 0; box-shadow: none; border-radius: 0; }
.lp-guide-body .lp-contact-note { margin-top: 32px; }
.lp-guide-faq details { border: 1px solid var(--lp-border); border-radius: var(--lp-radius-md); padding: 12px 16px; margin-bottom: 10px; }
.lp-guide-faq summary { font-weight: 600; cursor: pointer; }
.lp-guide-faq p { margin: 8px 0 0; color: var(--lp-text-muted); font-size: 14px; }
@media (max-width: 900px) {
    .lp-guide-fields > div { grid-template-columns: 1fr; gap: 2px; }
    .lp-guide-h { font-size: 19px; }
}

/* ── Help section shell ─────────────────────────────── */
.lp-help { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; padding-bottom: 60px; min-height: 70vh; }
.lp-help-side { border-right: 1px solid var(--lp-border); padding: 24px 20px 24px 0; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; } /* 64px = the sticky site header, so the first topic isn't hidden under it */
.lp-help-filter { width: 100%; border: 1px solid var(--lp-border); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; margin-bottom: 14px; }
.lp-help-filter:focus { outline: none; border-color: var(--lp-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.lp-help-group-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 11px 4px; font-size: 14.5px; font-weight: 600; color: var(--lp-ink); text-align: left; cursor: pointer; }
.lp-help-group-icon { font-size: 12px; color: var(--lp-text-muted); }
.lp-help-group.open .lp-help-group-icon::before { content: "\f63b"; } /* bi-dash-lg */
.lp-help-group-items { display: none; flex-direction: column; padding-bottom: 6px; }
.lp-help-group.open .lp-help-group-items { display: flex; }
.lp-help-link { padding: 8px 12px 8px 16px; font-size: 14px; color: var(--lp-text-muted); border-left: 2px solid transparent; }
.lp-help-link:hover { color: var(--lp-ink); }
.lp-help-link.active { color: var(--lp-primary-dark); font-weight: 600; border-left-color: var(--lp-primary-dark); background: #f6f3ff; }
.lp-help-empty { font-size: 13.5px; color: var(--lp-text-muted); padding: 8px 4px; }
.lp-help-main { padding: 32px 0 0 40px; min-width: 0; }
.lp-help-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: start; }
.lp-help-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.lp-help-lead { color: var(--lp-text-muted); font-size: 16px; }
@media (max-width: 1100px) {
    .lp-help-article-wrap { grid-template-columns: 1fr; gap: 0; }
    .lp-help-toc { display: none; }
}
@media (max-width: 900px) {
    .lp-help { grid-template-columns: 1fr; }
    .lp-help-side { display: none; }
    .lp-help-main { padding: 20px 0 0; }
}

/* Help: single page with # menu, language switch, per-section download */
html { scroll-behavior: smooth; }
.lp-help-ml, .lp-help-ml .lp-guide-body { font-family: 'Noto Sans Malayalam', 'Inter', sans-serif; }
.lp-help-ml .lp-guide-body { line-height: 1.8; }
.lp-guide-section { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--lp-border); scroll-margin-top: 24px; }
.lp-guide-section:last-child { border-bottom: 0; margin-bottom: 0; }
.lp-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lp-guide-head .lp-help-title { font-size: 26px; }
.lp-guide-dl { text-decoration: none; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--lp-border); border-radius: 10px; background: #fff; color: var(--lp-primary-dark); font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; }
.lp-guide-dl:hover { background: #f6f3ff; border-color: var(--lp-primary-light); }
.lp-footer-right { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-help-lang { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--lp-border); border-radius: 999px; background: #fff; font-size: 12.5px; }
.lp-help-lang a { color: var(--lp-text-muted); font-weight: 600; text-decoration: none; padding: 4px 14px; border-radius: 999px; line-height: 1.3; transition: background 0.15s ease, color 0.15s ease; }
.lp-help-lang a.active { background: var(--lp-primary); color: #fff; }
.lp-help-lang a:not(.active):hover { color: var(--lp-primary-dark); background: rgba(124, 58, 237, 0.08); }
@media (max-width: 768px) { .lp-footer-right { flex-direction: column; gap: 12px; } }
@media (max-width: 600px) {
    .lp-guide-head { flex-direction: column; gap: 8px; }
}
@media print {
    .lp-desktop-header, .lp-mobile-nav-panel, .lp-mobile-nav-scrim, .lp-help-side, .lp-help-burger, .lp-help-panel, .lp-help-scrim, .lp-footer, .lp-guide-dl { display: none !important; }
    .lp-help { display: block; }
    .lp-help-main { padding: 0; }
    .lp-help-toolbar { display: none; }
    .lp-guide-section { border: 0; }
}

/* Help side menu: one item per row */
.lp-help-nav { display: flex; flex-direction: column; gap: 4px; }
.lp-help-nav .lp-help-link { display: block; padding: 10px 14px; border-left: 0; border-radius: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.lp-help-nav .lp-help-link:hover { background: #f6f3ff; color: var(--lp-ink); }
.lp-help-nav .lp-help-link.active { background: #f0eaff; color: var(--lp-primary-dark); font-weight: 600; }

/* Mobile topic menu: the burger beside Sign In opens a slide-in list of topics. Reuses the .lp-mobile-nav-* look;
   it sits above the bottom menu bar (z-index 1057). Under 900px only: desktop has the sidebar instead. */
.lp-help-burger { margin-right: 0; }
.lp-help-panel { z-index: 1100; overflow-y: auto; visibility: hidden; transition: transform .25s ease, visibility .25s; }
.lp-help-panel.open { visibility: visible; }
.lp-help-scrim { z-index: 1095; }
.lp-help-panel-head { display: flex; justify-content: flex-end; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--lp-border); }
.lp-help-panel .lp-mobile-nav-close { align-self: auto; margin-bottom: 0; cursor: pointer; }
.lp-help-panel-list { display: flex; flex-direction: column; gap: 2px; }
.lp-help-panel .lp-mobile-nav-link { line-height: 1.35; }
.lp-help-panel .lp-mobile-nav-link.active { background: #f0eaff; color: var(--lp-primary-dark); }
@media (min-width: 901px) { .lp-help-panel, .lp-help-scrim { display: none; } }
.lp-help-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.lp-guide-refer { margin-top: 24px; padding: 12px 16px; background: #faf9ff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-md); }
.lp-guide-way { margin: 44px 0 8px; padding: 10px 16px; font-size: 17px; font-weight: 700; color: var(--lp-primary-dark); background: #f0eaff; border-radius: var(--lp-radius-md); }
.lp-guide-way:first-of-type { margin-top: 28px; }

/* Help: next-step links, glossary */
.lp-guide-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 28px; padding: 14px 18px; background: #f0eaff; border-radius: var(--lp-radius-md); color: var(--lp-text-muted); font-size: 14px; }
.lp-guide-next a { font-weight: 700; color: var(--lp-primary-dark); }
.lp-guide-next a:hover { color: var(--lp-primary); }
.lp-glossary { margin: 14px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.lp-glossary dt { font-weight: 700; color: var(--lp-primary-dark); margin: 0; }
.lp-glossary dd { margin: 2px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--lp-border); }
.lp-guide-section { scroll-margin-top: 90px; }
.lp-guide-h[id] { scroll-margin-top: 90px; }
@media print { .lp-guide-next { display: none; } }

/* Help: screenshot captions, tap-to-zoom lightbox */
.lp-guide-shot figcaption { padding: 8px 2px 0; font-size: 13px; line-height: 1.5; color: var(--lp-text-muted); }
.lp-guide-shot img { cursor: zoom-in; }
.lp-guide-shot { position: relative; }
.lp-guide-shot:has(> img)::after { content: "\2922"; position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(21, 15, 40, .62); color: #fff; font-size: 15px; pointer-events: none; }
.lp-guide-shot-sm { max-width: 460px; }
.lp-guide-shot-md { max-width: 638px; }

.lp-lb { position: fixed; inset: 0; z-index: 3000; display: none; overflow: auto; background: rgba(15, 10, 30, .94); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lp-lb.open { display: block; }
.lp-lb-inner { min-width: 100%; width: max-content; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 14px 28px; }
.lp-lb img { display: block; max-width: calc(100vw - 28px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; background: #fff; cursor: zoom-in; }
.lp-lb.zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.lp-lb-cap { margin: 12px 0 0; max-width: min(720px, calc(100vw - 28px)); color: #e5e7eb; font-size: 14px; line-height: 1.5; text-align: center; position: sticky; left: 0; }
.lp-lb-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; pointer-events: none; color: #c4b5fd; font-size: 13px; }
.lp-lb-close { pointer-events: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.lp-lb-close:hover { background: rgba(255, 255, 255, .26); }
body.lp-lb-lock { overflow: hidden; }

@media (max-width: 767px) {
    .lp-guide-shot { margin-top: 12px; }
    .lp-guide-shot figcaption { font-size: 12.5px; }
    .lp-guide-shot-sm { max-width: 78%; }
}
@media print { .lp-lb, .lp-guide-shot::after { display: none !important; } }

/* Help: step gallery (Back / Next) and "Watch video" popup. Without JS every slide just shows in a column. */
.lp-gal { margin-top: 20px; padding: 16px 20px 20px; background: #fff; border: 1px solid var(--lp-border); border-radius: var(--lp-radius-lg); }
.lp-gal-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--lp-border); scroll-margin-top: 90px; }
.lp-gal-on .lp-gal-bar { display: flex; }
.lp-gal-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--lp-border); border-radius: 999px; background: #fff; color: var(--lp-primary-dark); font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1.3; cursor: pointer; transition: background .15s, border-color .15s; }
.lp-gal-btn:hover:not(:disabled) { background: #f6f3ff; border-color: var(--lp-primary-light); }
.lp-gal-btn.lp-gal-primary { background: var(--lp-primary); border-color: var(--lp-primary); color: #fff; }
.lp-gal-btn.lp-gal-primary:hover:not(:disabled) { background: var(--lp-primary-dark); border-color: var(--lp-primary-dark); }
.lp-gal-btn:disabled { opacity: .38; cursor: default; }
.lp-gal-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.lp-gal-count { font-size: 12.5px; font-weight: 600; color: var(--lp-text-muted); }
.lp-gal-dots { display: inline-flex; gap: 6px; }
.lp-gal-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #d9d0f7; cursor: pointer; transition: width .2s, background .2s; }
.lp-gal-dot:hover { background: var(--lp-primary-light); }
.lp-gal-dot[aria-current="true"] { width: 24px; background: var(--lp-primary); }
.lp-gal-on .lp-gal-slide { display: none; }
.lp-gal-on .lp-gal-slide.is-active { display: block; animation: lp-gal-in .22s ease-out; }
.lp-gal-slide + .lp-gal-slide { margin-top: 36px; }
.lp-gal-on .lp-gal-slide + .lp-gal-slide { margin-top: 0; }
.lp-gal-cont { font-size: 13px; font-weight: 600; color: var(--lp-text-muted); }
.lp-gal-way { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #f0eaff; color: var(--lp-primary-dark); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.lp-gal-way + .lp-guide-h { margin-top: 0; }
@keyframes lp-gal-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-gal-on .lp-gal-slide.is-active { animation: none; } }

.lp-vid-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--lp-primary); color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(139, 92, 246, .28); transition: background .15s, box-shadow .15s; }
.lp-vid-btn:hover { background: var(--lp-primary-dark); box-shadow: 0 8px 20px rgba(124, 58, 237, .34); }
.lp-vid-btn i { font-size: 17px; }

.lp-vm { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 10, 30, .94); }
.lp-vm.open { display: flex; }
.lp-vm-box { width: min(980px, 100%); }
.lp-vm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #e5e7eb; font-size: 14.5px; font-weight: 600; }
.lp-vm video { display: block; width: 100%; max-height: calc(100vh - 110px); border-radius: 10px; background: #000; }
.lp-vm video[hidden] { display: none; }
.lp-vm-err { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fecaca; font-size: 14px; text-align: center; }

@media (max-width: 600px) {
    .lp-gal { padding: 12px 12px 16px; border-radius: var(--lp-radius-md); }
    .lp-gal-btn { padding: 8px 12px; font-size: 13.5px; }
    .lp-vid-btn { align-self: flex-start; }
}
@media print {
    .lp-vid-btn, .lp-gal-bar { display: none !important; }
    .lp-gal-on .lp-gal-slide { display: block !important; animation: none; }
    .lp-gal-on .lp-gal-slide + .lp-gal-slide { margin-top: 36px; }
}

/* Help: the downloadable guide PDF is this page printed, so it looks the same as the page.
   Every section starts on a new page and each step stays in one piece with its screenshot. */
.lp-print-masthead { display: none; }
@page { size: A4; margin: 14mm 12mm 16mm; @bottom-right { content: counter(page); font: 500 9pt 'Inter', sans-serif; color: #6b7280; } }
@media print {
    .lp-print-masthead { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 3px solid var(--lp-primary); }
    .lp-print-masthead img { width: 56px; height: 56px; flex-shrink: 0; }
    .lp-print-masthead-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
    .lp-print-masthead-sub { margin-top: 2px; font-size: 14px; color: var(--lp-text-muted); }
    .lp-body { padding-bottom: 0 !important; }
    .lp-help { min-height: 0; padding-bottom: 0; }
    .lp-guide-section { margin-bottom: 0; padding-bottom: 0; }
    .lp-guide-section + .lp-guide-section { break-before: page; }
    .lp-gal { margin-top: 12px; padding: 0; border: 0; border-radius: 0; }
    .lp-gal-slide { break-inside: avoid; }
    .lp-gal-on .lp-gal-slide + .lp-gal-slide { margin-top: 28px; }
    .lp-guide-h, .lp-help-title, .lp-help-lead, .lp-gal-way { break-after: avoid; }
    .lp-guide-refer, .lp-glossary dt, .lp-glossary dd { break-inside: avoid; }
    .lp-glossary { display: block; }
    .lp-glossary dt { margin-top: 5px; break-after: avoid; }
    .lp-glossary dd { padding-bottom: 4px; line-height: 1.55; }
}

/* ============================================================
   MOBILE FOOTER MENU (same look as the signed-in bottom menu)
   Mobile templates always show it; desktop templates (.lp-narrow-only) under 900px.
   ============================================================ */
.lp-footer-menu {
    position: fixed; bottom: 0; left: 0; right: 0; height: 62px; z-index: 1057;
    background: #fff; border-top: 1px solid var(--lp-border); box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.04);
    padding: 0 0 env(safe-area-inset-bottom);
}
.lp-footer-menu-items { display: flex; align-items: stretch; height: 62px; padding: 0 4px; }
.lp-footer-menu-item {
    display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 6px 2px; color: var(--lp-text-muted); text-decoration: none; border-radius: 10px;
    background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color .15s ease;
}
.lp-footer-menu-item i { font-size: 20px; line-height: 1; }
.lp-footer-menu-item span { font-size: 11px; font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lp-footer-menu-item:not(.active):hover { color: var(--lp-ink); }
.lp-footer-menu-item.active { color: #6d28d9; }
.lp-footer-menu-item.active span { font-weight: 600; }

.lp-more-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 1055; backdrop-filter: blur(2px);
}
.lp-more-backdrop.show { display: block; }
.lp-more-sheet {
    position: fixed; left: 0; right: 0; bottom: 62px; background: #fff; border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16); padding: 10px 18px 14px; z-index: 1056; max-height: 75vh; overflow-y: auto;
    border: 1px solid var(--lp-border); border-bottom: none;
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform .24s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s ease, visibility .24s;
}
.lp-more-sheet.show { transform: translateY(0); opacity: 1; visibility: visible; }
.lp-more-handle { width: 38px; height: 5px; background: #cbd5e1; border-radius: 10px; margin: 2px auto 12px; }
.lp-more-header { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px; border-bottom: 1px solid var(--lp-border); }
.lp-more-title { font-size: 1.15rem; font-weight: 700; color: var(--lp-ink); margin: 0; }
.lp-more-close {
    width: 32px; height: 32px; border-radius: 50%; border: none; background: #f1f5f9; color: var(--lp-text-muted);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px;
}
.lp-more-list { display: flex; flex-direction: column; }
.lp-more-item {
    display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--lp-border);
    color: var(--lp-ink); text-decoration: none; font-size: 14.5px; font-weight: 600; -webkit-tap-highlight-color: transparent;
}
.lp-more-item:last-child { border-bottom: none; }
.lp-more-item i:first-child { font-size: 19px; width: 24px; text-align: center; flex-shrink: 0; }
.lp-more-item span { flex: 1; min-width: 0; }
.lp-more-chevron { font-size: 13px; color: #94a3b8; margin-left: auto; }

/* Room for the fixed bar under the page content */
.lp-body-mobile { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
.lp-narrow-only { display: none; }
@media (max-width: 900px) {
    .lp-body:not(.lp-body-mobile) { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .lp-footer-menu.lp-narrow-only { display: block; }
    .lp-more-backdrop.lp-narrow-only.show { display: block; }
    .lp-more-sheet.lp-narrow-only { display: block; }
}
@media print { .lp-footer-menu, .lp-more-sheet, .lp-more-backdrop { display: none !important; } }
