/* ==========================================================================
   PRLinkUp — Home hero + showcase
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 104px 0 clamp(1.5rem, 4vh, 3rem);
    overflow: hidden;
    background: #F7F5FF;
}

.hero__wrap {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

/* ---------- Background ---------- */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(110px);
    will-change: transform;
}

.hero__glow--violet {
    top: -25%;
    right: -12%;
    width: 58vw;
    background: #B4A3FF;
    opacity: 0.55;
    animation: drift-1 28s var(--ease-soft) infinite;
}

.hero__glow--blue {
    top: 28%;
    left: -18%;
    width: 42vw;
    background: #A5CBFF;
    opacity: 0.45;
    animation: drift-2 32s var(--ease-soft) infinite;
}

.hero__glow--pink {
    bottom: -35%;
    right: 18%;
    width: 42vw;
    background: #F5C2FF;
    opacity: 0.5;
    animation: drift-3 30s var(--ease-soft) infinite;
}

/* Editorial column hairlines */
.hero__columns {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.hero__columns i {
    border-left: 1px solid rgba(74, 47, 217, 0.07);
}

.hero__columns i:last-child {
    border-right: 1px solid rgba(74, 47, 217, 0.07);
}

.hero .grain {
    opacity: 0.06;
}

/* ---------- Meta bar ---------- */
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(26, 29, 30, 0.1);
    font-size: 12px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-600);
}

.hero__index {
    color: var(--violet-500);
    font-weight: var(--fw-semi);
    letter-spacing: 0.04em;
}

.hero__meta-item--live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s var(--ease-soft) infinite;
}

.hero__clock {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

/* ---------- Headline ---------- */
/* Title and stamp share one grid cell; --tfs drives both so they stay in
   proportion. Height-capped so the hero fits short laptop screens. */
.hero__headline {
    --tfs: clamp(3rem, min(1rem + 7.4vw, 15.5vh), 9.25rem);
    position: relative;
    display: grid;
    flex: 1;
    align-content: center;
    padding-block: clamp(1.25rem, 4.5vh, 3.5rem);
}

.hero__title {
    grid-area: 1 / 1;
    width: 100%;
    font-size: var(--tfs);
    font-weight: var(--fw-black);
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: var(--ink-950);
}

.hero__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.18em;
}

.hero__line--indent {
    padding-left: 1.05em;
}

.hero__line--end {
    justify-content: flex-end;
    padding-right: 0.15em;
}

.hero__mask {
    display: inline-block;
    overflow: hidden;
    margin: -0.04em -0.06em -0.12em;
    padding: 0.04em 0.06em 0.12em;
}

.hero__word {
    display: inline-block;
    white-space: nowrap;
}

.char {
    display: inline-block;
}

.hero__word--outline {
    padding-right: 0.06em;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: max(1.5px, 0.016em) var(--ink-950);
}

/* ---------- Media pills between the words ---------- */
.hero__pill {
    --pw: 2.15;
    position: relative;
    flex-shrink: 0;
    width: calc(var(--pw) * 1em);
    height: 0.8em;
    border-radius: var(--r-pill);
    overflow: hidden;
    translate: 0 0.03em;
}

.hero__pill--niche {
    --pw: 2.7;
}

.hero__pill-in {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: calc(var(--pw) * 1em);
    border-radius: inherit;
    overflow: hidden;
}

