/* ============================================================
   CRYPTO WHISPERER LANDING — Design System (Phase 2)
   All page rules scoped under #cw-page.
   Avada-wrapper overrides scoped under body.cw-landing.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
#cw-page {
    /* Surfaces */
    --cw-bg: #0B0E11;
    --cw-bg-2: #10151A;
    --cw-card: #141A21;

    /* Brand */
    --cw-accent: #39C7D3;            /* logo cyan — app primary */
    --cw-accent-soft: rgba(57, 199, 211, 0.12);
    --cw-danger: #FF4555;            /* app alert red */

    /* Text */
    --cw-text: #EAF0F4;
    --cw-muted: #9AA7B2;

    /* Structure */
    --cw-border: rgba(255, 255, 255, 0.08);
    --cw-radius: 14px;
    --cw-gap: clamp(48px, 8vw, 110px);   /* vertical rhythm between sections */
}

/* ---------- 2. AVADA NEUTRALIZER (this page only) ---------- */
body.cw-landing #main {
    padding: 0 !important;
    background: #0B0E11 !important;
}
body.cw-landing #main .fusion-row,
body.cw-landing #content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}
body.cw-landing .fusion-page-title-bar {
    display: none !important;
}

/* ---------- 3. BASE ---------- */
#cw-page {
    background: var(--cw-bg);
    color: var(--cw-text);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip; 
}

#cw-page .cw-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

#cw-page .cw-section {
    position: relative;
    padding: var(--cw-gap) 0;
}

/* ---------- 4. TYPOGRAPHY ---------- */
#cw-page h1,
#cw-page h2,
#cw-page h3 {
    color: var(--cw-text);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.5em;
}
#cw-page h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
#cw-page h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
#cw-page h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

#cw-page p { color: var(--cw-muted); margin: 0 0 1em; }

#cw-page .cw-kicker {
    display: inline-block;
    color: var(--cw-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ---------- 5. PRIMITIVES ---------- */

/* Card */
#cw-page .cw-card {
    background: var(--cw-card);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
#cw-page .cw-card:hover {
    border-color: rgba(57, 199, 211, 0.35);
    transform: translateY(-3px);
}

/* Buttons */
#cw-page .cw-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}
#cw-page .cw-btn--primary {
    background: var(--cw-accent);
    color: #06262A;
}
#cw-page .cw-btn--primary:hover {
    box-shadow: 0 0 28px rgba(57, 199, 211, 0.45);
    transform: translateY(-2px);
    color: #06262A;
}
#cw-page .cw-btn--ghost {
    background: transparent;
    color: var(--cw-text);
    border-color: var(--cw-border);
}
#cw-page .cw-btn--ghost:hover {
    border-color: var(--cw-accent);
    color: var(--cw-accent);
}

/* Nav pills (Features / Legal / Contact) */
#cw-page .cw-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--cw-border);
    color: var(--cw-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
#cw-page .cw-pill:hover {
    border-color: var(--cw-accent);
    color: var(--cw-accent);
    background: var(--cw-accent-soft);
}

/* Decorative cyan glow (replaces the old green radial) */
#cw-page .cw-glow {
    position: absolute;
    width: clamp(420px, 60vw, 900px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(57, 199, 211, 0.16) 0%,
        rgba(57, 199, 211, 0.05) 40%,
        rgba(57, 199, 211, 0) 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Content above glows */
#cw-page .cw-container { position: relative; z-index: 1; }


/* ============================================================
   PHASE 3A — Anchors, Hero, How-it-works
   ============================================================ */

/* Anchor nav */
#cw-page .cw-anchors { padding: 22px 0 0; }
#cw-page .cw-anchors__row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Hero layout */
#cw-page .cw-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}
#cw-page .cw-hero__sub {
    font-size: 1.1rem;
    max-width: 540px;
}
#cw-page .cw-accent-text { color: var(--cw-accent); }

#cw-page .cw-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
#cw-page .cw-btn--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

/* Phone visual */
#cw-page .cw-phone {
    border: 1px solid var(--cw-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
                0 0 60px rgba(57, 199, 211, 0.10);
}
#cw-page .cw-phone img {
    display: block;
    width: 100%;
    height: auto;
}

