/*--------------------------------------------------------------
    Invoige — Coming Soon / Early Access page

    Standalone on purpose: this folder ships to the domain on its own, before the
    main site is ready, so nothing here reaches into ../assets. Every value that
    the main site defines in abstracts/_variables.scss is restated once below as a
    custom property, and the two signature pieces this page borrows are ported as
    plain CSS:

      • the eyebrow + banter-loader mark     (layout/_reusable.scss)
      • the "crossing" .btn--base button     (components/_buttons.scss)

    The field, glows and staggered display title follow the home hero
    (layout/_introduction.scss).

    Plain, un-nested CSS on purpose: no build step, and nothing that an older
    phone browser would drop.

    >>> CONTENTS
      1. Tokens
      2. Base
      3. Backdrop
      4. Header
      5. Hero — eyebrow, title, lead
      6. Sign-up — bar, button, states
      7. Perks
      8. Footer
      9. Motion
--------------------------------------------------------------*/

/*--------------------------------------------------------------
    1. Tokens
--------------------------------------------------------------*/
:root {
    /* brand — same values as abstracts/_variables.scss */
    --c-base: #8c1381;
    --c-secondary: #6a0212;
    --c-secondary-deep: #520110;
    --c-white: #ffffff;

    /* the dark field the home hero sits on, and a panel one step above it */
    --c-field: #0a0510;
    --c-panel: #110a19;
    --c-autofill: #160d1e;

    /* a light magenta for small accents ON the dark field. The base magenta
       only reaches 2.4:1 there, so it fills surfaces but never draws text. */
    --c-accent: #ea8ee2;

    /* ink on dark */
    --c-text-strong: rgba(255, 255, 255, 0.94);
    --c-text: rgba(255, 255, 255, 0.74);
    --c-text-mute: rgba(255, 255, 255, 0.56);
    --c-placeholder: rgba(255, 255, 255, 0.5);

    /* rules and surfaces */
    --c-line: rgba(255, 255, 255, 0.1);
    --c-line-strong: rgba(255, 255, 255, 0.34); /* 3:1 on the field — an input edge must be findable */
    --c-line-hover: rgba(255, 255, 255, 0.55);
    --c-surface: rgba(255, 255, 255, 0.04);
    --c-surface-hover: rgba(255, 255, 255, 0.06);
    --c-surface-press: rgba(255, 255, 255, 0.12);
    --c-ring: rgba(140, 19, 129, 0.6);
    --c-glow: rgba(140, 19, 129, 0.35);

    /* feedback */
    --c-danger: #ff8fa3;
    --c-danger-ring: rgba(255, 143, 163, 0.3);

    /* type */
    --font-heading: "Righteous", sans-serif; /* ships weight 400 only */
    --font-body: "Geomini", sans-serif;

    /* spacing — 4px base */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    /* motion — the button's curve from components/_buttons.scss */
    --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background-color: var(--c-field);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
p,
ol {
    margin: 0;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

::selection {
    background: var(--c-base);
    color: var(--c-white);
}

.container {
    width: min(100% - clamp(32px, 6vw, 80px), 1160px);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* every line icon on the page is a stroked 24px path */
.promo-hello svg,
.btn svg,
.btn-ghost svg,
.signup__note svg,
.signup__done-mark svg,
.success__close svg,
.success__badge svg,
.success__note svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*--------------------------------------------------------------
    3. Backdrop — the home hero's field: near-black plum lit by magenta
    corner glows, plus a faint beam rising from the bottom. Fixed, so it
    stays put while a phone scrolls the perks into view.
--------------------------------------------------------------*/
.promo-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--c-field);
    background-image:
        radial-gradient(56% 46% at 84% 4%, rgba(140, 19, 129, 0.3), transparent 62%),
        radial-gradient(44% 42% at 8% 98%, rgba(140, 19, 129, 0.15), transparent 64%),
        radial-gradient(94% 74% at 50% 130%, rgba(106, 2, 18, 0.7), transparent 72%);
}

.promo-bg__beam {
    position: absolute;
    left: 50%;
    bottom: -18%;
    width: min(720px, 76%);
    height: 78%;
    transform: translateX(-50%);
    background: radial-gradient(50% 58% at 50% 100%, rgba(140, 19, 129, 0.22), transparent 70%);
    filter: blur(24px);
}

/*--------------------------------------------------------------
    4. Header
--------------------------------------------------------------*/
.promo-header {
    padding-block: var(--s-5);
}

.promo-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}