/* Liquid pill */
.hero__pill--liquid .hero__pill-in {
    background: linear-gradient(120deg, #4A2FD9 0%, #7A5DFF 55%, #B06AF8 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -0.12em 0.3em rgba(30, 10, 100, 0.4);
}

.pill-liquid {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    box-shadow: inset 0.06em 0.08em 0.15em rgba(255, 255, 255, 0.55), inset -0.06em -0.08em 0.2em rgba(40, 10, 120, 0.4);
    animation: morph 10s ease-in-out infinite, wander 8s ease-in-out infinite alternate;
}

.pill-liquid--a {
    top: -0.32em;
    left: 0.75em;
    width: 0.95em;
    background: radial-gradient(circle at 30% 30%, #FDE7FF 0%, #E879F9 45%, #B06AF8 100%);
}

.pill-liquid--b {
    right: 0.05em;
    bottom: -0.5em;
    width: 1.15em;
    background: radial-gradient(circle at 30% 30%, #DBEAFE 0%, #60A5FA 45%, #7A5DFF 100%);
    animation-duration: 13s, 10s;
    animation-delay: -4s, -3s;
}

@keyframes wander {
    to { translate: 0.35em 0.08em; }
}

.pill-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-left: 1.15em;
    padding: 0.45em 0.95em;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 0.13em;
    font-weight: var(--fw-semi);
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.pill-chip__dot {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #34E89E;
    box-shadow: 0 0 0 0.3em rgba(52, 232, 158, 0.25);
}

/* Niche pill */
.hero__pill--niche .hero__pill-in {
    gap: 0.14em;
    padding-left: 0.08em;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(74, 47, 217, 0.12), 0 0.08em 0.3em rgba(74, 47, 217, 0.12);
}

.pill-avatars {
    display: flex;
}

.pill-avatar {
    display: grid;
    place-items: center;
    width: 3.9em;
    height: 3.9em;
    border: 0.22em solid var(--white);
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    font-size: 0.15em;
    font-weight: var(--fw-semi);
    letter-spacing: 0;
}

.pill-avatar + .pill-avatar {
    margin-left: -1.2em;
}

.pill-ticker {
    position: relative;
    display: block;
    height: 1.3em;
    flex: 1;
    margin: 0 0.6em 0 0.2em;
    overflow: hidden;
    text-align: center;
    font-size: 0.2em;
    font-weight: var(--fw-semi);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink-950);
}

.pill-ticker span {
    display: block;
}

/* Hand-drawn arrow */
/* Drops below the line so the arrowhead points at "creators." */
.hero__scribble {
    align-self: flex-end;
    width: 1.25em;
    height: 0.78em;
    margin-bottom: -0.45em;
    overflow: visible;
}

.hero__scribble path {
    fill: none;
    stroke: var(--violet-500);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Rotating stamp */
/* Sits in the last line band, aligned under the indented pill */
.hero__stamp {
    position: relative;
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    display: grid;
    place-items: center;
    width: max(88px, calc(var(--tfs) * 0.92));
    margin-left: calc(var(--tfs) * 1.05);
    aspect-ratio: 1;
    color: var(--ink-950);
}

.hero__stamp:hover {
    color: var(--ink-950);
}

.hero__stamp-ring {
    position: absolute;
    inset: 0;
    animation: spin 18s linear infinite;
}

.hero__stamp-ring text {
    font-size: 13px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    fill: currentColor;
}

.hero__stamp-core {
    display: grid;
    place-items: center;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    font-size: clamp(20px, 1.8vw, 26px);
    box-shadow: var(--glow-violet);
    transition: scale 0.6s var(--ease-out);
}

.hero__stamp:hover .hero__stamp-core {
    scale: 1.12;
}

.hero__stamp:hover .hero__stamp-core i {
    animation: nudge-down 0.9s var(--ease-out) infinite;
}

@keyframes nudge-down {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 4px; }
}

/* ---------- Bottom row ---------- */
.hero__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--sp-8);
    padding-top: 22px;
    border-top: 1px solid rgba(26, 29, 30, 0.1);
}

.hero__lead {
    max-width: 440px;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink-600);
}

.hero__lead-mark {
    margin-right: 4px;
    color: var(--violet-500);
    font-weight: var(--fw-bold);
}

.hero__facts {
    display: grid;
    gap: 6px;
    list-style: none;
    padding: 0;
    font-size: 14px;
    font-weight: var(--fw-semi);
    color: var(--ink-900);
}

.hero__facts span {
    display: inline-block;
    width: 32px;
    font-size: 11px;
    color: var(--violet-500);
}

