/*
 * CommDex: public site styles.
 *
 * Colour discipline: CommDex Red #D00000, black #000000, white #FFFFFF and
 * opacity steps of black/white only. No other hues, no gradients.
 *
 * Contents
 *   1  Fonts            7  Header
 *   2  Tokens           8  Waitlist form
 *   3  Base             9  Sections
 *   4  Layout          10  Footer
 *   5  Type            11  Consent
 *   6  Buttons         12  Legal pages
 *                      13  Motion (reveals, reduced motion)
 *   Product mockups (the animated UI) → css/product.css
 */

/* ── 1. Fonts ─────────────────────────────────────────────── */

/* DM Sans (OFL), self-hosted. */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url("../fonts/dm-sans/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url("../fonts/dm-sans/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Futura (display) is a licensed font and is not bundled. "CommDex Display"
 * uses an installed Futura (all Apple devices have one). Once licensed,
 * put the WOFF2 files in /fonts/futura/ and uncomment the url() lines.
 * Other visitors see the interim fallback in --font-display until then.
 */
@font-face {
    font-family: "CommDex Display";
    font-weight: 700;
    font-display: swap;
    src: local("Futura PT Bold"), local("FuturaPT-Bold"), local("Futura Bold"), local("Futura-Bold");
    /* , url("../fonts/futura/futura-pt-bold.woff2") format("woff2"); */
}

@font-face {
    font-family: "CommDex Display";
    font-weight: 500;
    font-display: swap;
    src: local("Futura PT Medium"), local("FuturaPT-Medium"), local("Futura Medium"), local("Futura-Medium");
    /* , url("../fonts/futura/futura-pt-medium.woff2") format("woff2"); */
}

/* ── 2. Tokens ────────────────────────────────────────────── */

:root {
    --red: #d00000;
    --black: #000;
    --white: #fff;

    --font-display: "CommDex Display", "futura-pt", "Futura PT", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --fs-hero: clamp(2.75rem, 8vw - 0.25rem, 7.75rem); /* "Without the stack." stays on one line from tablet up */
    --fs-2xl: clamp(2.75rem, 1rem + 6.6vw, 7.5rem);
    --fs-xl: clamp(2.375rem, 1rem + 5.2vw, 6.25rem);
    --fs-lg: clamp(2.125rem, 1rem + 3.8vw, 4.75rem);
    --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);

    --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 3.5rem);
    --section-y: clamp(5.5rem, 3rem + 9vw, 11rem);
    --max: 90rem;
    --header-h: 4.25rem;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-ui: cubic-bezier(0.65, 0, 0.35, 1);
}

:root,
[data-theme="light"] {
    --bg: var(--white);
    --fg: var(--black);
    --muted: rgb(0 0 0 / 0.64);
    --subtle: rgb(0 0 0 / 0.5);
    --line: rgb(0 0 0 / 0.12);
    --line-strong: rgb(0 0 0 / 0.28);
    --surface: rgb(0 0 0 / 0.04);
    --focus: var(--red);
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: var(--black);
    --fg: var(--white);
    --muted: rgb(255 255 255 / 0.66);
    --subtle: rgb(255 255 255 / 0.56);
    --line: rgb(255 255 255 / 0.14);
    --line-strong: rgb(255 255 255 / 0.32);
    --surface: rgb(255 255 255 / 0.05);
    --focus: var(--white);
    color-scheme: dark;
}

/* ── 3. Base ──────────────────────────────────────────────── */

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

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

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

/* The hidden attribute always wins over a class's display (the form is display: grid). */
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    transform: translateY(-200%);
}

.skip-link:focus-visible {
    transform: none;
    outline-color: var(--red);
}

main:focus {
    outline: none;
}

/* ── 4. Layout ────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    background: var(--bg);
    color: var(--fg);
    padding-block: var(--section-y);
}

/* ── 5. Type ──────────────────────────────────────────────── */

