/* =============================================================================
   Filthymates
   The colours. Change them here — nothing else hard-codes a hex.
   ========================================================================== */
:root {
    --color-bg:          #0a0912;
    --color-surface:     #14131f;
    --color-surface-2:   #1d1b2b;
    --color-border:      #2b2840;
    --color-text:        #f4f2ff;
    --color-muted:       #9c98b8;
    --color-primary:     #f2478b;
    --color-primary-ink: #ffffff;
    --color-accent:      #8b5cf6;
    --gradient-brand:    linear-gradient(120deg, #f2478b 0%, #8b5cf6 100%);

    --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 24px;
    --maxw:      1180px;
    --shadow:    0 24px 60px -30px rgb(0 0 0 / 0.75);
}

/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient wash, mixed automatically from the two brand colours. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(55rem 38rem at 12% -12%, color-mix(in srgb, var(--color-primary) 20%, transparent), transparent 65%),
        radial-gradient(45rem 32rem at 95% -5%,  color-mix(in srgb, var(--color-accent)  18%, transparent), transparent 65%);
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

.skip {
    position: absolute; top: -100px; left: 1rem; z-index: 100;
    padding: .6rem 1rem; border-radius: var(--radius-sm);
    background: var(--color-primary); color: var(--color-primary-ink);
    text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Gradient text — used for the accent in the wordmark and *starred* words. */
.grad {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.icon { width: 20px; height: 20px; flex: none; }

/* -----------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--flush { padding-block: 0 clamp(3.5rem, 8vw, 6.5rem); }

.section--alt {
    background: color-mix(in srgb, var(--color-surface) 55%, transparent);
    border-block: 1px solid var(--color-border);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}
.section__head--center {
    justify-content: center;
    text-align: center;
    margin-bottom: 2.75rem;
}
.section__head--center .section__sub { margin-inline: auto; }

.section__title {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.section__sub {
    margin: .55rem 0 0;
    color: var(--color-muted);
    max-width: 52ch;
}
.section__note {
    margin: 1.75rem 0 0;
    text-align: center;
    font-size: .85rem;
    color: var(--color-muted);
}

.grid { display: grid; gap: 1rem; }

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .68rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--gradient-brand);
    color: var(--color-primary-ink);
    box-shadow: 0 10px 28px -14px color-mix(in srgb, var(--color-primary) 90%, transparent);
}
.btn--primary:hover {
    box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--color-primary) 95%, transparent);
}

.btn--ghost {
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn--ghost:hover {
    border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
}

.btn--lg { padding: .9rem 1.45rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* -----------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--color-bg) 70%, transparent);
    backdrop-filter: blur(14px);
    transition: background .2s ease, border-color .2s ease;
}
.site-header.is-stuck {
    background: color-mix(in srgb, var(--color-bg) 90%, transparent);
    border-bottom-color: var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gradient-brand);
    color: var(--color-primary-ink);
    font-size: .95rem;
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__links a {
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color .15s ease;
}
.nav__links a:hover { color: var(--color-text); }

.nav__auth { display: flex; align-items: center; gap: .55rem; }

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
}
.burger__box { display: grid; gap: 4px; }
.burger__box i {
    display: block;
    width: 17px;
    height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* -----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.1rem;
    padding: .35rem .75rem .35rem .55rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 70%, transparent);
    animation: pulse 2.4s ease-out infinite;
}

.hero__title {
    font-size: clamp(2.2rem, 5.4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: 0 0 1.1rem;
}
.hero__sub {
    margin: 0 0 1.9rem;
    max-width: 46ch;
    font-size: 1.05rem;
    color: var(--color-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin: 2.6rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--color-border);
}
.stats__item { margin: 0; }
.stats__value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.stats__label {
    margin: 0;
    font-size: .8rem;
    color: var(--color-muted);
}

/* The card stack — its content comes from the same mates array as the grid. */
.stack {
    position: relative;
    max-width: 460px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}
.peek {
    --r: 0deg;
    position: absolute;
    width: 46%;
    padding: .55rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow);
    transform: rotate(var(--r));
    animation: float 7s ease-in-out infinite;
}
.peek--0 { left: 0;   top: 13%; z-index: 2; --r: -7deg;  animation-delay: 0s; }
.peek--1 { left: 27%; top: 0;   z-index: 3; --r: 1.5deg; animation-delay: -2.3s; }
.peek--2 { left: 54%; top: 15%; z-index: 1; --r: 8deg;   animation-delay: -4.6s; }

.peek__face {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 8px);
    background: linear-gradient(155deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 45) 62% 36%));
}
.peek__face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    display: block;
    z-index: 1;
}
.peek__initials {
    font-size: 2rem;
    font-weight: 800;
    color: rgb(255 255 255 / .85);
}
.peek__meta { padding: .6rem .35rem .25rem; }
.peek__meta strong { display: block; font-size: .9rem; }
.peek__meta span { font-size: .74rem; color: var(--color-muted); }