.hero__cta {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* ---------- Load-in hidden states (GSAP reveals them) ---------- */
@media (prefers-reduced-motion: no-preference) {
    html.js:not(.no-motion):not(.hero-done) .hero [data-word] .char {
        transform: translateY(115%);
    }

    html.js:not(.no-motion):not(.hero-done) .hero [data-pill] {
        width: 0;
    }

    html.js:not(.no-motion):not(.hero-done) .hero [data-hero-fade],
    html.js:not(.no-motion):not(.hero-done) .hero__stamp,
    html.js:not(.no-motion):not(.hero-done) .hero__scribble {
        opacity: 0;
    }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 1024px) {
    .hero__bottom {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .hero__facts {
        display: none;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 0;
        padding-top: 92px;
    }

    .hero__meta {
        gap: 8px 18px;
        font-size: 11px;
    }

    .hero__clock,
    .hero__meta-item:not(.hero__meta-item--live) {
        display: none;
    }

    .hero__headline {
        --tfs: clamp(2.6rem, 0.6rem + 10vw, 4rem);
        padding-block: 2rem 1.5rem;
    }

    .hero__line--indent {
        padding-left: 0;
    }

    .hero__line--end {
        justify-content: flex-start;
    }

    .hero__pill {
        --pw: 1.6;
    }

    .hero__pill--niche {
        --pw: 1.45;
    }

    .pill-chip,
    .pill-ticker,
    .hero__scribble {
        display: none;
    }

    .hero__stamp {
        justify-self: end;
        width: 88px;
        margin-left: 0;
    }

    .hero__bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-6);
    }

    .hero__cta {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Showcase
   ========================================================================== */
.showcase {
    position: relative;
    background: #F7F5FF;
}

.showcase__frame {
    position: relative;
    height: 100svh;
    overflow: hidden;
    color: var(--white);
    clip-path: inset(0 clamp(1rem, 3vw, 2.5rem) 0 clamp(1rem, 3vw, 2.5rem) round 40px);
}

.showcase__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(70% 60% at 50% 45%, rgba(122, 93, 255, 0.55) 0%, transparent 70%),
        linear-gradient(160deg, #150F42 0%, #2A1A8C 45%, #4A2FD9 100%);
}

.showcase__mesh {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 90deg at 50% 50%, #2A1A8C, #6A4CF5, #B06AF8, #E879F9 40%, #6A4CF5, #60A5FA 72%, #2A1A8C);
    filter: blur(90px);
    opacity: 0.32;
    animation: spin 50s linear infinite;
}

.showcase__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
}

.showcase__glow--a {
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #E879F9;
    opacity: 0.22;
}

.showcase__glow--b {
    right: -15%;
    bottom: -30%;
    width: 55vw;
    height: 55vw;
    background: #60A5FA;
    opacity: 0.2;
}

.showcase__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.3px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 10%, transparent 75%);
}

.showcase .grain {
    opacity: 0.08;
}

/* Giant outlined marquee behind the phone */
.showcase__marquee {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;
    margin-top: -0.5em;
    white-space: nowrap;
    font-size: clamp(6rem, 3rem + 13vw, 17rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.13);
    pointer-events: none;
}

.showcase__marquee i {
    font-style: normal;
    font-size: 0.45em;
    vertical-align: middle;
    color: rgba(232, 121, 249, 0.35);
    -webkit-text-stroke: 0;
}

/* Stage sits between the header band and the caption band, so cards
   can never collide with the caption or progress bar */
.showcase__stage {
    --ph: min(600px, calc(100svh - 236px));
    position: absolute;
    inset: 92px 0 108px;
}

.showcase__links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.showcase__links path {
    fill: none;
    stroke: url(#link-grad);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.showcase__links circle {
    fill: var(--white);
}

/* ---------- Phone ---------- */
.phone-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    translate: -50% -50%;
}

.phone {
    position: relative;
    width: calc(var(--ph) * 0.485);
    height: var(--ph);
    padding: calc(var(--ph) * 0.016);
    border-radius: calc(var(--ph) * 0.085);
    background: #0E0C1F;
    box-shadow:
        0 0 0 calc(var(--ph) * 0.005) #39336B,
        0 70px 120px -30px rgba(0, 0, 0, 0.65),
        0 0 80px rgba(176, 106, 248, 0.25);
}

.phone__island {
    position: absolute;
    top: calc(var(--ph) * 0.03);
    left: 50%;
    z-index: 3;
    width: 30%;
    height: calc(var(--ph) * 0.042);
    border-radius: var(--r-pill);
    background: #000;
    translate: -50% 0;
}

/* Real app structure: status · fixed header · scrolling feed · docked tabs */
.phone__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: calc(var(--ph) * 0.07);
    background: var(--gray-50);
    color: var(--ink-900);
    font-size: calc(var(--ph) * 0.0205);
    line-height: 1.35;
}

.phone__status {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 4em;
    padding: 0.3em 9% 0;
    font-size: 1.05em;
    font-weight: var(--fw-semi);
}

.phone__status-icons {
    display: flex;
    gap: 0.3em;
}

.phone__head {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 0.8em;
    padding: 0.3em 5% 0.7em;
}

.ps-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ps-top small {
    display: block;
    font-size: 0.85em;
    color: var(--ink-600);
}