.promo-logo {
    display: inline-flex;
    border-radius: 2px;
}

.promo-logo img {
    height: clamp(28px, 3vw, 36px); /* the main header's size */
    width: auto;
}

.promo-logo:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: 6px;
}

.promo-hello {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--s-2);
    white-space: nowrap; /* one line even at 320px: logo + button just fit */
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--c-line-strong);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-strong);
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.promo-hello svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
}

.promo-hello:hover {
    border-color: var(--c-white);
    background-color: var(--c-surface-hover);
}

.promo-hello:hover svg {
    transform: translate(2px, -2px);
}

.promo-hello:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: 3px;
}

.promo-hello:active {
    background-color: var(--c-surface-press);
}

/*--------------------------------------------------------------
    5. Hero — eyebrow, title, lead
--------------------------------------------------------------*/
.promo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(24px, 5vh, 56px) clamp(48px, 9vh, 96px);
}

.promo-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Eyebrow (port of .eyebrow.eyebrow--light) ───────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.eyebrow__mark {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ── Banter loader — 9-box mark, native 72px geometry scaled to 18px ──────── */
.banter-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin-left: -36px;
    margin-top: -36px;
    transform: scale(0.25);
}

.banter-loader__box {
    float: left;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.banter-loader__box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--c-accent);
}

.banter-loader__box:nth-child(3n) {
    margin-right: 0;
    margin-bottom: 6px;
}
.banter-loader__box:nth-child(1)::before,
.banter-loader__box:nth-child(4)::before {
    margin-left: 26px;
}
.banter-loader__box:nth-child(3)::before {
    margin-top: 52px;
}
.banter-loader__box:last-child {
    margin-bottom: 0;
}

.banter-loader__box:nth-child(1) { animation: moveBox-1 4s infinite; }
.banter-loader__box:nth-child(2) { animation: moveBox-2 4s infinite; }
.banter-loader__box:nth-child(3) { animation: moveBox-3 4s infinite; }
.banter-loader__box:nth-child(4) { animation: moveBox-4 4s infinite; }
.banter-loader__box:nth-child(5) { animation: moveBox-5 4s infinite; }
.banter-loader__box:nth-child(6) { animation: moveBox-6 4s infinite; }
.banter-loader__box:nth-child(7) { animation: moveBox-7 4s infinite; }
.banter-loader__box:nth-child(8) { animation: moveBox-8 4s infinite; }
.banter-loader__box:nth-child(9) { animation: moveBox-9 4s infinite; }

/* ── Title — two lines staggered across the field ────────────────────────────
   Same build as .banner-hero__title: a flex column whose width scales with
   the font, the first line hugging the left edge and the second the right,
   so the difference in their widths opens the diagonal. */
.promo-title {
    --title-size: clamp(60px, 14vw, 156px);

    display: flex;
    flex-direction: column;
    width: calc(var(--title-size) * 4.6);
    max-width: 100%;
    margin-block: var(--s-5);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--title-size);
    line-height: 1.02;
    color: var(--c-white);
    text-shadow: 0 6px 40px var(--c-glow);
}

.promo-title__line {
    display: block;
}

.promo-title__line--start {
    align-self: flex-start;
}

.promo-title__line--end {
    align-self: flex-end;
}

.promo-lead {
    max-width: 46ch;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
    color: var(--c-text);
    text-wrap: pretty;
}

/*--------------------------------------------------------------
    6. Sign-up — the bar, the button, and its states

    Mobile first: the field and the button stack, each its own box. From
    576px they join into one bar: the field's edge hands over to the bar's,
    and the button sits flush in its right end.
--------------------------------------------------------------*/
.signup {
    width: min(100%, 560px);
    margin-top: clamp(28px, 4.5vh, 44px);
}