.render {
    position: absolute;
    left: 50%;
    bottom: -2%;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: .45rem .85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-2);
    box-shadow: var(--shadow);
    font-size: .78rem;
    color: var(--color-muted);
}
.render__dots { display: inline-flex; gap: 3px; }
.render__dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: blink 1.4s ease-in-out infinite;
}
.render__dots i:nth-child(2) { animation-delay: .2s; }
.render__dots i:nth-child(3) { animation-delay: .4s; }

/* -----------------------------------------------------------------------------
   Filter chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
    padding: .5rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted);
    font: inherit;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover {
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}
.chip.is-active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--color-primary-ink);
}

/* -----------------------------------------------------------------------------
   Mates
   -------------------------------------------------------------------------- */
.grid--mates { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.mate {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mate:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
    box-shadow: var(--shadow);
}
.mate.is-hidden { display: none; }

.mate__face {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;                 /* was missing — the card grew to the png */
    background: linear-gradient(155deg, hsl(var(--h) 68% 56%), hsl(calc(var(--h) + 50) 60% 34%));
}
/* Taking the img out of flow is what actually pins the box to 4/5: a grid item
   with height:100% in an auto row cannot hold the ratio on its own. */
.mate__face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;         /* keep her face in frame on a tall render */
    display: block;
}
.mate__initials {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: rgb(255 255 255 / .85);
}
.mate__badge {
    position: absolute;
    top: .65rem;
    left: .65rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: rgb(0 0 0 / .42);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.mate__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .5rem;
    padding: 1rem 1.05rem 1.1rem;
}
.mate__name {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.mate__age { font-size: .85rem; font-weight: 500; color: var(--color-muted); }
.mate__blurb {
    margin: 0;
    font-size: .87rem;
    line-height: 1.5;
    color: var(--color-muted);
}
.mate__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0 0 .5rem;
    padding: 0;
    list-style: none;
}
.mate__tags li {
    padding: .18rem .5rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: .71rem;
    color: var(--color-muted);
}
.mate__body .btn { margin-top: auto; }

.grid__empty {
    margin: 2.5rem 0 0;
    text-align: center;
    color: var(--color-muted);
}

/* -----------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.grid--features { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.feature {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.feature__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
    color: var(--color-primary);
}
.feature__title { font-size: 1.02rem; font-weight: 700; margin-bottom: .35rem; }
.feature__text { margin: 0; font-size: .89rem; color: var(--color-muted); }

/* -----------------------------------------------------------------------------
   Coins
   -------------------------------------------------------------------------- */
.icon--check {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--color-primary);
}
.icon--coin { color: var(--color-primary); }