/* Animated waveform */
#cw-page .cw-wave {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 42px;
    margin-top: 26px;
}
#cw-page .cw-wave span {
    width: 4px;
    border-radius: 2px;
    background: var(--cw-accent);
    animation: cw-pulse 1.3s ease-in-out infinite;
}
#cw-page .cw-wave span:nth-child(odd)  { animation-duration: 1.05s; }
#cw-page .cw-wave span:nth-child(3n)   { animation-duration: 1.5s; }
#cw-page .cw-wave span:nth-child(4n)   { animation-duration: 0.85s; }
#cw-page .cw-wave span:nth-child(5n)   { animation-duration: 1.7s; }

@keyframes cw-pulse {
    0%, 100% { height: 18%; opacity: 0.45; }
    50%      { height: 100%; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    #cw-page .cw-wave span { animation: none; height: 50%; }
}

/* How it works */
#cw-page .cw-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
}
#cw-page .cw-step__num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cw-accent-soft);
    color: var(--cw-accent);
    font-weight: 700;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    #cw-page .cw-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    #cw-page .cw-hero__visual { max-width: 360px; margin: 0 auto; }
    #cw-page .cw-how__grid { grid-template-columns: 1fr; }
    #cw-page .cw-anchors__row { justify-content: center; }
}

/* ============================================================
   PHASE 3B — Feature deep-dives
   ============================================================ */

#cw-page .cw-lede {
    font-size: 1.1rem;
    max-width: 640px;
}

#cw-page .cw-feature {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
    margin-top: clamp(56px, 7vw, 96px);
}
#cw-page .cw-feature--flip { grid-template-columns: 1.2fr 0.8fr; }
#cw-page .cw-feature--flip .cw-feature__visual { order: 2; }
#cw-page .cw-feature--flip .cw-feature__copy   { order: 1; }

#cw-page .cw-feature__visual { max-width: 340px; justify-self: center; }

/* Feature lists */
#cw-page .cw-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}
#cw-page .cw-list li {
    position: relative;
    padding: 14px 0 14px 30px;
    color: var(--cw-muted);
    border-bottom: 1px solid var(--cw-border);
}
#cw-page .cw-list li:last-child { border-bottom: none; }
#cw-page .cw-list li strong { color: var(--cw-text); }

#cw-page .cw-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--cw-accent-soft);
    box-shadow: inset 0 0 0 2px var(--cw-accent);
}

/* Responsive */
@media (max-width: 900px) {
    #cw-page .cw-feature {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    #cw-page .cw-feature--flip .cw-feature__visual { order: 0; }
    #cw-page .cw-feature--flip .cw-feature__copy   { order: 0; }
    #cw-page .cw-feature__visual { max-width: 280px; }
}

/* ============================================================
   PHASE 3C — Architecture, Legal, Founder
   ============================================================ */

/* Architecture */
#cw-page .cw-arch__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
}
#cw-page .cw-arch__tag {
    font-family: monospace;
    color: var(--cw-accent);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}
#cw-page .cw-disclaimer {
    margin-top: 40px;
    padding: 18px 22px;
    border: 1px solid var(--cw-border);
    border-left: 3px solid var(--cw-accent);
    border-radius: 0 var(--cw-radius) var(--cw-radius) 0;
    font-size: 0.85rem;
}

/* Legal */
#cw-page .cw-legal__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
}
#cw-page .cw-legal__visual img {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    filter: hue-rotate(15deg);   /* nudges the graphic's green toward cyan */
}
#cw-page .cw-legal__sources {
    font-size: 0.9rem;
    margin-top: 18px;
}
#cw-page .cw-legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Founder */
#cw-page .cw-founder__card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    align-items: start;
    padding: 36px;
}
#cw-page .cw-founder__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cw-accent-soft);
}
#cw-page .cw-founder__more { margin-top: 10px; }
#cw-page .cw-founder__more summary {
    cursor: pointer;
    color: var(--cw-accent);
    font-weight: 600;
    list-style: none;
}
#cw-page .cw-founder__more summary::-webkit-details-marker { display: none; }
#cw-page .cw-founder__more summary::after {
    content: " ↓";
    font-size: 0.8em;
}
#cw-page .cw-founder__more[open] summary::after { content: " ↑"; }
#cw-page .cw-founder__more p { margin-top: 1em; }