.signup__bar {
    display: grid;
    gap: 10px;
}

.signup__input {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding-inline: 18px;
    border: 1px solid var(--c-line-strong);
    border-radius: 0;
    background: var(--c-surface);
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: 16px; /* 16px or iOS zooms the page on focus */
    caret-color: var(--c-accent);
    transition: border-color 0.25s ease;
}

.signup__input::placeholder {
    color: var(--c-placeholder);
    opacity: 1;
}

.signup__input:hover {
    border-color: var(--c-line-hover);
}

.signup__input:focus {
    outline: none;
}

.signup__input:focus-visible {
    border-color: var(--c-white);
    outline: 2px solid var(--c-ring);
    outline-offset: 2px;
}

.signup__input[readonly] {
    color: var(--c-text);
}

/* keep browser autofill on the dark field instead of a pale yellow box */
.signup__input:-webkit-autofill,
.signup__input:-webkit-autofill:hover,
.signup__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--c-white);
    -webkit-box-shadow: 0 0 0 100px var(--c-autofill) inset;
    transition: background-color 9999s ease 0s;
}

/* the error outranks focus: the field is focused precisely while it is being fixed */
.signup__bar--invalid .signup__input,
.signup__bar--invalid .signup__input:hover,
.signup__bar--invalid .signup__input:focus-visible {
    border-color: var(--c-danger);
}

.signup__bar--invalid .signup__input:focus-visible {
    outline-color: var(--c-danger-ring);
}

/* ── The crossing button (port of .btn--base) ──────────────────────────────
   At rest   [ label | → ]   the arrow is a full-height segment on the right.
   On hover  [ ↗ | label ]   it leaves through the right edge, a twin arrives
   from the left, the label yields right, and the deep red sweeps in behind.
   The two paddings always sum to the same total, so the width never changes. */
.btn {
    --btn-pad: 30px;
    --btn-slot: 56px;
    --btn-move: 0.55s;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0 calc(var(--btn-slot) + 10px) 0 var(--btn-pad);
    overflow: hidden;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: var(--c-base);
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transform: translateZ(0);
    transition: color 0.45s ease, padding var(--btn-move) var(--ease-move);
}

/* the sweep, wiping in from the right — the side the resting arrow leaves by */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-secondary);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform var(--btn-move) var(--ease-move);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn:focus {
    outline: none;
}

/* inset, so the ring reads inside the bar's own border */
.btn:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: -6px;
}

.btn:disabled {
    cursor: progress;
}

/* two labels in one cell: the box is as wide as the longer one, always */
.btn__label {
    display: grid;
}

.btn__text {
    grid-area: 1 / 1;
}

.btn__text--busy {
    visibility: hidden;
}

.btn__rest,
.btn__arrive {
    position: absolute;
    top: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: var(--btn-slot);
    transition: opacity var(--btn-move) var(--ease-move), transform var(--btn-move) var(--ease-move);
}

.btn__rest > *,
.btn__arrive > * {
    grid-area: 1 / 1;
}

.btn__rest {
    right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* parked one slot out past the left edge, already pointing up-and-right */
.btn__arrive {
    left: 0;
    border-right: 1px solid var(--c-white);
    opacity: 0;
    transform: translateX(-100%);
}

.btn__arrive svg {
    transform: rotate(-45deg);
}

.btn:not(:disabled):hover,
.btn:not(:disabled):focus-visible {
    padding: 0 var(--btn-pad) 0 calc(var(--btn-slot) + 10px);
    color: var(--c-white);
}

.btn:not(:disabled):hover::before,
.btn:not(:disabled):focus-visible::before {
    transform: scaleX(1);
}

.btn:not(:disabled):hover .btn__rest,
.btn:not(:disabled):focus-visible .btn__rest {
    opacity: 0;
    transform: translateX(100%);
}

.btn:not(:disabled):hover .btn__arrive,
.btn:not(:disabled):focus-visible .btn__arrive {
    opacity: 1;
    transform: translateX(0);
}

.btn:not(:disabled):active::before {
    background: var(--c-secondary-deep);
}

/* busy — the label swaps in place, the resting segment turns into a spinner */
.btn.is-busy .btn__text {
    visibility: hidden;
}

.btn.is-busy .btn__text--busy {
    visibility: visible;
}

.btn.is-busy .btn__rest svg {
    opacity: 0;
}

.btn.is-busy .btn__rest::after {
    content: "";
    grid-area: 1 / 1;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--c-white);
    border-radius: 50%;
    animation: promo-spin 0.7s linear infinite;
}

