/* Material tones at the hue of Lurgan's `#3551A0`, as `lbcrm-api`'s `themeFor` derives them */
:root {
    --paper: #fbf8fd;
    --ink: #1d1f29;
    --pencil: #4e5262;
    --hall: #f4f3fa;
    --rule: #cacbd8;
    --product: #3551a0;
    --product-container: #dbe1ff;
    --on-product-container: #001a55;
    --product-light: #b4c5ff;
    --accent: #f8f991;
    --inverse: #242734;
    --on-inverse: #d5d3db;

    /* The app frame's shades, from lbcrm-web's index.css */
    --frame: rgb(233 236 245);
    --frame-high: rgb(222 226 239);
    --indicator: rgb(214 221 246);
    --on-indicator: rgb(22 32 74);

    --measure: 38rem;
    --radius: 0.625rem;

    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Public Sans", system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 650;
}

p {
    margin: 0;
}

.wrap {
    width: min(100% - 3rem, 72rem);
    margin-inline: auto;
}

.sprite {
    display: none;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 1rem;
    z-index: 10;
}

.skip:focus {
    top: 1rem;
}

/**
 * What script.js moves in starts hidden, so it doesn't show and then jump. The class comes off
 * once motion has loaded, or after a moment if it never does.
 */
@media (prefers-reduced-motion: no-preference) {
    .motion-pending [data-words],
    .motion-pending [data-enter],
    .motion-pending [data-reveal] {
        opacity: 0;
    }
}

/* Header */

/**
 * A floating bar in the app's frame shade, over the hero rather than above it. The negative
 * margin lets the hero run up behind it; `is-scrolled` lifts it once the page has moved.
 */
.site-header {
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    height: 3.75rem;
    margin-bottom: -4.5rem;
    padding-inline: 0.75rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(100%, 74rem);
    height: 100%;
    margin-inline: auto;
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--frame-high) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    transition:
        background-color 250ms,
        box-shadow 250ms;
}

.site-header.is-scrolled .site-header__inner {
    background: color-mix(in srgb, var(--frame-high) 92%, transparent);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 0.08),
        0 8px 24px rgb(24 32 58 / 0.14);
}

.wordmark {
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--product);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wordmark__mark {
    width: 1.75rem;
    height: 1.75rem;
}

/* Material's navigation items, with the indicator pill following the section in view */
.site-nav {
    position: relative;
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--indicator);
    opacity: 0;
    transition:
        transform 450ms cubic-bezier(0.2, 0.9, 0.3, 1.15),
        width 450ms cubic-bezier(0.2, 0.9, 0.3, 1.15),
        opacity 200ms;
}

.site-nav a {
    position: relative;
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    color: rgb(31 41 55 / 0.78);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 150ms,
        color 150ms;
}

.site-nav a:hover {
    background: rgb(22 32 74 / 0.06);
    color: var(--ink);
}

.site-nav a[aria-current="true"] {
    color: var(--on-indicator);
}

.button--small {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

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

    .site-header__inner .button--small {
        margin-left: auto;
    }
}

/* Hero */

/**
 * A tonal panel the width of the window, running up behind the floating header, with the phone
 * standing on the accent's disc. The discs hang off the content, not the window's edges.
 */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: calc(4.5rem + clamp(2rem, 5vw, 4rem)) clamp(3rem, 6vw, 5rem);
    border-radius: 0 0 2.5rem 2.5rem;
    background: linear-gradient(160deg, var(--product-container), var(--hall) 70%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero__inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -6rem;
    bottom: -12rem;
    width: 30rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
}

.hero__inner::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 22rem;
    top: -5rem;
    width: 12rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--product-light);
    opacity: 0.45;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    font-weight: 780;
    letter-spacing: -0.03em;
    line-height: 1.02;
    max-width: 14ch;
}

/* Each word is split out by script.js so it can rise on its own */
.word {
    display: inline-block;
}

.lede {
    margin-top: 1.5rem;
    max-width: var(--measure);
    color: var(--pencil);
}

.lede + .lede {
    margin-top: 1rem;
}