.grid--packs { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.pack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.6rem 1.4rem 1.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-align: center;
}
.pack--popular {
    border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
    box-shadow: var(--shadow);
}
.pack__flag {
    position: absolute;
    top: -.7rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: var(--color-primary-ink);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pack__coins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.035em;
}
.pack__coins .icon { width: 26px; height: 26px; }
.pack__bonus {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-primary);
}
.pack__price {
    margin: .5rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.pack__rate {
    margin: .1rem 0 1.2rem;
    font-size: .74rem;
    color: var(--color-muted);
}
.pack .btn { margin-top: auto; }

.costs {
    margin-top: 2.2rem;
    padding: 1.4rem 1.5rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.costs__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
}
.costs__title .icon { width: 18px; height: 18px; color: var(--color-primary); }

.costs__table { width: 100%; border-collapse: collapse; }
.costs__table th,
.costs__table td {
    padding: .6rem .5rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    font-size: .9rem;
}
.costs__table tbody tr:last-child th,
.costs__table tbody tr:last-child td { border-bottom: 0; }
.costs__table thead th {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.costs__table tbody th {
    text-align: left;
    font-weight: 600;
}
.costs__table tbody th span {
    display: block;
    font-size: .72rem;
    font-weight: 400;
    color: var(--color-muted);
}
.costs__table td { font-variant-numeric: tabular-nums; color: var(--color-muted); }
.costs__table td::after {
    content: ' c';
    font-size: .7rem;
    opacity: .55;
}
.costs__note {
    margin: .9rem 0 0;
    font-size: .78rem;
    color: var(--color-muted);
}

/* -----------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .6rem; }

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--color-muted);
    transition: transform .2s ease, color .2s ease;
}
.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}
.faq__a { padding: 0 1.15rem 1.15rem; color: var(--color-muted); }
.faq__a p { margin: 0; }

/* -----------------------------------------------------------------------------
   Closing band
   -------------------------------------------------------------------------- */
.band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 150% at 0% 0%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 62%),
        var(--color-surface);
}
.band__title {
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.025em;
}
.band__sub { margin: .4rem 0 0; color: var(--color-muted); }

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding-block: 3rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 55%, transparent);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 2.5rem;
}
.footer__blurb {
    margin: 1rem 0 1.2rem;
    max-width: 34ch;
    font-size: .87rem;
    color: var(--color-muted);
}
.footer__social {
    display: flex;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer__social a {
    display: inline-block;
    padding: .35rem .7rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: .78rem;
    text-decoration: none;
    color: var(--color-muted);
    transition: color .15s ease, border-color .15s ease;
}
.footer__social a:hover {
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}
.footer__heading {
    margin-bottom: .8rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-text);
}
.footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.footer__col a {
    font-size: .87rem;
    text-decoration: none;
    color: var(--color-muted);
    transition: color .15s ease;
}
.footer__col a:hover { color: var(--color-text); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem 1.5rem;
    margin-top: 2.75rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--color-border);
    font-size: .8rem;
    color: var(--color-muted);
}
.footer__bottom p { margin: 0; }
.footer__note { opacity: .8; }

.dead-theme-picker-removed, .theme-picker select {
    padding: .35rem 1.8rem .35rem .6rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-2);
    color: var(--color-muted);
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}

/* -----------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes float {
    0%, 100% { transform: rotate(var(--r)) translateY(0); }
    50%      { transform: rotate(var(--r)) translateY(-11px); }
}
@keyframes blink {
    0%, 100% { opacity: .25; }
    50%      { opacity: 1; }
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 60%, transparent); }
    70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-primary) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 0%, transparent); }
}

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .stack { max-width: 380px; }
    .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .burger { display: inline-flex; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem clamp(1rem, 4vw, 2rem) 1.5rem;
        border-bottom: 1px solid var(--color-border);
        background: var(--color-bg);
    }
    .nav.is-open { display: flex; }
    .nav__links { flex-direction: column; align-items: stretch; gap: .1rem; }
    .nav__links a { display: block; padding: .6rem 0; font-size: 1rem; }
    .nav__auth { flex-direction: column; align-items: stretch; }
    .site-header__inner { position: relative; }
}

@media (max-width: 560px) {
    .section__head { align-items: flex-start; }
    .stats { gap: 1.5rem; }
    .hero__actions .btn { flex: 1 1 100%; }
    .band { flex-direction: column; align-items: flex-start; }
    .band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .peek, .render__dots i, .eyebrow .dot { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =============================================================================
   Forms  (auth.php + the creator on mate.php)
   ========================================================================== */
.field { margin-bottom: 1rem; }
.field > label {
    display: block;
    margin-bottom: .38rem;
    font-size: .82rem;
    font-weight: 600;
}
.field__control { position: relative; display: flex; }

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    font-size: .93rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder,
textarea::placeholder { color: color-mix(in srgb, var(--color-muted) 70%, transparent); }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.field__peek {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    padding: .3rem .5rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-muted);
    font: inherit;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
}
.field__peek:hover { color: var(--color-text); }
.field__hint { margin: .35rem 0 0; font-size: .76rem; color: var(--color-muted); }