@media (min-width: 576px) {
    .signup__bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
        border: 1px solid var(--c-line-strong);
        background: var(--c-surface);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .signup__bar:hover {
        border-color: var(--c-line-hover);
    }

    /* the bar carries the field's focus — the field has no edge of its own here */
    .signup__bar:focus-within {
        border-color: var(--c-white);
        box-shadow: 0 0 0 3px var(--c-ring);
    }

    .signup__input {
        height: 58px;
        padding-inline: 20px;
        border: 0;
        background: transparent;
    }

    .signup__input:focus-visible {
        outline: none;
    }

    .signup__bar--invalid,
    .signup__bar--invalid:hover,
    .signup__bar--invalid:focus-within {
        border-color: var(--c-danger);
    }

    .signup__bar--invalid:focus-within {
        box-shadow: 0 0 0 3px var(--c-danger-ring);
    }

    .btn {
        width: auto;
        min-height: 0;
    }
}

/* honeypot — out of sight, out of the tab order, out of the a11y tree */
.signup__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup__error {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-danger);
    text-align: start;
}

.signup__error:not(:empty) {
    margin-top: var(--s-3);
}

/* the lock rides inline with the text, so when the note wraps on a phone
   it stays beside the first word instead of being stranded at the edge */
.signup__note {
    margin-top: var(--s-4);
    font-size: 13.5px;
    color: var(--c-text-mute);
    text-align: center;
    text-wrap: balance;
}

.signup__note svg {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-inline-end: 6px;
    vertical-align: -2px;
}

/* ── Done — replaces the form. Same footprint as the bar, and its mark is the
   button's segment again, so the sign-up reads as one thing changing state. */
.signup__done {
    display: grid;
    grid-template-columns: 58px 1fr;
    border: 1px solid var(--c-line-strong);
    background: var(--c-surface);
    text-align: start;
    animation: promo-settle 0.5s var(--ease-out) both;
}

.signup__done[hidden] {
    display: none;
}

.signup__done:focus {
    outline: none;
}

.signup__done-mark {
    display: grid;
    place-items: center;
    background: var(--c-base);
    color: var(--c-white);
}

.signup__done-mark svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
}

.signup__done-body {
    padding: var(--s-4) var(--s-5);
}

.signup__done-title {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.3;
    color: var(--c-white);
}

.signup__done-text {
    margin-top: var(--s-1);
    font-size: 14.5px;
    color: var(--c-text);
    overflow-wrap: anywhere;
}

.signup__done-text strong {
    font-weight: 600;
    color: var(--c-text-strong);
}

/* "Submit another email" — a quiet text button under the confirmation */
.signup__again {
    margin-top: var(--s-2);
    padding: var(--s-1) 0;
    border: 0;
    background: none;
    color: var(--c-accent);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(234, 142, 226, 0.45);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: text-decoration-color 0.2s ease;
}

.signup__again:hover {
    text-decoration-color: currentColor;
}

.signup__again:focus {
    outline: none;
}

.signup__again:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: 3px;
    border-radius: 2px;
}

/*--------------------------------------------------------------
    6b. Success screen — a full-viewport <dialog> over the page

    Same field as the page, a shade more opaque and blurred, so the page reads
    as "behind" it. The check badge is the button's magenta segment grown up;
    the squares that burst from it are the eyebrow loader's boxes. The title
    is staggered like the hero's.
--------------------------------------------------------------*/
.success {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--c-text);
    background-color: rgba(10, 5, 16, 0.88);
    background-image:
        radial-gradient(52% 44% at 50% 26%, rgba(140, 19, 129, 0.28), transparent 70%),
        radial-gradient(90% 70% at 50% 125%, rgba(106, 2, 18, 0.55), transparent 70%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* only when open — a bare `display` here would override the closed dialog's
   display: none and leave it permanently on screen */
.success[open] {
    display: flex;
    animation: success-in 0.35s var(--ease-out) both;
}

.success::backdrop {
    background: transparent;
}

/* the page behind must not scroll while the screen is up */
html:has(.success[open]) {
    overflow: hidden;
}

/* margin: auto centres it, and unlike align-items: center it never pushes the
   top out of reach when a short phone screen makes the content overflow */
.success__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100% - 32px, 600px);
    margin: auto;
    padding-block: 88px 56px;
    text-align: center;
}