.display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.display--hero { font-size: var(--fs-hero); }
.display--2xl { font-size: var(--fs-2xl); }
.display--xl { font-size: var(--fs-xl); }
.display--lg { font-size: var(--fs-lg); }
.display--md { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); line-height: 1; }

.display .line {
    display: block;
}

.accent {
    color: var(--red);
}

.eyebrow {
    display: flex;
    align-items: baseline;
    gap: 0.75em;
    margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow__index {
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

.eyebrow__index::after {
    content: "/";
    margin-left: 0.75em;
    color: var(--subtle);
}

.lead {
    max-width: 36rem;
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: var(--fg);
    text-wrap: pretty;
}

.body-muted {
    max-width: 34rem;
    color: var(--muted);
}

/* ── 6. Buttons ───────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    min-height: 3rem;
    padding: 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--sm {
    min-height: 2.5rem;
    padding: 0 1.125rem;
    font-size: 0.75rem;
}

.btn--lg {
    min-height: 3.5rem;
    padding: 0 1.75rem;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--fg);
    color: var(--bg);
}

.btn--outline {
    border-color: currentColor;
    color: inherit;
    background: transparent;
}

.btn--outline:hover {
    background: var(--fg);
    color: var(--bg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.btn__arrow {
    transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ── 7. Header ────────────────────────────────────────────── */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    color: var(--fg);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: var(--bg);
    border-bottom-color: var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    height: 100%;
}

.wordmark {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.wordmark__logo {
    display: block;
    width: auto;
    height: 1.75rem;
    max-width: 15rem; /* wide logos shrink to fit rather than crowd the navigation */
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 30rem) {
    .wordmark__logo {
        max-width: 11rem;
    }
}

.wordmark__logo--dark,
.site-header.has-dark-logo[data-theme="dark"] .wordmark__logo--main {
    display: none;
}

.site-header.has-dark-logo[data-theme="dark"] .wordmark__logo--dark {
    display: block;
}

.site-nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    font-size: 0.875rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--fg);
}

.site-header__cta-short {
    display: none;
}

@media (max-width: 56rem) {
    .site-nav {
        display: none;
    }

    .site-header__cta {
        margin-left: auto;
    }
}

@media (max-width: 30rem) {
    .site-header__cta-long {
        display: none;
    }

    .site-header__cta-short {
        display: inline;
    }
}

/* ── 8. Interest form ─────────────────────────────────────── */

.waitlist__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.25rem 1rem;
}

.waitlist__head,
.field--wide,
.waitlist__submit,
.waitlist__alert {
    grid-column: 1 / -1;
}

.waitlist__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.waitlist__intro {
    margin-top: 0.75rem;
    max-width: 34rem;
    color: var(--muted);
}

/* Date and time pickers: look like the other fields, and never overflow their
   column (iPad/iPhone Safari centres them and gives them a minimum width). */
.field {
    min-width: 0;
}

.field__input[type="date"],
.field__input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-width: 0;
    max-width: 100%;
    line-height: 3.5rem;
    text-align: left;
    font-family: inherit;
    color: var(--fg);
}

.field__input::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
}

.field__input::-webkit-datetime-edit {
    padding: 0;
}

.field__input::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
}

/* The picker's own icons and pop-ups follow the section's light or dark theme. */
[data-theme="dark"] .field__input {
    color-scheme: dark;
}

/* Demo slots: choice buttons instead of the browser's date and time pickers. */
.slots {
    border: 0;
    padding: 0;
    margin: 0;
}

.slots .field__label {
    padding: 0;
    margin-bottom: 0.4rem;
}

.slots__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slot {
    position: relative;
    cursor: pointer;
}