.check {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    font-size: .85rem;
    color: var(--color-muted);
    cursor: pointer;
}
.check input { accent-color: var(--color-primary); width: 16px; height: 16px; }

/* =============================================================================
   Sign in / sign up
   ========================================================================== */
.auth { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.auth__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    max-width: 940px;
}

.auth__card {
    padding: clamp(1.4rem, 3vw, 2.1rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow);
}

.auth__tabs {
    display: flex;
    gap: .25rem;
    margin-bottom: 1.6rem;
    padding: .25rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
}
.auth__tab {
    flex: 1;
    padding: .5rem;
    border-radius: 999px;
    color: var(--color-muted);
    text-align: center;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 600;
    transition: color .15s ease, background .15s ease;
}
.auth__tab:hover { color: var(--color-text); }
.auth__tab.is-active {
    background: var(--gradient-brand);
    color: var(--color-primary-ink);
}

.auth__title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
}
.auth__sub {
    margin: .4rem 0 1.6rem;
    font-size: .9rem;
    color: var(--color-muted);
}
.auth__form .btn { margin-top: .4rem; }
.auth__legal,
.auth__note {
    margin: 0 0 .9rem;
    font-size: .76rem;
    line-height: 1.5;
    color: var(--color-muted);
}
.auth__legal a { color: var(--color-text); }
.auth__note {
    margin: .9rem 0 0;
    padding: .6rem .75rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}
.auth__switch {
    margin: 1.2rem 0 0;
    font-size: .84rem;
    text-align: center;
    color: var(--color-muted);
}
.auth__switch a { color: var(--color-primary); font-weight: 600; }

.auth__aside { padding: .5rem 0; }
.auth__bonus {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.4rem;
    font-size: .88rem;
    color: var(--color-muted);
}
.auth__bonus .icon { width: 26px; height: 26px; }
.auth__bonus strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--color-text);
}

.auth__perks {
    display: grid;
    gap: .7rem;
    margin: 0 0 1.8rem;
    padding: 0;
    list-style: none;
}
.auth__perks li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.faces { display: flex; align-items: center; }
.faces__one {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: -10px;
    border: 2px solid var(--color-bg);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(155deg, hsl(var(--h) 68% 56%), hsl(calc(var(--h) + 50) 60% 34%));
    color: rgb(255 255 255 / .9);
    font-size: .72rem;
    font-weight: 700;
}
.faces__one img { width: 100%; height: 100%; object-fit: cover; }
.faces__more {
    margin-left: 1.1rem;
    font-size: .78rem;
    color: var(--color-muted);
}

/* =============================================================================
   Mate detail
   ========================================================================== */
.detail { padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem); }
.detail__inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.detail__side { position: sticky; top: 90px; }
.detail__back {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .83rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
}
.detail__back:hover { color: var(--color-text); }

.portrait {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, hsl(var(--h) 68% 56%), hsl(calc(var(--h) + 50) 60% 34%));
}
.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    display: block;
}
.portrait__initials {
    font-size: 4.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: rgb(255 255 255 / .85);
}

.detail__name {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: 1.1rem 0 .4rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.detail__blurb {
    margin: 0 0 .8rem;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--color-muted);
}

/* =============================================================================
   The creator
   ========================================================================== */
.creator__title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
}
.creator__intro {
    margin: .4rem 0 1.6rem;
    font-size: .92rem;
    color: var(--color-muted);
}