.success__close {
    position: absolute;
    top: var(--s-5);
    right: var(--s-5);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--c-line-strong);
    background: transparent;
    color: var(--c-text-strong);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.success__close svg {
    width: 18px;
    height: 18px;
}

.success__close:hover {
    border-color: var(--c-white);
    background-color: var(--c-surface-hover);
}

.success__close:focus {
    outline: none;
}

.success__close:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: 3px;
}

.success__close:active {
    background-color: var(--c-surface-press);
}

/* ── Badge ── */
.success__badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    background: var(--c-base);
    color: var(--c-white);
    box-shadow: 0 12px 40px rgba(140, 19, 129, 0.45);
    animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

/* one ring that expands and fades */
.success__badge::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid var(--c-accent);
    opacity: 0;
    animation: success-ring 1.2s var(--ease-out) 0.3s both;
}

.success__badge svg {
    width: 34px;
    height: 34px;
}

.success__badge path {
    stroke-width: 2.6;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: success-draw 0.5s var(--ease-out) 0.3s both;
}

.success__spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--c-accent);
    opacity: 0;
    animation: success-spark 0.9s var(--ease-out) 0.28s both;
}

.success__spark:nth-child(even) {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--c-white);
}

/* ── Copy ── */
.success__eyebrow {
    margin-top: var(--s-6);
}

.success__title {
    display: grid;
    width: max-content;
    max-width: 100%;
    margin-top: var(--s-4);
    /* room on the right for the second line to step past the first */
    padding-inline-end: 0.9em;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(56px, 12vw, 128px);
    line-height: 1.02;
    color: var(--c-white);
    text-shadow: 0 6px 40px var(--c-glow);
}

.success__title:focus {
    outline: none;
}

.success__title-line {
    display: block;
    justify-self: start;
}

.success__title-line--end {
    justify-self: end;
    margin-inline-end: -0.9em;
}

.success__text {
    max-width: 44ch;
    margin-top: var(--s-5);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.65;
    color: var(--c-text);
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.success__text strong {
    font-weight: 600;
    color: var(--c-white);
}

.success__note {
    margin-top: var(--s-3);
    font-size: 13.5px;
    color: var(--c-text-mute);
    text-wrap: balance;
}

.success__note svg {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-inline-end: 6px;
    vertical-align: -3px;
}

/* ── Actions — stacked full-width on a phone, side by side above ── */
.success__actions {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: var(--s-6);
}

.success__actions .btn {
    min-height: 54px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 54px;
    margin: 0;
    padding: 0 var(--s-5);
    border: 1px solid var(--c-line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--c-text-strong);
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.btn-ghost svg {
    width: 16px;
    height: 16px;
}

.btn-ghost:hover {
    border-color: var(--c-white);
    background-color: var(--c-surface-hover);
}

.btn-ghost:focus {
    outline: none;
}

.btn-ghost:focus-visible {
    outline: 2px solid var(--c-white);
    outline-offset: 3px;
}

.btn-ghost:active {
    background-color: var(--c-surface-press);
}

@media (min-width: 576px) {
    .success__actions {
        display: flex;
        justify-content: center;
        gap: var(--s-3);
        width: auto;
    }

    .success__close {
        top: var(--s-6);
        right: var(--s-6);
    }
}

/* the copy rises in after the badge lands */
.success__eyebrow,
.success__title-line,
.success__text,
.success__note,
.success__actions {
    animation: promo-rise 0.7s var(--ease-out) both;
}
.success__eyebrow      { animation-delay: 0.18s; }
.success__title-line   { animation-delay: 0.24s; }
.success__title-line--end { animation-delay: 0.32s; }
.success__text         { animation-delay: 0.4s; }
.success__note         { animation-delay: 0.46s; }
.success__actions      { animation-delay: 0.52s; }

/*--------------------------------------------------------------
    7. Perks — a hairline grid of three panels. The 1px gap lets the
    list's own background show through, which draws every divider at once.
--------------------------------------------------------------*/
.perks {
    max-width: 1040px;
    margin-top: clamp(56px, 9vh, 104px);
}

.perks__title {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-text-mute);
    white-space: nowrap;
}

.perks__title::before,
.perks__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-line);
}

