/* ============================================================================
   Landing page (index.php, logged out).

   1. The hero: a full-height "chapter" (.lp-ch) with the club-type tabs and
      an exploded-view drawing per type (partials/landing-types-stage.php). .is-in on reveal and --p (0→1 as it crosses
      the viewport) for the gentle phone parallax.
   2. The feature sections (.lp-deck, partials/landing-deck.php): one full-height
      section each, an exploded view of a screenshot with leader-lined notes.
      See the FEATURE SECTIONS block at the bottom.
   Screenshots live in assets/images/landing/ (fictional demo clubs). Behaviour:
   assets/js/landing-showcase.js. Everything reads fine with JS off or
   prefers-reduced-motion.
   ============================================================================ */

.lp-ch {
    --ink: #0f172a;
    --sub: #475569;
    --accent: #2b988f;
    --glow: rgba(43, 152, 143, 0.28);
    --p: 0.5;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 110px 0;
    overflow: hidden;
    color: var(--ink);
    isolation: isolate;
}
.lp-ch--dark   { background: radial-gradient(1200px 700px at 80% 20%, #134e48 0%, #0b2a27 55%, #071b19 100%); --ink: #f8fafc; --sub: rgba(226, 240, 238, 0.74); --accent: #5eead4; --glow: rgba(94, 234, 212, 0.25); }

/* Soft colour blob behind the devices. */
.lp-ch::before {
    content: "";
    position: absolute;
    width: 720px; height: 720px;
    border-radius: 50%;
    background: var(--glow);
    filter: blur(110px);
    top: 50%; right: -120px;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.lp-ch__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

/* ── Copy ─────────────────────────────────────────────────────────── */
.lp-ch__kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.lp-ch__kicker .material-icons { font-size: 18px; }
.lp-ch__title {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 20px;
    color: var(--ink);
}
.lp-ch__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent), #2b988f 90%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.lp-ch--dark .lp-ch__title em { background: linear-gradient(100deg, var(--accent), #fff 140%); -webkit-background-clip: text; background-clip: text; }
.lp-ch__lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--sub);
    margin: 0 0 28px;
    max-width: 30em;
}
.lp-ch__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-ch__points li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.98rem; line-height: 1.5; color: var(--sub);
}
.lp-ch__points strong { color: var(--ink); font-weight: 700; }
.lp-ch__points .material-icons {
    flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ── Stage ─────────────────────────────────────────────────────────── */
.lp-ch__stage {
    position: relative;
    min-height: 560px;
    display: flex; align-items: center; justify-content: center;
}
/* ── Hero: Step 1, pick your media ───────────────────────────────────
   One tab per club type. The active tab's bar fills over --lp-dur and its
   animationend moves to the next type (landing-showcase.js), so pausing the
   bar pauses the cycle. Each type swaps in its own --accent / --glow, H1
   word, blurb and exploded drawing. */
.lp-ch--types::before { transition: background-color 0.8s ease; }
/* The whole hero takes on the type's colour: --hero-c (set on <html> by
   landing-showcase.js, so the nav's button can follow too) is a registered
   colour, so the gradient and buttons built from it glide between types.
   Music's mix lands on the original teal. */
@property --hero-c { syntax: '<color>'; inherits: true; initial-value: #5eead4; }
:root { transition: --hero-c 0.9s ease; }
.lp-ch--types {
    background: radial-gradient(1200px 700px at 80% 20%,
        color-mix(in srgb, var(--hero-c) 26%, #06100f) 0%,
        color-mix(in srgb, var(--hero-c) 12%, #050d0c) 55%,
        color-mix(in srgb, var(--hero-c) 5%, #040a09) 100%);
}
/* "Get Started Free" (hero and nav) wears the type's colour, changing the
   way the create card's button does: --lp-btn (plain, unanimated, set on
   <html> by landing-showcase.js) swaps and the button's own background
   transition fades it. Dark text, since the type accents are pastel. */
.lp-hero .lp-hero__ctas .btn-primary-ra, .ra-nav .ra-btn-solid {
    background-color: var(--lp-btn, #5eead4);
    color: #06201d;
    transition: background-color 0.4s, transform 0.15s, box-shadow 0.4s;
}
.lp-hero .lp-hero__ctas .btn-primary-ra { box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--lp-btn, #5eead4) 70%, transparent); }
.lp-hero .lp-hero__ctas .btn-primary-ra:hover { background-color: color-mix(in srgb, var(--lp-btn, #5eead4) 86%, #000); color: #06201d; }
/* Matches the splash's main button: lighter, with no lift. */
.ra-nav .ra-btn-solid:hover { background-color: color-mix(in srgb, var(--lp-btn, #5eead4) 72%, #fff); color: #06201d; transform: none; }
@media (prefers-reduced-motion: reduce) { :root { transition: none; } }
.lp-types-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.lp-types-tab {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--sub);
    font-family: inherit; font-size: 0.88rem; font-weight: 600; line-height: 1;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.lp-types-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.lp-types-tab:active { transform: scale(0.96); }
.lp-types-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-types-tab .material-icons { font-size: 18px; color: var(--accent); transition: color 0.4s; }
.lp-types-tab small {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 2px 6px; border-radius: 99px;
    background: rgba(255, 255, 255, 0.12); color: var(--sub);
}
.lp-types-tab.is-on {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.lp-types-tab__bar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
}
.lp-js .lp-types-tab.is-on .lp-types-tab__bar { animation: lpTypeFill var(--lp-dur, 5.95s) linear forwards; }
.lp-ch--types.is-paused .lp-types-tab__bar { animation-play-state: paused; }
@keyframes lpTypeFill { to { transform: scaleX(1); } }

/* Panels share one grid cell, so the copy never jumps height. */
.lp-types-panels { display: grid; }
.lp-types-panel {
    grid-area: 1 / 1;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.27s ease, transform 0.33s cubic-bezier(.2,.8,.2,1), visibility 0s 0.27s;
}
.lp-types-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0.05s, 0.05s, 0s; }
.lp-types-panel h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
.lp-types-panel p { font-size: 1rem; line-height: 1.6; color: var(--sub); margin: 0 0 12px; max-width: 32em; }
/* ── Reveal on scroll ─────────────────────────────────────────────── */
.lp-js .lp-reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.lp-js .lp-reveal.is-in { opacity: 1; transform: none; }
.lp-js .lp-reveal[data-d="1"] { transition-delay: 0.08s; }
.lp-js .lp-reveal[data-d="2"] { transition-delay: 0.16s; }
.lp-js .lp-reveal[data-d="3"] { transition-delay: 0.24s; }
.lp-js .lp-reveal[data-d="4"] { transition-delay: 0.32s; }
/* The stage slides in as one piece; its own children keep their parallax transforms. */
.lp-js .lp-ch__stage.lp-reveal { transform: translateY(60px) scale(0.97); }
.lp-js .lp-ch__stage.lp-reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .lp-js .lp-reveal, .lp-js .lp-ch__stage.lp-reveal { opacity: 1; transform: none; transition: none; }
    .lp-ch { --p: 0.5 !important; }
}

/* ── Tablet / phone ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .lp-ch { min-height: 0; padding: 88px 0 96px; }
    .lp-ch__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .lp-ch__lead { margin-left: auto; margin-right: auto; }
    .lp-ch__points { max-width: 30em; margin: 0 auto; text-align: left; }
    .lp-ch__stage { min-height: 0; }
    .lp-ch::before { width: 460px; height: 460px; right: -160px; }
}
@media (max-width: 575.98px) {
    .lp-ch { padding: 72px 0 84px; }
    .lp-ch__inner { padding: 0 18px; gap: 40px; }
    .lp-ch__lead { font-size: 1rem; }
}

/* Club types on tablet / phone: tabs centred, smaller type. */
@media (max-width: 991.98px) {
    .lp-types-tabs { justify-content: center; }
    .lp-types-panel p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 575.98px) {
    .lp-types-tabs { gap: 7px; margin-bottom: 20px; }
    .lp-types-tab { padding: 8px 12px 9px; font-size: 0.82rem; }
    .lp-types-tab .material-icons { font-size: 16px; }
    .lp-types-panel h3 { font-size: 1.15rem; }
}

/* The club-types chapter is the page's hero: clear the fixed nav, keep it a
   full screen on every size, and give the H1 word a quick swap. */
.lp-hero { padding-top: 130px; }
.lp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-types-word { display: inline-block; transition: opacity 0.22s ease, transform 0.22s ease; }
.lp-types-word.is-swap { opacity: 0; transform: translateY(-0.18em); }
@media (max-width: 991.98px) {
    .lp-hero { min-height: 100vh; min-height: 100svh; padding-top: 112px; }
    .lp-hero__ctas { justify-content: center; }
}
@media (max-width: 575.98px) {
    .lp-hero { padding-top: 96px; }
    .lp-hero__ctas { margin-top: 24px; }
}
/* Phones / tablets: let the drawing sit right under the tabs (copy children
   join the chapter grid), so it shows above the fold. */
@media (max-width: 991.98px) {
    .lp-hero .lp-ch__inner { gap: 0; }
    .lp-hero .lp-ch__copy { display: contents; }
    /* Its children are grid items now, so text-align no longer centres the
       inline-flex eyebrow: centre it explicitly. */
    .lp-hero .lp-ch__kicker { justify-self: center; }
    /* "Create your own" on a line of its own; the type word + "club." below. */
    .lp-hero .lp-ch__title em { display: block; }
    .lp-hero .lp-types-stage { margin: 0 0 24px; order: 1; }
    .lp-hero .lp-types-panels { order: 2; }
    .lp-hero .lp-hero__ctas { order: 3; }
}

/* ============================================================================
   FEATURE SECTIONS (partials/landing-deck.php)

   One full-height section per feature. Each stage (.lp-xv) is a fixed-aspect box and a size
   container, so every distance inside it is in cqw (% of the stage width) and
   the composition scales as one drawing. Devices (.lp-xv__dev) sit at % of the
   stage in a 3D pose; each .lp-xv__part is the same screenshot again, cropped
   to its rect, that flies forward when the section gets .is-exploded. The JS then
   lays out the numbered notes beside the stage, draws the leader lines and
   adds .is-labelled.
   Below 992px the notes become a numbered list under the drawing.
   ============================================================================ */

/* ── Slide themes ─────────────────────────────────────────────────── */
.lp-slide {
    --bg: #f8fafb; --ink: #0f172a; --sub: #475569; --accent: #2b988f;
    --glow: rgba(43, 152, 143, 0.22); --line: rgba(15, 23, 42, 0.55); --sock: rgba(15, 23, 42, 0.35);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--ink);
    background: var(--bg);
}
.lp-t--light { --bg: radial-gradient(1100px 700px at 75% 40%, #ffffff 0%, #f1f5f6 60%, #e8eef0 100%); }
.lp-t--mist  { --bg: linear-gradient(180deg, #f3f6fb 0%, #e7edf6 100%); --accent: #4f6bd8; --glow: rgba(79, 107, 216, 0.18); }
.lp-t--warm  { --bg: linear-gradient(180deg, #fffaf3 0%, #fff1de 100%); --accent: #c26a05; --glow: rgba(217, 119, 6, 0.2); --line: rgba(67, 38, 8, 0.55); --sock: rgba(120, 72, 12, 0.4); }
.lp-t--dark, .lp-t--night, .lp-t--ocean, .lp-t--ember { --line: rgba(255, 255, 255, 0.85); --sock: rgba(255, 255, 255, 0.4); }
.lp-t--dark  { --bg: radial-gradient(1200px 700px at 50% 30%, #134e48 0%, #0b2a27 55%, #071b19 100%); --ink: #f8fafc; --sub: rgba(226, 240, 238, 0.74); --accent: #5eead4; --glow: rgba(94, 234, 212, 0.22); }
.lp-t--night { --bg: radial-gradient(1100px 650px at 50% 60%, #2b1a4a 0%, #140d26 55%, #0b0716 100%); --ink: #faf5ff; --sub: rgba(233, 222, 255, 0.72); --accent: #c4b5fd; --glow: rgba(167, 139, 250, 0.26); }
.lp-t--ocean { --bg: radial-gradient(1100px 650px at 45% 45%, #12355e 0%, #0a1f3a 55%, #06121f 100%); --ink: #f0f7ff; --sub: rgba(214, 230, 250, 0.74); --accent: #7dd3fc; --glow: rgba(56, 189, 248, 0.22); }
.lp-t--graphite { --bg: radial-gradient(1100px 650px at 50% 40%, #2f3440 0%, #171a21 55%, #0b0d12 100%); --ink: #f8fafc; --sub: rgba(226, 232, 240, 0.72); --accent: #fcd34d; --glow: rgba(252, 211, 77, 0.2); --line: rgba(255, 255, 255, 0.85); --sock: rgba(255, 255, 255, 0.4); }
.lp-t--ink { --bg: radial-gradient(900px 600px at 50% 18%, rgba(94, 234, 212, 0.16) 0%, transparent 60%), radial-gradient(800px 520px at 85% 95%, rgba(167, 139, 250, 0.14) 0%, transparent 60%), #07090d; --ink: #f8fafc; --sub: rgba(226, 232, 240, 0.7); --accent: #5eead4; --glow: rgba(94, 234, 212, 0.2); --line: rgba(255, 255, 255, 0.85); --sock: rgba(255, 255, 255, 0.4); }
.lp-t--ember { --bg: radial-gradient(1100px 650px at 55% 45%, #5a1414 0%, #2a0b0b 55%, #140505 100%); --ink: #fff7ed; --sub: rgba(255, 228, 214, 0.72); --accent: #fdba74; --glow: rgba(251, 146, 60, 0.24); }
.lp-slide::before {   /* soft colour blob behind the drawing */
    content: "";
    position: absolute;
    width: 760px; height: 760px;
    border-radius: 50%;
    background: var(--glow);
    filter: blur(120px);
    left: 55%; top: 55%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}
/* Faint drafting grid: the "technical drawing" paper. */
.lp-slide::after {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 55% 50%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 55% 50%, #000 0%, transparent 72%);
}

/* ── Copy ─────────────────────────────────────────────────────────── */
.lp-slide__kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.lp-slide__kicker .material-icons { font-size: 18px; }
.lp-slide__title {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 16px;
    color: var(--ink);
}
.lp-slide__title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--ink)) 110%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.lp-slide__lead { font-size: 1.04rem; line-height: 1.65; color: var(--sub); margin: 0; max-width: 30em; }
/* Key phrases in the lead: a highlighter stroke sweeps under each one when the
   section explodes (second phrase a beat later), and wipes back on leave. */
.lp-slide__lead mark {
    color: inherit;
    padding: 0 0.12em;
    background: linear-gradient(color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 30%, transparent)) no-repeat 0 88% / 0% 0.5em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 0.5s ease-in, color 0.5s;
}
.lp-slide:has(.lp-xv.is-exploded) .lp-slide__lead mark {
    color: var(--ink);
    background-size: 100% 0.5em;
    transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.5s, color 0.6s 0.5s;
}
.lp-slide:has(.lp-xv.is-exploded) .lp-slide__lead mark:nth-of-type(2) { transition-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) {
    .lp-slide__lead mark { color: var(--ink); background-size: 100% 0.5em; transition: none; }
}

/* ── The exploded drawing ─────────────────────────────────────────── */
.lp-xv {
    position: relative;
    width: 100%;
    aspect-ratio: var(--ar, 4 / 3);
    container-type: inline-size;
    --cw: clamp(150px, 21cqw, 236px);   /* note column width */
}
.lp-xv__scene {
    position: absolute; inset: 0;
    perspective: 150cqw;
    perspective-origin: 50% 35%;
}
.lp-xv__dev {
    position: absolute;
    left: calc(var(--bl) * 1%);
    top: calc(var(--bt) * 1%);
    width: calc(var(--bw) * 1%);
    transform: var(--rot);
    transform-style: preserve-3d;
}
.lp-xv__screen { position: relative; transform-style: preserve-3d; }
.lp-xv__base {
    display: block;
    width: 100%; height: auto;
    transition: opacity 0.7s ease, filter 0.7s ease;
}
.lp-xv__dev--browser {
    border-radius: 0.9cqw;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 4cqw 7cqw -3cqw rgba(2, 6, 23, 0.5);
}
.lp-xv__dev--browser .lp-xv__base { border-radius: 0 0 0.9cqw 0.9cqw; }
.lp-xv__bar {
    height: 2.3cqw;
    display: flex; align-items: center; gap: 0.45cqw;
    padding: 0 0.9cqw;
    background: #eef1f4;
    border-bottom: 1px solid #e2e6ea;
    border-radius: 0.9cqw 0.9cqw 0 0;
}
.lp-xv__bar i { width: 0.75cqw; height: 0.75cqw; border-radius: 50%; background: #ff5f57; }
.lp-xv__bar i:nth-child(2) { background: #febc2e; }
.lp-xv__bar i:nth-child(3) { background: #28c840; }
.lp-xv__bar span {
    margin-left: 1cqw; flex: 0 1 22cqw;
    height: 1.35cqw; border-radius: 0.4cqw; background: #fff;
    font: 0.8cqw/1.35cqw system-ui, sans-serif; color: #64748b; text-align: center;
}
/* Phone bezel scales with the phone (--bw is its width in % of the stage). */
.lp-xv__dev--phone {
    padding: calc(var(--bw) * 0.04cqw);
    border-radius: calc(var(--bw) * 0.15cqw);
    background: linear-gradient(145deg, #2a2f36, #0d0f12);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08) inset, 0 4cqw 7cqw -3cqw rgba(2, 6, 23, 0.6);
}
.lp-xv__dev--phone .lp-xv__base { border-radius: calc(var(--bw) * 0.115cqw); background: #050608; }

/* Sockets: dashed outlines left behind where each part lifted out. */
.lp-xv__socket, .lp-xv__part {
    position: absolute;
    top: calc(var(--t) * 1%);
    left: calc(var(--l) * 1%);
    width: calc(var(--w) * 1%);
    height: calc(var(--h) * 1%);
    border-radius: 0.45cqw;
}
.lp-xv__socket {
    border: 1.5px dashed rgba(255, 255, 255, 0.45);   /* always on a darkened screen */
    opacity: 0;
    transition: opacity 0.6s ease;
}
/* A lifted part is laid out at its ENLARGED size (--s times its socket, same
   centre) and shrunk back into the socket with scale(1/--s). Lifting it goes to
   scale(1). The browser rasterizes a layer at its layout size, so enlarging
   with scale(--s) instead would only stretch a small bitmap: blurry text. */
.lp-xv__part {
    --s: 1;
    top: calc((var(--t) - var(--h) * (var(--s) - 1) / 2) * 1%);
    left: calc((var(--l) - var(--w) * (var(--s) - 1) / 2) * 1%);
    width: calc(var(--w) * var(--s) * 1%);
    height: calc(var(--h) * var(--s) * 1%);
    overflow: hidden;
    transform: translate3d(0, 0, 0) scale(calc(1 / var(--s)));
    transition: transform 1s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 0.07s), box-shadow 1s ease calc(var(--i) * 0.07s);
    backface-visibility: hidden;
}
.lp-xv__part img { position: absolute; display: block; max-width: none; height: auto; }

/* While exploded, every device darkens the same way (a brightness filter, not
   opacity, so a browser on white goes as dark as a phone on black). */
.is-exploded .lp-xv__base, .is-exploded .lp-xv__bar { filter: brightness(0.36) saturate(0.4); }
.lp-xv__bar { transition: filter 0.7s ease; }
/* The browser frame's own white backing would otherwise show as a thin white
   line around the darkened screenshot: dim it to the same gray (white at 0.36). */
.lp-xv__dev--browser { transition: background-color 0.7s ease; }
.is-exploded .lp-xv__dev--browser { background-color: #5c5c5c; }
.is-exploded .lp-xv__socket { opacity: 1; }
.is-exploded .lp-xv__part {
    transform: translate3d(calc(var(--x) * 1cqw), calc(var(--y) * 1cqw), calc(var(--z) * 1cqw)) rotateZ(calc(var(--rz) * 1deg));
    box-shadow: 0 1.4cqw 2.6cqw -1cqw rgba(2, 6, 23, 0.5);
}

/* Leader lines + notes. */
.lp-xv__lines {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}
.lp-xv__lines path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.7s cubic-bezier(.6, 0, .2, 1);
}
.lp-xv__lines circle {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 1.5;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.is-labelled .lp-xv__lines path { stroke-dashoffset: 0; }
.is-labelled .lp-xv__lines circle { opacity: 1; }

.lp-xv__notes { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; z-index: 3; }
.lp-xv__note {
    position: absolute;
    top: var(--ny, 0px);
    width: var(--cw);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1);
    transition-delay: calc(var(--i) * 0.07s + 0.2s);
}
.lp-xv__note[data-side="l"] { left: 0; text-align: right; }
.lp-xv__note[data-side="r"] { right: 0; }
.lp-xv__note b {
    display: inline-block;
    font: 700 0.7rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-right: 6px;
}
.lp-xv__note strong { font-size: 0.95rem; font-weight: 750; color: var(--ink); letter-spacing: -0.01em; }
.lp-xv__note span { display: block; margin-top: 3px; font-size: 0.8rem; line-height: 1.45; color: var(--sub); }
.is-labelled .lp-xv__note { opacity: 1; transform: none; }
.lp-xv:not(.is-labelled) .lp-xv__note { transition-delay: 0s; }

/* ── Desktop: full-screen sections, copy + drawing in three layouts ── */
@media (min-width: 992px) {
    .lp-slide { height: 100vh; min-height: 640px; }
    .lp-slide__inner {
        box-sizing: border-box;
        height: 100%;
        max-width: 1520px;
        margin: 0 auto;
        padding: 88px clamp(28px, 4vw, 64px) 64px;
        display: grid;
        gap: clamp(24px, 3vw, 48px);
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
    }
    .lp-slide--left .lp-slide__inner  { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); }
    .lp-slide--right .lp-slide__inner { grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); }
    .lp-slide--right .lp-slide__copy { order: 2; }
    .lp-slide--top .lp-slide__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
    .lp-slide--top .lp-slide__copy {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        column-gap: 48px;
        align-items: end;
    }
    /* Eyebrow and title stack on the left; the lead spans both rows on the right,
       so a tall lead never pushes the title away from its eyebrow. */
    .lp-slide--top .lp-slide__kicker { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 8px; }
    .lp-slide--top .lp-slide__title { grid-column: 1; grid-row: 2; margin: 0; }
    .lp-slide--top .lp-slide__lead { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; }
    /* The drawing is the largest box of its aspect that fits the cell. */
    .lp-slide__stagewrap {
        height: 100%; min-height: 0;
        container-type: size;
        display: flex; align-items: center; justify-content: center;
    }
    .lp-slide__stagewrap .lp-xv { width: min(100cqw, 100cqh * (var(--ar))); }
}
/* Small desktops: beside the copy, a 4:3 stage is too narrow for its notes,
   which keep their type size while the drawing shrinks. So the copy goes on
   top like .lp-slide--top, and .lp-xv fills the whole cell. The 4:3 drawing
   (.lp-xv__scene) centers inside it as its own size container, so its cqw
   distances still scale with the drawing, and the notes get real columns
   either side. The extra right padding clears the dot rail. */
@media (min-width: 992px) and (max-width: 1279.98px) {
    .lp-slide--left .lp-slide__inner,
    .lp-slide--right .lp-slide__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding-right: 60px; padding-left: 60px; }
    .lp-slide--right .lp-slide__copy { order: 0; }
    .lp-slide--left .lp-slide__copy,
    .lp-slide--right .lp-slide__copy {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        column-gap: 48px;
        align-items: end;
    }
    .lp-slide--left .lp-slide__kicker,
    .lp-slide--right .lp-slide__kicker { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 8px; }
    .lp-slide--left .lp-slide__title,
    .lp-slide--right .lp-slide__title { grid-column: 1; grid-row: 2; margin: 0; }
    .lp-slide--left .lp-slide__lead,
    .lp-slide--right .lp-slide__lead { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; }

    .lp-slide--left .lp-xv,
    .lp-slide--right .lp-xv {
        --cw: 230px;
        --scene: min(78cqw, 100cqh * 4 / 3);
        width: 100%; height: 100%;
        aspect-ratio: auto;
    }
    .lp-slide--left .lp-xv__scene,
    .lp-slide--right .lp-xv__scene {
        inset: 0;
        margin: auto;
        width: var(--scene);
        height: calc(var(--scene) * 3 / 4);
        container-type: inline-size;
        perspective: calc(var(--scene) * 1.5);
    }
}

/* ── Tablet / phone: stacked; notes become a numbered list ─────────── */
@media (max-width: 991.98px) {
    .lp-slide__inner { padding: 72px 18px 64px; }
    .lp-slide__copy { text-align: center; max-width: 34em; margin: 0 auto 8px; }
    .lp-slide__lead { margin: 0 auto; font-size: 0.98rem; }
    .lp-slide::after { background-size: 32px 32px; }
    .lp-xv { aspect-ratio: auto; --cw: auto; }
    .lp-xv__scene {
        position: relative; inset: auto;
        display: flex; align-items: center; justify-content: center; gap: 4%;
        padding: 8% 3% 7%;
        perspective: none;
    }
    .lp-xv__dev { position: relative; left: auto; top: auto; transform: none; flex: 0 0 auto; }
    .lp-xv__dev--phone { --bw: 48 !important; }
    .lp-xv__dev--phone + .lp-xv__dev--phone,
    .lp-xv__dev--phone:has(+ .lp-xv__dev--phone) { --bw: 42 !important; }
    .lp-xv__dev--browser { --bw: 100 !important; }
    .lp-xv__dev--browser:has(+ .lp-xv__dev--phone) { --bw: 68 !important; }
    .lp-xv__dev--browser + .lp-xv__dev--phone,
    .lp-xv__dev--phone:has(+ .lp-xv__dev--browser) { --bw: 27 !important; }
    .lp-xv__dev--phone + .lp-xv__dev--browser { --bw: 68 !important; }
    .lp-xv__dev--browser + .lp-xv__dev--browser,
    .lp-xv__dev--browser:has(+ .lp-xv__dev--browser) { --bw: 48 !important; }
    .is-exploded .lp-xv__part {
        transform: translate(-0.8cqw, -0.9cqw) scale(calc(1.03 / var(--s)));
        box-shadow: 0 1.4cqw 3cqw -1cqw rgba(2, 6, 23, 0.5);
        z-index: 1;
    }
    .lp-xv__part[data-n]::after {   /* number badge, matches the list */
        content: attr(data-n);
        position: absolute; right: 3px; top: 3px;
        min-width: 18px; height: 15px; padding: 0 4px;
        box-sizing: border-box;
        border-radius: 9px;
        background: var(--accent); color: #0b1220;
        font: 700 9px/15px ui-monospace, Menlo, Consolas, monospace;
        text-align: center;
        opacity: 0; transition: opacity 0.4s ease 0.6s;
    }
    .is-exploded .lp-xv__part[data-n]::after { opacity: 1; }
    .lp-xv__lines { display: none; }
    .lp-xv__notes {
        position: static;
        display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
        max-width: 640px; margin: 0 auto; padding: 0 4px;
    }
    .lp-xv__note, .lp-xv__note[data-side="l"] {
        position: static; width: auto;
        text-align: left;
        opacity: 1; transform: none; transition: none;
    }
    .lp-xv__note strong { font-size: 0.88rem; }
    .lp-xv__note span { font-size: 0.78rem; }
}
@media (max-width: 575.98px) {
    .lp-slide__inner { padding: 60px 16px 52px; }
    .lp-xv__notes { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-xv__part, .lp-xv__base, .lp-xv__socket, .lp-xv__note, .lp-xv__lines path, .lp-xv__lines circle { transition: none !important; }
}
/* No JS: every drawing shows exploded, notes listed. */
html:not(.lp-js) .lp-xv__part { transform: translate3d(calc(var(--x) * 1cqw), calc(var(--y) * 1cqw), calc(var(--z) * 1cqw)) rotateZ(calc(var(--rz) * 1deg)); }
html:not(.lp-js) .lp-xv__note { opacity: 1; transform: none; }

/* ── Hero stage: a real club of each type ──────────────────────────
   The club page in a browser frame with the same club's phone home in front,
   both slightly turned. The six pairs share one grid cell; the active tab's
   gets .is-on and crossfades in (landing-showcase.js). */
@media (min-width: 992px) {
    .lp-hero .lp-ch__inner { max-width: 1440px; padding: 0 clamp(28px, 4.5vw, 64px); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
    /* The nav lines its logo up with the hero copy rather than sitting further in. */
    .ra-nav-inner { max-width: 1440px; padding: 0 clamp(28px, 4.5vw, 64px); }
    /* The create card hugs the right edge, under the nav buttons. */
    .lp-hero .lpc { margin-right: 0; }
}
.lp-types-stage { touch-action: pan-y; }
.lp-types-xvs { display: grid; width: 100%; perspective: 2200px; }
.lp-hshot {
    grid-area: 1 / 1;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.255s ease, transform 0.36s cubic-bezier(.2,.8,.2,1), visibility 0s 0.255s;
}
.lp-hshot.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.255s ease, transform 0.36s cubic-bezier(.2,.8,.2,1); }
.lp-hshot__browser {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transform: rotateY(-8deg) rotateX(2deg);
    transform-origin: left center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 50px 90px -30px rgba(0, 0, 0, 0.7), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.lp-hshot__browser .lp-xv__bar { height: 30px; gap: 7px; padding: 0 13px; border-radius: 0; }
.lp-hshot__browser .lp-xv__bar i { width: 10px; height: 10px; }
.lp-hshot__browser .lp-xv__bar span { flex: 0 1 260px; height: 18px; margin-left: 14px; border-radius: 5px; font: 11px/18px system-ui, sans-serif; }
.lp-hshot__screen { position: relative; }
.lp-hshot__screen > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; transition: filter 0.6s ease; }
/* Lifted pieces: the same screenshot cropped to a rect, rising off the page
   with a shadow once the shot .is-exploded; a dashed socket marks the gap. */
.lp-hshot__socket, .lp-hshot__part {
    position: absolute;
    top: calc(var(--t) * 1%); left: calc(var(--l) * 1%);
    width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
    border-radius: 6px;
}
.lp-hshot__socket { border: 1.5px dashed rgba(15, 23, 42, 0.35); opacity: 0; transition: opacity 0.5s ease; }
.lp-hshot__part {
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 0.08s), box-shadow 0.7s ease calc(var(--i) * 0.08s);
}
.lp-hshot__part img { position: absolute; display: block; max-width: none; height: auto; }
.is-exploded .lp-hshot__screen > img { filter: brightness(0.82) saturate(0.6); }
.is-exploded .lp-hshot__socket { opacity: 1; }
.lp-hshot__part { transform-origin: left center; }
.is-exploded .lp-hshot__part {
    transform: translate(-1.2%, -6%) scale(var(--s, 1.07));
    box-shadow: 0 18px 34px -12px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.7);
}
/* Notes sit in rows above and below the shots (every shot keeps the same
   room so the crossfade doesn't jump); --nx/--ny come from the JS. */
@media (min-width: 992px) {
    .lp-hshot { --cw: 240px; padding: 112px 0 100px; }
    /* Side notes need a column beside the browser. */
    .lp-hshot.has-left { --lcw: 190px; }
    .lp-hshot.has-left .lp-hshot__browser { margin-left: calc(var(--lcw) + 28px); width: calc(100% - var(--lcw) - 28px); }
    .lp-hshot.has-right .lp-hshot__browser { width: calc(100% - var(--cw) - 28px); }
    .lp-hshot .lp-xv__note[data-side="l"] { width: var(--lcw, var(--cw)); }
}
.lp-xv__note[data-side="t"], .lp-xv__note[data-side="b"] { left: var(--nx, 0px); }
.lp-hshot .lp-xv__notes { z-index: 3; }
.lp-hshot .lp-xv__lines { z-index: 2; }
@media (max-width: 991.98px) {
    .lp-hshot__browser, .lp-hshot.has-notes .lp-hshot__browser { width: 100%; transform: none; }
    .lp-hshot .lp-xv__notes, .lp-hshot .lp-xv__lines { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-hshot, .lp-hshot__part, .lp-hshot__socket, .lp-hshot__screen > img { transition: none; } }
/* Measuring pass: the JS applies the exploded state with no transitions to
   read the parts' final positions, then plays it for real. */
.lp-xv.is-measuring *, .lp-xv.is-measuring,
.lp-hshot.is-measuring .lp-hshot__browser *, .lp-hshot.is-measuring .lp-xv__notes * { transition: none !important; }
/* A phone always sits in front of a browser in the same drawing, and a
   board marked 'front' in front of everything. */
.lp-xv__dev--phone { z-index: 1; }
.lp-xv__dev.is-front { z-index: 2; }
/* Chrome leaves the edges of 3D-rotated boxes jagged. A transparent 1px
   outline makes it smooth them (the leader lines are SVG, so already smooth). */
.lp-xv__dev, .lp-xv__base, .lp-xv__part, .lp-xv__bar { outline: 1px solid transparent; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* Hero blurb ("Your shows, together."): an accent bar and a soft tint in the
   active type's colour, so it reads as the answer to the tab you're on. */
.lp-types-panel {
    max-width: 34em;
    padding: 16px 20px 16px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent), color-mix(in srgb, var(--accent) 3%, transparent) 75%, transparent);
}
.lp-types-panel h3 { color: var(--ink); }
.lp-types-panel p { margin-bottom: 0; }
@media (max-width: 991.98px) {
    .lp-types-panel {
        margin: 0 auto;
        border-left: 0;
        border-top: 3px solid var(--accent);
        border-radius: 0 0 14px 14px;
        background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
    }
}

/* ── Dot rail (assets/js/landing-showcase.js) ─────────────────────────
   Fixed to the right edge on desktop. White dots over the dark sections,
   .is-light = dark ink over the light ones. The lit dot stretches into a
   pill; hovering a dot shows its section's name to its left. */
.lp-rail {
    --rail-ink: 255, 255, 255;
    position: fixed;
    right: 22px; top: 50%;
    transform: translate(12px, -50%);
    z-index: 900;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
}
.lp-rail.is-shown { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.35s ease, transform 0.35s ease; }
.lp-rail.is-light { --rail-ink: 15, 23, 42; }
.lp-rail__dot {
    position: relative;
    width: 22px; height: 22px;
    padding: 0; border: 0; background: none;
    cursor: pointer;
    display: grid; place-items: center;
}
.lp-rail__dot::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 999px;
    background: rgba(var(--rail-ink), 0.35);
    transition: height 0.3s cubic-bezier(.2,.8,.2,1), background 0.3s ease, transform 0.2s ease;
}
.lp-rail__dot:hover::before { background: rgba(var(--rail-ink), 0.7); transform: scale(1.2); }
.lp-rail__dot.is-on::before { height: 22px; background: rgba(var(--rail-ink), 0.9); transform: none; }
.lp-rail__dot:focus-visible { outline: 2px solid rgba(var(--rail-ink), 0.8); outline-offset: 2px; border-radius: 999px; }
.lp-rail__label {
    position: absolute;
    right: 30px; top: 50%;
    transform: translate(6px, -50%);
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
    color: #fff; background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.25);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.lp-rail__dot:hover .lp-rail__label, .lp-rail__dot:focus-visible .lp-rail__label { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 991.98px) { .lp-rail { display: none; } }
@media (prefers-reduced-motion: reduce) { .lp-rail, .lp-rail__dot::before, .lp-rail__label { transition: none; } }

/* Leader-line dots pulse once a drawing has exploded: a soft ring (an extra
   circle drawn under each dot by lpXv) ripples out on a loop, starting after
   its line has drawn in (--d is that line's delay). */
.lp-xv__lines circle.lp-xv__pulse {
    fill: var(--accent); stroke: none; opacity: 0;
    transform-box: fill-box; transform-origin: center;
    transition: none;
}
.is-labelled .lp-xv__lines circle.lp-xv__pulse { animation: lpPulse 2.4s ease-out infinite; animation-delay: calc(var(--d, 0s) + 0.9s); }
@keyframes lpPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(4.2); opacity: 0; }
    100% { transform: scale(4.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .is-labelled .lp-xv__lines circle.lp-xv__pulse { animation: none; } }

/* ── Story tour (partials/landing-story.php) ──────────────────────────
   Phones and small tablets only, where the exploded deck is hidden: one
   full-screen, stories-style tour. Progress bars on top (the active one fills
   over --story-dur; landing-showcase.js advances on its animationend), then
   eyebrow, title, an upright phone screenshot, and a checklist. The frame takes
   the active story's theme (lp-t--*), so the background shifts per step. */
.lp-story { display: none; }
@media (max-width: 991.98px) {
    .lp-deck { display: none; }
    /* Defaults at zero specificity so the lp-t--* theme on the frame wins. */
    :where(.lp-story) { --bg: #f8fafb; --ink: #0f172a; --sub: #475569; --accent: #2b988f; }
    .lp-story {
        --story-dur: 4.5s;
        --nav-h: 60px;   /* the fixed .ra-nav once scrolled (.scrolled); the story fills the screen below it */
        display: block;
        position: relative;
        height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
        scroll-margin-top: var(--nav-h);
        min-height: 540px; max-height: 900px;
        overflow: hidden;
        color: var(--ink);
        background: var(--bg);
        transition: background 0.5s ease, color 0.5s ease;
        -webkit-user-select: none; user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .lp-story__bars {
        position: absolute; left: 14px; right: 14px; top: 12px;
        z-index: 3;
        display: flex; gap: 4px;
    }
    .lp-story__bar { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--ink) 18%, transparent); }
    .lp-story__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); }
    .lp-story__bar.is-done i { width: 100%; }
    .lp-story__bar.is-on i { animation: lpStoryFill var(--story-dur) linear forwards; }
    .lp-story.is-paused .lp-story__bar.is-on i { animation-play-state: paused; }
    .lp-story.is-static .lp-story__bar.is-on i { animation: none; width: 100%; }
    @keyframes lpStoryFill { from { width: 0; } to { width: 100%; } }

    .lp-story__slides { position: absolute; inset: 0; display: grid; }
    .lp-story__slide {
        grid-area: 1 / 1;
        display: flex; flex-direction: column; align-items: center;
        padding: 34px 24px 56px;
        text-align: center;
        opacity: 0; visibility: hidden;
        transform: translateX(24px);
        transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.8,.2,1), visibility 0s 0.4s;
    }
    .lp-story__slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.8,.2,1); }
    .lp-story__slide.is-back { transform: translateX(-24px); }
    .lp-story__kicker {
        display: inline-flex; align-items: center; gap: 7px;
        font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
        color: var(--accent);
    }
    .lp-story__kicker .material-icons { font-size: 17px; }
    .lp-story__title {
        margin: 8px 0 18px;
        font-size: clamp(1.6rem, 7.4vw, 2.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
        white-space: nowrap; max-width: 100%;   /* one line; landing-showcase.js shrinks the font to fit */
        color: var(--ink);
    }
    .lp-story__title em { font-style: normal; color: var(--accent); }
    /* Upright phone: as tall as the screen allows, never wider than 62% of it. */
    .lp-story__phone { display: flex; justify-content: center; margin-bottom: 20px; }
    .lp-story__phone img {
        height: clamp(200px, calc(100svh - 370px - var(--ph-less, 0px)), 500px); width: auto; max-width: 66vw;
        object-fit: contain;
        border-radius: 26px;
        border: 6px solid #12151a;
        background: #12151a;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -18px rgba(2, 6, 23, 0.6);
    }
    .lp-story__points {
        list-style: none; margin: 0; padding: 0;
        display: grid; gap: 7px;
        text-align: left;
    }
    .lp-story__points li { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; font-weight: 650; color: var(--ink); }
    .lp-story__points .material-icons { font-size: 19px; color: var(--accent); }
    .lp-story__cta {
        position: relative; z-index: 4;
        margin-top: 18px;
        display: inline-flex; align-items: center; gap: 8px;
        padding: 13px 24px;
        border-radius: 999px;
        font-weight: 800; text-decoration: none;
        color: #06201d; background: var(--accent);
        box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
    }
    .lp-story__cta .material-icons { font-size: 19px; }
    /* Tap halves: left = back, right = next (the CTA sits above them). */
    .lp-story__tap {
        position: absolute; top: 0; bottom: 0; z-index: 2;
        width: 50%; padding: 0; border: 0; background: none; cursor: pointer;
    }
    .lp-story__tap--prev { left: 0; width: 34%; }
    .lp-story__tap--next { right: 0; width: 66%; }
    .lp-story__tap:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; border-radius: 14px; }
    .lp-story__foot {
        position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        display: flex; justify-content: center; gap: 10px;
        font-size: 0.74rem; font-weight: 600; color: var(--sub);
        pointer-events: none;
    }
    .lp-story__count { opacity: 0.8; }
    .lp-story.is-end .lp-story__foot { visibility: hidden; }   /* last story: no "Tap to continue" or count */
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .lp-story__slide, .lp-story__slide.is-on { transition: none; transform: none; }
    .lp-story__slide.is-on .lp-story__types li { animation: none; }
}
@keyframes lpTypePop { from { opacity: 0; transform: translateY(10px) scale(0.85); } }

/* Phones: the hero's grid items may not grow past the screen. Long text that
   doesn't wrap (the create card's rule descriptions) was propping the card's
   column wider than the viewport. */
@media (max-width: 991.98px) {
    .lp-hero .lp-ch__inner { grid-template-columns: minmax(0, 1fr); }
    .lp-hero .lp-ch__inner > *, .lp-hero .lp-types-stage { min-width: 0; }
}
@media (max-width: 991.98px) { #features { scroll-margin-top: 60px; } }
/* Story phone gives up height for whatever sits under it: a 4th checklist
   point, and the last story's sign-up button. */
@media (max-width: 991.98px) {
    .lp-story__slide:has(.lp-story__points li:nth-child(4)) { --ph-less: 14px; }
    .lp-story__slide:has(.lp-story__cta) { --ph-less: 44px; }
    .lp-story__slide:has(.lp-story__cta):has(.lp-story__points li:nth-child(4)) { --ph-less: 58px; }
}

/* Closing story (.lp-story__final): the big idea, the media types, sign up. */
@media (max-width: 991.98px) {
    .lp-story__final {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding-bottom: 24px;
    }
    .lp-story__big {
        margin: 0 0 18px;
        display: flex; flex-direction: column;
        font-size: clamp(2.4rem, 12vw, 3.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
        color: var(--ink);
    }
    .lp-story__big em {
        font-style: normal;
        background: linear-gradient(100deg, #5eead4, #a5b4fc 55%, #f9a8d4);
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .lp-story__lede { margin: 0 auto 22px; max-width: 19em; font-size: 1rem; line-height: 1.55; color: var(--sub); }
    .lp-story__types {
        list-style: none; margin: 0 0 30px; padding: 0;
        display: grid; grid-template-columns: repeat(3, auto); gap: 18px 32px; justify-content: center;
    }
    /* Each type gets its own tint (--c) and pops in, staggered by --i, when the slide arrives */
    .lp-story__types li {
        display: flex; flex-direction: column; align-items: center; gap: 7px;
        font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sub);
    }
    .lp-story__types .material-icons {
        width: 50px; height: 50px; border-radius: 16px;
        display: grid; place-items: center; font-size: 24px;
        color: var(--c, var(--ink));
        background: linear-gradient(150deg, color-mix(in srgb, var(--c, #fff) 22%, transparent), color-mix(in srgb, var(--c, #fff) 6%, transparent));
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #fff) 32%, transparent),
                    0 8px 22px -8px color-mix(in srgb, var(--c, #fff) 55%, transparent);
    }
    .lp-story__slide.is-on .lp-story__types li {
        animation: lpTypePop 0.5s cubic-bezier(.2, .9, .3, 1.3) backwards;
        animation-delay: calc(0.2s + var(--i, 0) * 0.07s);
    }
    .lp-story__final .lp-story__cta { margin-top: 0; }
}
/* Story slides never grow past the screen (a one-line title would otherwise
   stretch its column, and the title-fit script would measure that). */
@media (max-width: 991.98px) {
    .lp-story__slides { grid-template-columns: minmax(0, 1fr); }
    .lp-story__slide { min-width: 0; }
}

/* ============================================================================
   HERO SLIDER (partials/landing-types.php; index.php with LP_CREATE_CARD off)
   Full-bleed: the slides fill the whole hero under the nav, one simple slide
   per club type (title, one line, a button, the screenshots). The type tabs
   run edge to edge along the bottom, equal widths, like file-folder tabs: the
   inactive ones sit recessed (darker, with a top edge), and the current one
   has no fill and no top edge, so it opens straight into the slide above.
   ============================================================================ */
.lp-ch.lp-hero.lp-hero--slider {
    display: block;
    min-height: 100vh; min-height: 100svh;
    padding: 72px 0 0;    /* the fixed nav */
    overflow: clip;
}
.lp-ct {
    --edge: rgba(255, 255, 255, 0.12);
    --recess: rgba(0, 0, 0, 0.32);
    display: flex; flex-direction: column;
    min-height: calc(100svh - 72px);
}
.lp-ct__h1 {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.lp-ct__folder { flex: 1; display: flex; flex-direction: column; }
.lp-ct__panel { position: relative; flex: 1; display: flex; }

/* All slides share one grid cell; only the current one (.is-on) and, for a
   moment, the one leaving (.is-out) are visible. */
.lp-ct__track { flex: 1; display: grid; touch-action: pan-y; }
.lp-ct__slide {
    grid-area: 1 / 1;
    min-width: 0;
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 5vw, 96px); align-items: center;
    padding: clamp(32px, 5vh, 64px) clamp(28px, 5vw, 96px);
    visibility: hidden; pointer-events: none;
}
.lp-ct__slide.is-out { visibility: visible; z-index: 1; }
.lp-ct__slide.is-on  { visibility: visible; z-index: 2; pointer-events: auto; }

.lp-ct__name {
    font-size: clamp(2.4rem, 4.6vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
    margin: 0 0 22px; color: var(--ink);
}
.lp-ct__name em { display: block; font-style: normal; background: linear-gradient(100deg, var(--accent), #fff 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── The change between types ─────────────────────────────────────────
   Every slide has the same layout, so only what differs moves:
   - "Create your own" is identical on every slide and sits in the same
     place, so it simply holds still (no transition at all);
   - the type word ("music club.") rolls up and out with a blur, and the new
     one rolls up into place;
   - the line and the button lift out, and the new ones rise in, staggered;
   - the new club page dissolves in over the old one inside a frame that
     holds still, settling from a slight zoom and blur;
   - the phone drops away, and the new one springs up a beat later.
   Hidden state = the default; .is-on = arrived; .is-out = leaving. */
.lp-ct__slide .lp-ct__line1 { opacity: 0; }
.lp-ct__slide.is-on .lp-ct__line1, .lp-ct__slide.is-out .lp-ct__line1 { opacity: 1; }

.lp-ct__slide .lp-ct__name em,
.lp-ct__slide .lp-ct__lead,
.lp-ct__slide .lp-ct__btn,
.lp-ct__slide .lp-ct__soon {
    opacity: 0; filter: blur(10px);
    transform: translateY(0.5em);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}
.lp-ct__slide .lp-ct__lead, .lp-ct__slide .lp-ct__btn, .lp-ct__slide .lp-ct__soon { transform: translateY(18px); filter: blur(6px); }
.lp-ct__slide.is-out .lp-ct__name em { transform: translateY(-0.45em); }
.lp-ct__slide.is-out .lp-ct__lead,
.lp-ct__slide.is-out .lp-ct__btn,
.lp-ct__slide.is-out .lp-ct__soon { transform: translateY(-12px); }
.lp-ct__slide.is-on .lp-ct__name em,
.lp-ct__slide.is-on .lp-ct__lead,
.lp-ct__slide.is-on .lp-ct__btn,
.lp-ct__slide.is-on .lp-ct__soon {
    opacity: 1; filter: blur(0); transform: none;
    transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.55s ease;
}
.lp-ct__slide.is-on .lp-ct__name em { transition-delay: 0.12s; }
.lp-ct__slide.is-on .lp-ct__lead { transition-delay: 0.22s; }
.lp-ct__slide.is-on .lp-ct__btn, .lp-ct__slide.is-on .lp-ct__soon { transition-delay: 0.3s; }

/* The club page: the frame holds still (every slide's frame is the same size
   in the same place); the new page dissolves in over the old one, settling
   from a slight zoom and blur. The old one stays put underneath until covered. */
.lp-ct__slide .lp-ct__browser { opacity: 0; }
.lp-ct__slide.is-out .lp-ct__browser { opacity: 1; }
.lp-ct__slide.is-on .lp-ct__browser { opacity: 1; transition: opacity 0.6s ease 0.05s; }
.lp-ct__slide .lp-ct__browser img { transform: scale(1.04); filter: blur(6px); }
.lp-ct__slide.is-out .lp-ct__browser img { transform: none; filter: none; }
.lp-ct__slide.is-on .lp-ct__browser img {
    transform: none; filter: blur(0);
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1) 0.05s, filter 0.6s ease 0.05s;
}

/* The phone: drops away, then the new one springs up. */
.lp-ct__slide .lp-ct__phone {
    opacity: 0; transform: translateY(48px) rotate(-3deg) scale(0.95);
    transition: opacity 0.3s ease, transform 0.35s ease;
}
.lp-ct__track.is-back .lp-ct__slide .lp-ct__phone { transform: translateY(48px) rotate(3deg) scale(0.95); }
.lp-ct__slide.is-out .lp-ct__phone { transform: translateY(36px) scale(0.97); }
.lp-ct__slide.is-on .lp-ct__phone,
.lp-ct__track.is-back .lp-ct__slide.is-on .lp-ct__phone {
    opacity: 1; transform: none;
    transition: opacity 0.4s ease 0.32s, transform 0.75s cubic-bezier(.34, 1.45, .64, 1) 0.32s;
}
.lp-ct__lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--sub); margin: 0 0 32px; max-width: 26em; }
.lp-ct__btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 54px;
    padding: 0 28px; border-radius: 12px;
    background: var(--accent); color: #06201d; text-decoration: none;
    font-weight: 700; font-size: 1.02rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.lp-ct__btn:hover { background: color-mix(in srgb, var(--accent) 86%, #000); color: #06201d; transform: translateY(-1px); }
.lp-ct__btn .fas { font-size: 0.8em; }
/* Same height as the button, so the Podcasts slide's copy block matches the
   others and "Create your own" doesn't shift. */
.lp-ct__soon {
    display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Screenshots: the club page in a browser, its picker on a phone in front.
   As big as the height allows, so the tabs stay on screen. */
.lp-ct__stage { position: relative; padding: 0 7% 8% 0; width: 100%; max-width: calc((100svh - 72px - 64px - 2 * clamp(32px, 5vh, 64px)) * 1.75); margin-left: auto; }
.lp-ct__browser {
    border-radius: 12px; overflow: hidden; background: #fff;
    box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.7);
}
.lp-ct__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #f1f3f6; }
.lp-ct__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lp-ct__bar i:nth-child(2) { background: #febc2e; }
.lp-ct__bar i:nth-child(3) { background: #28c840; }
.lp-ct__bar span { margin: 0 auto; padding-right: 40px; font-size: 0.7rem; color: #8a94a6; }
.lp-ct__browser img, .lp-ct__phone img { display: block; width: 100%; height: auto; }
.lp-ct__phone {
    position: absolute; right: 0; bottom: 0; width: 25%;
    border: 5px solid #0b0d12; border-radius: 24px; overflow: hidden; background: #0b0d12;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

/* Pause / play: the bottom-left corner of the slide, in line with the copy. */
.lp-ct__toggle {
    position: absolute; left: clamp(28px, 5vw, 96px); bottom: 16px; z-index: 3;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0;
    background: var(--recess); color: var(--sub);
    border: 1px solid var(--edge); border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.lp-ct__toggle .material-icons { font-size: 18px; }
.lp-ct__toggle:hover { color: var(--ink); background: rgba(0, 0, 0, 0.5); }
.lp-ct__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Folder tabs: edge to edge, equal widths. */
.lp-ct__tabs { display: flex; }
.lp-ct__tab {
    position: relative;
    flex: 1 1 0; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 64px; padding: 0 12px;
    background: var(--recess); color: var(--sub);
    border: 0; border-top: 1px solid var(--edge);
    border-radius: 0;
    font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: color 0.2s ease, background-color 0.25s ease;
}
.lp-ct__tab + .lp-ct__tab { box-shadow: inset 1px 0 0 var(--edge); }
.lp-ct__tab .material-icons { font-size: 21px; opacity: 0.65; }
.lp-ct__tab:hover { color: var(--ink); background: rgba(0, 0, 0, 0.2); }
/* The current tab: no fill, no top edge, its sides lifted into the slide. */
.lp-ct__tab.is-on {
    background: transparent; color: var(--ink);
    border-top-color: transparent;
    box-shadow: inset 1px 0 0 var(--edge), inset -1px 0 0 var(--edge), inset 0 -1px 0 var(--edge);
}
.lp-ct__tab.is-on .material-icons { color: var(--accent); opacity: 1; }
/* The timer line under the current tab: fills over the autoplay interval
   (--lp-ct-adv, set by landing-showcase.js); .is-run restarts it each slide. */
.lp-ct__timer {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left center;
    pointer-events: none;
}
.lp-ct__tab.is-run .lp-ct__timer { animation: lpCtTimer var(--lp-ct-adv, 5000ms) linear forwards; }
@keyframes lpCtTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-ct__tab:focus-visible, .lp-ct__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

@media (max-width: 991.98px) {
    .lp-ct__slide { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; padding: 24px 22px 52px; text-align: center; }
    .lp-ct__toggle { left: 22px; bottom: 10px; }
    .lp-ct__stage { order: -1; max-width: 560px; margin: 0 auto; }
    .lp-ct__phone { border-width: 4px; border-radius: 16px; }
    .lp-ct__lead { margin-left: auto; margin-right: auto; }
    .lp-ct__tab { height: 56px; flex-direction: column; gap: 2px; font-size: 0.74rem; padding: 0 4px; }
    .lp-ct__tab .material-icons { font-size: 20px; }
}
@media (max-width: 575.98px) {
    .lp-ct__name { font-size: 2.1rem; }
    .lp-ct__lead { font-size: 1rem; margin-bottom: 24px; }
}
/* Reduced motion: types simply swap, nothing moves. */
@media (prefers-reduced-motion: reduce) {
    .lp-ct__slide *, .lp-ct__tab { transition: none !important; }
    .lp-ct__slide.is-on .lp-ct__name em, .lp-ct__slide.is-on .lp-ct__lead,
    .lp-ct__slide.is-on .lp-ct__btn, .lp-ct__slide.is-on .lp-ct__soon,
    .lp-ct__slide.is-on .lp-ct__phone, .lp-ct__slide.is-on .lp-ct__browser img { filter: none; transform: none; }
    .lp-ct__slide.is-out { visibility: hidden; }
}


/* ============================================================================
   LP START (partials/landing-start.php): the "Start your club" CTA holding the
   create-a-club card. A dark chapter like the hero, tinted by the type picked
   in the card (--start-c, registered so the tint glides like --hero-c).
   ============================================================================ */
@property --start-c { syntax: '<color>'; inherits: true; initial-value: #5eead4; }
.lp-start {
    --start-c: #5eead4;
    --ink: #f8fafc; --sub: rgba(226, 240, 238, 0.74);
    --accent: var(--start-c); --glow: rgba(94, 234, 212, 0.25);
    background: radial-gradient(1200px 700px at 80% 30%,
        color-mix(in srgb, var(--start-c) 24%, #06100f) 0%,
        color-mix(in srgb, var(--start-c) 11%, #050d0c) 55%,
        color-mix(in srgb, var(--start-c) 5%, #040a09) 100%);
    transition: --start-c 0.9s ease;
}
.lp-start::before { transition: background-color 0.8s ease; }
.lp-start .lp-ch__inner { max-width: 1240px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.lp-start .lp-ch__title em { display: block; background: linear-gradient(100deg, var(--accent), #fff 140%); -webkit-background-clip: text; background-clip: text; }
.lp-start__fine { margin: 0; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); }
/* The card's hero-only controls: the autoplay play button and progress line. */
.lp-start .lpc__play, .lp-start .lpc__progress { display: none !important; }
@media (max-width: 991.98px) {
    .lp-start .lp-ch__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ============================================================================
   TIMELINE (partials/landing-flow.php): the life of a club as one scrolling
   thread. One dark canvas; each step is a small icon node, a few lines of copy,
   and a group of floating screenshot crops. Nodes alternate sides, and the
   thread (an SVG built by landing-showcase.js) curves between them behind the
   crops, so it weaves through them. Each step's --c tints its node, its words,
   and its stretch of the thread. That's phones and tablets; desktop is a
   different design, at the end of this block.
   ============================================================================ */
.lp-flow {
    --ink: #f8fafc; --sub: rgba(226, 240, 238, 0.72);
    display: block;
    position: relative;
    overflow: clip;
    color: var(--ink);
    background: linear-gradient(180deg, #06100f 0%, #0a1413 100%);
    padding: 0 0 72px;
}
.lp-flow__intro { position: relative; text-align: center; padding: 64px 22px 40px; }
/* The splash's background: the old hero's gradient, tinted by the current club. Behind
   the thread on phones, fading out into the timeline. */
.lp-flow {
    --splash-bg: radial-gradient(1200px 700px at 80% 20%,
        color-mix(in srgb, var(--hero-c) 26%, #06100f) 0%,
        color-mix(in srgb, var(--hero-c) 12%, #050d0c) 55%,
        color-mix(in srgb, var(--hero-c) 5%, #040a09) 100%);
}
.lp-flow::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: calc(100svh + 140px);
    background: var(--splash-bg);
    -webkit-mask-image: linear-gradient(#000 calc(100% - 200px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 200px), transparent);
    pointer-events: none;
}
.lp-flow__eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5eead4; margin-bottom: 8px; }
.lp-flow__heading { margin: 0; font-size: clamp(2.3rem, 11vw, 3.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); }
.lp-flow__heading em { font-style: normal; background: linear-gradient(100deg, #5eead4, #a5b4fc 70%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lp-flow__steps { position: relative; max-width: 520px; margin: 0 auto; padding: 0 20px; }
.lp-flow__thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lp-flow__track, .lp-flow__ink { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.lp-flow__track { stroke: rgba(255, 255, 255, 0.09); }
.lp-flow__tip { fill: #fff; filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9)); }

.lp-flow__step { position: relative; padding-bottom: 76px; }
.lp-flow__step:last-child { padding-bottom: 56px; }
.lp-flow__step::before {   /* a soft pool of the step's color behind its stack */
    content: "";
    position: absolute; left: -20%; right: -20%; top: 12%; bottom: 8%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 15%, transparent), transparent);
    pointer-events: none;
}
.lp-flow__head { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.lp-flow__node {
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 19px;
    color: var(--c); background: #0a1413;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent);
    transition: color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.lp-flow__step.is-on .lp-flow__node { color: #06201d; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); }
.lp-flow__txt { min-width: 0; flex: 1; }
.lp-flow__when { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); margin: 2px 0 5px; }
.lp-flow__title { margin: 0 0 8px; font-size: clamp(1.55rem, 6.8vw, 1.95rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
.lp-flow__title em { font-style: normal; color: var(--c); }
.lp-flow__body { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--sub); }
/* Every other step mirrors, so the thread has to cross over. */
.lp-flow__step:nth-child(odd) .lp-flow__head { flex-direction: row-reverse; text-align: right; }

/* Pieces: --w / --x / --up are % of the stack's width. */
.lp-flow__stack { position: relative; }
.lp-flow__cut {
    position: relative;
    width: calc(var(--w) * 1%);
    margin-left: calc(var(--x) * 1%);
    margin-top: calc(var(--up) * -1%);
    transform: rotate(calc(var(--rot) * 1deg));
}
.lp-flow__cut:nth-child(odd) { --from: -26px; }
.lp-flow__cut:nth-child(even) { --from: 26px; }
.lp-js .lp-flow__cut:not(.is-in) { opacity: 0; transform: translate(var(--from), 22px) scale(0.96); }
.lp-js .lp-flow__cut {
    transition: opacity 0.55s ease, transform 0.75s cubic-bezier(.2, .9, .3, 1.15);
    transition-delay: calc(var(--i) * 0.09s);
}
.lp-flow__crop {
    position: relative; overflow: hidden;
    border-radius: var(--br, 14px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.8);
}
.lp-flow__crop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-flow__tag {
    position: absolute; right: 10px; bottom: -10px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; white-space: nowrap;
    color: #06201d; background: var(--c);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
.lp-flow__tag--top { top: -20px; bottom: auto; }
.lp-flow__tag--low { bottom: -20px; }

/* The thread lands on the sign-up. */
.lp-flow__end { position: relative; text-align: center; padding: 8px 22px 0; }
.lp-flow__big { margin: 0 0 16px; display: flex; flex-direction: column; font-size: clamp(2.4rem, 12vw, 3.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; color: var(--ink); }
.lp-flow__big em { font-style: normal; background: linear-gradient(100deg, #5eead4, #a5b4fc 55%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-flow__lede { margin: 0 auto 26px; max-width: 19em; font-size: 1rem; line-height: 1.55; color: var(--sub); }
.lp-flow__types { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px 32px; justify-content: center; }
.lp-flow__types li { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--sub); }
.lp-flow__types li.is-soon { opacity: .45; }
.lp-flow__types li small { margin-top: -4px; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-flow__types .material-icons {
    width: 50px; height: 50px; border-radius: 16px;
    display: grid; place-items: center; font-size: 24px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent);
}
.lp-flow__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 800; text-decoration: none;
    color: #06201d; background: #5eead4;
    box-shadow: 0 12px 30px -10px rgba(94, 234, 212, 0.6);
}
.lp-flow__cta .material-icons { font-size: 19px; }

/* Desktop is its own design, not the phone stretched: the timeline turns on its
   side. .lp-flow__steps is a tall scroll track, .lp-flow__stage stays pinned to the
   screen inside it, and the steps sit on top of each other. landing-showcase.js sets
   --o on each step as you scroll (how many steps away it is, signed) and --a (the
   same without the sign). Each step's exploded drawing (.lp-flow__xv, the .lp-xv
   rules earlier in this file) slides in whole and bursts open when the step settles;
   the copy stays put and swaps. The scrubber reads the same scroll from --t on
   .lp-flow__scrub (0 to 1). Without JS this falls back to the stacked layout. */
.lp-flow__stage { display: contents; }
.lp-flow__scrub, .lp-flow__xv { display: none; }
@media (min-width: 992px) {
    .lp-flow { padding: 0 0 112px; }
    .lp-flow__intro { padding: 104px 22px 48px; }
    .lp-flow__heading { font-size: clamp(3.2rem, 5.4vw, 4.8rem); }
    .lp-js .lp-flow__intro { display: none; }   /* the splash leads straight into step one */
    .lp-flow__big { flex-direction: row; justify-content: center; gap: 0.28em; font-size: clamp(3rem, 5vw, 4.6rem); margin-bottom: 20px; }
    .lp-flow__end { padding-top: 96px; }
    .lp-flow__lede { max-width: 34em; font-size: 1.16rem; margin-bottom: 34px; }
    .lp-flow__types { grid-template-columns: repeat(6, auto); gap: 18px 36px; margin-bottom: 36px; }

    .lp-js .lp-flow__steps { max-width: none; padding: 0; height: calc((var(--n) + 1) * 80svh + 100svh); }
    .lp-js .lp-flow__stage {
        --pad: max(clamp(32px, 4vw, 72px), calc(50vw - 800px));
        display: block; position: sticky; top: 0; height: 100svh; overflow: hidden;
    }
    .lp-js .lp-flow__thread, .lp-js .lp-flow__node, .lp-js .lp-flow__stack { display: none; }
    .lp-js .lp-flow__step {
        position: absolute; inset: 84px var(--pad) 124px;
        padding: 0;
        container-type: size;
        pointer-events: none;   /* stacked over the splash, which holds the screen's only links */
    }
    .lp-js .lp-flow__step::before {
        left: 28%; right: -10%; top: -8%; bottom: -8%;
        background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent);
        opacity: calc(1 - var(--a, 0) * 1.6);
    }
    .lp-js .lp-flow__step:not(.is-live) .lp-flow__xv { visibility: hidden; }

    .lp-js .lp-flow__step .lp-flow__head {
        display: block; position: absolute; left: 0; top: var(--head-top, 50%);
        width: 27cqw; margin: 0;
        text-align: left;
        opacity: calc(1 - var(--a, 0) * 2.4);
        transform: translateY(calc(var(--head-y, -50%) + var(--o, 0) * 56px));
    }
    .lp-flow__when { text-transform: none; letter-spacing: 0; font-size: 1.05rem; margin: 0 0 12px; }
    .lp-flow__title { font-size: clamp(2rem, min(3vw, 6.4vh), 3.3rem); line-height: 1.04; margin-bottom: 16px; }
    .lp-flow__body { font-size: clamp(0.98rem, min(1.2vw, 2.3vh), 1.14rem); }

    .lp-js .lp-flow__xv {
        display: flex; align-items: center; justify-content: center;
        position: absolute; right: 0; top: 0; bottom: 0; width: 71cqw;
        container-type: size;
        opacity: calc(1 - var(--a, 0) * 1.5);
        transform: translate3d(calc(var(--o, 0) * 44cqw), 0, 0);
    }
    .lp-flow__xv .lp-xv { --accent: var(--c); width: min(100cqw, 100cqh * (var(--ar))); }
    .lp-flow__xv .lp-xv__note b { display: none; }   /* the leader lines already tie a note to its piece */
    /* Devices drawn larger around the stage's center (--k), with the notes in columns
       sized to the stage so they clear the pieces at every width. */
    .lp-flow__xv .lp-xv { --k: 1.1; --cw: 19.5cqw; }
    .lp-flow__xv .lp-xv__dev {
        left: calc((50 + (var(--bl) - 50) * var(--k)) * 1%);
        top: calc((50 + (var(--bt) - 50) * var(--k)) * 1%);
        width: calc(var(--bw) * var(--k) * 1%);
    }

    /* The timeline: a ruled strip with a mark for each step, read like a player's scrubber. */
    .lp-js .lp-flow__scrub {
        display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
        position: absolute; left: var(--pad); right: var(--pad); bottom: 22px;
    }
    .lp-flow__rule {
        position: absolute; top: 15px; height: 10px;
        left: calc(50% / var(--n)); right: calc(50% / var(--n));
        background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 12px);
    }
    .lp-flow__fill {
        position: absolute; left: 0; right: 0; top: 3px; height: 4px; border-radius: 2px;
        background: var(--ink);
        clip-path: inset(0 calc(100% - var(--t, 0) * 100%) 0 0);
    }
    .lp-flow__head-dot {
        position: absolute; top: 5px; left: calc(var(--t, 0) * 100%);
        width: 0; height: 0;
        filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9));
    }
    .lp-flow__head-dot::after { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
    .lp-flow__mark {
        position: relative;
        display: flex; flex-direction: column; align-items: center; gap: 8px;
        padding: 0 4px; border: 0; background: none; cursor: pointer;
        font: inherit; font-size: 0.86rem; font-weight: 600; line-height: 1.2; text-align: center;
        color: var(--sub);
        transition: color 0.2s ease;
    }
    .lp-flow__mark .material-icons {
        width: 40px; height: 40px; border-radius: 50%;
        display: grid; place-items: center; font-size: 21px;
        color: var(--c); background: #0a1413;
        box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent);
        transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }
    .lp-flow__mark:hover { color: var(--ink); }
    .lp-flow__mark:hover .material-icons { transform: scale(1.08); }
    .lp-flow__mark.is-on .material-icons { color: #06201d; background: var(--c); }
    .lp-flow__mark.is-cur { color: var(--ink); }
    .lp-flow__mark.is-cur .material-icons { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); }
    .lp-flow__mark:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 12px; }
}
/* Tablets and small desktops: beside the drawing, the notes would crowd it. So the
   drawing moves to the top of the stage, the notes become a numbered list under it,
   and lpXv puts a pinging number on each piece instead of a leader line. .lp-xv
   fills the stage and .lp-xv__scene is its own size container, so its cqw distances
   still scale with the drawing. --ns is the room kept for the list. */
@media (min-width: 992px) and (max-width: 1279.98px) {
    .lp-js .lp-flow__xv { align-items: stretch; }
    .lp-flow__step { --head-top: 24px; --head-y: 0px; }   /* the copy rises with the drawing */
    .lp-flow__xv .lp-xv {
        --k: 1.12; --ns: 150px;
        --scene: min(100cqw, (100cqh - var(--ns)) * 4 / 3);
        width: 100%; height: 100%;
        aspect-ratio: auto;
    }
    .lp-flow__xv .lp-xv__scene {
        inset: 0 0 auto;
        margin: 0 auto;
        width: var(--scene);
        height: calc(var(--scene) * 3 / 4);
        container-type: inline-size;
        perspective: calc(var(--scene) * 1.5);
    }
    /* --lift: how far this step's drawing can rise (set per step in landing-flow.php). */
    .lp-flow__xv .lp-xv__dev { top: calc((50 + (var(--bt) - 50) * var(--k) - var(--lift, 0)) * 1%); }
    /* A two-column grid just under the drawing: lpXv sets --list-top from where its lowest piece lands. */
    .lp-flow__xv .lp-xv__notes {
        top: var(--list-top, auto); bottom: auto;
        max-width: 700px; margin: 0 auto;
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px;
    }
    .lp-flow__xv .lp-xv__note {
        position: relative; top: auto; left: auto; right: auto;
        width: auto;
        display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 6px; align-items: baseline;
        text-align: left;
    }
    .lp-flow__xv .lp-xv__note b { display: block; margin: 0; color: #5eead4; }
    .lp-flow__xv .lp-xv__note strong { font-size: 0.88rem; line-height: 1.25; }
    .lp-flow__xv .lp-xv__note span { grid-column: 2; margin-top: 2px; font-size: 0.76rem; line-height: 1.35; }

    /* The numbers on the pieces, drawn by lpXv in the .lp-xv__lines layer. */
    .lp-xv__lines .lp-xv__badge { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.5; }
    .lp-xv__lines text {
        fill: #06201d; font-size: 12px; font-weight: 800;
        text-anchor: middle; dominant-baseline: central;
        opacity: 0; transition: opacity 0.3s ease;
    }
    .is-labelled .lp-xv__lines text { opacity: 1; }
    .lp-flow__xv .is-labelled .lp-xv__lines circle.lp-xv__pulse { animation-name: lpPing; }
}
@keyframes lpPing {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(2.3); opacity: 0; }
    100% { transform: scale(2.3); opacity: 0; }
}
@media (min-width: 992px) and (max-width: 1279.98px) and (max-height: 820px) {
    .lp-flow__xv .lp-xv { --ns: 74px; }
}
/* Short laptop screens: note names only, or a busy drawing's notes run into each other. */
@media (min-width: 992px) and (max-height: 820px) {
    .lp-flow__xv .lp-xv__note span { display: none; }
    .lp-flow__xv .lp-xv__note strong { font-size: 0.86rem; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-js .lp-flow__cut, .lp-js .lp-flow__cut:not(.is-in) { opacity: 1; transform: rotate(calc(var(--rot) * 1deg)); transition: none; }
    .lp-flow__tip { display: none; }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .lp-js .lp-flow__xv { transform: none; }
    .lp-js .lp-flow__step .lp-flow__head { transform: translateY(var(--head-y, -50%)); }
}

/* ============================================================================
   SPLASH (partials/landing-splash.php): the first screen. Phones and tablets: an
   ordinary full screen at the top of the timeline; the thread (built in
   landing-showcase.js) starts behind its picks. From 992px it sits in the pinned
   stage as the state before step one, taking --o / --a from the same scroll, and
   draws its own line into the scrubber's first mark. All the clubs share one cell;
   the current one (.is-on) fades in, and its type gets the highlighter sweep.
   ============================================================================ */
.lp-splash {
    --tile: clamp(112px, 16svh, 136px); --small: 60px;
    position: relative;
    box-sizing: border-box; min-height: 100svh;
    padding: 76px 0 26px 24px;
    display: flex; flex-direction: column; align-items: flex-start;
}
.lp-splash__line { display: none; }
.lp-splash__copy { display: contents; }
/* "Your ___ club": the word rolls up as the club changes, and the slot eases to its width. */
.lp-splash__your {
    order: 0; margin: auto 0 8px;
    font-size: 1.4rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink);
}
.lp-splash__slot {
    position: relative; display: inline-block; vertical-align: bottom;
    overflow: hidden; white-space: nowrap;
    transition: width 0.5s cubic-bezier(.65, 0, .35, 1);
}
.lp-splash__word {
    position: absolute; left: 0; top: 0; display: inline-block; padding: 0 0.1em;
    color: var(--hero-c); opacity: 0; transform: translateY(100%);
    /* The same highlighter stroke as the club's type below, swept in as each word lands. */
    background: linear-gradient(color-mix(in srgb, var(--hero-c) 34%, transparent), color-mix(in srgb, var(--hero-c) 34%, transparent)) no-repeat 0 88% / 100% 0.5em;
}
.lp-splash__word.is-on { animation: lpWordSweep 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.45s backwards; }
@keyframes lpWordSweep { from { background-size: 0% 0.5em; } }
.lp-splash__word.is-on { position: relative; opacity: 1; transform: none; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1) 0.08s, opacity 0.35s ease 0.08s; }
.lp-splash__word.is-out { opacity: 0; transform: translateY(-100%); transition: transform 0.4s ease-in, opacity 0.3s ease; }
.lp-splash__title { order: 1; display: grid; margin: 0 0 14px; font-size: min(calc((100vw - 64px) / 12.8), 2.2rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.05em; color: var(--ink); text-wrap: balance; }
/* One headline per club, all in one grid cell, so the tallest holds the space and nothing jumps. */
.lp-splash__tag { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); white-space: nowrap; }
.lp-splash__tag > span { display: block; }
.lp-splash__tag.is-on { opacity: 1; visibility: visible; transform: none; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1) 0.16s, opacity 0.4s ease 0.16s; }
.lp-splash__tag.is-out { opacity: 0; visibility: visible; transform: translateY(-16px); transition: transform 0.35s ease-in, opacity 0.3s ease; }
.lp-splash__title em { display: inline-block; font-style: normal; background: linear-gradient(100deg, var(--hero-c), #fff 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-splash__lede { order: 2; margin: 0 0 28px; font-size: 1rem; line-height: 1.5; color: var(--sub); text-wrap: pretty; }
.lp-splash__btns { order: 4; align-self: center; display: flex; align-items: center; gap: 12px; margin-top: auto; }
.lp-splash__alt {
    display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; white-space: nowrap;
    border-radius: 999px; font-weight: 700; text-decoration: none;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-splash__alt:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.lp-splash__alt:focus-visible { outline: 2px solid var(--hero-c); outline-offset: 4px; }
.lp-splash__row { order: 3; position: relative; align-self: stretch; height: calc(var(--tile) + 104px); margin-bottom: 20px; }
.lp-splash__cta {
    display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px; white-space: nowrap;
    border-radius: 999px; font-weight: 800; text-decoration: none;
    color: #06201d; background: var(--hero-c);
    box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--hero-c) 70%, transparent);
}
.lp-splash__cta:hover { color: #06201d; background: color-mix(in srgb, var(--hero-c) 72%, #fff); }
.lp-splash__how {
    order: 5;
    align-self: center;
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px;
    font-size: 0.94rem; font-weight: 600; text-decoration: none; color: #e2f0ee;
}
.lp-splash__how:hover { color: #fff; }
.lp-splash__how .material-icons { font-size: 20px; }
.lp-splash__cta:focus-visible, .lp-splash__how:focus-visible { outline: 2px solid var(--hero-c); outline-offset: 4px; }
.lp-splash__stop { stop-color: var(--hero-c); }
.lp-splash__track { stroke: rgba(255, 255, 255, 0.14); }
/* The whole timeline stays dim until the first scroll. */
.lp-flow__mark, .lp-flow__rule { transition: opacity 0.4s ease, filter 0.4s ease, color 0.2s ease; }
.lp-flow__scrub.is-rest .lp-flow__mark, .lp-flow__scrub.is-rest .lp-flow__rule { opacity: 0.45; filter: saturate(0.25); }
.lp-flow__scrub.is-rest .lp-flow__mark:hover, .lp-flow__scrub.is-rest .lp-flow__mark:focus-visible { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .lp-flow__mark, .lp-flow__rule { transition: none; } }

.lp-splash__club { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s 0.6s; }
.lp-splash__club.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.lp-splash__name strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
.lp-splash__name span { display: block; margin-top: 3px; font-size: 0.9rem; font-weight: 700; color: var(--c); }
/* The same highlighter stroke as the old deck's leads, swept in as the club arrives. */
.lp-splash__name mark {
    color: var(--ink);
    padding: 0 0.12em; margin-left: -0.12em;
    background: linear-gradient(color-mix(in srgb, var(--c) 38%, transparent), color-mix(in srgb, var(--c) 38%, transparent)) no-repeat 0 88% / 0% 0.5em;
    transition: background-size 0.3s ease-in;
}
.lp-splash__club.is-on .lp-splash__name mark {
    background-size: 100% 0.5em;
    transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.45s;
}
.lp-splash__picks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.lp-splash__picks li { width: var(--small); min-width: 0; }
.lp-splash__picks li:first-child { width: var(--tile); }
.lp-splash__picks li:nth-child(5) { display: none; }
.lp-splash__tile { position: relative; height: var(--tile); display: flex; align-items: center; }
.lp-splash__play {   /* a video's play button: dead center of its tile at any size */
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 42%; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    font-size: clamp(20px, calc(var(--small) * 0.3), 44px); line-height: 1;
    color: #fff; background: rgba(0, 0, 0, 0.55);
}
.lp-splash__picks li:first-child .lp-splash__play { font-size: clamp(30px, calc(var(--tile) * 0.3), 66px); }
.lp-splash__tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; box-shadow: 0 14px 26px -12px #000; }
.lp-splash__picks li:first-child img { border-radius: 22px; }
.lp-splash__who { display: block; margin-top: 8px; font-size: 0.8rem; font-weight: 700; text-align: center; color: var(--sub); }
.lp-splash__picks li:first-child .lp-splash__who { color: var(--ink); }
.lp-splash__verb { display: none; }

@media (min-width: 992px) {
    .lp-js .lp-splash {
        --tile: clamp(100px, min(11.7vw, 19vh), 232px);
        --small: calc(var(--tile) * 0.7);
        align-items: stretch;
        padding: 0 var(--pad, 72px);
        min-height: 0;
    }
    .lp-js .lp-splash {
        position: absolute; inset: 0;
        padding-top: clamp(72px, 11vh, 104px); padding-bottom: 0;
        opacity: calc(1 - var(--a, 0) * 1.6);
        isolation: isolate;
    }
    .lp-js .lp-flow::before { display: none; }
    .lp-js .lp-splash::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--splash-bg); }
    .lp-js .lp-splash > :not(.lp-splash__line) { transform: translateY(calc(var(--o, 0) * 56px)); }
    .lp-js .lp-splash.is-off { visibility: hidden; }
    .lp-js .lp-splash__line {
        display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
        fill: none; stroke-width: 2.5; stroke-linecap: round;
    }
    .lp-js .lp-splash__copy { display: block; position: relative; text-align: center; }
    .lp-js .lp-splash__your { margin: 0 0 6px; font-size: clamp(1.4rem, min(2.3vw, 3.7vh), 2.05rem); }
    .lp-js .lp-splash__title { margin: 0 0 14px; font-size: clamp(2.3rem, min(4.2vw, 6.4vh), 4rem); }
    .lp-js .lp-splash__lede { max-width: 760px; margin: 0 auto 18px; font-size: clamp(1rem, min(1.4vw, 2.2vh), 1.25rem); text-wrap: balance; }
    .lp-js .lp-splash__row { height: calc(var(--tile) + 68px); margin: clamp(18px, 4.4vh, 60px) 0 0; }
    .lp-js .lp-splash__club { display: grid; grid-template-columns: clamp(170px, 16.5vw, 240px) minmax(0, 1fr); column-gap: clamp(20px, 2.2vw, 32px); }
    .lp-js .lp-splash__name { padding-top: 8px; }
    .lp-js .lp-splash__name strong { font-size: clamp(1.3rem, 1.8vw, 1.65rem); }
    .lp-js .lp-splash__name span { font-size: 0.95rem; margin-top: 5px; }
    .lp-js .lp-splash__picks { margin: 0; }
    .lp-js .lp-splash__picks li:nth-child(5) { display: block; }
    .lp-js .lp-splash__tile img { border-radius: 20px; }
    .lp-js .lp-splash__picks li:first-child img { border-radius: 26px; }
    .lp-js .lp-splash__who { margin: 12px -24px 0; font-size: 0.94rem; text-align: center; white-space: nowrap; }
    .lp-js .lp-splash__verb { display: block; margin-top: 2px; font-size: 0.875rem; text-align: center; color: var(--sub); white-space: nowrap; }
    .lp-js .lp-splash__btns { justify-content: center; margin-top: 0; }
    .lp-js .lp-splash__cta, .lp-js .lp-splash__alt { min-height: 48px; padding: 0 28px; }
    .lp-js .lp-splash__how { position: absolute; left: 0; right: 0; width: max-content; margin: 0 auto; bottom: clamp(100px, 14vh, 140px); }
}
@media (prefers-reduced-motion: reduce) {
    .lp-splash__club, .lp-splash__club.is-on { transition: none; }
    .lp-splash__name mark, .lp-splash__club.is-on .lp-splash__name mark { background-size: 100% 0.5em; transition: none; }
    .lp-splash__word.is-on { animation: none; }
}

/* The change between clubs: the old row sinks away, and the new tiles float up one at
   a time, left to right (--spot). .is-turning arrives with the first change, so the first
   club just sits there on load. */
.lp-splash__picks li:nth-child(2) { --spot: 1; }
.lp-splash__picks li:nth-child(3) { --spot: 2; }
.lp-splash__picks li:nth-child(4) { --spot: 3; }
.lp-splash__picks li:nth-child(5) { --spot: 4; }
.lp-splash__row.is-turning .lp-splash__club { transition: none; }
.lp-splash__row.is-turning .lp-splash__club.is-on, .lp-splash__row.is-turning .lp-splash__club.is-out { opacity: 1; visibility: visible; }
.lp-splash__row.is-turning .is-on .lp-splash__name { animation: lpSplashFade 0.5s ease 0.2s backwards; }
.lp-splash__row.is-turning .is-out .lp-splash__name { animation: lpSplashFade 0.3s ease reverse forwards; }
.lp-splash__row.is-turning .is-on li { animation: lpRiseIn 0.7s cubic-bezier(.2, .8, .2, 1) calc(var(--spot, 0) * 140ms + 0.24s) backwards; }
.lp-splash__row.is-turning .is-out li { animation: lpRiseOut 0.35s ease-in calc(var(--spot, 0) * 50ms) forwards; }
@keyframes lpSplashFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpRiseIn { from { opacity: 0; transform: translateY(44px); filter: blur(8px); } }
@keyframes lpRiseOut { to { opacity: 0; transform: translateY(26px); filter: blur(5px); } }

/* ============================================================================
   TABLETS. Upright and small tablets (576-991px) keep the phone's single column,
   scaled up to fill the screen. Portrait tablets from 992px keep the pinned
   scrubber, but stack: copy across the top, the drawing full width under it.
   ============================================================================ */
@media (min-width: 576px) and (max-width: 991.98px) {
    .lp-flow__steps { max-width: 860px; padding: 0 32px; }
    .lp-flow__stack { max-width: 560px; margin-inline: auto; }   /* pieces stay a comfortable size */
    .lp-flow__intro { padding: 88px 32px 56px; }
    .lp-flow__eyebrow { font-size: 0.9rem; }
    .lp-flow__heading { font-size: clamp(3.2rem, 8vw, 4.6rem); }
    .lp-flow__step { padding-bottom: 104px; }
    .lp-flow__head { gap: 18px; margin-bottom: 34px; }
    .lp-flow__node { width: 44px; height: 44px; font-size: 24px; }
    .lp-flow__when { font-size: 0.86rem; margin-bottom: 7px; }
    .lp-flow__title { font-size: clamp(2.2rem, 5.2vw, 2.9rem); margin-bottom: 12px; }
    .lp-flow__body { font-size: 1.18rem; }
    .lp-flow__tag { font-size: 0.86rem; padding: 5px 13px; bottom: -13px; }
    .lp-flow__tag--top { bottom: auto; }
    .lp-flow__tag--low { bottom: -24px; }
    .lp-flow__big { font-size: clamp(3.4rem, 9vw, 5rem); }
    .lp-flow__lede { max-width: 26em; font-size: 1.2rem; }
    .lp-flow__types { grid-template-columns: repeat(6, auto); gap: 18px 28px; }

    .lp-splash { --tile: clamp(150px, 25vw, 210px); --small: clamp(84px, 14vw, 116px); min-height: 0; padding: 100px 0 40px 36px; }
    .lp-splash__your { font-size: clamp(1.5rem, 3.6vw, 1.9rem); margin: 0 0 10px; }
    .lp-splash__title { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 18px; }
    .lp-splash__lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); max-width: 34em; margin-bottom: 40px; }
    .lp-splash__row { height: calc(var(--tile) + 122px); margin-top: 8px; }
    .lp-splash__btns { margin-top: 28px; }
    .lp-splash__name strong { font-size: 1.9rem; }
    .lp-splash__name span { font-size: 1.05rem; }
    .lp-splash__picks { margin-top: 18px; }
    .lp-splash__picks li:nth-child(5) { display: block; }
    .lp-splash__who { font-size: 0.98rem; margin-top: 10px; white-space: nowrap; margin-inline: -12px; }
    .lp-splash__cta, .lp-splash__alt { min-height: 58px; padding: 0 38px; font-size: 1.14rem; }
    .lp-splash__how { font-size: 1.05rem; }
}

@media (min-width: 992px) and (max-width: 1279.98px) and (orientation: portrait) {
    .lp-js .lp-splash { --tile: min(20.5vw, 20vh); --small: calc(var(--tile) * 0.68); padding-top: 104px; }
    .lp-js .lp-splash__your { font-size: 2.1rem; margin-bottom: 12px; }
    .lp-js .lp-splash__title { font-size: 3.9rem; margin-bottom: 22px; }
    .lp-js .lp-splash__lede { font-size: 1.35rem; margin-bottom: 30px; }
    .lp-js .lp-splash__cta, .lp-js .lp-splash__alt { min-height: 58px; padding: 0 38px; font-size: 1.14rem; }
    .lp-js .lp-splash__row { height: calc(var(--tile) + 150px); margin-top: 48px; }
    .lp-js .lp-splash__club { display: block; }
    .lp-js .lp-splash__name { padding-top: 0; }
    .lp-js .lp-splash__name strong { font-size: 2.1rem; }
    .lp-js .lp-splash__name span { font-size: 1.15rem; }
    .lp-js .lp-splash__picks { margin: 22px 0 0 100px; }   /* the line curves in from the left, clear of the names */
    .lp-js .lp-splash__who { font-size: 1.08rem; }
    .lp-js .lp-splash__verb { font-size: 1rem; }
    .lp-js .lp-splash__how { position: relative; bottom: auto; margin-top: 24px; font-size: 1.08rem; }

    .lp-js .lp-flow__step .lp-flow__head { width: 100%; }
    .lp-flow__when { font-size: 1.15rem; }
    .lp-flow__title { font-size: 3.2rem; }
    .lp-flow__body { font-size: 1.25rem; max-width: 40em; }
    .lp-js .lp-flow__xv { top: max(250px, 19svh); width: 100%; }
    .lp-js .lp-flow__step::before { left: -10%; top: 12%; }
    .lp-flow__xv .lp-xv { --k: var(--grow, 1.14); --ns: 210px; }
    .lp-flow__xv .lp-xv__notes { max-width: 860px; gap: 20px 40px; }
    .lp-flow__xv .lp-xv__note { grid-template-columns: 26px minmax(0, 1fr); }
    .lp-flow__xv .lp-xv__note strong { font-size: 1.12rem; }
    .lp-flow__xv .lp-xv__note span { font-size: 0.98rem; }
    .lp-flow__mark { font-size: 0.98rem; }
}

/* ============================================================================
   CREATE MODAL (partials/landing-start.php): the create-a-club card, opened from
   the splash. Below the auth modal (z-index 500), above the nav.
   ============================================================================ */
html.lp-cmodal-open { overflow: hidden; }
.lp-cmodal {
    --ink: #f8fafc; --sub: rgba(226, 240, 238, 0.72);
    position: fixed; inset: 0; z-index: 460;
    display: flex; padding: 20px 16px;
    overflow-y: auto; overscroll-behavior: contain;
    background: rgba(4, 12, 11, 0.72);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.lp-cmodal[hidden] { display: none; }
.lp-cmodal.is-open { opacity: 1; }
.lp-cmodal__panel {
    position: relative;
    box-sizing: border-box; width: 100%; max-width: 580px; margin: auto; padding: 28px 30px 30px;
    color: var(--ink);
    border-radius: 30px;
    background: radial-gradient(640px 420px at 85% 0%, color-mix(in srgb, var(--accent) 22%, #06100f), #071110 72%);
    box-shadow: 0 40px 90px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1);
}
.lp-cmodal__panel:focus { outline: none; }
.lp-cmodal.is-open .lp-cmodal__panel { transform: none; }
.lp-cmodal__close {
    position: absolute; right: 16px; top: 16px;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    color: var(--ink); background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
}
.lp-cmodal__close:hover { background: rgba(255, 255, 255, 0.16); }
.lp-cmodal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-cmodal__head { padding-right: 52px; margin-bottom: 20px; }
.lp-cmodal__title { margin: 0 0 4px; font-size: 1.9rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.lp-cmodal__fine { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--accent); }
.lp-cmodal .lpc { max-width: none; }
.lp-cmodal .lpc__play, .lp-cmodal .lpc__progress { display: none !important; }
/* The splash has a left inset for the thread: pull its buttons back to the screen's center. */
@media (max-width: 991.98px) {
    .lp-splash__btns, .lp-splash__how { transform: translateX(-12px); }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .lp-splash__btns, .lp-splash__how { transform: translateX(-18px); }
}
/* Short phones: everything up to the buttons has to fit on the first screen. */
@media (max-width: 575.98px) and (max-height: 700px) {
    .lp-splash { --tile: 96px; --small: 52px; padding-top: 66px; }
    .lp-splash__your { font-size: 1.15rem; margin-bottom: 4px; }
    .lp-splash__title { font-size: min(calc((100vw - 64px) / 12.8), 1.7rem); margin-bottom: 8px; }
    .lp-splash__lede { font-size: 0.9rem; line-height: 1.4; margin-bottom: 12px; }
    .lp-splash__name strong { font-size: 1.15rem; }
    .lp-splash__picks { margin-top: 8px; }
    .lp-splash__row { height: calc(var(--tile) + 96px); margin-bottom: 10px; }
    .lp-splash__how { margin-top: 2px; }
}
@media (max-width: 575.98px) {
    .lp-splash__btns { gap: 8px; }
    .lp-splash__cta, .lp-splash__alt { padding: 0 20px; font-size: 0.96rem; }
    .lp-cmodal { padding: 0; }
    .lp-cmodal__panel { min-height: 100%; margin: 0; padding: 22px 12px 16px; border-radius: 0; }
    .lp-cmodal__head { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-cmodal, .lp-cmodal__panel { transition: none; }
    .lp-cmodal__panel { transform: none; }
}