/* Responsive */
@media (max-width: 900px) {
    #cw-page .cw-arch__grid  { grid-template-columns: 1fr; }
    #cw-page .cw-legal__grid { grid-template-columns: 1fr; gap: 32px; }
    #cw-page .cw-founder__card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #cw-page .cw-founder__photo { margin: 0 auto; }
    #cw-page .cw-founder__more { text-align: left; }
}


/* ============================================================
   PHASE 3D — Contact, Changelog
   ============================================================ */

/* Contact */
#cw-page .cw-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}
#cw-page .cw-contact__form { padding: 32px; }

/* Restyle the embedded Avada form to match */
#cw-page .cw-contact__form input[type="text"],
#cw-page .cw-contact__form input[type="email"],
#cw-page .cw-contact__form textarea {
    background: var(--cw-bg-2) !important;
    border: 1px solid var(--cw-border) !important;
    border-radius: 10px !important;
    color: var(--cw-text) !important;
}
#cw-page .cw-contact__form input:focus,
#cw-page .cw-contact__form textarea:focus {
    border-color: var(--cw-accent) !important;
}
#cw-page .cw-contact__form button[type="submit"],
#cw-page .cw-contact__form input[type="submit"] {
    background: var(--cw-accent) !important;
    color: #06262A !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}
#cw-page .cw-contact__form label,
#cw-page .cw-contact__form p {
    color: var(--cw-muted) !important;
}

/* Changelog */
#cw-page .cw-log {
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    background: var(--cw-card);
    margin-top: 14px;
    padding: 0 22px;
}
#cw-page .cw-log summary {
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    color: var(--cw-text);
    list-style: none;
}
#cw-page .cw-log summary::-webkit-details-marker { display: none; }
#cw-page .cw-log summary::after { content: " +"; color: var(--cw-accent); }
#cw-page .cw-log[open] summary::after { content: " –"; }

#cw-page .cw-log__ver {
    display: inline-block;
    font-family: monospace;
    color: var(--cw-accent);
    margin-right: 10px;
}
#cw-page .cw-log ul {
    list-style: none;
    margin: 0;
    padding: 0 0 18px;
}
#cw-page .cw-log li {
    padding: 7px 0;
    color: var(--cw-muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--cw-border);
}
#cw-page .cw-log li em {
    font-style: normal;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--cw-accent);
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    #cw-page .cw-contact__grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ============================================================
   PHASE 4 — Living background, scroll reveals, changelog tags
   ============================================================ */

/* Background layer */
#cw-page .cw-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
#cw-page .cw-section { z-index: 1; }

#cw-page .cw-bg__blob {
    position: absolute;
    top: 4vh;
    left: 50%;
    width: clamp(480px, 55vw, 860px);
    aspect-ratio: 1;
    border-radius: 50%;
    will-change: transform;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.5s ease;
}

/* Cyan blob (main) */
#cw-page .cw-bg__blob--a {
    background: radial-gradient(circle,
        rgba(57, 199, 211, 0.15) 0%,
        rgba(57, 199, 211, 0.05) 45%,
        rgba(57, 199, 211, 0) 70%);
    transform: translate(-50%, var(--cw-sy, 0px));
}

/* Red blob (counterweight, very subtle) */
#cw-page .cw-bg__blob--b {
    top: 30vh;
    width: clamp(320px, 35vw, 560px);
    background: radial-gradient(circle,
        rgba(255, 69, 85, 0.07) 0%,
        rgba(255, 69, 85, 0.025) 45%,
        rgba(255, 69, 85, 0) 70%);
    opacity: 0;
    transform: translate(-50%, var(--cw-sy, 0px));
}