.hero__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Material's filled and tonal buttons, with the state layer as a mix */
.button {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: var(--product);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    border-radius: 999px;
    transition:
        background-color 150ms,
        box-shadow 150ms;
}

.button:hover {
    background: color-mix(in srgb, var(--product), #fff 8%);
    box-shadow: 0 1px 3px rgb(22 32 74 / 0.25);
}

.button--tonal {
    background: color-mix(in srgb, var(--product-container), var(--product) 12%);
    color: var(--on-product-container);
}

.button--tonal:hover {
    background: color-mix(in srgb, var(--product-container), var(--product) 20%);
}

.button--on-primary {
    background: #fff;
    color: var(--product);
}

.button--on-primary:hover {
    background: var(--product-container);
}

.hero__demo {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.hero__drift {
    width: min(100%, 22rem);
}

.hero__caption {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    font-size: 0.9375rem;
    color: var(--pencil);
    font-variant-numeric: tabular-nums;
}

.hero__count {
    display: inline-block;
}

.replay {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pencil);
    background: none;
    border: 0;
    padding: 0.25rem 0.5rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

@media (max-width: 52rem) {
    .hero {
        border-radius: 0 0 1.75rem 1.75rem;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__inner::after {
        display: none;
    }
}

/* The hero's phone frame */

.phone {
    border: 0.625rem solid var(--ink);
    border-radius: 2.5rem;
    background: #fff;
    overflow: hidden;
    box-shadow:
        0 2rem 3.5rem -2rem rgb(28 36 51 / 0.45),
        0 0.5rem 1rem -0.5rem rgb(28 36 51 / 0.2);
}

.phone__screen {
    container-type: inline-size;
    aspect-ratio: 390 / 800;
}

/**
 * The check-in demo: lbcrm-web's check-in screen, redrawn at its own sizes. `--u` is one CSS
 * pixel of the 390-wide phone the screenshots were taken on, so every size below reads as the
 * Tailwind class it came from.
 */

.app {
    --u: calc(100cqw / 390);
    --content: #1f2937;

    position: relative;
    height: 100%;
    overflow: hidden;
    background: #f2f2f2;
    color: var(--content);
    font-family: "Fira Sans", sans-serif;
    font-size: calc(16 * var(--u));
    line-height: 1.5;
    -webkit-font-smoothing: auto;
}

.i {
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: calc(16 * var(--u));
    height: calc(64 * var(--u));
    padding-inline: calc(20 * var(--u));
    background: var(--frame);
}

.app__titles {
    flex-grow: 1;
    min-width: 0;
}

.app__title {
    font-size: calc(20 * var(--u));
    font-weight: 800;
    line-height: 1.2;
}

.app__subtitle {
    font-size: calc(14 * var(--u));
    line-height: 1.3;
    color: rgb(31 41 55 / 0.7);
}

.app__scroll {
    padding-bottom: calc(120 * var(--u));
}

.app__search {
    padding: calc(16 * var(--u)) calc(16 * var(--u)) 0;
}

.app__label {
    font-size: calc(14 * var(--u));
    font-weight: 700;
    margin-bottom: calc(8 * var(--u));
}

.app__input {
    height: calc(48 * var(--u));
    padding-inline: calc(16 * var(--u));
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgb(31 41 55 / 0.2);
    border-radius: calc(8 * var(--u));
    color: #9ca3af;
}

.app__letter {
    margin-top: calc(10 * var(--u));
    padding-inline: calc(16 * var(--u));
    font-weight: 700;
}

.app__list {
    list-style: none;
    margin: 0;
    padding: 0 calc(8 * var(--u));
}

/* `ActivatableListItem` */
.row {
    margin-block: calc(8 * var(--u));
    background: #fff;
    border: 1px solid transparent;
    border-radius: calc(16 * var(--u));
    transition:
        background-color 300ms,
        border-color 300ms;
}

.row.is-in {
    background: #dcfce7;
    border-color: #86efac;
}

.row.is-open {
    background: #fff;
    border-color: transparent;
}

.row__head {
    display: flex;
    align-items: stretch;
    border-radius: calc(16 * var(--u));
    transition: background-color 300ms;
}

.row.is-in.is-open .row__head {
    background: #dcfce7;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.row__chevron {
    display: grid;
    place-items: center;
    width: calc(40 * var(--u));
    flex-shrink: 0;
}

.row__chevron .i {
    width: calc(20 * var(--u));
    height: calc(20 * var(--u));
}

.row__main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: calc(12 * var(--u));
    padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(8 * var(--u)) 0;
}

/* `PersonAvatar` at `xs`, daisyUI's squircle mask */
.avatar {
    display: grid;
    place-items: center;
    width: calc(40 * var(--u));
    height: calc(40 * var(--u));
    flex-shrink: 0;
    background: var(--bg);
    color: #fff;
    mask: url("data:image/svg+xml,%3csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M100 0C20 0 0 20 0 100s20 100 100 100 100-20 100-100S180 0 100 0Z'/%3e%3c/svg%3e")
        center / contain no-repeat;
}

.avatar--dark {
    color: #2a323c;
}

.row__who {
    flex-grow: 1;
    min-width: 0;
    display: grid;
    gap: calc(2 * var(--u));
}

.row__name {
    line-height: 1.25;
}

.row__name b {
    font-weight: 800;
}

.row__flags {
    display: flex;
    flex-wrap: wrap;
    column-gap: calc(10 * var(--u));
    font-size: calc(12 * var(--u));
    font-weight: 700;
    line-height: 1.35;
}

.flag {
    display: inline-flex;
    align-items: center;
    gap: calc(4 * var(--u));
}

.flag .i {
    width: calc(14 * var(--u));
    height: calc(14 * var(--u));
}

.flag--amber {
    color: #92400e;
}

.flag--red {
    color: #b91c1c;
}

.flag--green {
    color: #166534;
}

/* `CheckInTick` */
.tick {
    display: grid;
    justify-items: center;
    gap: calc(2 * var(--u));
    min-width: calc(52 * var(--u));
}

.tick__circle {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(44 * var(--u));
    height: calc(44 * var(--u));
    border-radius: 50%;
    box-shadow: inset 0 0 0 calc(2 * var(--u)) rgb(31 41 55 / 0.4);
    color: #fff;
}

.tick__circle .i {
    stroke-width: 3;
    visibility: hidden;
}

.row.is-in .tick__circle {
    background: #16a34a;
    box-shadow: none;
}

.row.is-in .tick__circle .i {
    visibility: visible;
}

/* The request is out: daisyUI's spinner, while the ring goes pale */
.row.is-busy .tick__circle {
    box-shadow: inset 0 0 0 calc(2 * var(--u)) #e5e6e6;
}

.row.is-busy .tick__circle::after {
    content: "";
    width: calc(24 * var(--u));
    height: calc(24 * var(--u));
    border-radius: 50%;
    border: calc(2.5 * var(--u)) solid var(--product);
    border-right-color: transparent;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

.tick__time {
    min-height: calc(16 * var(--u));
    font-size: calc(11.2 * var(--u));
    font-weight: 700;
    line-height: calc(16 * var(--u));
    color: #15803d;
}

/* What a row opens to: `PersonCheckInDetails` */
.row__details {
    height: 0;
    overflow: hidden;
}

.row__details-inner {
    display: grid;
    gap: calc(10 * var(--u));
    padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u));
}

.alert {
    display: flex;
    gap: calc(16 * var(--u));
    padding: calc(16 * var(--u));
    border-radius: calc(16 * var(--u));
    background: #ffedd5;
    color: #7c2d12;
}

.alert .i {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
}

.alert__heading {
    font-weight: 700;
    line-height: 1.25;
}

.alert__body {
    margin-top: calc(4 * var(--u));
    font-size: calc(14 * var(--u));
    line-height: 1.4;
}

.tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(6 * var(--u));
}