.ps-top strong {
    display: block;
    font-size: 1.45em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.ps-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.6em;
    height: 2.6em;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-xs);
    font-size: 1.15em;
}

.ps-bell i {
    position: absolute;
    top: 0.5em;
    right: 0.6em;
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background: var(--error);
}

.ps-search {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.5em 0.5em 0.9em;
    border: 1px solid var(--color-border);
    border-radius: 1em;
    background: var(--white);
    color: var(--ink-400);
}

.ps-search span {
    display: grid;
    place-items: center;
    width: 2em;
    height: 2em;
    margin-left: auto;
    border-radius: 0.7em;
    background: var(--violet-100);
    color: var(--violet-500);
}

.ps-chips {
    display: flex;
    gap: 0.4em;
    overflow: hidden;
}

.ps-chips span {
    flex-shrink: 0;
    padding: 0.4em 0.95em;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: 0.9em;
    color: var(--ink-600);
}

.ps-chips .is-on {
    border-color: transparent;
    background: var(--grad-primary);
    color: var(--white);
}

/* Only the feed scrolls; edges fade under the header and tab bar */
.phone__feed {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 0 5%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 0.9em, #000 calc(100% - 1.2em), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 0.9em, #000 calc(100% - 1.2em), transparent 100%);
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7em;
    padding: 0.5em 0 1.2em;
}

.ps-tile {
    padding: 0.45em 0.45em 0.8em;
    border-radius: 1.1em;
    background: var(--white);
    box-shadow: var(--shadow-xs);
    text-align: center;
}

.ps-tile__cover {
    display: block;
    height: 4.6em;
    border-radius: 0.8em;
    background: var(--g);
    opacity: 0.85;
}

.ps-tile__avatar {
    position: relative; /* paint above the semi-transparent cover */
    display: grid;
    place-items: center;
    width: 3.6em;
    height: 3.6em;
    margin: -1.8em auto 0.35em;
    border: 0.25em solid var(--white);
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    font-size: 0.8em;
    font-weight: var(--fw-semi);
}

.ps-tile strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    font-size: 0.95em;
    font-weight: var(--fw-semi);
}

.ps-tile strong i {
    color: var(--violet-500);
}

.ps-tile small {
    display: block;
    font-size: 0.78em;
    color: var(--ink-600);
}

.phone__tabs {
    display: flex;
    flex: none;
    justify-content: space-around;
    padding: 0.7em 4% 2.2em;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
}

.phone__tabs span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    font-size: 1.45em;
    color: var(--ink-400);
}

.phone__tabs small {
    font-size: 0.42em;
    font-weight: var(--fw-medium);
}

.phone__tabs .is-on {
    color: var(--violet-500);
}

.phone__home {
    position: absolute;
    bottom: 0.7em;
    left: 50%;
    width: 34%;
    height: 0.3em;
    border-radius: var(--r-pill);
    background: var(--ink-900);
    translate: -50% 0;
}

/* ---------- Floating cards ---------- */
.scard {
    position: absolute;
    z-index: 3;
}

/* Denser glass on the dark stage so small text stays readable */
.showcase .glass:not(.glass--dark) {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.68) 100%);
}