/* Blob choreography per section state */
#cw-page[data-bg="left"] .cw-bg__blob--a {
    transform: translate(calc(-50% - 30vw), var(--cw-sy, 0px));
}
#cw-page[data-bg="left"] .cw-bg__blob--b {
    opacity: 1;
    transform: translate(calc(-50% + 34vw), calc(var(--cw-sy, 0px) + 10vh));
}
#cw-page[data-bg="right"] .cw-bg__blob--a {
    transform: translate(calc(-50% + 30vw), var(--cw-sy, 0px));
}
#cw-page[data-bg="right"] .cw-bg__blob--b {
    opacity: 1;
    transform: translate(calc(-50% - 34vw), calc(var(--cw-sy, 0px) + 10vh));
}

/* Scroll reveal */
#cw-page .cw-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease,
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
#cw-page .cw-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    #cw-page .cw-reveal { opacity: 1; transform: none; transition: none; }
    #cw-page .cw-bg__blob { transition: none; }
}

/* Changelog tag colors */
#cw-page .cw-log li em.cw-fix,
#cw-page .cw-log li em.cw-rem  { color: var(--cw-danger); }
#cw-page .cw-log li em.cw-stab { color: #FF9800; }
#cw-page .cw-log li em.cw-upd  { color: var(--cw-muted); }



/* ============================================================
   PHASE 4.1 — Store badges, sticky anchors, smooth landing
   ============================================================ */

/* Store badges */
#cw-page .cw-badge { display: inline-block; line-height: 0; }
#cw-page .cw-badge img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#cw-page a.cw-badge:hover img {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(57, 199, 211, 0.35);
}
#cw-page .cw-badge--soon img {
    opacity: 0.45;
    cursor: default;
}

/* Sticky anchor nav — floating pills, no bar */
#cw-page .cw-anchors {
    position: sticky;
    top: 14px;
    z-index: 50;
    pointer-events: none;       /* the strip itself ignores clicks... */
}
#cw-page .cw-anchors .cw-pill {
    pointer-events: auto;       /* ...the pills receive them */
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* Clear the WP admin bar when logged in */
body.admin-bar #cw-page .cw-anchors { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar #cw-page .cw-anchors { top: 46px; }
}

/* Anchor landing offset — sections stop below the sticky bar */
#cw-page section[id] { scroll-margin-top: 90px; }

/* ============================================================
   PHASE 4.2 — Main header floats over the page (this page only)
   ============================================================ */

body.cw-landing .fusion-header-wrapper,
body.cw-landing .fusion-tb-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
}
body.cw-landing .fusion-header,
body.cw-landing .fusion-header-wrapper .fusion-header,
body.cw-landing .fusion-tb-header .fusion-fullwidth {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Clear space so the hero starts below the floating menu */
#cw-page { padding-top: 110px; }

/* ============================================================
   PHASE 4.3 — Frameless hero logo
   ============================================================ */

#cw-page .cw-hero__logo {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
    /* cyan glow halo instead of a box frame */
    filter: drop-shadow(0 0 40px rgba(57, 199, 211, 0.25));
}

/* ============================================================
   PHASE 4.4 — Annotated callout diagram (pins + leader lines)
   ============================================================ */

/* The phone must allow badges to live outside it */
#cw-page .cw-spot { position: relative; overflow: visible; }
#cw-page .cw-spot img { border-radius: 27px; }

/* Pin row: an invisible horizontal rail at the control's height */
#cw-page .cw-pin {
    position: absolute;
    top: var(--y);
    left: 0;
    width: 100%;
    height: 0;
    pointer-events: none;
    z-index: 3;
}

/* Tip dot — sits on the control */
#cw-page .cw-pin__tip {
    position: absolute;
    left: var(--x);
    top: 0;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cw-accent);
    box-shadow: 0 0 10px rgba(57, 199, 211, 0.8);
}

/* Leader line — from tip to outside the phone */
#cw-page .cw-pin__line {
    position: absolute;
    top: 0;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
        rgba(57, 199, 211, 0.9),
        rgba(57, 199, 211, 0.25));
}
#cw-page .cw-pin--left .cw-pin__line {
    left: -34px;
    width: calc(var(--x) + 34px);
    background: linear-gradient(270deg,
        rgba(57, 199, 211, 0.9),
        rgba(57, 199, 211, 0.25));
}
#cw-page .cw-pin--right .cw-pin__line {
    left: var(--x);
    width: calc(100% - var(--x) + 34px);
}