.tile {
    display: grid;
    align-content: start;
    gap: calc(2 * var(--u));
    padding: calc(10 * var(--u));
    border-radius: calc(16 * var(--u));
    background: #e5e6e6;
}

.tile--success {
    background: #dcfce7;
    color: #052e16;
}

.tile__label {
    display: flex;
    align-items: center;
    gap: calc(4 * var(--u));
    font-size: calc(12 * var(--u));
    font-weight: 700;
    color: rgb(31 41 55 / 0.7);
}

.tile--success .tile__label {
    color: #166534;
}

.tile__label .i {
    width: calc(14 * var(--u));
    height: calc(14 * var(--u));
}

.tile__value {
    font-weight: 800;
    line-height: 1.25;
}

.tile__detail {
    font-size: calc(12 * var(--u));
    line-height: 1.35;
    opacity: 0.8;
}

/* `FloatingNavBar` */
.app__nav {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: calc(20 * var(--u));
    translate: -50% 0;
    display: flex;
    gap: calc(4 * var(--u));
    padding: calc(6 * var(--u)) calc(8 * var(--u));
    border-radius: calc(32 * var(--u));
    background: var(--frame-high);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 0.12),
        0 6px 16px rgb(24 32 58 / 0.16);
}

.app__nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(4 * var(--u));
    width: calc(64 * var(--u));
    padding: calc(6 * var(--u)) 0 calc(4 * var(--u));
    font-size: calc(12 * var(--u));
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    color: rgb(31 41 55 / 0.7);
}