.showcase .glass--solid {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.scard__in {
    --depth: 14;
    padding: 16px;
    border-radius: 22px;
    color: var(--ink-900);
    font-size: 13px;
    line-height: 1.4;
    translate: calc(var(--mx, 0) * var(--depth) * 1px) calc(var(--my, 0) * var(--depth) * 1px);
    transition: translate 1.2s var(--ease-out);
    animation: float var(--fdur, 7s) ease-in-out var(--fd, 0s) infinite;
}

.scard strong {
    font-weight: var(--fw-semi);
}

.scard small {
    display: block;
    font-size: 11.5px;
    color: var(--ink-600);
}

/* Two cards per side, stickers hug the phone edges in the gaps between them */
.scard--campaign { top: 1%; left: 7%; width: 340px; }
.scard--chat     { bottom: 1%; left: 12%; width: 292px; }
.scard--creator  { top: 4%; right: 7%; width: 288px; }
.scard--payout   { bottom: 4%; right: 10%; width: 264px; }
.scard--match    { top: 46%; right: calc(50% + var(--ph) * 0.2425 - 36px); margin-top: -24px; z-index: 4; }
.scard--verified { top: 58%; left: calc(50% + var(--ph) * 0.2425 - 36px); margin-top: -27px; z-index: 4; }

.scard--campaign .scard__in { --depth: 18; --fdur: 9s; padding: 18px; border-radius: 24px; }
.scard--chat .scard__in     { --depth: 24; --fdur: 7.5s; --fd: -2s; }
.scard--creator .scard__in  { --depth: 22; --fdur: 8s; --fd: -3s; }
.scard--payout .scard__in   { --depth: 28; --fdur: 6.5s; --fd: -4s; }
.scard--match .scard__in    { --depth: 34; --fdur: 6s; --fd: -1s; }
.scard--verified .scard__in { --depth: 30; --fdur: 7s; --fd: -5s; }

/* Match pill */
.scard--match .scard__in {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    border-radius: var(--r-pill);
    color: var(--white);
    font-size: 14px;
    font-weight: var(--fw-semi);
    white-space: nowrap;
}

.hc-match__avatars {
    display: flex;
}

.hc-match__avatars .avatar {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

.hc-match__avatars .avatar + .avatar {
    margin-left: -10px;
}

.hc-match__spark {
    color: #F0ABFC;
    font-size: 17px;
}

/* Verified chip */
.scard--verified .scard__in {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 18px;
    white-space: nowrap;
}

.verified-chip__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 20px;
}

/* Chat */
.chat__head {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(122, 93, 255, 0.14);
}

.chat__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--fw-semi);
    font-size: 14px;
}

.chat__title i {
    color: var(--violet-500);
    font-size: 17px;
}

.chat__msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.chat__msg p {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 14px 14px 14px 4px;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.chat__msg .avatar {
    width: 26px;
    height: 26px;
    font-size: 12px;
}

.chat__msg--out {
    justify-content: flex-end;
}

.chat__msg--out p {
    border-radius: 14px 14px 4px 14px;
    background: var(--grad-primary);
    color: var(--white);
}

.chat__typing {
    display: inline-flex;
    gap: 4px;
    margin: 10px 0 0 34px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.chat__typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-400);
    animation: typing 1.2s ease-in-out infinite;
}

.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { translate: 0 0; opacity: 0.5; }
    30%           { translate: 0 -4px; opacity: 1; }
}

/* ---------- Card internals ---------- */
.story-ring {
    display: inline-grid;
    flex-shrink: 0;
    padding: 2.5px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #FDB022, #E879F9, #7A5DFF, #60A5FA, #FDB022);
}

.story-ring .avatar {
    border: 2.5px solid var(--white);
}

.hc-creator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-creator__name {
    min-width: 0;
}

.hc-creator__name strong {
    display: block;
    font-size: 14.5px;
    white-space: nowrap;
}

.hc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
    padding: 10px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    text-align: center;
}

.hc-stats div + div {
    border-left: 1px solid rgba(122, 93, 255, 0.12);
}

.hc-stats strong {
    display: block;
    font-size: 14px;
}

.hc-stats small {
    font-size: 10.5px;
}

.hc-star {
    color: var(--warning);
    font-size: 11px;
}

.hc-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.hc-applied {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 8px;
    border-radius: var(--r-pill);
    background: var(--grad-primary);
    color: var(--white);
    font-size: 12px;
    font-weight: var(--fw-semi);
    box-shadow: 0 6px 14px rgba(122, 93, 255, 0.35);
}

.hc-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 21px;
    box-shadow: 0 8px 18px rgba(122, 93, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hc-head__text {
    flex: 1;
    min-width: 0;
}

.hc-head__text strong {
    display: block;
    font-size: 15px;
}

.hc-head__text strong,
.hc-head__text small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hc-deliverables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 16px;
}

.hc-deliverables span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(122, 93, 255, 0.07);
    font-size: 12px;
    font-weight: var(--fw-medium);
    white-space: nowrap;
}

.hc-deliverables i {
    color: var(--color-primary);
    font-size: 15px;
}

.hc-progress {
    margin-top: 16px;
}

.hc-progress__top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-600);
}

.hc-progress__top strong {
    color: var(--ink-900);
}

.hc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(122, 93, 255, 0.2);
}

.hc-foot .avatar-stack .avatar {
    width: 30px;
    height: 30px;
}

.hc-foot .avatar--hero {
    font-size: 9px;
}

.hc-budget {
    text-align: right;
}