.slot input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.slot__box {
    display: grid;
    justify-items: center;
    min-width: 4.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    line-height: 1.25;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.slot__box b {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slot__box span {
    font-size: 0.9375rem;
    color: var(--muted);
}

.slot:hover .slot__box {
    border-color: var(--fg);
}

.slot input:checked + .slot__box {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.slot input:checked + .slot__box span {
    color: var(--white);
}

.slot input:focus-visible + .slot__box {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.slots[aria-invalid="true"] .slot__box {
    border-color: var(--red);
}

.field__input::placeholder {
    color: var(--subtle);
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.field__optional {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--subtle);
}

.field__input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.field__input:hover {
    border-color: var(--muted);
}

.field__input:focus-visible {
    border-color: var(--fg);
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Read-only (the "Referred by" field): clearly not something to fill in. */
.field__input[readonly] {
    border-style: dashed;
    color: var(--muted);
    cursor: default;
}

.field__input[readonly]:hover {
    border-color: var(--line-strong);
}

.field__input[aria-invalid="true"] {
    border-color: var(--red);
}

.field__error {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fg);
}

.field__error::before {
    content: "! ";
    color: var(--red);
    font-weight: 700;
}

.waitlist__submit {
    justify-self: start;
    margin-top: 0.25rem;
}

.waitlist__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.waitlist__alert {
    grid-column: 1 / -1;
    padding: 0.875rem 1rem;
    border-left: 3px solid var(--red);
    background: var(--surface);
    font-size: 0.9375rem;
}

.waitlist__note {
    margin-top: 1rem;
    max-width: 36rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.waitlist__note a {
    color: var(--fg);
}

.waitlist__done {
    padding: 1.5rem 0 0.5rem;
    border-top: 2px solid var(--red);
}

.waitlist__done:focus {
    outline: none;
}

.waitlist__done-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.waitlist__done-body {
    margin-top: 0.75rem;
    max-width: 30rem;
    color: var(--muted);
}

@media (max-width: 44rem) {
    .waitlist__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .waitlist__submit {
        justify-self: stretch;
    }
}

/* ── 9. Sections ──────────────────────────────────────────── */

/* Hero: the explainer video, full width and uncropped, on black. */
.hero-video {
    position: relative;
    display: grid;
    place-items: center;
    padding-top: var(--header-h);
    background: var(--black);
}

.hero-video__video {
    display: block;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--black);
}

.hero-video__sound {
    position: absolute;
    right: var(--gutter);
    bottom: 1.25rem;
    min-height: 2.75rem;
    padding: 0 1.1rem;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: 999px;
    background: rgb(0 0 0 / 0.6);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 40rem) {
    .hero-video__sound {
        bottom: 0.6rem;
        min-height: 2rem;
        padding: 0 0.75rem;
        font-size: 0.625rem;
    }
}

.hero-video__sound:hover {
    background: var(--red);
    border-color: var(--red);
}

.explainer__copy {
    display: grid;
    gap: 1.5rem;
    justify-items: start;
}

/* How it works: the explainer video. */
.explainer__head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1.5rem clamp(2rem, 1rem + 4vw, 6rem);
    align-items: end;
}

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

.explainer__frame {
    position: relative;
    margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    aspect-ratio: 16 / 9;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.explainer__frame video,
.explainer__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.explainer__play,
.explainer__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.explainer__placeholder {
    border: 1px dashed rgb(255 255 255 / 0.4);
    background: repeating-linear-gradient(135deg, #000 0 14px, #0b0b0b 14px 28px);
}

.explainer__play-icon {
    position: relative;
    width: clamp(4rem, 3rem + 3vw, 6rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red);
    transition: transform 0.3s var(--ease-out);
}

.explainer__play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 0.75em 0 0.75em 1.25em;
    border-color: transparent transparent transparent var(--white);
    transform: translate(-50%, -50%);
}

.explainer__play:hover .explainer__play-icon {
    transform: scale(1.06);
}

.explainer__placeholder .explainer__play-icon {
    background: rgb(255 255 255 / 0.15);
}

.explainer__play-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.explainer__placeholder-note {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.6);
}

@media (max-width: 60rem) {
    .explainer__head {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hero */
.hero {
    padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 8rem));
    padding-bottom: 0;
}

.hero__title {
    max-width: none;
}

.hero__row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 1rem + 4vw, 6rem);
    align-items: end;
    margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.hero__lead {
    max-width: 30rem;
}

.hero__stage {
    position: relative;
    margin-top: clamp(3.5rem, 2rem + 5vw, 6.5rem);
    padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

/* The lower part of the stage is black: the dashboard straddles the seam
   into the problem section below. */
.hero__stage::before {
    content: "";
    position: absolute;
    inset: 42% 0 0;
    background: var(--black);
}

.hero__stage .container {
    position: relative;
}

@media (max-width: 60rem) {
    .hero__row {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

/* Problem */
.problem {
    padding-bottom: 0;
}

.problem__intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 1rem + 4vw, 6rem);
}

.problem__intro .eyebrow,
.problem__intro .display {
    grid-column: 1 / -1;
}

.problem__copy {
    grid-column: 2;
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

@media (max-width: 60rem) {
    .problem__intro {
        grid-template-columns: 1fr;
    }

    .problem__copy {
        grid-column: 1;
    }
}

/* Introduction */
.intro__head {
    display: grid;
    gap: 0;
}

.intro__lead {
    margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
    max-width: 40rem;
}

.intro__body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 1rem + 5vw, 7rem);
    align-items: center;
    margin-top: clamp(4rem, 2rem + 6vw, 8rem);
}

.pillars {
    border-top: 1px solid var(--line);
}

.pillar {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 1.5rem;
    padding-block: clamp(1.25rem, 0.8rem + 1.4vw, 2rem);
    border-bottom: 1px solid var(--line);
}

.pillar__index {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--subtle);
    font-variant-numeric: tabular-nums;
    transition: color 0.4s;
}

.pillar__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    transition: color 0.4s;
}

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