/* one column, then three — never auto-fit: three cards in two columns leave
   an orphan beside an empty cell, and the empty cell shows the rule colour */
.perks__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--c-line);
    background: var(--c-line);
}

@media (min-width: 720px) {
    .perks__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.perk {
    padding: clamp(22px, 2.6vw, 34px);
    background: var(--c-panel);
    text-align: start;
}

.perk__index {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--c-accent);
}

.perk__name {
    margin-top: var(--s-4);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(19px, 1.7vw, 22px);
    line-height: 1.25;
    color: var(--c-white);
}

.perk__text {
    margin-top: var(--s-2);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--c-text);
}

/*--------------------------------------------------------------
    8. Footer
--------------------------------------------------------------*/
.promo-footer {
    border-top: 1px solid var(--c-line);
    padding-block: var(--s-5);
    font-size: 13px;
    color: var(--c-text-mute);
}

.promo-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
    text-align: center;
}

@media (min-width: 576px) {
    .promo-footer__inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: var(--s-2) var(--s-5);
        text-align: start;
    }
}

/*--------------------------------------------------------------
    9. Motion
--------------------------------------------------------------*/
/* load-in: each block rises in turn; --d is set per element in the markup */
.reveal {
    animation: promo-rise 0.9s var(--ease-out) both;
    animation-delay: var(--d, 0ms);
}

@keyframes promo-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes promo-settle {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
}

@keyframes promo-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes success-in {
    from {
        opacity: 0;
    }
}

@keyframes success-pop {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes success-ring {
    0% {
        opacity: 0.9;
        transform: scale(0.85);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes success-draw {
    from {
        stroke-dashoffset: 1;
    }
}

@keyframes success-spark {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.3) rotate(0deg);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--r));
    }
}

@media (prefers-reduced-motion: reduce) {
    /* :nth-child(n), not the bare class: each box's animation is set by an
       :nth-child() rule, which a plain .banter-loader__box can never outrank */
    .reveal,
    .signup__done,
    .banter-loader__box:nth-child(n),
    .success[open],
    .success__badge,
    .success__badge::after,
    .success__badge path,
    .success__spark,
    .success__eyebrow,
    .success__title-line,
    .success__text,
    .success__note,
    .success__actions {
        animation: none;
    }

    .btn,
    .btn::before,
    .btn__rest,
    .btn__arrive,
    .promo-hello svg {
        transition: none;
    }

    /* the spinner is the one motion that carries meaning: slow it, don't stop it */
    .btn.is-busy .btn__rest::after {
        animation-duration: 1.6s;
    }
}