.app__nav-icon {
    display: grid;
    place-items: center;
    width: calc(56 * var(--u));
    height: calc(32 * var(--u));
    border-radius: 999px;
}

.app__nav-item.is-current {
    font-weight: 800;
    color: var(--content);
}

.app__nav-item.is-current .app__nav-icon {
    background: var(--indicator);
    color: var(--on-indicator);
}

/* Where the demo's finger lands, so a visitor can follow the taps */
.app__touch {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: calc(44 * var(--u));
    height: calc(44 * var(--u));
    margin: calc(-22 * var(--u)) 0 0 calc(-22 * var(--u));
    border-radius: 50%;
    background: rgb(53 81 160 / 0.28);
    box-shadow: 0 0 0 calc(2 * var(--u)) rgb(53 81 160 / 0.35);
    opacity: 0;
    pointer-events: none;
}

/* What it does */

/* Registered so the stage's colour can be scrubbed between one feature's hue and the next */
@property --hue {
    syntax: "<number>";
    inherits: true;
    initial-value: 264;
}

.story {
    --hue: 264;

    padding-top: clamp(3rem, 7vw, 5.5rem);
    overflow-x: clip;
}

.story__lede {
    margin-top: 0.75rem;
    max-width: var(--measure);
    color: var(--pencil);
}

.story__body {
    width: min(100% - 3rem, 72rem);
    margin-inline: auto;
}

.stage {
    position: relative;
    isolation: isolate;
}

/* Two of the hero's flat discs, taking on the colour of the feature in view */
.stage__glow {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
}

.stage__glow i {
    position: absolute;
    border-radius: 50%;
    aspect-ratio: 1;
}

.stage__glow i:first-child {
    right: -4%;
    top: 30%;
    width: min(34rem, 60%);
    background: oklch(93% 0.075 var(--hue));
}

.stage__glow i:last-child {
    left: 4%;
    top: 12%;
    width: min(13rem, 24%);
    background: oklch(88% 0.06 calc(var(--hue) + 50));
    opacity: 0.6;
}

/* A browser window, for the screens as they look at a desk */
.browser {
    position: relative;
    z-index: 1;
    width: var(--browser);
    padding: 0 0.5rem 0.5rem;
    border-radius: 1.125rem;
    background: var(--frame-high);
    box-shadow:
        0 2.5rem 4rem -2rem rgb(22 32 74 / 0.4),
        0 0.75rem 1.5rem -0.75rem rgb(22 32 74 / 0.2);
    transform-origin: 50% 100%;
}

.browser__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 2.5rem;
    padding-inline: 0.5rem;
}

.browser__lights {
    display: flex;
    gap: 0.4rem;
}