.pillar.is-active .pillar__index,
.pillar.is-active .pillar__title {
    color: var(--red);
}

@media (max-width: 60rem) {
    .intro__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 40rem) {
    .pillar {
        grid-template-columns: 2.25rem 1fr;
        row-gap: 0.25rem;
    }

    .pillar__body {
        grid-column: 2;
    }
}

/* Product story sections (storefront, automation) */
.story-head {
    margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.story-body {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 1rem + 4vw, 6rem);
    align-items: start;
}

.story-body--flip {
    grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr);
}

.story-body--flip .story-copy {
    order: 2;
}

.story-note {
    margin-top: 1.5rem;
    max-width: 30rem;
    color: var(--muted);
}

.steps {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.steps__item {
    display: flex;
    gap: 1.25rem;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--line);
    color: var(--subtle);
    font-weight: 500;
    transition: color 0.4s;
}

.steps__item span {
    width: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.9;
    font-variant-numeric: tabular-nums;
}

.steps__item.is-active {
    color: var(--fg);
}

.steps__item.is-active span {
    color: var(--red);
}

@media (max-width: 64rem) {
    .story-body,
    .story-body--flip {
        grid-template-columns: 1fr;
    }

    .story-body--flip .story-copy {
        order: 0;
    }
}

/* Lifecycle */
.lifecycle__head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 1rem + 4vw, 6rem);
    align-items: end;
}

.lifecycle__head .eyebrow {
    grid-column: 1 / -1;
}

@media (max-width: 60rem) {
    .lifecycle__head {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }
}

/* Final call to action */
.final {
    border-top: 1px solid var(--line);
}

.final__title {
    max-width: 16ch;
}

.final__row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 1rem + 4vw, 6rem);
    margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    padding-top: clamp(2rem, 1rem + 2vw, 3rem);
    border-top: 1px solid var(--line);
}

@media (max-width: 60rem) {
    .final__row {
        grid-template-columns: 1fr;
    }
}