.creator {
    padding: clamp(1.2rem, 2.6vw, 1.7rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.creator__block {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}
.creator__block legend {
    padding: 0;
    margin-bottom: .6rem;
    font-size: .82rem;
    font-weight: 700;
}
.creator__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.creator__prompt { resize: vertical; min-height: 92px; line-height: 1.55; }
.creator__hint {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: .4rem 0 0;
    font-size: .76rem;
    color: var(--color-muted);
}
.creator__count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.creator__label {
    margin: 1.1rem 0 .5rem;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.chips--scenes .chip { text-align: left; }

/* Radio pills ------------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.pill span {
    display: block;
    padding: .55rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .87rem;
    font-weight: 600;
    color: var(--color-muted);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pill span em {
    display: block;
    font-size: .68rem;
    font-weight: 400;
    font-style: normal;
    opacity: .75;
}
.pill:hover span { color: var(--color-text); }
.pill input:checked + span {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-text);
}
.pill input:focus-visible + span {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Extras ------------------------------------------------------------------ */
.extras { display: grid; gap: .5rem; }
.extra {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease;
}
.extra:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
.extra:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.extra input { accent-color: var(--color-primary); width: 16px; height: 16px; }
.extra__text { flex: 1; }
.extra__text strong { display: block; font-size: .87rem; font-weight: 600; }
.extra__text em {
    font-size: .75rem;
    font-style: normal;
    color: var(--color-muted);
}
.extra__cost {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

/* The bill ---------------------------------------------------------------- */
.bill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.7rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--color-border);
}
.bill__cost {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
}
.bill__label {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.bill__value { display: flex; align-items: center; gap: .35rem; }
.bill__value .icon { width: 22px; height: 22px; }
.bill__value strong {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.bill__balance {
    margin: .2rem 0 0;
    font-size: .78rem;
    color: var(--color-muted);
}
.bill__balance strong { color: var(--color-text); font-variant-numeric: tabular-nums; }
.bill__short {
    margin: .3rem 0 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-primary);
}
.bill__actions { display: flex; gap: .6rem; }
.bill.is-short .bill__value strong { color: var(--color-primary); }

/* =============================================================================
   The job
   ========================================================================== */
.job {
    margin-top: 1.4rem;
    padding: clamp(1.2rem, 2.6vw, 1.6rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.job__stages {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.job__stage {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .84rem;
    color: var(--color-muted);
    transition: color .2s ease;
}
.job__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background .2s ease, box-shadow .2s ease;
}
.job__stage.is-now { color: var(--color-text); font-weight: 600; }
.job__stage.is-now .job__dot {
    background: var(--color-primary);
    animation: pulse 1.4s ease-out infinite;
}
.job__stage.is-done .job__dot { background: var(--color-primary); }

.job__bar {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-surface-2);
}
.job__bar i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-brand);
    transition: width .4s ease;
}

.job__done {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1.2rem;
    margin-top: 1.3rem;
}
.job__poster {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(155deg, hsl(var(--h) 68% 56%), hsl(calc(var(--h) + 50) 60% 34%));
}
.job__poster img { width: 100%; height: 100%; object-fit: cover; }
.job__play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgb(0 0 0 / .45);
    backdrop-filter: blur(6px);
    color: #fff;
}
.job__play .icon { width: 20px; height: 20px; fill: currentColor; }
.job__meta h3 { font-size: 1.05rem; font-weight: 700; }
.job__meta p {
    margin: .4rem 0 1rem;
    font-size: .84rem;
    line-height: 1.55;
    color: var(--color-muted);
}
.job__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* =============================================================================
   More from the cast
   ========================================================================== */
.more {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .8rem;
}
.more__one {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1rem .6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    text-decoration: none;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease;
}
.more__one:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
}
.more__face {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(155deg, hsl(var(--h) 68% 56%), hsl(calc(var(--h) + 50) 60% 34%));
    color: rgb(255 255 255 / .9);
    font-weight: 700;
}
.more__face img { width: 100%; height: 100%; object-fit: cover; }
.more__one strong { font-size: .88rem; }
.more__one em {
    font-size: .72rem;
    font-style: normal;
    color: var(--color-muted);
}

.missing { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.missing .btn { margin-top: 1.4rem; }

/* =============================================================================
   Responsive (pages added above)
   ========================================================================== */
@media (max-width: 900px) {
    .auth__inner { grid-template-columns: 1fr; }
    .auth__aside { order: 1; }

    .detail__inner { grid-template-columns: 1fr; }
    .detail__side { position: static; max-width: 320px; }
}

@media (max-width: 560px) {
    .bill { flex-direction: column; align-items: stretch; }
    .bill__actions { flex-direction: column; }
    .bill__actions .btn { width: 100%; }
    .job__done { grid-template-columns: 1fr; }
    .job__poster { max-width: 180px; }
    .job__stages { gap: .9rem; }
    .costs { padding: 1.1rem .9rem; }
}

/* [hidden] must beat any display: rule above (the job panel is a grid, the
   top-up button is an inline-flex .btn, and both start out hidden). */
[hidden] { display: none !important; }


/* --- Errors coming back from the ajax --------------------------------------- */
.auth__error,
.job__error {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-text);
    font-size: 14px;
}