/* Numbered badge — floats outside the phone edge */
#cw-page .cw-pin__num {
    position: absolute;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--cw-accent);
    background: rgba(11, 14, 17, 0.85);
    color: var(--cw-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.25s ease, background 0.25s ease,
                color 0.25s ease, box-shadow 0.25s ease;
}
#cw-page .cw-pin--left  .cw-pin__num { left: -34px; transform: translate(-100%, -50%); }
#cw-page .cw-pin--right .cw-pin__num { left: calc(100% + 34px); transform: translate(0, -50%); }

/* Hot states */
#cw-page .cw-pin.is-hot .cw-pin__num {
    background: var(--cw-accent);
    color: #06262A;
    box-shadow: 0 0 22px rgba(57, 199, 211, 0.65);
}
#cw-page .cw-pin--left.is-hot  .cw-pin__num { transform: translate(-100%, -50%) scale(1.2); }
#cw-page .cw-pin--right.is-hot .cw-pin__num { transform: translate(0, -50%) scale(1.2); }
#cw-page .cw-pin.is-hot .cw-pin__tip  { box-shadow: 0 0 16px rgba(57, 199, 211, 1); }
#cw-page .cw-pin.is-hot .cw-pin__line { height: 2px; }

/* List: numbers replace the ring bullets (spotlists only) */
#cw-page .cw-spotlist li { cursor: pointer; border-radius: 8px; padding-right: 10px; transition: background 0.25s ease; }
#cw-page .cw-spotlist li::before {
    content: attr(data-spot);
    background: var(--cw-accent-soft);
    box-shadow: inset 0 0 0 1.5px var(--cw-accent);
    color: var(--cw-accent);
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    top: 16px;
}
#cw-page .cw-spotlist li.is-hot { background: var(--cw-accent-soft); }
#cw-page .cw-spotlist li.is-hot::before {
    background: var(--cw-accent);
    color: #06262A;
    box-shadow: 0 0 14px rgba(57, 199, 211, 0.6);
}

/* Give the badges horizontal breathing room */
#cw-page .cw-feature__visual .cw-spot { margin: 0 40px; }

@media (max-width: 900px) {
    /* On mobile the side badges get tight — pull them closer */
    #cw-page .cw-pin--left  .cw-pin__num { left: -26px; }
    #cw-page .cw-pin--left  .cw-pin__line { left: -26px; width: calc(var(--x) + 26px); }
    #cw-page .cw-pin--right .cw-pin__num { left: calc(100% + 26px); }
    #cw-page .cw-pin--right .cw-pin__line { width: calc(100% - var(--x) + 26px); }
    #cw-page .cw-feature__visual .cw-spot { margin: 0 32px; }
}


/* ============================================================
   PHASE 4.5 — Selectable list cards + Mode sub-tags
   ============================================================ */

/* Each list item reads as a card with a quiet border */
#cw-page .cw-spotlist li {
    border: 1px solid transparent;
    border-bottom: 1px solid var(--cw-border);
    padding: 14px 14px 14px 30px;
}
#cw-page .cw-spotlist li:last-child { border-bottom: 1px solid transparent; }

/* Hover = live preview (temporary) */
#cw-page .cw-spotlist li:hover { background: rgba(57, 199, 211, 0.05); }

/* Clicked = persistent selection (full bordered card) */
#cw-page .cw-spotlist li.is-active {
    background: var(--cw-accent-soft);
    border: 1px solid var(--cw-accent);
    border-radius: 10px;
    box-shadow: 0 0 22px rgba(57, 199, 211, 0.12);
}
#cw-page .cw-spotlist li.is-active::before {
    background: var(--cw-accent);
    color: #06262A;
    box-shadow: 0 0 14px rgba(57, 199, 211, 0.6);
}

/* Pin badge persistent-active mirror */
#cw-page .cw-pin.is-active .cw-pin__num {
    background: var(--cw-accent);
    color: #06262A;
    box-shadow: 0 0 22px rgba(57, 199, 211, 0.65);
}
#cw-page .cw-pin.is-active .cw-pin__line { height: 2px; }
#cw-page .cw-pin.is-active .cw-pin__tip  { box-shadow: 0 0 16px rgba(57, 199, 211, 1); }