/* Key lines: the one sentence in a section that carries the argument. */
.key-line {
    max-width: 36rem;
    font-size: var(--fs-lead);
    font-weight: 700;
    line-height: 1.4;
    color: var(--fg);
    text-wrap: pretty;
}

.hero__copy {
    display: grid;
    gap: 1.25rem;
}

.intro__definition {
    margin-top: clamp(1rem, 0.5rem + 1.5vw, 2rem);
    max-width: 20ch;
}

.story-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--red);
}

.lifecycle__note {
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    text-align: center;
}

/* Everything connected */
.connected__head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2rem clamp(2rem, 1rem + 4vw, 6rem);
    align-items: end;
}

.connected__copy {
    display: grid;
    gap: 1.25rem;
}

.rail {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    margin-top: clamp(4rem, 2rem + 5vw, 7rem);
    --dot: 0.875rem;
}

.rail__hub {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    z-index: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 4px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    transform: translateY(calc(-50% + var(--dot) / 2));
}

.rail__line {
    position: absolute;
    left: 2rem;
    right: 0;
    top: calc(var(--dot) / 2 - 1px);
    height: 2px;
    background: var(--red);
    transform-origin: left center;
    transition: transform 1.4s var(--ease-out);
}

.rail__parts {
    grid-row: 1;
    grid-column: 2;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding-left: 1.5rem;
}

.rail__part {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(0.5s + var(--i) * 90ms);
}

.rail__dot {
    width: var(--dot);
    height: var(--dot);
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--bg);
}

.js [data-reveal="rail"]:not(.is-revealed) .rail__line {
    transform: scaleX(0);
}

.js [data-reveal="rail"]:not(.is-revealed) .rail__part {
    opacity: 0;
    transform: translateY(8px);
}

@media (max-width: 60rem) {
    .connected__head {
        grid-template-columns: 1fr;
    }

    /* A vertical line on small screens. */
    .rail {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .rail__hub {
        transform: none;
    }

    .rail__line {
        left: calc(var(--dot) / 2 - 1px);
        right: auto;
        top: 2.5rem;
        bottom: 0;
        width: 2px;
        height: auto;
        transform-origin: center top;
    }

    .js [data-reveal="rail"]:not(.is-revealed) .rail__line {
        transform: scaleY(0);
    }

    .rail__parts {
        grid-row: 2;
        grid-column: 1;
        grid-auto-flow: row;
        gap: 1.1rem;
        padding: 1.75rem 0 0;
    }

    .rail__part {
        grid-auto-flow: column;
        justify-content: start;
        align-items: center;
        text-align: left;
    }
}

/* Built for Nigerian businesses */
.audience__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 1rem + 4vw, 6rem);
    align-items: end;
}

.audience__lead {
    margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    color: var(--muted);
}

.audience__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.audience__categories li {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.audience__points {
    border-top: 1px solid var(--line);
}

.audience__points li {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.5rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
}

.audience__index {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 2;
    color: var(--red);
}

@media (max-width: 60rem) {
    .audience__grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing: one offer. The launch price is the focal point; the regular price
   sits above it, struck through, small enough never to compete. */
.pricing__title {
    /* Keeps "One annual licence." (about 12.3em wide) on one line on phones. */
    font-size: min(var(--fs-xl), 7vw);
}

.pricing__copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 36rem));
    gap: 1.25rem clamp(2rem, 1rem + 4vw, 6rem);
    margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.pricing__copy .lead {
    color: var(--muted);
}

.pricing__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "offer details"
        "action details"
        "included included";
    grid-template-rows: auto 1fr auto;
    margin-top: clamp(3rem, 2rem + 3vw, 5rem);
    border: 1px solid var(--fg);
    border-radius: 2px;
}

.pricing__offer,
.pricing__details,
.pricing__included,
.pricing__action {
    padding: clamp(1.5rem, 1rem + 2.2vw, 3.5rem);
}

