/* ============================================================
   donamobile.com — DONA's public site.
   Same DNA as the app and DONA Business: black, white type,
   the mascot's blue (#41A8DE) as the one accent, the course
   colors only inside the course art and the Figma glows behind the
   "how it works" pictures.
   Rules: .claude/skills/baseline-ui + fixing-accessibility +
   fixing-motion-performance.
   Asked for by Eric (2026-10-08): the liquid-glass header and
   popups (the app's BlurView look) and the entrance/scroll motion.
   Motion only moves transform/opacity, pauses off-screen and is
   off for prefers-reduced-motion. The glows are DONA's Figma
   assets, decoration only.
   ============================================================ */

:root {
    color-scheme: dark;
    --bg: #000000;
    --surface: #0c0c0f;
    --surface-2: #141418;
    --surface-3: #1c1c21;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --text-soft: rgba(255, 255, 255, 0.72);
    /* lowest tier for anything people need to read (>= 4.5:1 on black) */
    --text-muted: rgba(255, 255, 255, 0.56);
    --blue: #41A8DE;
    --on-blue: #000000;
    --green: #7ed957;
    --red: #ff6b6b;

    /* liquid glass, after the app's BlurView (dark tint, 10% white
       overlay, 30% white hairline) */
    --glass-bg: rgba(26, 26, 30, 0.42);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(22px) saturate(180%);
    --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.04);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-lg: 32px;
    --radius: 24px;
    --container: 1200px;
    --gutter: 20px;
    --section: 96px;
    --header-space: 96px;

    --z-header: 10;
    --z-skip: 20;
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
        --section: 64px;
        --radius-lg: 24px;
        --radius: 20px;
        --header-space: 84px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: var(--header-space);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    line-height: 1.05;
    font-weight: 800;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: var(--z-skip);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* ---------- logo (Figma "Logo" frame, 899.632 x 278.023) ---------- */

.logo {
    display: inline-flex;
    border-radius: 8px;
    text-decoration: none;
}

.logo-art {
    position: relative;
    display: block;
    height: var(--logo-h, 32px);
    aspect-ratio: 899.632 / 278.023;
}

.logo-art img {
    position: absolute;
    max-width: none;
}

.logo-mascot {
    left: 0;
    top: 0;
    width: 39.26%;
    height: 100%;
}

.logo-mouth {
    left: 13.7%;
    top: 58.21%;
    width: 11.88%;
    height: 24.19%;
}

.logo-word {
    left: 49.41%;
    top: 38.07%;
    width: 50.59%;
    height: 43.9%;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}

.btn:active {
    transform: scale(0.97);
}

.btn-light {
    background: var(--text);
    color: var(--bg);
}

.btn-light:hover {
    background: #ffffff;
}

.btn-outline {
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn-tall {
    min-height: 54px;
    padding-inline: 26px;
    border-radius: 16px;
    font-size: 17px;
}

/* ---------- header: a floating liquid-glass bar ---------- */

.site-header {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding-inline: max(var(--gutter), env(safe-area-inset-left));
    pointer-events: none;
}

.header-glass,
.modal-glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shine), 0 12px 32px rgba(0, 0, 0, 0.45);
    isolation: isolate;
}

/* the app's 10% white overlay, brightest at the top edge like a lens */
.header-glass::before,
.modal-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 60%);
    pointer-events: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

    .header-glass,
    .modal-glass {
        background: rgba(22, 22, 26, 0.94);
    }
}

.header-glass {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--container);
    height: 64px;
    margin-inline: auto;
    padding: 0 10px 0 22px;
    border-radius: 22px;
    pointer-events: auto;
}

