/* /get — the landing page behind ads and "get the app" links. Loaded after site.css.
 *
 * Built as full-bleed colour bands (butter hero, ink ticker, the Play frames' own colours, the ink
 * poster, a mint close), sized by the design system's marketing tokens (tokens/marketing.css: site
 * gutter, fluid hero and section type). Everything is still the system: 3px ink outlines, hard
 * no-blur shadows, glass only on the bar, no gradients but the glass sheen.
 *
 * Motion follows the system too: things POP in on a spatial spring and stat figures count up. Nothing
 * slow-fades and nothing parallaxes. With reduced motion, or without JavaScript, everything is simply
 * there. */

.get-page {
    --site-gutter: clamp(20px, 4.5vw, 72px);
    --site-section: clamp(56px, 8vw, 128px);
    --fs-site-hero: clamp(52px, 8.6vw, 156px);
    --fs-site-h2: clamp(30px, 3.4vw, 52px);
    --fs-site-lede: clamp(18px, 1.55vw, 24px);
    --ink-fixed: #141013;
    --mint: #22d97f;
    --butter: #ffd429;
    --spring-spatial: linear(0, .09 4%, .35 10%, .72 18%, .98 26%, 1.12 33%, 1.15 38%, 1.12 44%, 1.03 55%, .99 64%, .99 74%, 1);
    padding: 0;
    overflow-x: clip;
}

.get-page main {
    max-width: none;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: var(--site-gutter);
}

.skip {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: 60;
    padding: 0.5rem 1rem;
    border: 3px solid var(--line);
    border-radius: 14px;
    background: var(--butter);
    color: var(--ink-fixed);
    font-weight: 700;
}

.skip:focus {
    left: 0.75rem;
}

/* ---- Bar: glass chrome, pinned ---- */

.bar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px var(--site-gutter) 0;
}

.bar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: calc(1280px - 2 * var(--site-gutter));
    margin: 0 auto;
    padding: 8px 8px 8px 10px;
    border: 3px solid var(--line);
    border-radius: 20px;
    /* Liquid Glass: blurred, saturated, white 58%, the sheen, a bright inner top rim. */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%), rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), 3px 4px 0 var(--shadow);
}

.bar .brand {
    border-width: 3px;
}

.bar .btn {
    min-height: 44px;
    padding: 0.35rem 1.1rem;
    border-radius: 22px;
    box-shadow: 3px 4px 0 var(--shadow);
}

/* Hidden until the hero's own buttons have scrolled away; it pops in rather than fading. */
.bar-cta {
    visibility: hidden;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 420ms var(--spring-spatial), opacity 160ms var(--ease-out), visibility 0s 420ms;
}

.bar.show-cta .bar-cta {
    visibility: visible;
    transform: none;
    opacity: 1;
    transition: transform 420ms var(--spring-spatial), opacity 160ms var(--ease-out);
}

/* ---- Buttons on colour ---- */

.btn.ink {
    background: var(--ink-fixed);
    color: #ffffff;
}

.btn.ink:hover {
    background: #2e2a2d;
}

.get-page .btn.alt {
    background: #ffffff;
    color: var(--ink-fixed);
}

.get-page .btn:focus-visible {
    outline: 4px solid var(--butter); /* the butter halo outside the ink outline */
    outline-offset: 2px;
}

.get-page .actions {
    margin: 1.75rem 0 1rem;
}

/* ---- Hero: the butter band ---- */

.hero {
    margin-top: -76px; /* the band runs up under the glass bar */
    padding-top: calc(76px + clamp(28px, 5vw, 72px));
    border-bottom: 3px solid var(--line);
    background: var(--butter);
    color: var(--ink-fixed);
    overflow: hidden;
}