/* =============================================================================
   Accounts: profile, my mates, build a mate
   ========================================================================== */

.btn--danger {
    background: color-mix(in srgb, var(--color-primary) 16%, transparent);
    border-color: var(--color-primary);
    color: var(--color-text);
}
.btn--danger:hover { background: color-mix(in srgb, var(--color-primary) 26%, transparent); }

.empty-card {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 60px 24px;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-muted);
}

/* --- Profile ---------------------------------------------------------------- */

.profile__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.profile__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 40px;
    margin: 0;
    flex: 1 1 320px;
}
.profile__facts dt { font-size: 13px; color: var(--color-muted); margin-bottom: 3px; }
.profile__facts dd { margin: 0; font-size: 18px; font-weight: 600; }

.profile__subhead { margin: 40px 0 14px; font-size: 18px; }
.profile__loading,
.profile__empty { color: var(--color-muted); }
.purchases { width: 100%; }
.profile__logout { margin-top: 36px; }
.profile__logout a { color: var(--color-muted); }
.profile__logout a:hover { color: var(--color-primary); }

/* --- Build a mate ----------------------------------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}
.build .field span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--color-muted);
}
.build .field input,
.build .field select {
    width: 100%;
    padding: 11px 13px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font: inherit;
}
.build .field input:focus,
.build .field select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.build__foot { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.build__error { color: var(--color-primary); }

@media (max-width: 560px) {
    .form-grid,
    .profile__facts { grid-template-columns: 1fr; }
}

/* =============================================================================
   Community detail, quality pills, the builder wizard
   ========================================================================== */

.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 0 0 26px;
}
.specs > div {
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.specs dt { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 600; }

.locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.locked .icon { width: 34px; height: 34px; color: var(--color-primary); flex: none; }
.locked > div { flex: 1 1 260px; }
.locked h3 { margin: 0 0 6px; font-size: 17px; }
.locked p { margin: 0; color: var(--color-muted); font-size: 14.5px; }

.pill--price span { display: grid; line-height: 1.2; }
.pill--price em { font-style: normal; font-size: 11.5px; color: var(--color-muted); }
.pill input:checked + span em { color: inherit; opacity: .8; }

.creator__note { margin: 12px 2px 0; font-size: 13.5px; color: var(--color-muted); }
.creator__note a { color: var(--color-primary); }

/* --- The wizard -------------------------------------------------------------- */

.build__progress {
    height: 6px;
    border-radius: 999px;
    background: var(--color-surface-2);
    overflow: hidden;
}
.build__progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-brand);
    border-radius: inherit;
    transition: width .3s ease;
}
.build__where { margin: 8px 2px 26px; font-size: 13px; color: var(--color-muted); }

.bstep__title { margin: 0 0 18px; font-size: 22px; }
.bstep__label { margin: 18px 2px 10px; font-size: 13px; color: var(--color-muted); }

.opts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
}
.opt {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 16px 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.opt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}
.opt__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}
.opt__emoji { font-size: 30px; line-height: 34px; }
.opt__label { font-size: 14px; font-weight: 600; text-align: center; }

.build__who {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 22px;
}
.build__who input[type="range"] { width: 100%; accent-color: var(--color-primary); }

.build__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.build__summary span {
    padding: 7px 12px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
}

.build__foot { display: flex; gap: 12px; margin-top: 30px; }
.build__foot .btn--primary { margin-left: auto; }