.site-nav {
    position: relative;
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 2px;
    list-style: none;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease-out, background-color 0.15s ease-out;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.header-cta {
    position: relative;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 14px;
    font-size: 15px;
}

@media (max-width: 960px) {
    .site-nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .header-glass {
        height: 58px;
        padding: 0 7px 0 16px;
        border-radius: 20px;
    }

    .header-glass .logo-art {
        --logo-h: 28px;
    }

    .header-cta {
        min-height: 42px;
    }
}

/* ---------- sections ---------- */

.section {
    padding-block: var(--section);
}

.section-tight {
    padding-top: 0;
}

.h2 {
    font-size: clamp(34px, 5vw, 60px);
}

.lead {
    margin-top: 20px;
    color: var(--text-soft);
    font-size: clamp(18px, 1.6vw, 21px);
}

/* ---------- hero: art on the left, words on the right ---------- */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 48px;
    min-height: min(900px, 100svh);
    padding-top: var(--header-space);
}

.hero-art {
    order: -1;
    position: relative;
    align-self: stretch;
    justify-self: center;
    width: 100%;
    max-width: 440px;
    min-height: 560px;
}

.hero-copy {
    padding-block: 48px 72px;
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.rating-pill:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.rating-pill svg {
    width: 18px;
    height: 18px;
    color: #FFC400;
}

.hero h1 {
    max-width: 660px;
    font-size: clamp(46px, 7vw, 96px);
    line-height: 0.98;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.hero-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -45%);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
    mask-image: radial-gradient(closest-side, #000 45%, transparent);
}

.hero-float {
    position: absolute;
    inset: 0;
}

.hero-hand {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: auto;
    height: min(94%, 780px);
    max-width: none;
    transform: translateX(-50%);
    /* the render's arm runs past its left edge: let that edge fade out */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16%);
    mask-image: linear-gradient(to right, transparent, #000 16%);
}

@media (max-width: 900px) {

    /* phone: the first screen is the whole pitch, art rising from below */
    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 100svh;
    }

    .hero-art {
        order: 0;
        flex: 1 1 auto;
        align-self: center;
        min-height: 360px;
        max-width: 340px;
    }

    .hero-copy {
        padding-block: 24px 8px;
    }

    .hero h1 {
        font-size: clamp(44px, 12.5vw, 64px);
    }

    .hero-actions {
        margin-top: 28px;
    }

    .hero-actions .btn {
        flex: 1 1 0;
        padding-inline: 16px;
    }

    .hero-hand {
        height: 100%;
    }
}

/* desktop: the arm reaches in from the window's left edge, the mascot heads
   float around the phone, the words sit on the right */