/* Mode sub-tags (Time / Percentage / Reaches) */
#cw-page .cw-sub {
    font-style: normal;
    color: var(--cw-accent);
    font-weight: 600;
}

/* ============================================================
   PHASE 4.6 — Active-card breathing room
   ============================================================ */
#cw-page .cw-spotlist li         { padding-left: 38px; }
#cw-page .cw-spotlist li::before { left: 6px; }

/* ============================================================
   PHASE 4.7 — Plain notes under a numbered list
   ============================================================ */
#cw-page .cw-feature__copy .cw-spotlist + .cw-list {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--cw-border);
}

/* ============================================================
   PHASE 5 — Vertical video carousel (YouTube facade)
   ============================================================ */
#cw-page .cw-vcarousel-wrap { position: relative; margin-top: 36px; padding: 0 64px; }

#cw-page .cw-vcarousel {
    display: flex;
    gap: 22px;                     /* keep in sync with the "+ 22" in the JS */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 24px;
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE/Edge */
}
#cw-page .cw-vcarousel::-webkit-scrollbar { display: none; }

/* Vertical frame — reuses the phone look from the hero */
#cw-page .cw-vframe {
    position: relative;
    flex: 0 0 auto;
    width: clamp(210px, 70vw, 264px);
     aspect-ratio: 1080 / 2316;
    border: 1px solid var(--cw-border);
    border-radius: 28px;
    overflow: hidden;
    background: var(--cw-bg-2);
    scroll-snap-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
                0 0 60px rgba(57, 199, 211, 0.10);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
#cw-page .cw-vframe:hover {
    border-color: rgba(57, 199, 211, 0.35);
    transform: translateY(-3px);
}

/* Clickable poster (the facade) */
#cw-page .cw-vfacade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
#cw-page .cw-vposter {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cyan play button */
#cw-page .cw-vplay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--cw-accent);
    box-shadow: 0 0 28px rgba(57, 199, 211, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#cw-page .cw-vplay::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #06262A;
}
#cw-page .cw-vframe:hover .cw-vplay {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 40px rgba(57, 199, 211, 0.75);
}

/* Playing state — hide the facade, show the iframe */
#cw-page .cw-vframe.is-playing .cw-vfacade { display: none; }
#cw-page .cw-vframe iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Prev / next — glassmorphism pills like the sticky anchors */
#cw-page .cw-vnav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--cw-accent);
    background: rgba(11, 14, 17, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--cw-accent);
    box-shadow: 0 0 18px rgba(57, 199, 211, 0.25);
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
#cw-page .cw-vnav:hover {
    background: var(--cw-accent);
    color: #06262A;
    box-shadow: 0 0 28px rgba(57, 199, 211, 0.6);
}
#cw-page .cw-vnav--prev { left: 0; }
#cw-page .cw-vnav--next { right: 0; }

@media (max-width: 720px) {
    #cw-page .cw-vnav { display: none; }            /* mobile uses swipe */
    #cw-page .cw-vcarousel-wrap { padding: 0; }     /* reclaim full width */
}
@media (prefers-reduced-motion: reduce) {
    #cw-page .cw-vcarousel { scroll-behavior: auto; }
    #cw-page .cw-vframe:hover { transform: none; }
}

/* ============================================================
   PHASE 6 — Responsive / mobile overflow hardening
   ============================================================ */

/* 1. The page block can never exceed the screen */
#cw-page { max-width: 100%; min-width: 0; }

/* 2. Constrain the Avada wrappers too (clip, NOT hidden — see note) */
body.cw-landing #main,
body.cw-landing #content { max-width: 100% !important; overflow-x: clip; }

/* 3. Keep the carousel inside the viewport */
#cw-page .cw-vcarousel-wrap { max-width: 100%; }
#cw-page .cw-vcarousel      { max-width: 100%; min-width: 0; }

/* 4. No media element may push the page wide */
#cw-page img,
#cw-page iframe { max-width: 100%; }