@media (max-width: 560px) {
    .build__who { grid-template-columns: 1fr; }
    .opts { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

/* =============================================================================
   A mate's generated videos
   ========================================================================== */

.videos { margin-top: 48px; }

.videos__head { margin-bottom: 18px; }
.videos__title { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.videos__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 2px 10px;
}

.videos__empty { color: var(--color-muted); }

.videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.video {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.video__frame {
    position: relative;
    aspect-ratio: 9 / 16;
    background: linear-gradient(150deg,
        hsl(var(--h) 60% 48%),
        hsl(calc(var(--h) + 45) 55% 30%));
}

.video__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.video__pending {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 6px rgb(0 0 0 / 0.4);
}

.video__spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255 / 0.4);
    border-top-color: #fff;
    animation: videoSpin 0.7s linear infinite;
}

@keyframes videoSpin { to { transform: rotate(360deg); } }

.video__meta { padding: 12px 14px; }
.video__name {
    display: block;
    font-size: 14.5px;
    line-height: 1.3;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.video__tags li {
    font-size: 11.5px;
    color: var(--color-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
}

@media (max-width: 560px) {
    .videos__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

.pill--disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =============================================================================
   Mate lifecycle — my-mates cards, portrait states, and the bring-to-life stage
   ========================================================================== */

/* Shared spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid color-mix(in srgb, var(--color-text) 25%, transparent);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: videoSpin .8s linear infinite;
    vertical-align: middle;
}
.spinner--lg { width: 34px; height: 34px; border-width: 3px; }

/* --- My mates: bigger cards, with her face -------------------------------- */
.mymate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
}
.mymate-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease;
}
.mymate-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
}
.mymate-card__face {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(155deg, hsl(var(--h) 68% 56%), hsl(calc(var(--h) + 50) 60% 34%));
}
.mymate-card__face img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    display: block;
}
.mymate-card__initials {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: rgb(255 255 255 / .85);
}
/* Not-yet-alive mates read as drafts. */
.mymate-card.is-draft .mymate-card__face,
.mymate-card.is-generating .mymate-card__face { opacity: .55; }
.mymate-card.is-draft:hover .mymate-card__face { opacity: .8; }

.mymate-card__pending {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: rgb(0 0 0 / .5);
    backdrop-filter: blur(4px);
}
.mymate-card__badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}
.mymate-card__badge .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.mymate-card__badge--draft { background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); }
.mymate-card__badge--alive { background: var(--gradient-brand); }

.mymate-card__body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem .9rem 1rem;
}
.mymate-card__name { font-size: 1rem; font-weight: 700; }
.mymate-card__meta { font-size: .78rem; color: var(--color-muted); }

/* --- Portrait states on the mate page ------------------------------------- */
.portrait--generating { opacity: .6; }
.mate__badge--draft { background: rgb(0 0 0 / .55) !important; }
.portrait__pending {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    background: rgb(0 0 0 / .5);
    backdrop-filter: blur(4px);
}

/* --- The bring-to-life stage ---------------------------------------------- */
.stage {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.stage__working { text-align: center; padding: 1rem 0 .4rem; }
.stage__working .spinner--lg { margin-bottom: 1rem; }
.stage__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.stage__sub {
    margin: .5rem 0 1.1rem;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--color-muted);
}
.stage__bar {
    height: 5px;
    max-width: 320px;
    margin: 1.2rem auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-surface-2);
    position: relative;
}
.stage__bar i {
    position: absolute;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--gradient-brand);
    transition: width .6s ease;
}
/* A thin sheen so a bar that sits at one percentage for a while still reads as
   "working" rather than "stuck". */
.stage__bar i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent);
    animation: stageSheen 1.6s ease-in-out infinite;
}
@keyframes stageSheen {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.stage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .4rem;
}
.stage__note { font-weight: 500; opacity: .85; }
.stage__balance { margin-top: .9rem; font-size: .84rem; color: var(--color-muted); }
.stage__short {
    margin-top: .7rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--color-primary);
}
.stage__error {
    margin-top: .7rem;
    font-size: .84rem;
    color: #ff6b6b;
}


/* --- Progress + failure states -------------------------------------------- */
.stage__step {
    margin: .55rem 0 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--color-muted);
    text-align: center;
}

.stage__failed { text-align: center; padding: 1rem 0 .4rem; }
.stage__failed .stage__title { color: var(--color-text); }
.stage__failed .stage__actions { justify-content: center; }

/* A slim bar across the bottom of a my-mates card while she renders. */
.mymate-card__bar {
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    overflow: hidden;
    background: rgb(0 0 0 / .35);
}
.mymate-card__bar i {
    display: block;
    height: 100%;
    background: var(--gradient-brand);
    transition: width .6s ease;
}
/* The pending strip sits just above the bar, so they do not overlap. */
.mymate-card.is-generating .mymate-card__pending { bottom: 3px; }