@keyframes moveBox-1 {
    9.0909% { transform: translate(-26px, 0); }
    18.1818% { transform: translate(0, 0); }
    27.2727% { transform: translate(0, 0); }
    36.3636% { transform: translate(26px, 0); }
    45.4545% { transform: translate(26px, 26px); }
    54.5455% { transform: translate(26px, 26px); }
    63.6364% { transform: translate(26px, 26px); }
    72.7273% { transform: translate(26px, 0); }
    81.8182% { transform: translate(0, 0); }
    90.9091% { transform: translate(-26px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-2 {
    9.0909% { transform: translate(0, 0); }
    18.1818% { transform: translate(26px, 0); }
    27.2727% { transform: translate(0, 0); }
    36.3636% { transform: translate(26px, 0); }
    45.4545% { transform: translate(26px, 26px); }
    54.5455% { transform: translate(26px, 26px); }
    63.6364% { transform: translate(26px, 26px); }
    72.7273% { transform: translate(26px, 26px); }
    81.8182% { transform: translate(0, 26px); }
    90.9091% { transform: translate(0, 26px); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-3 {
    9.0909% { transform: translate(-26px, 0); }
    18.1818% { transform: translate(-26px, 0); }
    27.2727% { transform: translate(0, 0); }
    36.3636% { transform: translate(-26px, 0); }
    45.4545% { transform: translate(-26px, 0); }
    54.5455% { transform: translate(-26px, 0); }
    63.6364% { transform: translate(-26px, 0); }
    72.7273% { transform: translate(-26px, 0); }
    81.8182% { transform: translate(-26px, -26px); }
    90.9091% { transform: translate(0, -26px); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-4 {
    9.0909% { transform: translate(-26px, 0); }
    18.1818% { transform: translate(-26px, 0); }
    27.2727% { transform: translate(-26px, -26px); }
    36.3636% { transform: translate(0, -26px); }
    45.4545% { transform: translate(0, 0); }
    54.5455% { transform: translate(0, -26px); }
    63.6364% { transform: translate(0, -26px); }
    72.7273% { transform: translate(0, -26px); }
    81.8182% { transform: translate(-26px, -26px); }
    90.9091% { transform: translate(-26px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-5 {
    9.0909% { transform: translate(0, 0); }
    18.1818% { transform: translate(0, 0); }
    27.2727% { transform: translate(0, 0); }
    36.3636% { transform: translate(26px, 0); }
    45.4545% { transform: translate(26px, 0); }
    54.5455% { transform: translate(26px, 0); }
    63.6364% { transform: translate(26px, 0); }
    72.7273% { transform: translate(26px, 0); }
    81.8182% { transform: translate(26px, -26px); }
    90.9091% { transform: translate(0, -26px); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-6 {
    9.0909% { transform: translate(0, 0); }
    18.1818% { transform: translate(-26px, 0); }
    27.2727% { transform: translate(-26px, 0); }
    36.3636% { transform: translate(0, 0); }
    45.4545% { transform: translate(0, 0); }
    54.5455% { transform: translate(0, 0); }
    63.6364% { transform: translate(0, 0); }
    72.7273% { transform: translate(0, 26px); }
    81.8182% { transform: translate(-26px, 26px); }
    90.9091% { transform: translate(-26px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-7 {
    9.0909% { transform: translate(26px, 0); }
    18.1818% { transform: translate(26px, 0); }
    27.2727% { transform: translate(26px, 0); }
    36.3636% { transform: translate(0, 0); }
    45.4545% { transform: translate(0, -26px); }
    54.5455% { transform: translate(26px, -26px); }
    63.6364% { transform: translate(0, -26px); }
    72.7273% { transform: translate(0, -26px); }
    81.8182% { transform: translate(0, 0); }
    90.9091% { transform: translate(26px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-8 {
    9.0909% { transform: translate(0, 0); }
    18.1818% { transform: translate(-26px, 0); }
    27.2727% { transform: translate(-26px, -26px); }
    36.3636% { transform: translate(0, -26px); }
    45.4545% { transform: translate(0, -26px); }
    54.5455% { transform: translate(0, -26px); }
    63.6364% { transform: translate(0, -26px); }
    72.7273% { transform: translate(0, -26px); }
    81.8182% { transform: translate(26px, -26px); }
    90.9091% { transform: translate(26px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes moveBox-9 {
    9.0909% { transform: translate(-26px, 0); }
    18.1818% { transform: translate(-26px, 0); }
    27.2727% { transform: translate(0, 0); }
    36.3636% { transform: translate(-26px, 0); }
    45.4545% { transform: translate(0, 0); }
    54.5455% { transform: translate(0, 0); }
    63.6364% { transform: translate(-26px, 0); }
    72.7273% { transform: translate(-26px, 0); }
    81.8182% { transform: translate(-52px, 0); }
    90.9091% { transform: translate(-26px, 0); }
    100% { transform: translate(0, 0); }
}