.hc-budget strong {
    display: block;
    font-size: 15px;
    font-weight: var(--fw-bold);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hc-payout__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-payout__top small {
    flex: 1;
    font-size: 12px;
}

.hc-payout__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 17px;
}

.hc-amount {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    font-weight: var(--fw-bold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.hc-payout__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 4px;
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.mini-bars i {
    width: 6px;
    height: var(--h);
    border-radius: 3px;
    background: linear-gradient(180deg, #B06AF8, #7A5DFF);
}

.mini-bars i:last-child {
    background: linear-gradient(180deg, #34E89E, #00D26A);
}

/* ---------- Caption + progress ---------- */
.showcase__caption {
    position: absolute;
    bottom: 28px;
    left: clamp(1.5rem, 4vw, 3.5rem);
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: 14px;
    max-width: 340px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.showcase__caption strong {
    display: block;
    margin-bottom: 2px;
    font-size: 20px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--white);
}

.showcase__index {
    font-size: 12px;
    font-weight: var(--fw-semi);
    color: var(--lavender);
}

.showcase__progress {
    position: absolute;
    right: clamp(1.5rem, 4vw, 3.5rem);
    bottom: 40px;
    z-index: 5;
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.showcase__progress span {
    display: block;
    height: 100%;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
}

/* Shorter screens: scale the cards down a touch */
@media (min-width: 1024px) and (max-height: 820px) {
    .scard { zoom: 0.86; }
}

@media (min-width: 1024px) and (max-height: 700px) {
    .scard { zoom: 0.74; }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .scard--campaign { left: 4%; }
    .scard--chat     { left: 6%; }
    .scard--creator  { right: 4%; }
    .scard--payout   { right: 6%; }
}

/* ---------- Card track + pager ----------
   Desktop: the track adds no box, cards keep their absolute positions. */
.showcase__cards {
    display: contents;
}

.showcase__pager {
    display: none;
}

/* ---------- Tablet & phone ----------
   No pinning. The phone carries the two stickers on its corners, then the
   four cards sit in a swipeable row that snaps card by card. */
@media (max-width: 1023px) {
    .showcase {
        padding: 0 clamp(0.75rem, 3vw, 1.5rem) var(--sp-12);
    }

    .showcase__frame {
        height: auto;
        padding: 56px 0 116px;
        border-radius: 32px;
        clip-path: none;
    }

    .showcase__stage {
        --ph: min(520px, 112vw);
        --edge: max(14px, calc(50% - var(--ph) * 0.2425 - 40px)); /* sticker offset */
        --track-edge: max(14px, calc(50% - 347px)); /* two 340px cards centred on tablets */
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .showcase__links,
    .showcase__progress {
        display: none;
    }

    .showcase__marquee {
        top: 260px;
    }

    .phone-anchor {
        position: relative;
        top: auto;
        left: auto;
        order: 1;
        translate: none;
    }

    .scard {
        position: relative;
        inset: auto;
    }

    /* Stickers tuck over the phone corners (bezel only, never the screen UI) */
    .scard--match {
        order: 0;
        align-self: flex-start;
        margin: 0 0 -14px var(--edge);
    }

    .scard--verified {
        order: 2;
        align-self: flex-end;
        margin: -16px var(--edge) 0 0;
    }

    .scard--match .scard__in,
    .scard--verified .scard__in {
        animation: none;
    }

    .showcase__cards {
        order: 3;
        display: flex;
        gap: 14px;
        width: 100%;
        margin-top: 28px;
        padding: 6px var(--track-edge) 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--track-edge);
        scrollbar-width: none;
    }

    .showcase__cards::-webkit-scrollbar {
        display: none;
    }

    .showcase__cards .scard {
        flex: 0 0 min(340px, calc(100% - 2 * var(--track-edge) - 28px));
        scroll-snap-align: start;
    }

    .showcase__cards .scard__in {
        height: 100%;
        animation: none;
    }

    .showcase__pager {
        order: 4;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .showcase__pager button {
        position: relative;
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: var(--r-pill);
        background: rgba(255, 255, 255, 0.35);
        transition: width 0.4s var(--ease-out), background-color 0.3s;
    }

    /* Bigger tap target than the visible dot */
    .showcase__pager button::before {
        content: "";
        position: absolute;
        inset: -12px -6px;
    }

    .showcase__pager button.is-active {
        width: 26px;
        background: var(--white);
    }

    .showcase__caption {
        right: 20px;
        bottom: 34px;
        left: 20px;
    }
}