.hero-in {
    display: grid;
    gap: clamp(8px, 3vw, 40px);
    align-items: end;
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding-bottom: clamp(8px, 3vw, 64px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    padding: 0.3rem 0.9rem 0.3rem 0.35rem;
    border: 3px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 3px 4px 0 var(--shadow);
    font-weight: 700;
    font-size: 0.95rem;
}

.badge span {
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    background: var(--ink-fixed);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(48px, 6.4vw, 108px);
    line-height: 0.92;
    letter-spacing: -0.02em;
}

.hero .lede {
    max-width: 30rem;
    margin: 0;
    font-size: var(--fs-site-lede);
    line-height: 1.4;
}

.note {
    max-width: 30rem;
    margin: 0;
    color: rgba(20, 16, 19, 0.75); /* muted ink on a fill: the fill's ink at 75% */
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Three frames, fanned and bleeding off the band's bottom edge. They pop up on a spatial spring,
   staggered, once, on load. */
.fan {
    position: relative;
    height: clamp(320px, 62vw, 560px);
    margin-bottom: -3px;
}

.fan .shot {
    position: absolute;
    bottom: calc(-1 * clamp(40px, 9vw, 110px));
    left: 50%;
    width: clamp(190px, 46vw, 340px);
    height: auto;
    border: 3px solid var(--line);
    border-radius: 26px;
    box-shadow: 7px 8px 0 var(--shadow);
    transform: translateX(var(--x)) rotate(var(--r));
    animation: pop-up 620ms var(--spring-spatial) both;
}

.fan .c { --x: -50%; --r: 0deg; z-index: 2; bottom: calc(-1 * clamp(20px, 4vw, 60px)); animation-delay: 80ms; }
.fan .l { --x: -108%; --r: -8deg; animation-delay: 160ms; }
.fan .r { --x: 8%; --r: 8deg; animation-delay: 240ms; }

@keyframes pop-up {
    from {
        transform: translateX(var(--x)) translateY(60%) rotate(0deg) scale(0.9);
    }
}

/* ---- Ticker: the ink band ---- */

.ticker {
    overflow: hidden;
    padding: 16px 0;
    border-bottom: 3px solid var(--line);
    background: var(--ink-fixed);
    color: #ffffff;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.ticker-track span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--font-head);
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

/* The separator: a candy dot in the ink outline (kept days are circles). */
.ticker-track span::after {
    content: "";
    width: 0.62em;
    height: 0.62em;
    border: 3px solid #000000;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 2px #ffffff;
}

.ticker-track span:nth-child(3n + 2)::after { background: var(--butter); }
.ticker-track span:nth-child(3n)::after { background: #f6a9c2; }

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* ---- Statement: lit word by word ---- */

.statement {
    padding-block: var(--site-section) clamp(32px, 4vw, 56px);
}

.say {
    max-width: 1000px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.js .say .w {
    color: color-mix(in srgb, var(--ink) 18%, transparent);
    transition: color 260ms var(--ease-out);
}

.js .say .w.on {
    color: var(--ink);
}

.say .hl,
.js .say .w.hl.on {
    color: #12a862; /* mint, darkened to read on white (inkOn) */
}

/* ---- Stats: four stickers ---- */

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: var(--site-section);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 3px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 5px 6px 0 var(--shadow);
}

.stat:nth-child(1) { background: var(--butter); color: var(--ink-fixed); }
.stat:nth-child(2) { background: #f6a9c2; color: var(--ink-fixed); }
.stat:nth-child(3) { background: #79c6e8; color: var(--ink-fixed); }
.stat:nth-child(4) { background: var(--mint); color: var(--ink-fixed); }

.stat b {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 800;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-weight: 700;
    line-height: 1.3;
}

/* ---- Features: the Play frames as sticky cards ---- */

.features {
    padding-bottom: var(--site-section);
}

.features-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: clamp(24px, 4vw, 48px);
}

.features-head h2 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(40px, 6.4vw, 96px);
    line-height: 0.92;
}

.features-head p {
    max-width: 24rem;
    margin: 0;
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 22px;
}

.feat {
    display: grid;
    overflow: hidden;
    border: 3px solid var(--line);
    border-radius: 36px; /* xxl: the expressive hero tile */
    background: var(--c);
    color: var(--ink-fixed);
    box-shadow: 7px 8px 0 var(--shadow);
}

.feat.dark {
    color: #ffffff;
}

.feat-copy {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(22px, 3.4vw, 44px);
}

.num {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.num i {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-radius: 14px;
    background: var(--ink-fixed);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 700;
}

.feat.dark .num i {
    background: #ffffff;
    color: var(--ink-fixed);
}

.tag.lilac { background: #cdb6e8; }
.tag.yellow { background: var(--butter); }

.feat h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-synthesis: none;
}

.feat-copy > p:not(.num) {
    max-width: 28rem;
    margin: 0;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.45;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 0.3rem 0.8rem;
    border: 3px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink-fixed);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--shadow);
}

.feat-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.feat-art img {
    display: block;
    width: min(100%, 460px);
    height: auto;
}

/* ---- Poster: the ink ground with saturated blobs ---- */

.poster {
    position: relative;
    overflow: hidden;
    padding-block: var(--site-section);
    border-block: 3px solid var(--line);
    background: var(--ink-fixed);
    color: #ffffff;
}

.blob {
    position: absolute;
    border: 3px solid #000000;
    border-radius: 50%;
}

.b1 { width: 340px; height: 340px; left: -120px; top: -140px; background: #ff5fa2; }
.b2 { width: 180px; height: 180px; right: 6%; bottom: -70px; background: #6cff9e; }
.b3 { width: 90px; height: 90px; right: 34%; top: 40px; background: #35b6f2; border-radius: 26px; transform: rotate(18deg); }

.poster-in {
    position: relative;
    display: grid;
    gap: 2rem;
    align-items: center;
}

.poster .kicker {
    color: #b9b2be; /* poster ink body text */
}

.poster h2 {
    max-width: 14ch;
    margin: 0 0 1rem;
    font-size: var(--fs-site-h2);
    line-height: 1;
}

.poster p:not(.kicker) {
    max-width: 26rem;
    margin: 0;
    color: #b9b2be;
    font-size: var(--fs-site-lede);
    line-height: 1.45;
}

.film {
    width: 100%;
    max-width: 30rem;
    margin: 0;
    border: 3px solid #000000;
    border-radius: 26px;
    background: #ffffff; /* the film's own first frame, so nothing flashes before the poster */
    overflow: hidden;
    aspect-ratio: 1;
}

/* A butter blob behind the film, overlapping its edge: on the ink ground a black shadow vanishes. */
.film-wrap {
    position: relative;
    max-width: 30rem;
}

.film-wrap::before {
    content: "";
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 3px solid #000000;
    border-radius: 26px;
    background: var(--butter);
}

.film-wrap .film {
    position: relative;
}

.film video {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- Close: the mint band ---- */

.cta {
    overflow: hidden;
    padding-top: var(--site-section);
    border-bottom: 3px solid var(--line);
    background: var(--mint);
    color: var(--ink-fixed);
}

.cta-in {
    display: grid;
    gap: 1rem;
    align-items: end;
}

.cta-in > div {
    padding-bottom: var(--site-section);
}

.cta h2 {
    max-width: 11ch;
    margin: 0 0 1.25rem;
    font-size: clamp(48px, 8vw, 128px);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.cta p {
    max-width: 26rem;
    margin: 0;
    font-size: var(--fs-site-lede);
    line-height: 1.4;
}

.cta-shot {
    justify-self: center;
    width: clamp(220px, 60vw, 380px);
    height: auto;
    margin-bottom: -60px;
    border: 3px solid var(--line);
    border-radius: 26px;
    box-shadow: 7px 8px 0 var(--shadow);
    transform: rotate(-6deg);
}

/* ---- Footer: ink, with the big wordmark ---- */

.get-page .foot {
    max-width: none;
    margin: 0;
    padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px);
    border: 0;
    background: var(--ink-fixed);
    color: #b9b2be;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.foot-links a {
    margin: 0;
    padding: 0.4rem 0;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.foot-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.foot .social a {
    border-color: #000000;
    box-shadow: 3px 4px 0 #000000;
}

.foot-mark {
    margin: clamp(32px, 5vw, 64px) 0 0.75rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: min(24vw, 300px);
    font-weight: 800;
    line-height: 0.75;
    letter-spacing: -0.04em;
    text-align: center;
    white-space: nowrap;
}

/* ---- Pop on enter: a spatial spring, once ---- */

.js .pop {
    transform: translateY(28px) scale(0.96);
    opacity: 0;
}

.js .pop.in {
    transform: none;
    opacity: 1;
    transition: transform 620ms var(--spring-spatial), opacity 160ms var(--ease-out);
}

.js .stat.pop:nth-child(2) { transition-delay: 45ms; }
.js .stat.pop:nth-child(3) { transition-delay: 90ms; }
.js .stat.pop:nth-child(4) { transition-delay: 135ms; }

/* ---- Wider ---- */

@media (min-width: 40rem) {
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 52rem) {
    .hero-in {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .fan {
        height: clamp(460px, 44vw, 620px);
    }

    .hero-in {
        max-width: 1280px;
    }

    .fan .shot {
        width: clamp(180px, 21vw, 310px);
        bottom: -90px;
    }

    .fan .c { bottom: -24px; }
    .fan .l { --x: -96%; }
    .fan .r { --x: -4%; }

    .feat {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .feat-copy {
        justify-content: center;
    }

    .poster-in {
        grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    }

    .cta-in {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

/* The stack: on a wide, tall window each card sticks under the bar, so the next slides over it. */
@media (min-width: 52rem) and (min-height: 640px) {
    .stack {
        gap: 0;
    }

    .feat {
        position: sticky;
        top: 96px;
        height: min(calc(100vh - 128px), 620px);
        margin-bottom: 40px;
    }

    /* One row the card's height, so the art fits the card instead of the card growing to the art. */
    .feat {
        grid-template-rows: minmax(0, 1fr);
    }

    .feat-art {
        min-height: 0;
        padding-top: 24px;
    }

    .feat-art img {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        object-position: bottom;
    }
}

/* ---- Dark ---- */

@media (prefers-color-scheme: dark) {
    .bar-in {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%), rgba(44, 42, 47, 0.62);
        box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.25), 3px 4px 0 var(--shadow);
    }

    .say .hl,
    .js .say .w.hl.on {
        color: var(--green);
    }
}

/* ---- Reduced motion: everything is simply there ---- */

@media (prefers-reduced-motion: reduce) {
    .fan .shot,
    .ticker-track {
        animation: none;
    }

    .js .pop,
    .js .pop.in {
        transform: none;
        opacity: 1;
        transition: none;
    }

    .bar-cta,
    .bar.show-cta .bar-cta {
        transition: none;
    }
}