.pricing__offer {
    grid-area: offer;
    padding-bottom: 0;
    /* The price is sized to this column (cqi), so it stays dominant at any width. */
    container-type: inline-size;
}

.pricing__label,
.pricing__period,
.pricing__small-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pricing__was {
    margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--subtle);
}

.pricing__was s {
    text-decoration-thickness: 0.08em;
}

.pricing__price {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 1rem + 8vw, 8rem);
    font-size: clamp(2.5rem, 20cqi, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--red);
    white-space: nowrap;
    transform-origin: 0 100%;
}

/* The naira sign is set smaller and raised, in DM Sans (which has the glyph). */
.pricing__sign {
    position: relative;
    top: -0.62em;
    margin-right: 0.04em;
    font-family: var(--font-body);
    font-size: 0.42em;
    font-weight: 700;
    letter-spacing: 0;
}

.pricing__period {
    margin-top: 1rem;
}

.pricing__details {
    grid-area: details;
    border-left: 1px solid var(--line-strong);
}

.pricing__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.pricing__row:first-child {
    padding-top: 0;
}

.pricing__row dt {
    color: var(--muted);
}

.pricing__row dd {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pricing__per {
    margin-left: 0.15em;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

.pricing__row--total {
    border-top: 2px solid var(--fg);
    border-bottom: 0;
    margin-top: -1px;
}

.pricing__row--total dt {
    color: var(--fg);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pricing__row--total dd {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1;
}

.pricing__small-title {
    margin-bottom: 1rem;
    color: var(--muted);
}

/* The yearly cost once the one-time setup is paid: clearly secondary. */
.pricing__after {
    margin-top: clamp(1.75rem, 1rem + 1.5vw, 2.5rem);
    padding: 1.25rem 1.5rem;
    background: var(--surface);
}

.pricing__after .pricing__small-title {
    margin-bottom: 0.5rem;
}

.pricing__after-price {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}

.pricing__after-note {
    margin-top: 0.25rem;
    color: var(--muted);
}

.pricing__included {
    grid-area: included;
    border-top: 1px solid var(--line-strong);
}

.pricing__included-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.5rem;
}

.pricing__included-list li {
    padding-block: 0.7rem;
    border-top: 1px solid var(--line);
    font-weight: 500;
    line-height: 1.35;
}

.pricing__action {
    grid-area: action;
    align-self: start;
    padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.pricing__note {
    margin-top: 0.875rem;
    font-size: 0.875rem;
    color: var(--muted);
}

@media (max-width: 60rem) {
    .pricing__copy {
        grid-template-columns: minmax(0, 36rem);
    }

    .pricing__card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "offer"
            "details"
            "included"
            "action";
        grid-template-rows: auto;
    }

    .pricing__offer {
        padding-bottom: clamp(1.5rem, 1rem + 2.2vw, 3.5rem);
    }

    .pricing__details {
        border-left: 0;
        border-top: 1px solid var(--line-strong);
    }

    .pricing__included {
        padding-top: 0;
        border-top: 0;
    }

    .pricing__included-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing__action {
        padding-top: 0;
    }

    .pricing__cta {
        width: 100%;
    }
}

@media (max-width: 30rem) {
    .pricing__included-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Why CommDex: three advantages, the third told in full (your business, your data). */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem);
    margin-bottom: clamp(4rem, 3rem + 4vw, 7rem);
}

.advantages__item {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-strong);
}

.advantages__item--key {
    border-top: 2px solid var(--red);
    padding-top: calc(1.25rem - 1px);
}

.advantages__index {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--red);
}

.advantages__title {
    font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
    line-height: 1;
}

.advantages__body {
    max-width: 24rem;
    color: var(--muted);
}

/* Follows the (also dark) audience section: a hairline between them. */
.ownership {
    border-top: 1px solid var(--line);
}