/* Failed renders read as a problem, not as a draft. */
.mymate-card.is-error .mymate-card__face { opacity: .5; }
.mymate-card__pending--error,
.portrait__pending--error,
.video__pending--error {
    background: rgb(120 20 30 / .72);
    color: #fff;
    font-weight: 600;
}
.portrait--error { opacity: .65; }
.video--error .video__frame { filter: saturate(.35); }
.video__label { display: inline-block; }





/* =============================================================================
   Content pages — about, support, and the three legal documents.

   Append this to the end of assets/css/style.css. It only adds; it does not
   change anything the rest of the site already uses.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   THE HONEYPOT

   This is the whole trick. To a browser the input is off-screen and invisible,
   so no human ever fills it in. To a bot parsing the HTML it is an ordinary
   text input called "website" that looks worth filling. Anything in it on
   submit and support.php denies the message without mailing it.

   Do NOT use display:none or type="hidden" — the better bots skip both.
   Do NOT rename the class without renaming it in support.php too.
   -------------------------------------------------------------------------- */
.hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* -----------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
.page { padding-block: clamp(2rem, 5vw, 3.25rem); }

.page__head { margin-bottom: 2.25rem; }
.page__title {
    margin: .6rem 0 .5rem;
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.page__lead {
    margin: 0;
    max-width: 62ch;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--color-muted);
}

/* Jump links at the top of the long documents. */
.page__toc {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--color-surface) 60%, transparent);
}
.page__toc a {
    padding: .3rem .6rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.page__toc a:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.page__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.page__done {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .6rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.page__done .icon { width: 22px; height: 22px; color: var(--color-primary); }

/* -----------------------------------------------------------------------------
   Long-form prose. Scoped, so it cannot leak into the app pages.
   -------------------------------------------------------------------------- */
.prose {
    max-width: 68ch;
    font-size: .95rem;
    line-height: 1.75;
    color: color-mix(in srgb, var(--color-text) 86%, var(--color-muted));
}
.prose > * + * { margin-top: 1.05rem; }

.prose h2 {
    margin-top: 2.6rem;
    margin-bottom: .2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--color-text);
    scroll-margin-top: 5rem;         /* so #anchors clear the sticky header */
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
    margin-top: 1.7rem;
    margin-bottom: .1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.prose p { margin: 0; }
.prose strong { color: var(--color-text); font-weight: 700; }

.prose ul, .prose ol { margin: 0; padding-left: 1.15rem; }
.prose li { margin-top: .45rem; }
.prose li::marker { color: var(--color-primary); }

.prose a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-primary) 55%, transparent);
    text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--color-primary); }

.prose__intro {
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: color-mix(in srgb, var(--color-surface) 70%, transparent);
    color: var(--color-muted);
}

/* The legal-basis table in the privacy policy. */
.ltable {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
}
.ltable th, .ltable td {
    padding: .6rem .7rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
.ltable th {
    color: var(--color-text);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ltable td:last-child { color: var(--color-muted); white-space: nowrap; }

@media (max-width: 620px) {
    .ltable, .ltable tbody, .ltable tr, .ltable td { display: block; width: 100%; }
    .ltable thead { display: none; }
    .ltable tr { padding: .55rem 0; border-bottom: 1px solid var(--color-border); }
    .ltable td { border: 0; padding: .1rem 0; }
    .ltable td:last-child { white-space: normal; font-size: .8rem; }
}

/* -----------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */
.notice {
    margin-bottom: 1.6rem;
    padding: .95rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    font-size: .9rem;
    line-height: 1.6;
}
.notice p { margin: 0; }
.notice p + p { margin-top: .4rem; }

.notice--error {
    border-color: color-mix(in srgb, #ff5c7a 45%, var(--color-border));
    background: color-mix(in srgb, #ff5c7a 10%, var(--color-surface));
    color: #ffd7de;
}
.notice--hard {
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
}

/* -----------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}
.contact .creator__block { margin-bottom: 1rem; }
.contact textarea { resize: vertical; min-height: 9rem; }
.contact__legal {
    margin: .9rem 0 0;
    font-size: .78rem;
    line-height: 1.55;
    color: var(--color-muted);
    text-align: center;
}
.contact + .prose { margin-top: 3rem; }

/* The "message sent" card sits on its own. */
.empty-card .page__done { justify-content: center; }
