/* Hero and sourcing section from the live RACPORT landing page. */
.live-intro {
    --wrap: 1200px;
    --light: #fcfbfb;
    --cream: #f6f3f4;
    --ink-l: #18151a;
    --muted-l: #62595e;
    --line-l: #ece6e8;
    --brand-tint: #ffe6ed;
    --sec-y: clamp(84px, 10vw, 140px);

    .hero { position: relative; padding: clamp(112px, 11vw, 140px) 0 clamp(64px, 8vw, 104px); overflow: hidden; isolation: isolate; }
    .hero::before {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background:
            radial-gradient(60% 50% at 50% 0%, rgba(255, 0, 67, .16), transparent 70%),
            linear-gradient(var(--line-l) 1px, transparent 1px) 0 0 / 56px 56px,
            linear-gradient(90deg, var(--line-l) 1px, transparent 1px) 0 0 / 56px 56px;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 75%);
        mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 75%);
    }
    .hero-head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line-l); box-shadow: 0 1px 2px rgba(24, 21, 26, .06); font-size: .84rem; font-weight: 600; color: var(--ink-l); }
    .badge img { width: 22px; height: 22px; border-radius: 6px; }
    .hero h1 { margin-top: 26px; max-width: 15ch; font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.6rem); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; }
    .hero h1 span { display: inline; }
    .accent { background: linear-gradient(100deg, var(--brand-dk), var(--brand) 55%, #ff2d63); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .hero .lede { max-width: 640px; margin-top: 22px; }
    .lede { font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem); line-height: 1.65; color: var(--muted-l); }
    .lede a { color: var(--brand); font-weight: 600; }
    .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
    .micro { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin-top: 14px; font-size: .84rem; color: var(--muted-l); }
    .demo { display: inline; }
    .demo button { border: 0; background: none; color: var(--brand-dk); font-weight: 600; cursor: pointer; text-decoration: underline; }

    /* trust row: the sales platforms sellers already use */
    .trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 26px; padding: 10px 12px 10px 18px; border-radius: var(--pill); background: rgba(255, 255, 255, .75); border: 1px solid var(--line-l); box-shadow: 0 1px 2px rgba(24, 21, 26, .05); }
    .trust > span { font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-l); }
    .trust ul { display: flex; gap: 8px; }
    .trust img { width: 26px; height: 26px; border-radius: 7px; transition: transform .2s var(--ease); }
    .trust li:hover img { transform: translateY(-2px) scale(1.08); }

    /* floating sample cards around the headline */
    .float { position: absolute; z-index: 2; display: none; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line-l); box-shadow: 0 20px 44px -18px rgba(24, 21, 26, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: left; animation: live-hero-bob 7s ease-in-out infinite; }
    .float img:not(.float-logo) { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
    .float b { display: block; font-size: .88rem; font-weight: 600; line-height: 1.25; color: var(--ink-l); }
    .float small { display: block; font-size: .76rem; color: var(--muted-l); }
    .float em { font-style: normal; font-size: .68rem; font-weight: 600; color: #1d7a5c; background: #dcf7ec; padding: 2px 8px; border-radius: var(--pill); }
    .float-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #dcf7ec; color: #1d7a5c; }
    .float-ico.is-brand { background: var(--brand-tint); color: var(--brand-dk); }
    .float-logo { width: 22px; height: 22px; border-radius: 6px; margin-left: 4px; }
    .float-a { left: 0; top: 96px; transform: rotate(-3deg); }
    .float-b { right: 0; top: 40px; transform: rotate(2.5deg); animation-delay: -2s; }
    .float-c { left: 3%; top: 330px; transform: rotate(2deg); animation-delay: -4s; }
    .float-d { right: 4%; top: 300px; transform: rotate(-2deg); animation-delay: -5.5s; }
    @media (min-width: 1240px) { .float { display: flex; } }
    /* three-stage flow */
    .flow {
        position: relative; margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 14px;
        padding: 14px; border-radius: 30px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-l); box-shadow: var(--shadow-l);
    }
    .flow figcaption { position: absolute; top: -12px; right: 24px; padding: 3px 10px; border-radius: var(--pill); background: var(--ink-l); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
    .flow-col { position: relative; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-l); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
    .flow-col:not(:last-of-type)::after { content: ""; position: absolute; z-index: 2; top: 50%; right: -15px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line-l); transform: translateY(-50%); }
    .flow-step { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-l); }
    .flow-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dk); font-size: .72rem; }
    .flow-title { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
    .flow-mid { background: var(--dark); border-color: transparent; color: var(--ink-d); }
    .flow-mid .flow-step { color: var(--muted-d); }
    .flow-mid .flow-step b { background: rgba(255, 0, 67, .25); color: var(--brand-lt); }
    .flow-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #0d0b0f; }
    .flow-photo img { width: 100%; height: 100%; object-fit: cover; }
    .checks { display: grid; gap: 8px; }
    .checks li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d); font-size: .88rem; font-weight: 500; }
    .checks svg { color: var(--mint-lt); flex: none; }
    .offer-list, .store-list { display: grid; gap: 8px; }
    .offer-list li, .store-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-l); background: var(--light); font-size: .9rem; font-weight: 600; min-width: 0; }
    .offer-list li > span:nth-child(2), .store-list li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .offer-list small, .store-list small { display: block; font-weight: 500; font-size: .76rem; color: var(--muted-l); }
    .offer-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
    .offer-list .is-muted { opacity: .55; }
    .offer-list .is-muted .dot { background: var(--dim-l); }
    .offer-list em { font-style: normal; font-size: .7rem; font-weight: 600; color: #1d7a5c; background: #dcf7ec; padding: 2px 8px; border-radius: var(--pill); }
    .store-list img:not(.thumb) { width: 22px; height: 22px; border-radius: 5px; flex: none; }

    /* product visual (a drawn vessel, no photo needed) */
    /* product photos (public/img/products, see LICENSE.txt there) */
    .thumb { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--cream); }

    /* proof + logos */
    /* banner and stats share one shell so the image reads as the head of the same card */
    .proof-group { margin-top: 40px; border-radius: 26px; background: #fff; border: 1px solid var(--line-l); box-shadow: var(--shadow-l); overflow: hidden; }
    .proof-banner { margin: 0; overflow: hidden; aspect-ratio: 16 / 6; background: var(--cream); border-bottom: 1px solid var(--line-l); }
    .proof-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
    .proof-group .proof { margin-top: 0; border: 0; border-radius: 0; box-shadow: none; }
    @media (max-width: 700px) { .proof-banner { aspect-ratio: 4 / 3; } }
    /* proof: four connected stats in one card */
    .proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-radius: 26px; background: #fff; border: 1px solid var(--line-l); box-shadow: var(--shadow-l); overflow: hidden; }
    .stat { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; min-width: 0; }
    .stat + .stat { border-left: 1px solid var(--line-l); }
    .stat-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
    .stat-num > span, .stat-num { color: var(--ink-l); }
    .stat-num small { font-size: .86rem; font-weight: 600; letter-spacing: 0; color: var(--brand-dk); }
    .stat-label { font-size: .9rem; line-height: 1.5; color: var(--muted-l); }
    .flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
    .flags img { width: 24px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(24, 21, 26, .1); }
    .stat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
    .stat-tags span { padding: 3px 9px; border-radius: var(--pill); background: var(--brand-tint); color: var(--brand-dk); font-size: .74rem; font-weight: 600; }
    .live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--pill); background: #dcf7ec; color: #1d7a5c !important; font-size: .72rem !important; }
    .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(47, 191, 143, .6); animation: live-stock-pulse 2s ease-out infinite; }
    .pipeline { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 16px; margin-top: auto; padding-top: 6px; counter-reset: step; }
    .pipeline li { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; white-space: nowrap; font-weight: 600; color: var(--ink-l); }
    .pipeline li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-dk); color: #fff; font-size: .66rem; }
    @media (max-width: 1100px) {
        .proof { grid-template-columns: 1fr 1fr; }
        .stat:nth-child(3) { border-left: 0; }
        .stat:nth-child(n+3) { border-top: 1px solid var(--line-l); }
    }
    @media (max-width: 560px) {
        .stat { padding: 18px 16px; }
        .stat-label { font-size: .84rem; }
        .pipeline { gap: 8px 8px; }
        .pipeline li { font-size: .74rem; gap: 4px; }
    }
    @media (prefers-reduced-motion: reduce) { .live i { animation: none; } }

    .eyebrow { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: var(--pill); font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; background: #fff; border: 1px solid var(--line-l); color: var(--muted-l); }
    .eyebrow b { display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--brand-tint); color: var(--brand-dk); font-size: .72rem; letter-spacing: 0; }
    .card { background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-md); box-shadow: var(--shadow-l); }

    .numbered { display: grid; gap: 0; margin-top: 36px; width: 100%; border-top: 1px solid var(--line-l); }
    .numbered li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-l); }
    .numbered b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fdeee4; color: #b4581b; font-size: .8rem; flex: none; }
    .numbered h3 { font-size: 1rem; font-weight: 600; }
    .numbered p { margin-top: 2px; font-size: .93rem; color: var(--muted-l); }
    .scatter { position: relative; min-height: 540px; }
    .scatter .card { position: absolute; width: min(330px, 82%); padding: 20px; }
    .scatter-a { top: 0; left: 0; transform: rotate(-2.5deg); }
    .scatter-b { top: 130px; right: 0; transform: rotate(2deg); z-index: 1; }
    .scatter-c { bottom: 0; left: 6%; transform: rotate(-1deg); z-index: 2; }
    .card-kicker { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-l); }
    .quote { margin-top: 10px; font-size: .97rem; line-height: 1.5; }
    .card-foot { margin-top: 12px; font-size: .8rem; color: var(--dim-l); }
    .scatter table { margin-top: 10px; font-size: .9rem; }
    .scatter th { text-align: left; font-weight: 500; color: var(--muted-l); padding: 6px 0; border-bottom: 1px dashed var(--line-l); }
    .scatter td { text-align: right; font-weight: 600; padding: 6px 0; border-bottom: 1px dashed var(--line-l); font-variant-numeric: tabular-nums; }
    .card-flag { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: var(--pill); background: #fff0f4; color: var(--brand-dk); font-size: .76rem; font-weight: 600; }
    .card-flag.is-warn { background: #fdeee4; color: #a44f16; }
    .big-num { margin-top: 8px; font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
    .big-num small { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted-l); }

    .btn { border-radius: var(--pill); }
    .btn:not(.btn-ghost) {
        background: linear-gradient(180deg, var(--brand), var(--brand-dk));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px -10px rgba(214, 0, 58, .9);
    }
    .btn-lg { padding-inline: 28px; }
    .eyebrow::before { content: none; }
    .offer-list .is-muted { opacity: 1; }
    @media (max-width: 380px) {
        .pipeline { grid-template-columns: 1fr; }
        .offer-list li { flex-wrap: wrap; }
    }
    @media (prefers-reduced-motion: reduce) {
        .float, .live i { animation: none; }
    }

    @media (max-width: 1100px) {
        .flow { grid-template-columns: 1fr 1fr; }
        .flow-mid { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
        .flow-mid .flow-step { grid-column: 1 / -1; }
        .flow-col:not(:last-of-type)::after { display: none; }
    }

    @media (max-width: 860px) {
        .scatter { min-height: 0; display: grid; gap: 14px; }
        .scatter .card { position: relative; inset: auto; width: 100%; transform: none; }
    }

    @media (max-width: 560px) {
        .flow { grid-template-columns: 1fr; padding: 10px; border-radius: 24px; }
        .flow-mid { grid-template-columns: 1fr; }
        .flow-col { padding: 16px; }
        .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
        .hero .cta-row .btn { width: 100%; }
        .micro > span[aria-hidden] { display: none; }
        .trust { border-radius: 20px; padding: 12px 14px; }
    }
}

@keyframes live-hero-bob { 50% { translate: 0 -10px; } }

@keyframes live-stock-pulse { 70% { box-shadow: 0 0 0 7px rgba(47, 191, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 143, 0); } }
.motion-paused .live-intro :is(.float, .live i) { animation-play-state: paused; }