.browser__lights i {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #ff5f57;
}

.browser__lights i:nth-child(2) {
    background: #febc2e;
}

.browser__lights i:nth-child(3) {
    background: #28c840;
}

.browser__address {
    flex: 0 1 20rem;
    margin-inline: auto;
    translate: -1.6rem 0;
    padding: 0.2rem 1rem;
    border-radius: 999px;
    background: var(--paper);
    color: var(--pencil);
    font-size: 0.8125rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser__address span {
    color: var(--ink);
}

.browser__screens {
    display: grid;
    aspect-ratio: 1440 / 900;
    overflow: hidden;
    border-radius: 0.625rem;
    background: #fff;
}

.screen {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The phone screens as a deck of cards, each in its own phone */
.deck {
    container-type: inline-size;
    position: relative;
    z-index: 2;
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    grid-area: 1 / 1;
    overflow: hidden;
    border: 3.5cqw solid var(--ink);
    border-radius: 14cqw;
    background: #fff;
    box-shadow:
        0 2rem 3rem -1.5rem rgb(28 36 51 / 0.5),
        0 0.5rem 1rem -0.5rem rgb(28 36 51 / 0.25);
    transform-origin: 50% 100%;
    backface-visibility: hidden;
}

/**
 * A phone's status bar, so a frame's rounded corners clip it rather than the app's own bar. It
 * takes the app bar's colour, which `--bar` on each card overrides for a themed screen.
 */
.status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.3em;
    padding-inline: 1.9em 1.5em;
    background: var(--bar, var(--frame));
    color: #1f2937;
    font-family: system-ui, sans-serif;
    font-weight: 650;
    line-height: 1;
}

.status__time {
    font-variant-numeric: tabular-nums;
}

.status__island {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7.4em;
    height: 2.1em;
    translate: -50% -50%;
    border-radius: 999px;
    background: #0b0b0f;
}

.status__icons {
    width: 2.8em;
    height: 1em;
}

.card .status {
    font-size: 3.4cqw;
}

.app .status {
    font-size: calc(14 * var(--u));
}

.card img {
    width: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Before script.js takes the deck, only the first of each shows */
.story:not(.is-live) .screen ~ .screen,
.story:not(.is-live) .card ~ .card {
    visibility: hidden;
}

/* The app's floating nav bar, with its pill following the feature in view */
.picker {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 0.25rem;
    width: max-content;
    max-width: 100%;
    padding: 0.375rem;
    border-radius: 2rem;
    background: var(--frame-high);
    box-shadow:
        0 1px 3px rgb(0 0 0 / 0.08),
        0 6px 16px rgb(24 32 58 / 0.1);
    overflow-x: auto;
    scrollbar-width: none;
}

.picker__pill {
    position: absolute;
    top: 0.375rem;
    bottom: 0.375rem;
    left: 0;
    width: 4.5rem;
    border-radius: 1.625rem;
    background: var(--indicator);
    box-shadow: 0 1px 2px rgb(22 32 74 / 0.12);
}

.picker button {
    position: relative;
    flex-shrink: 0;
    display: grid;
    justify-items: center;
    gap: 0.125rem;
    min-width: 4.5rem;
    padding: 0.5rem 0.625rem 0.375rem;
    border: 0;
    border-radius: 1.625rem;
    background: none;
    color: rgb(31 41 55 / 0.72);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 200ms;
}

.picker button:hover {
    color: var(--ink);
}

.picker button[aria-current="true"] {
    color: var(--on-indicator);
    font-weight: 800;
}

.picker svg {
    width: 1.375rem;
    height: 1.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chapter {
    --own: 264;
}

.chapter__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.125rem;
    background: oklch(92% 0.06 var(--own));
    color: oklch(42% 0.14 var(--own));
}

.chapter__icon svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chapter h3 {
    margin-top: 1.25rem;
    font-size: clamp(1.75rem, 2.6vw, 2.375rem);
    font-weight: 780;
    letter-spacing: -0.025em;
}

.chapter p {
    margin-top: 0.75rem;
    color: var(--pencil);
}

.chapter ul {
    display: grid;
    gap: 0.625rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
}

.chapter li {
    display: flex;
    gap: 0.75rem;
}

.chapter li::before {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.55em;
    border-radius: 50%;
    background: oklch(62% 0.15 var(--own));
}

/**
 * At a desk the stage sticks beside the chapters, and scrolling past each chapter deals its
 * screens onto the stage.
 */
@media (min-width: 64.01rem) {
    /* The heading sits atop the chapters, so the stage is beside it from the start */
    .story__body {
        display: grid;
        grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        column-gap: clamp(2rem, 4vw, 4rem);
    }

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

    .stage {
        --browser: min(92%, calc((100svh - 13rem) * 1.52));

        grid-area: 1 / 2 / 3 / 3;
        position: sticky;
        top: 4.5rem;
        height: calc(100svh - 4.5rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1.75rem;
    }

    .deck {
        position: absolute;
        right: -3%;
        top: 50%;
        width: calc(var(--browser) * 0.27);
        translate: 0 -38%;
    }

    .chapters {
        grid-area: 2 / 1;
    }

    .chapter {
        min-height: 88svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .chapter:first-child {
        min-height: 70svh;
    }
}

/* On a phone the stage is the deck alone, swiped through, with the chapter in view below */
@media (max-width: 64rem) {
    .stage {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 1.75rem;
        margin-top: 2rem;
        padding-top: 1rem;
    }

    .browser {
        display: none;
    }

    .deck {
        width: min(58vw, calc((100svh - 20rem) * 0.46), 17rem);
        translate: -8% 0;
        touch-action: pan-y;
        cursor: grab;
    }

    .deck.is-dragging {
        cursor: grabbing;
    }

    .deck:focus-visible {
        outline-offset: 1rem;
        border-radius: 14cqw;
    }

    .chapters {
        max-width: var(--measure);
        margin: 2rem auto 0;
    }

    .chapter + .chapter {
        margin-top: 3rem;
    }

    .story.is-live .chapter:not(.is-current) {
        display: none;
    }

    .story.is-live .chapter.is-current {
        animation: chapter-in 450ms cubic-bezier(0.2, 0.9, 0.3, 1);
    }

    .story.is-live .chapter + .chapter {
        margin-top: 0;
    }
}

@keyframes chapter-in {
    from {
        opacity: 0;
        translate: 0 0.75rem;
    }
}

/* Your hub */

.hub {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.hub__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.hub__tile {
    padding: 1.75rem;
    border-radius: 1.75rem;
    background: var(--hall);
    transition:
        background-color 200ms,
        translate 300ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.hub__tile:hover {
    background: var(--product-container);
    translate: 0 -0.25rem;
}

.hub__tile svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: var(--product);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hub__tile h3 {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 750;
}

.hub__tile p {
    margin-top: 0.375rem;
    color: var(--pencil);
    font-size: 1rem;
}

/* Pricing */

.pricing {
    padding-block: clamp(3rem, 7vw, 5rem);
    border-top: 1px solid var(--rule);
}

.pricing__head p {
    margin-top: 0.75rem;
    max-width: var(--measure);
    color: var(--pencil);
}

/* The page's one boast, set as big as the hero so it isn't skimmed past */
.pricing__head .ethos {
    max-width: none;
    margin-top: 1.25rem;
    color: var(--on-product-container);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-wrap: balance;
}

/* A highlighter stroke in the accent, which script.js sweeps across once it's in view */
.ethos mark {
    padding-inline: 0.08em;
    background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 100% 0.42em;
    color: inherit;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 900ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ethos mark.is-waiting {
    background-size: 0% 0.42em;
}

.price-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 2.25rem;
    overflow: hidden;
    border-radius: 2.5rem;
    background: var(--hall);
}

.price-card__main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--product-container);
}

.price-card__main::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -9rem;
    bottom: -11rem;
    width: 19rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
}

.price-card__label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--product);
}

.price-card__price {
    display: flex;
    align-items: flex-end;
    gap: 0.875rem;
    margin-top: 1rem;
}

.price-card__amount {
    color: var(--on-product-container);
    font-size: clamp(4.5rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.85;
    font-variant-numeric: tabular-nums;
}

.price-card__per {
    padding-bottom: 0.25rem;
    color: var(--pencil);
    font-size: 1rem;
    line-height: 1.3;
}

.price-card__alt {
    margin-top: 1rem;
    color: var(--on-product-container);
    font-weight: 650;
}

.price-card__list {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
}

.price-card__list li {
    display: flex;
    gap: 0.75rem;
}

.price-card__list svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15em;
    fill: none;
    stroke: var(--product);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-card__help {
    margin-top: 1.75rem;
    max-width: 22rem;
    color: var(--pencil);
    font-size: 0.9375rem;
}

.price-card__help a {
    color: var(--product);
    font-weight: 650;
}

.price-card__split {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.price-card__split-heading {
    font-size: 1.25rem;
    font-weight: 750;
}

.split {
    display: flex;
    gap: 3px;
    height: 1.25rem;
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 999px;
}

.split__part {
    flex: 0 0 calc(var(--share) - 3px);
    transform-origin: 0 50%;
}

.split__part--running,
.split__swatch--running {
    background: var(--product);
}

.split__part--fees,
.split__swatch--fees {
    background: var(--rule);
}

.split__part--develop,
.split__swatch--develop {
    background: #e3e45a;
}

.split__key {
    display: grid;
    margin: 1.25rem 0 0;
    font-size: 1rem;
}

.split__key div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.625rem;
    border-bottom: 1px solid var(--rule);
}

.split__key dt {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.625rem;
}

/* What a line covers, under its name */
.split__key small {
    grid-column: 2;
    color: var(--pencil);
    font-size: 0.875rem;
}

.split__key dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.split__swatch {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

@media (max-width: 52rem) {
    .price-card {
        grid-template-columns: 1fr;
        border-radius: 1.75rem;
    }
}

/* Plain sections */

.prose-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1rem clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 7vw, 5rem);
    border-top: 1px solid var(--rule);
}

/* The brand colour's own card, the one place it's used as a surface */
.contact {
    margin-block: clamp(2rem, 5vw, 3.5rem);
    padding: clamp(2rem, 5vw, 4rem);
    border: 0;
    border-radius: 2.5rem;
    background: var(--product);
    color: #fff;
}

.contact p {
    max-width: var(--measure);
    color: rgb(255 255 255 / 0.86);
}

.contact p + p {
    margin-top: 1rem;
}

.contact .contact__action {
    margin-top: 2rem;
}

.contact :focus-visible {
    outline-color: #fff;
}

@media (max-width: 52rem) {
    .prose-section {
        grid-template-columns: 1fr;
    }
}

/* The inverse surface, with the hero's two discs dimmed in the corner */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: clamp(1rem, 3vw, 2rem);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    border-radius: 2.5rem 2.5rem 0 0;
    background: var(--inverse);
    color: var(--on-inverse);
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    aspect-ratio: 1;
}

.site-footer::before {
    right: -8rem;
    top: -10rem;
    width: 24rem;
    background: var(--product);
    opacity: 0.35;
}

.site-footer::after {
    right: 12rem;
    bottom: -5rem;
    width: 9rem;
    background: var(--product-light);
    opacity: 0.16;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
}

.wordmark--footer {
    color: #fff;
    font-size: 1.75rem;
}

.wordmark--footer .wordmark__mark {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--product-light);
}

.site-footer__brand p {
    margin-top: 1rem;
    max-width: 26rem;
    color: rgb(255 255 255 / 0.72);
    font-size: 1rem;
}

.site-footer__links ul {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.75rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--product-light);
    text-decoration: underline;
}

.site-footer__small {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    color: rgb(255 255 255 / 0.55);
    font-size: 0.875rem;
}

.site-footer__small a {
    color: inherit;
}

.site-footer :focus-visible {
    outline-color: #fff;
}

@media (max-width: 52rem) {
    .site-footer {
        border-radius: 1.75rem 1.75rem 0 0;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