@media (min-width: 901px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    /* the art is placed against the whole hero, not this column */
    .hero-art {
        position: static;
    }

    .hero-copy {
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        font-size: clamp(42px, 4.6vw, 68px);
    }

    .hero-glow {
        left: 30vw;
        top: 62%;
        width: 1100px;
    }

    /* the render's fur runs past its top edge: fade that edge out */
    .hero-hand {
        left: 0;
        bottom: 0;
        width: min(52vw, 900px);
        height: auto;
        transform: none;
        -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
        mask-image: linear-gradient(to bottom, transparent, #000 14%);
    }

    .hero .stickers {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .sticker {
        position: absolute;
        width: var(--s);
        height: auto;
        rotate: var(--r, 0deg);
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
    }

    .st-1 {
        --s: 108px;
        --r: -12deg;
        left: 5vw;
        top: 17%;
    }

    .st-2 {
        --s: 92px;
        --r: 10deg;
        left: 45vw;
        top: 17%;
    }

    .st-3 {
        --s: 96px;
        --r: 8deg;
        left: 7vw;
        top: 76%;
    }

    .st-4 {
        --s: 98px;
        --r: -8deg;
        left: 47vw;
        top: 62%;
    }
}

/* ---------- video facade (Vimeo loads only on click) ---------- */

.video {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.video img,
.video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.video-16x9 {
    aspect-ratio: 16 / 9;
}

.video-9x16 {
    aspect-ratio: 9 / 16;
}

.play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}

.play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video:hover .play {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.06);
}

.video-9x16 .play {
    width: 60px;
    height: 60px;
}

.video-9x16 .play svg {
    width: 22px;
    height: 22px;
}

.video-len {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---------- promo ---------- */

.promo-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 64px;
}

@media (max-width: 900px) {
    .promo-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

/* phone-only pieces stay out of the desktop layout */
.stickers,
.dots {
    display: none;
}

.section-title {
    margin-bottom: 40px;
}

.section-title.center {
    text-align: center;
}

/* ---------- how it works: four pictures, two words each ---------- */

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    list-style: none;
}

.how-step {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

/* the picture sits on its own Figma glow; anything held by paws runs off
   the bottom edge */
.how-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    background: var(--glow) 50% 62% / 230% auto no-repeat, var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.how-visual img {
    max-width: none;
}

.how-visual-paws img {
    width: 94%;
    margin-bottom: -40px;
}

.how-visual-phone img {
    width: 56%;
    margin-bottom: -22%;
}

.how-visual-card {
    align-items: center;
}

.how-visual-card img {
    width: 88%;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    rotate: -4deg;
}

.how-visual-penguin img {
    width: 68%;
    margin-bottom: 5%;
}

.how-step h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 20px;
    font-size: 20px;
    line-height: 1.2;
}

.how-num {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--on-blue);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 721px) and (max-width: 960px) {
    .how-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- courses: the whole catalogue in two moving rows ---------- */

.courses {
    overflow: hidden;
}

.marquee {
    --mq-gap: 16px;
    display: grid;
    gap: var(--mq-gap);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee::-webkit-scrollbar {
    display: none;
}

.marquee-row {
    display: flex;
    gap: var(--mq-gap);
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marquee-row img {
    width: auto;
    height: 300px;
}

/* ---------- results ---------- */

.results-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.results-art img {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 40px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 28px;
    background: var(--bg);
}

.stat dt {
    color: var(--text-soft);
    font-size: 16px;
}

.stat dd {
    order: -1;
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .results-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .results-art img {
        max-width: 280px;
    }
}

@media (max-width: 420px) {
    .stat {
        padding: 18px;
    }

    .stat dt {
        font-size: 15px;
    }
}

/* ---------- reviews ---------- */

.reviews {
    border-top: 1px solid var(--border);
}

.review-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

@media (max-width: 720px) {

    .review-videos {
        --card-w: 62%;
    }
}

/* ---------- team ---------- */

.team {
    border-top: 1px solid var(--border);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member img {
    width: 100%;
    max-width: 260px;
}

.member-text {
    margin-top: 18px;
}

/* the role in the colour of the photo's background card */
.member {
    --c: #3a6df0;
}

.member:nth-child(2) {
    --c: #ff7a1a;
}

.member:nth-child(3) {
    --c: #a22ff0;
}

.member-text p {
    color: color-mix(in srgb, var(--c) 85%, #ffffff);
    font-size: 20px;
    font-weight: 700;
}

/* phone: one person per row */
@media (max-width: 720px) {
    .team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .member img {
        max-width: 220px;
    }

    .member-text {
        margin-top: 10px;
    }

}

/* ---------- for companies ---------- */

.companies-panel {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--surface);
}

.companies-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 48px;
    padding: 56px 64px 44px;
}

.companies-top h2 {
    max-width: 680px;
}

.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard {
    padding: 0 64px 48px;
}

/* desktop: the top of the candidate card is the story (name, course
   result, status); the rest fades out */
@media (min-width: 961px) {
    .dashboard-shot {
        max-height: 600px;
        -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
        mask-image: linear-gradient(to bottom, #000 72%, transparent);
    }
}

.dashboard-shot {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
}

.dashboard-shot img {
    width: 100%;
}

/* the screenshot is the demo build: made-up people */
.demo-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.75);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 960px) {
    .companies-top {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 36px 20px 28px;
    }

    .company-actions .btn {
        flex: 1 1 0;
        padding-inline: 16px;
    }

    .dashboard {
        padding: 0 12px 12px;
    }

    .dashboard-shot {
        border-radius: 12px;
    }

    /* the phone crop has the status badge top-right */
    .demo-tag {
        top: auto;
        bottom: 12px;
        right: 12px;
    }

}

/* ---------- closing call to action ---------- */

.cta {
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* sized so its fade ends inside the section (the section clips it) */
.cta-glow {
    position: absolute;
    left: 50%;
    top: 45%;
    width: min(900px, 150vw);
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
    mask-image: radial-gradient(closest-side, #000 45%, transparent);
}

.cta .container {
    position: relative;
}

.cta-mascot {
    width: 200px;
    margin: 0 auto 8px;
}

@media (max-width: 720px) {
    .cta-mascot {
        width: 150px;
    }

}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

@media (max-width: 720px) {
    .cta-actions .btn {
        flex: 1 1 0;
        padding-inline: 16px;
    }
}

/* ---------- footer ---------- */

.site-footer {
    padding-block: 64px 40px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 16px;
}

.footer-col h2 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.3;
}

.footer-col ul {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.footer-col a {
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s ease-out;
}

.footer-col a:hover {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 860px) {
    .site-footer {
        padding-block: 48px 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}

/* ---------- phone: rows you swipe instead of tall stacks ---------- */

@media (max-width: 720px) {
    .swipe {
        display: flex;
        gap: 12px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 2px var(--gutter) 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .swipe::-webkit-scrollbar {
        display: none;
    }

    .swipe > li {
        flex: 0 0 var(--card-w, 70%);
        scroll-snap-align: start;
    }

}

/* ============================================================
   Phone (<= 720px): its own layout, not a squeezed desktop
   ============================================================ */

@media (max-width: 720px) {

    /* hero: the art fills the screen, the words sit at the bottom */
    .hero-inner {
        display: block;
        position: relative;
        max-width: none;
        min-height: max(640px, 100svh);
        padding: 0;
    }

    /* stretch: browsers now apply the desktop's centring to absolute boxes */
    .hero-art {
        position: absolute;
        inset: 0;
        justify-self: stretch;
        align-self: stretch;
        width: auto;
        max-width: none;
        min-height: 0;
    }

    .hero-glow {
        width: 220%;
        top: 36%;
    }

    /* the phone sits right of the render's middle (61.5% across): pull the
       render left by that much so the phone itself is centred. The render is
       76% of the hero (~100svh) tall at 0.477 width per height. */
    .hero-hand {
        left: calc(50% - 4.2svh);
        top: 70px;
        bottom: auto;
        height: 76%;
    }

    .stickers {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .sticker {
        position: absolute;
        width: var(--s);
        height: auto;
        rotate: var(--r, 0deg);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    }

    .st-1 {
        --s: 76px;
        --r: -12deg;
        left: 4%;
        top: 15%;
    }

    .st-2 {
        --s: 62px;
        --r: 10deg;
        right: 4%;
        top: 12%;
    }

    .st-3 {
        --s: 64px;
        --r: 8deg;
        left: 5%;
        top: 40%;
    }

    .st-4 {
        --s: 66px;
        --r: -8deg;
        right: 3%;
        top: 37%;
    }

    .hero-copy {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        padding: 120px var(--gutter) max(28px, env(safe-area-inset-bottom));
        background: linear-gradient(to top, #000 50%, rgba(0, 0, 0, 0.8) 72%, transparent);
    }

    .hero .rating-pill {
        margin-bottom: 14px;
        border-color: var(--glass-border);
        background: var(--glass-bg);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
    }

    .hero h1 {
        font-size: clamp(34px, 9.6vw, 42px);
        line-height: 1.02;
    }

    .hero-actions {
        margin-top: 20px;
    }

    .hero-actions .btn {
        min-height: 50px;
        font-size: 16px;
    }

    .section-title {
        margin-bottom: 24px;
    }

    /* how it works: the four pictures become cards you swipe */
    .how-steps {
        --card-w: 78%;
    }

    .marquee {
        --mq-gap: 10px;
    }

    .marquee-row img {
        height: 210px;
    }

    .dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }

    .dots span {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.25);
        transition: background-color 0.2s ease-out, transform 0.2s ease-out;
    }

    .dots span.on {
        background: var(--text);
        transform: scale(1.3);
    }
}

/* ---------- popups (native <dialog>): download + contact ---------- */

.modal {
    width: min(480px, calc(100% - 32px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    overflow: visible;
}

/* the page behind a popup stays put */
html:has(dialog[open]) {
    overflow: hidden;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal-glass {
    position: relative;
    padding: 32px;
    border-radius: 28px;
    --glass-bg: rgba(26, 26, 30, 0.6);
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--glass-shine), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal[open] .modal-glass {
    animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
}

.modal h2 {
    position: relative;
    padding-right: 48px;
    font-size: 30px;
}

.modal-text {
    position: relative;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 17px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.15s ease-out;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.store-options {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.store-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}

a.store-option:hover {
    background: rgba(255, 255, 255, 0.16);
}

a.store-option:active {
    transform: scale(0.98);
}

.store-option svg {
    flex: none;
    width: 30px;
    height: 30px;
}

.store-option span {
    display: grid;
    line-height: 1.25;
}

.store-option strong {
    font-size: 18px;
}

.store-option small {
    color: var(--text-soft);
    font-size: 14px;
}

/* not out yet: darker, and the label says so */
.store-option.is-soon {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.42);
    cursor: default;
}

.store-option.is-soon small {
    color: rgba(255, 255, 255, 0.56);
    font-weight: 700;
}

.email-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 12px 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.email {
    flex: 1;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 700;
}

.copy-btn {
    flex: none;
}

.copy-status {
    position: relative;
    min-height: 22px;
    margin-top: 8px;
    padding-left: 4px;
    color: var(--green);
    font-size: 15px;
}

.copy-status.is-error {
    color: var(--red);
}

.modal-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.modal-actions .btn {
    flex: 1 1 0;
    white-space: nowrap;
}

/* phone: a bottom sheet, like the app */
@media (max-width: 600px) {
    .modal {
        width: calc(100% - 16px);
        margin: auto auto max(8px, env(safe-area-inset-bottom));
    }

    .modal-glass {
        padding: 26px 20px 20px;
        border-radius: 26px;
    }

    .modal[open] .modal-glass {
        animation-name: sheet-in;
    }

    @keyframes sheet-in {
        from {
            transform: translateY(40px);
            opacity: 0;
        }
    }

    .modal h2 {
        font-size: 26px;
    }

    .store-options {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 20px;
    }

    .store-option {
        min-height: 68px;
    }

    .email-row {
        padding-left: 14px;
    }

    .email {
        font-size: 16px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ---------- legal pages + 404 ---------- */

.legal {
    max-width: 760px;
    margin-inline: auto;
    padding-block: calc(var(--header-space) + 48px) 112px;
}

.legal h1 {
    font-size: clamp(36px, 5vw, 56px);
}

.legal-body {
    margin-top: 48px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
}

.legal-body h2 {
    margin-top: 44px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.25;
}

.legal-body h3 {
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.3;
}

.legal-body p + p {
    margin-top: 10px;
}

.legal-body ul {
    margin-block: 10px 14px;
    padding-left: 24px;
}

.legal-body li + li {
    margin-top: 4px;
}

.legal-body a {
    color: var(--blue);
    text-underline-offset: 3px;
}

.not-found {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 220px);
    padding-block: calc(var(--header-space) + 40px) 80px;
    text-align: center;
}

.not-found img {
    width: 160px;
    margin: 0 auto 24px;
}

.not-found .btn {
    margin-top: 32px;
}

/* ============================================================
   Motion (only with JS, which adds .js to <html>, and only when
   the visitor hasn't asked for reduced motion)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {

    /* fade and rise into view */
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .js [data-reveal="zoom"] {
        transform: scale(0.9);
    }

    /* the dashboard tips up from the table */
    .js [data-reveal="tilt"] {
        transform: perspective(1400px) rotateX(16deg) translateY(56px) scale(0.96);
        transform-origin: 50% 0;
        transition-duration: 1.1s;
    }

    .js [data-reveal].in {
        opacity: 1;
        transform: none;
    }

    /* headings: each word rises out of its own line (see site.js) */
    .js [data-split] .w {
        display: inline-block;
        overflow: clip;
        padding-block: 0.08em 0.14em;
        margin-block: -0.08em -0.14em;
        vertical-align: top;
    }

    .js [data-split] .w > span {
        display: inline-block;
        transform: translateY(110%);
        transition: transform 0.85s ease-out;
        transition-delay: calc(var(--i, 0) * 60ms);
    }

    .js [data-split].in .w > span {
        transform: none;
    }

    /* cards and stats arrive one after another */
    .js [data-stagger] > * {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
        transition-delay: calc(var(--i, 0) * 90ms);
    }

    .js [data-stagger].in > * {
        opacity: 1;
        transform: none;
    }

    /* hero: the arm rises into frame, then floats; the glow breathes */
    .js .hero-hand {
        animation: hand-in 1.2s ease-out both;
    }

    .js .hero-float {
        animation: float 6s ease-in-out 1.2s infinite alternate;
    }

    .js .hero-glow {
        animation: breathe 7s ease-in-out infinite alternate;
    }

    /* phone hero: the mascot heads pop in one by one, then bob */
    .js .sticker {
        animation: pop 0.7s ease-out both, bob 5s ease-in-out infinite alternate;
        animation-delay: var(--pd, 0.5s), var(--bd, 1.2s);
    }

    .st-2 {
        --pd: 0.65s;
        --bd: 1.7s;
    }

    .st-3 {
        --pd: 0.8s;
        --bd: 2.1s;
    }

    .st-4 {
        --pd: 0.95s;
        --bd: 1.4s;
    }

    @keyframes pop {
        from {
            opacity: 0;
            scale: 0.4;
        }
    }

    @keyframes bob {
        to {
            translate: 0 -10px;
        }
    }

    .hero.is-off .hero-float,
    .hero.is-off .hero-glow,
    .hero.is-off .sticker {
        animation-play-state: paused;
    }

    /* desktop: the arm slides in from the left edge instead */
    @media (min-width: 901px) {
        .js .hero-hand {
            animation-name: arm-in;
        }
    }

    @keyframes arm-in {
        from {
            opacity: 0;
            transform: translateX(-140px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes hand-in {
        from {
            opacity: 0;
            transform: translate(-50%, 90px);
        }

        to {
            opacity: 1;
            transform: translate(-50%, 0);
        }
    }

    @keyframes float {
        to {
            transform: translateY(-14px);
        }
    }

    @keyframes breathe {
        from {
            opacity: 0.75;
            transform: translate(-50%, -45%) scale(0.94);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -45%) scale(1.04);
        }
    }

    .js .marquee {
        overflow: hidden;
    }

    .js .marquee-row {
        animation: marquee 70s linear infinite;
    }

    .js .marquee-reverse {
        animation-duration: 84s;
        animation-direction: reverse;
    }

    .marquee:hover .marquee-row,
    .marquee.is-off .marquee-row {
        animation-play-state: paused;
    }

    @keyframes marquee {
        to {
            transform: translateX(calc(-50% - var(--mq-gap) / 2));
        }
    }

    /* gentle depth while scrolling, where scroll timelines exist */
    @supports (animation-timeline: view()) {
        .drift {
            animation: drift linear both;
            animation-timeline: view();
        }

        @keyframes drift {
            from {
                transform: translateY(40px);
            }

            to {
                transform: translateY(-40px);
            }
        }
    }
}