/* What's included: the six parts, under the connected rail. */
.included__label {
    margin-top: clamp(3.5rem, 2rem + 4vw, 6rem);
}

.advantages.included {
    margin-bottom: 0;
}

.ownership__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem clamp(2.5rem, 1rem + 4vw, 6rem);
    align-items: center;
}

.ownership__title {
    /* "Built to be owned." (about 11.1em wide) stays on one line: phones… */
    font-size: min(var(--fs-lg), 7.6vw);
}

@media (min-width: 60.01rem) {
    /* …and in the two-column layout, where it has about 7/12 of the width. */
    .ownership__title {
        font-size: min(var(--fs-lg), 4.3vw);
    }
}

.ownership__copy {
    display: grid;
    gap: 1.5rem;
}

.ownership__copy .lead {
    margin-top: clamp(0.5rem, 0.25rem + 1vw, 1rem);
}

@media (max-width: 60rem) {
    .advantages,
    .ownership__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.waitlist__privacy {
    margin-top: 0.5rem;
    max-width: 36rem;
    font-size: 0.75rem;
    color: var(--subtle);
}

.waitlist__privacy a {
    color: var(--muted);
}

/* ── 10. Footer ───────────────────────────────────────────── */

.site-footer {
    background: var(--bg);
    color: var(--fg);
    padding-block: clamp(3.5rem, 2rem + 4vw, 6rem) 2.5rem;
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem 3rem;
    align-items: end;
}

.site-footer__wordmark {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 1.5rem + 7vw, 8.5rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.site-footer__tagline {
    margin-top: 1rem;
    color: var(--muted);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    font-size: 0.875rem;
}

.site-footer__nav a,
.site-footer__link-button,
.site-footer__social a {
    color: var(--muted);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    transition: color 0.2s;
}

.site-footer__nav a:hover,
.site-footer__link-button:hover,
.site-footer__social a:hover {
    color: var(--fg);
}

.site-footer__social {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.site-footer__copyright {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--subtle);
}

@media (max-width: 48rem) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

/* ── 11. Consent ──────────────────────────────────────────── */

.consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
    background: var(--black);
    color: var(--white);
    border-top: 1px solid rgb(255 255 255 / 0.18);
    --fg: var(--white);
    --bg: var(--black);
    --focus: var(--white);
}

.consent__inner {
    display: flex;
    align-items: center;
    gap: 1rem 2.5rem;
    max-width: var(--max);
    margin-inline: auto;
}

.consent__text {
    flex: 1;
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.75);
}

.consent__text a {
    color: var(--white);
}

.consent__title {
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.consent__actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 56rem) {
    .consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .consent__actions .btn {
        white-space: normal;
        min-height: 2.75rem;
    }

    .consent__actions .btn:last-child {
        grid-column: 1 / -1;
    }
}

.prefs {
    width: min(34rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid rgb(0 0 0 / 0.2);
    border-radius: 4px;
    background: var(--white);
    color: var(--black);
    --fg: var(--black);
    --bg: var(--white);
    --muted: rgb(0 0 0 / 0.64);
    --line: rgb(0 0 0 / 0.12);
    --focus: var(--red);
}

.prefs::backdrop {
    background: rgb(0 0 0 / 0.6);
}

.prefs__inner {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.prefs__title {
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1;
}

.prefs__intro {
    color: var(--muted);
    font-size: 0.9375rem;
}

.prefs__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    cursor: pointer;
}

.prefs__row > div,
.prefs__row > span {
    display: grid;
    gap: 0.2rem;
}

.prefs__name {
    font-weight: 600;
}

.prefs__desc {
    font-size: 0.875rem;
    color: var(--muted);
}

.prefs__always {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
}

.switch {
    appearance: none;
    flex: none;
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    border: 1px solid var(--black);
    border-radius: 999px;
    background: var(--white);
    cursor: pointer;
    transition: background-color 0.2s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.5rem - 6px);
    height: calc(1.5rem - 6px);
    border-radius: 50%;
    background: var(--black);
    transition: transform 0.25s var(--ease-out), background-color 0.2s;
}

.switch:checked {
    background: var(--red);
    border-color: var(--red);
}

.switch:checked::after {
    background: var(--white);
    transform: translateX(1.25rem);
}

.prefs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

/* ── 12. Legal pages ──────────────────────────────────────── */

.legal {
    padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem));
}

.legal__title {
    max-width: 14ch;
}

.legal__meta {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.legal__notice {
    max-width: 44rem;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--red);
    background: var(--surface);
    font-size: 0.9375rem;
}

.prose {
    max-width: 44rem;
    margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
    font-size: 1.0625rem;
}

.prose h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.15;
    text-transform: uppercase;
}

.prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
}

.prose p,
.prose ul {
    margin-bottom: 1rem;
}

.prose ul {
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose .placeholder {
    padding: 0.05em 0.35em;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.875em;
}

.prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    padding: 0.75rem 0.75rem 0.75rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.table-scroll {
    overflow-x: auto;
}

/* ── 13. Motion ───────────────────────────────────────────── */

/* Line-by-line mask reveal for headlines. */
.line[data-reveal="mask"],
.line[data-enter="mask"] {
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.line[data-reveal="mask"] > span,
.line[data-enter="mask"] > span {
    display: block;
    transition: transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.js .line[data-reveal="mask"]:not(.is-revealed) > span {
    transform: translateY(105%);
}

@keyframes enter-mask {
    from { transform: translateY(105%); }
}

@keyframes enter-up {
    from { opacity: 0; transform: translateY(20px); }
}

@keyframes enter-fade {
    from { opacity: 0; }
}

.line[data-enter="mask"] > span {
    animation: enter-mask 1s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 90ms);
}

[data-enter="up"] {
    animation: enter-up 1s var(--ease-out) both;
    animation-delay: var(--enter-delay, 0ms);
}

[data-enter="fade"] {
    animation: enter-fade 1s var(--ease-out) both;
}

/* Fade/slide reveals, only when JavaScript is running. */
[data-reveal="up"] {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="up"]:not(.is-revealed) {
    opacity: 0;
    transform: translateY(24px);
}

/* Pricing card: one reveal, played in order. The struck-through price, then
   the launch price settling into place, the breakdown row by row, the
   button last. */
.pricing__card :is(.pricing__label, .pricing__was, .pricing__price, .pricing__period, .pricing__small-title, .pricing__row, .pricing__after, .pricing__included, .pricing__action) {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.pricing__card .pricing__was { transition-delay: 100ms; }
.pricing__card .pricing__price { transition-duration: 1.3s; transition-delay: 250ms; }
.pricing__card .pricing__period,
.pricing__card .pricing__details > .pricing__small-title { transition-delay: 500ms; }
.pricing__card .pricing__row { transition-delay: calc(550ms + var(--i, 0) * 90ms); }
.pricing__card .pricing__after { transition-delay: 950ms; }
.pricing__card .pricing__included { transition-delay: 1050ms; }
.pricing__card .pricing__action { transition-delay: 1150ms; }

.js .pricing__card:not(.is-revealed) :is(.pricing__label, .pricing__was, .pricing__period, .pricing__details > .pricing__small-title, .pricing__row, .pricing__after, .pricing__included, .pricing__action) {
    opacity: 0;
    transform: translateY(16px);
}

.js .pricing__card:not(.is-revealed) .pricing__price {
    opacity: 0;
    transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js [data-reveal]:not(.is-revealed),
    .js [data-reveal]:not(.is-revealed) > span,
    .js [data-reveal="rail"]:not(.is-revealed) .rail__line,
    .js [data-reveal="rail"]:not(.is-revealed) .rail__part,
    .js .pricing__card:not(.is-revealed) * {
        opacity: 1 !important;
        transform: none !important;
    }
}
