/*
 * SeedHost Loyalty Bonus (/loyalty-bonus/).
 * Every rule is scoped to the .stb-* blocks of the page content, so the theme's header, info bar,
 * breadcrumbs, page title and footer are never restyled. Sizes, colours and breakpoints repeat the
 * heroes, plan rows and bands of the rebuilt service pages. Amber means "yours", as in the site's
 * drawings: here it is the bonus.
 */

.stb-preview {
    --stb-ink: #212a2e;
    --stb-muted: #4f595f;
    --stb-orange: #ffa109;
    --stb-navy: #0b1730;
    --stb-deep: #0b1b36;
    --stb-blue: #345887;
    --stb-band: #f6f6f6;
    --stb-card: #ffffff;
    --stb-line: #dfe3e6;
    --stb-track: #e3e8ee;
    --stb-amber-ink: #8a5206;
    --stb-warm: #fff6e3;
    --stb-warm-line: #ffc15a;
    --stb-chip-line: #0b1730;
    --stb-chip-on: #ffe6b3;
    --stb-chip-on-ink: #4d3000;
    --stb-focus: #1862c0;
}

.lagom-dark-mode .stb-preview {
    --stb-ink: #fdfdfd;
    --stb-muted: #b0bed0;
    --stb-blue: #99bbed;
    --stb-band: #121212;
    --stb-card: #242424;
    --stb-line: #3b3b3b;
    --stb-track: #3a3f46;
    --stb-amber-ink: #ffcf7d;
    --stb-warm: #2a2416;
    --stb-warm-line: #8a5e12;
    --stb-chip-line: #92add0;
    --stb-chip-on: #5a3f0d;
    --stb-chip-on-ink: #ffe2a8;
    --stb-focus: #8fbcf5;
}

.stb-preview .stb-hero [hidden],
.stb-preview .stb-earn [hidden],
.stb-preview .stb-meter [hidden] {
    display: none !important;
}

.stb-preview [class^="stb-"] a:focus-visible,
.stb-preview [class^="stb-"] button:focus-visible,
.stb-preview a[class^="stb-"]:focus-visible {
    outline: 3px solid var(--stb-focus);
    outline-offset: 4px;
}

.stb-meter a:focus-visible {
    outline-color: #fff !important;
}

.stb-sr {
    position: absolute;
    width: 1px;
    height: 1px; /* taste-skill-ignore: visually hidden text */
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.stb-preview .stb-short-label {
    display: none;
}

/* ---------- Shared pieces ---------- */

.stb-preview .stb-hero-actions .button,
.stb-preview .stb-meter-actions .button,
.stb-preview .stb-legacy .button,
.stb-preview .stb-band .button,
.stb-preview .stb-finale .button {
    color: #fff !important;
}

/* Match the outlined e-mail actions on Contact Us, including their day/night colours. */
.stb-preview .button.stb-button-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1.2;
    border: 2px solid var(--stb-orange) !important;
    background: var(--stb-card) !important;
    color: var(--stb-ink) !important;
    box-shadow: none;
    text-transform: none;
    white-space: nowrap;
    transition: transform 180ms cubic-bezier(.16, 1, .3, 1), box-shadow 180ms cubic-bezier(.16, 1, .3, 1);
}

/* These variants own their hover colours; the theme's dark sliding overlay would obscure them. */
.stb-preview .button.stb-button-line::before {
    content: none;
}

.stb-preview .button.stb-button-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(11, 23, 48, .16);
}

.lagom-dark-mode .stb-preview .button.stb-button-line {
    border-color: #fda009 !important;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .stb-preview .button.stb-button-line {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stb-preview .button.stb-button-line {
        transition: none;
    }
    .stb-preview .button.stb-button-line:hover {
        transform: none;
    }
}

.stb-text-link {
    color: var(--stb-ink) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.stb-text-link--light {
    color: #fff !important;
}

.stb-sample {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 12px;
    border: 2px dashed #e0a030;
    border-radius: 5px;
    background: #fff3da;
    color: #6b4100;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.stb-sample--dark,
.lagom-dark-mode .stb-sample {
    border-color: #c99334;
    background: transparent;
    color: #ffd58a;
}

.stb-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 7px 0 0;
    border: 2px solid #0b1730;
    border-radius: 3px;
    vertical-align: -1px;
}

.stb-key--base { background: #3f78c8; }
.stb-key--bonus { margin-left: 18px; background: #ffa109; }
.stb-key--navy { background: #0b1730; }
.stb-key--white { margin-left: 18px; background: #fff; }

.lagom-dark-mode .stb-key--base,
.lagom-dark-mode .stb-key--bonus {
    border-color: #92add0;
}

/* Plan chips */

.stb-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.stb-picker-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.stb-picker-name {
    min-width: 46px;
    color: var(--stb-muted);
    font-size: 14px;
    font-weight: 600;
}

.stb-preview .stb-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 40px;
    padding: 0 12px;
    border: 2px solid var(--stb-chip-line);
    border-radius: 5px;
    background: var(--stb-card);
    color: var(--stb-ink) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease;
}

.stb-preview .stb-chip:hover {
    background: var(--stb-chip-on);
    color: var(--stb-chip-on-ink) !important;
}

.stb-preview .stb-chip:active {
    transform: scale(.96);
}

.stb-preview .stb-chip[aria-current="true"] {
    border-color: var(--stb-orange);
    background: var(--stb-chip-on);
    color: var(--stb-chip-on-ink) !important;
}

/* Ordered steps of the claim */

.stb-steps {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    counter-reset: stb-step;
}

.stb-steps li {
    position: relative;
    margin: 0 0 20px;
    padding: 4px 0 0 58px;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1.6;
    counter-increment: stb-step;
}

.stb-steps li::before {
    content: counter(stb-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 2px solid var(--stb-chip-line);
    border-radius: 50%;
    color: var(--stb-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.stb-steps strong {
    color: var(--stb-ink);
    font-weight: 700;
}

.stb-claim-demo {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

.stb-claim-demo seedperks-claim-demo:not(:defined) {
    display: block;
    aspect-ratio: 560 / 474;
}

/* The film: a placed frame until the film is cut */

.stb-film {
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    align-items: center;
    gap: 44px;
    padding-top: 84px;
}

.stb-film-frame {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #0b1b36;
    overflow: hidden;
}

/* The film itself: the frame holds the player */
.stb-film-frame--video {
    display: block;
    box-shadow: 0 18px 44px rgba(16, 42, 84, .16);
}

.stb-film-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f3f7fc;
}

.stb-film-frame .stb-gift-icon {
    position: absolute;
    right: 7%;
    bottom: 9%;
    width: 30%;
    height: auto;
}

.stb-film-text {
    position: absolute;
    top: 13%;
    left: 7%;
    display: grid;
    gap: 10px;
    max-width: 58%;
    text-align: left;
}

.stb-film-title {
    color: #fff;
    font-size: clamp(22px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.02em;
}

.stb-film-meta {
    color: #b7c5d9;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.4;
}

.stb-film-play {
    position: absolute;
    bottom: 12%;
    left: 7%;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    background: #ffa109;
    color: #0b1730;
}

.stb-film-play svg {
    margin-left: 4px;
}

.stb-film-soon {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 5px;
    background: #13294d;
    color: #dbe6f5;
    font-size: 13px;
    font-weight: 600;
}

.stb-film-copy h2,
.stb-claim-copy h2,
.stb-miles h2,
.stb-claim-b h2,
.stb-short h2,
.stb-rules h2 {
    margin: 0 0 14px;
    color: var(--stb-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: left;
}

.stb-film-copy p {
    max-width: 520px;
    margin: 0 0 18px;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1.7;
}

.stb-film-copy ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stb-film-copy li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 26px;
    color: var(--stb-ink);
    font-size: 17px;
    line-height: 1.55;
}

.stb-film-copy li::before {
    content: "";
    position: absolute;
    top: .52em;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--stb-orange);
}

.stb-film--wide {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 30px;
    text-align: center;
}

.stb-film--wide .stb-film-copy h2 {
    text-align: center;
}

.stb-film--wide .stb-film-copy p {
    max-width: 640px;
    margin: 0 auto;
}

.stb-film--wide .stb-film-frame {
    width: 100%;
    max-width: 980px;
}

/* ---------- Proposal A: the first screen ---------- */

.stb-hero {
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    align-items: center;
    gap: 26px;
    padding-top: 35px;
    padding-bottom: 28px;
    text-align: left;
}

.stb-hero-copy,
.stb-hero-art {
    min-width: 0;
}

.stb-hero h2,
.stb-meter h2 {
    margin: 0 0 24px;
    color: var(--stb-ink);
    font-size: clamp(34px, 3.65vw, 54px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.035em;
    text-align: left;
}

.stb-hero h2 span {
    color: var(--stb-blue);
}

.stb-hero-description {
    max-width: 510px;
    margin: 0 0 26px;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1.7;
}

.stb-hero-description strong {
    color: var(--stb-ink);
}

.stb-hero-actions,
.stb-meter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
}

.stb-hero-details,
.stb-meter-details {
    margin: 22px 0 0;
    color: var(--stb-muted);
    font-size: 13px;
    line-height: 1.6;
}

.stb-hero-details span,
.stb-meter-details span {
    padding: 0 6px;
}

/* The pointer to the amber field for customers on plans that are no longer offered. */
.stb-hero-legacy {
    margin: 10px 0 0;
    line-height: 1.6;
}

.stb-hero-legacy .stb-text-link::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 2px;
    background: #ffa109;
}

.stb-scene {
    width: 100%;
    max-width: 660px;
    margin-inline: auto;
    color: var(--stb-ink);
}

.stb-scene-art,
.stb-legacy-art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.stb-scene-art text {
    font-family: inherit;
}

.stb-scene-labels,
.stb-legacy-labels {
    position: relative;
    height: 24px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.stb-scene-labels li,
.stb-legacy-labels li {
    position: absolute;
    top: 0;
    margin: 0;
    color: var(--stb-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: color .2s ease, opacity .2s ease;
}

.stb-scene-labels li:nth-child(1) { left: 9.6%; }
.stb-scene-labels li:nth-child(2) { left: 27.3%; }
.stb-scene-labels li:nth-child(3) { left: 44.9%; }
.stb-scene-labels li:nth-child(4) { left: 62.6%; }
.stb-scene-labels li:nth-child(5) { left: 80.2%; }

.stb-scene-legend {
    margin: 14px 0 0;
    color: var(--stb-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.stb-demo-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.stb-demo-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 2px solid #0b1730;
    border-radius: 5px;
    background: #fff;
    color: #0b1730;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s ease;
}

.stb-demo-toggle:hover { background: #fff3da; }
.stb-demo-toggle:active { transform: scale(.97); }

.stb-demo-toggle svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.stb-demo-status {
    min-height: 1.4em;
    margin: 0;
    color: var(--stb-muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.lagom-dark-mode .stb-demo-toggle {
    border-color: #92add0;
    background: #202b37;
    color: #e9f2ff;
}

.lagom-dark-mode .stb-demo-toggle:hover { background: #2c3d52; }

/* The drawing's own life: modules rise once, lamps blink, the gift of the current step opens. */

.stb-col,
.stb-gift-lid,
.stb-pill,
.stb-spark {
    transform-box: fill-box;
}

.stb-col {
    transition: opacity .35s ease;
}

.stb-gift-lid {
    transform-origin: 50% 100%;
    transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}

.stb-hero-art[data-playing] .stb-col.is-future {
    opacity: .28;
}

.stb-hero-art[data-playing] .stb-scene-labels li.is-future {
    opacity: .35;
}

.stb-hero-art[data-playing] .stb-scene-labels li.is-now,
.stb-hero-art[data-touring] .stb-scene-labels li.is-now {
    color: var(--stb-amber-ink);
}

.stb-hero-art[data-playing] .stb-col.is-now .stb-gift-lid,
.stb-hero-art[data-touring] .stb-col.is-now .stb-gift-lid,
.stb-legacy-figure:hover .stb-col:last-child .stb-gift-lid {
    transform: translateY(-16px) rotate(-7deg);
}

@media (prefers-reduced-motion: no-preference) {
    .stb-hero .stb-unit,
    .stb-hero .stb-gift,
    .stb-hero .stb-base-face,
    .stb-hero .stb-bonus-face {
        animation: stb-rise .5s cubic-bezier(.2, .8, .2, 1) both;
        animation-delay: calc(var(--stb-c, 0) * 150ms + var(--stb-i, 0) * 70ms);
    }

    .stb-hero .stb-gift,
    .stb-hero .stb-base-face,
    .stb-hero .stb-bonus-face {
        animation-delay: calc(var(--stb-c, 0) * 150ms + 420ms);
    }

    .stb-hero .stb-col[data-col="1"] { --stb-c: 1; }
    .stb-hero .stb-col[data-col="2"] { --stb-c: 2; }
    .stb-hero .stb-col[data-col="3"] { --stb-c: 3; }
    .stb-hero .stb-col[data-col="4"] { --stb-c: 4; }

    .stb-led {
        animation: stb-blink 3.2s ease-in-out infinite;
        animation-delay: calc(var(--stb-i, 0) * 420ms);
    }

    .stb-unit .stb-led {
        animation-delay: calc(var(--stb-i, 0) * 420ms + var(--stb-c, 0) * 250ms + 1.6s);
    }

    .stb-spark {
        transform-origin: 50% 50%;
        animation: stb-twinkle 2.6s ease-in-out infinite;
    }

    .stb-spark:nth-of-type(2) { animation-delay: .7s; }
    .stb-spark:nth-of-type(3) { animation-delay: 1.4s; }

    .stb-pill {
        animation: stb-float 5s ease-in-out infinite;
    }
}

@keyframes stb-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes stb-blink {
    0%, 86%, 100% { opacity: 1; }
    92% { opacity: .25; }
}

@keyframes stb-twinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.55); opacity: .5; }
}

@keyframes stb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ---------- Proposal A: what a plan earns ---------- */

.stb-earn {
    margin-top: 30px;
    padding: 54px 0 48px;
    background: var(--stb-band);
}

.stb-earn-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
}

.stb-earn-head h3 {
    margin: 0 0 7px;
    color: var(--stb-ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.stb-earn-head p {
    margin: 0;
    color: var(--stb-muted);
    font-size: 16px;
    line-height: 1.66;
}

.stb-rows {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.stb-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: center;
    margin: 0;
    border-radius: 20px;
    background: var(--stb-card);
    color: var(--stb-ink);
}

.stb-row--top {
    border-top: 5px solid var(--stb-orange);
    border-radius: 0 0 20px 20px;
    background: var(--stb-warm);
}

.stb-cell {
    min-width: 0;
    padding: 23px 12px 19px;
    text-align: center;
}

.stb-label {
    padding: 0 0 8px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
}

.stb-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.stb-cell--gift .stb-value {
    color: var(--stb-amber-ink);
}

.stb-row[data-stb-row="0"] .stb-cell--gift .stb-value {
    color: var(--stb-muted);
    font-weight: 300;
}

.stb-cell--total .stb-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stb-cell--bar .stb-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.stb-bar {
    display: flex;
    flex: 0 1 230px;
    height: 14px;
    border-radius: 7px;
    background: var(--stb-track);
    overflow: hidden;
}

.stb-bar-base {
    flex: 0 0 33.333%;
    background: #3f78c8;
}

.stb-bar-bonus {
    background: var(--stb-orange);
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.stb-cell--bar strong {
    min-width: 2.6em;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

/* The same rows without amounts: age, the drawn gift, and what the customer gets in words. */

.stb-row--plain {
    grid-template-columns: minmax(0, .85fr) minmax(0, .55fr) minmax(0, 2fr);
}

.stb-row--plain .stb-cell--what {
    padding-right: 30px;
    text-align: left;
}

.stb-row--plain .stb-cell--what .stb-value {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
}

.stb-row--plain:first-child .stb-cell--gift .stb-value {
    color: var(--stb-muted);
    font-weight: 300;
}

.stb-row-gift {
    display: block;
    margin: 0 auto;
}

.stb-earn-note {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--stb-muted);
    font-size: 15px;
    line-height: 1.66;
}

/* A line between the sections, and a month that runs low, before and after a gift */

.stb-statement {
    max-width: 920px;
    margin: 0 auto;
    padding-top: 88px;
    color: var(--stb-ink);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-align: center;
    text-wrap: balance;
}

.stb-statement span {
    color: var(--stb-blue);
}

.stb-example {
    max-width: 560px;
    margin: 0 0 30px;
    padding: 20px 22px 16px;
    border-radius: 16px;
    background: var(--stb-band);
}

.stb-claim-b .stb-example {
    max-width: 760px;
    margin: 46px auto 0;
    background: var(--stb-card);
}

.stb-example-title {
    margin: 0 0 14px;
    color: var(--stb-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.stb-example-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    color: var(--stb-muted);
    font-size: 15px;
    line-height: 1.4;
}

.stb-use {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: var(--stb-track);
    overflow: hidden;
}

.stb-use i {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: var(--stb-orange);
}

.stb-example-row strong {
    color: var(--stb-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stb-example-note {
    margin: 12px 0 0;
    color: var(--stb-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* ---------- Proposal A: claim, older plans, close ---------- */

.stb-claim {
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    align-items: center;
    gap: 44px;
    padding-top: 84px;
}

.stb-claim-intro,
.stb-claim-b-intro {
    max-width: 520px;
    margin: 0 0 28px;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1.7;
}

.stb-legacy {
    padding-top: 84px;
}

.stb-legacy-panel {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 34px;
    padding: 50px 54px 44px;
    border: 2px solid var(--stb-warm-line);
    border-radius: 20px;
    background: var(--stb-warm);
}

.stb-legacy h2 {
    margin: 0 0 20px;
    color: var(--stb-ink);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.03em;
    text-align: left;
}

.stb-legacy h2 span {
    color: var(--stb-amber-ink);
}

.stb-legacy-copy p {
    max-width: 560px;
    margin: 0 0 16px;
    color: var(--stb-ink);
    font-size: 17px;
    line-height: 1.7;
}

.stb-legacy-copy .button {
    margin-top: 10px;
}

.stb-legacy-copy .stb-legacy-small {
    margin: 18px 0 0;
    color: var(--stb-muted);
    font-size: 13px;
}

.stb-legacy-figure {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
}

.stb-legacy-labels li:nth-child(1) { left: 26.5%; }
.stb-legacy-labels li:nth-child(2) { left: 70.5%; }

.stb-number {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0;
    place-items: center;
    border-radius: 50%;
    background: var(--stb-orange);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.stb-closing {
    padding-top: 30px;
    padding-bottom: 70px;
}

.stb-band {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 30px 36px;
    border-radius: 20px;
    background: #0b1b36;
}

.stb-band-icon { color: #ffb332; }
.stb-band-icon svg { display: block; }

.stb-preview .stb-band h3 {
    margin: 0 0 9px;
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.stb-band p {
    max-width: 640px;
    margin: 0;
    color: #b7c5d9;
    font-size: 16px;
    line-height: 1.7;
}

.stb-closing-note {
    margin: 22px 0 0;
    color: var(--stb-muted);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.stb-closing-note a {
    color: var(--stb-ink) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Proposal B: the meter ---------- */

.stb-meter {
    margin-top: 0;
    padding: 34px 0 40px;
    background: #0b1b36;
    color: #fff;
}

.stb-meter-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 46px;
}

.stb-meter-copy,
.stb-meter-panel {
    min-width: 0;
}

.stb-preview .stb-meter h2 {
    color: #fff !important;
}

.stb-meter h2 span {
    color: #ffc15a;
}

.stb-meter-description {
    max-width: 510px;
    margin: 0 0 26px;
    color: #b7c5d9;
    font-size: 17px;
    line-height: 1.7;
}

.stb-meter-description strong {
    color: #fff;
}

.stb-meter-details {
    color: #9fb2cc;
}

.stb-meter-panel {
    position: relative;
    padding: 24px 30px 24px;
    border-radius: 20px;
    background: #13294d;
}

.stb-meter-panel .stb-sample {
    position: absolute;
    top: 22px;
    right: 24px;
}

.stb-meter-readout {
    margin: 0;
    color: #b7c5d9;
    font-size: 20px;
    line-height: 1;
}

.stb-meter-readout strong {
    color: #fff;
    font-size: clamp(50px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.stb-meter-sum {
    min-height: 1.5em;
    margin: 10px 0 0;
    color: #dbe6f5;
    font-size: 16px;
    line-height: 1.5;
}

.stb-meter-sum strong {
    color: #fff;
    font-weight: 600;
}

.stb-meter-bar {
    position: relative;
    display: flex;
    height: 22px;
    margin: 16px 0 36px;
    border-radius: 11px;
    background: #0b1b36;
}

.stb-meter-base {
    flex: 0 0 33.333%;
    border-radius: 11px 0 0 11px;
    background: #4f8fe6;
}

.stb-meter-bonus {
    border-radius: 0 11px 11px 0;
    background: #ffa109;
    transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

.stb-meter-ticks i {
    position: absolute;
    top: 30px;
    color: #9fb2cc;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    transform: translateX(-50%);
}

.stb-meter-ticks i:nth-child(1) { left: 33.333%; }
.stb-meter-ticks i:nth-child(2) { left: 66.666%; }
.stb-meter-ticks i:nth-child(3) { left: 100%; transform: translateX(-100%); }

.stb-meter-label {
    margin: 0 0 10px;
    color: #9fb2cc;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.stb-stops {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    margin: 0 0 20px;
}

.stb-stops-track {
    position: absolute;
    right: 10%;
    bottom: 37px;
    left: 10%;
    height: 6px;
    border-radius: 3px;
    background: #0b1b36;
}

.stb-stops-fill {
    display: block;
    width: calc(var(--stb-stop, 0) * 25%);
    height: 100%;
    border-radius: 3px;
    background: #ffa109;
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.stb-preview .stb-stop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 92px;
    color: #b7c5d9 !important;
    text-decoration: none;
}

.stb-stop-mark {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 46px;
    margin-bottom: 4px;
    transition: transform .3s cubic-bezier(.2, 1.4, .4, 1);
}

.stb-stop-mark svg {
    display: block;
    opacity: .5;
    transition: opacity .2s ease;
}

.stb-stop-name {
    position: relative;
    padding-top: 30px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.stb-stop-name::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border: 3px solid #13294d;
    border-radius: 50%;
    background: #5f7fae;
    transition: background-color .2s ease, transform .2s ease;
}

.stb-stop.is-past .stb-stop-name::before,
.stb-stop[aria-current="true"] .stb-stop-name::before {
    background: #ffa109;
}

.stb-stop[aria-current="true"] {
    color: #fff !important;
}

.stb-stop[aria-current="true"] .stb-stop-name::before {
    transform: scale(1.25);
}

.stb-stop.is-past .stb-stop-mark svg,
.stb-stop[aria-current="true"] .stb-stop-mark svg {
    opacity: 1;
}

.stb-stop[aria-current="true"] .stb-stop-mark,
.stb-stop:hover .stb-stop-mark {
    transform: translateY(-5px);
}

.stb-picker--dark {
    gap: 8px 22px;
}

.stb-picker--dark .stb-picker-name {
    min-width: 44px;
    color: #9fb2cc;
}

.stb-preview .stb-picker--dark .stb-chip {
    min-width: 40px;
    min-height: 36px;
    padding: 0 9px;
}

.stb-preview .stb-picker--dark .stb-chip {
    border-color: #5f7fae;
    background: transparent;
    color: #dbe6f5 !important;
}

.stb-preview .stb-picker--dark .stb-chip:hover {
    background: #1c3763;
    color: #fff !important;
}

.stb-preview .stb-picker--dark .stb-chip[aria-current="true"] {
    border-color: #ffa109;
    background: #ffa109;
    color: #0b1730 !important;
}

/* ---------- Proposal B: the four steps ---------- */

.stb-miles {
    padding-top: 88px;
}

.stb-miles h2 {
    text-align: center;
}

.stb-miles-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.stb-mile {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    margin: 0;
    padding: 0 18px;
    text-align: center;
}

.stb-mile::before {
    content: "";
    position: absolute;
    top: 126px;
    right: 0;
    left: 0;
    height: 8px;
    background: var(--stb-orange);
}

.stb-mile:first-child::before { left: 50%; }
.stb-mile:last-child::before { right: 50%; }

.stb-mile-gift {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 112px;
}

.stb-mile-gift svg {
    display: block;
}

.stb-mile-dot {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    margin-top: 6px;
    border: 4px solid var(--stb-navy);
    border-radius: 50%;
    background: var(--stb-orange);
}

.lagom-dark-mode .stb-mile-dot {
    border-color: #121212;
}

.stb-mile-when {
    margin: 16px 0 6px;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1;
}

.stb-mile-when strong {
    display: block;
    margin-bottom: 4px;
    color: var(--stb-blue);
    font-size: clamp(44px, 4.4vw, 64px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
}

.stb-mile-text {
    max-width: 260px;
    margin: 6px 0 0;
    color: var(--stb-ink);
    font-size: 16px;
    line-height: 1.6;
}

.stb-miles-note {
    max-width: 760px;
    margin: 34px auto 0;
    color: var(--stb-muted);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* The timeline in motion. With motion allowed, page.js marks the section .stb-miles-armed: gifts, dots and the
   line turn pale. While the list is on screen (.stb-miles-run) a bead travels the line from 3 to 24 months, the
   line fills behind it, and each gift and its dot catch their colour and grow a little when the bead arrives.
   They stay so until the bead starts again. Without the script, or with reduced motion, the timeline is still
   and in full colour. */
.stb-miles-list {
    position: relative;
}

.stb-miles-list::before,
.stb-miles-list::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

/* The filled part of the line. */
.stb-miles-list::before {
    z-index: 1;
    top: 126px;
    left: 12.5%;
    width: 0;
    height: 8px;
    background: var(--stb-orange);
}

/* The bead. */
.stb-miles-list::after {
    z-index: 2;
    top: 121px;
    left: 12.5%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border: 4px solid var(--stb-navy);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .55), 0 0 18px 7px rgba(255, 161, 9, .6);
    opacity: 0;
}

.lagom-dark-mode .stb-miles-list::after {
    border-color: #121212;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .22), 0 0 18px 7px rgba(255, 161, 9, .6);
}

.stb-mile-gift svg {
    transform-origin: 50% 100%;
}

.stb-miles-armed .stb-mile-gift svg,
.stb-miles-armed .stb-mile-dot,
.stb-miles-armed .stb-mile::before {
    opacity: .3;
}

@media (prefers-reduced-motion: no-preference) {
    .stb-miles-run .stb-miles-list::before {
        animation: stb-mile-line 10s ease-in-out .6s infinite;
    }

    .stb-miles-run .stb-miles-list::after {
        animation: stb-mile-bead 10s ease-in-out .6s infinite;
    }

    .stb-miles-run .stb-mile:nth-child(1) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-1 10s ease-out .6s infinite; }
    .stb-miles-run .stb-mile:nth-child(2) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-2 10s ease-out .6s infinite; }
    .stb-miles-run .stb-mile:nth-child(3) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-3 10s ease-out .6s infinite; }
    .stb-miles-run .stb-mile:nth-child(4) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-4 10s ease-out .6s infinite; }
}

@keyframes stb-mile-line {
    0%, 8% { width: 0; opacity: 1; }
    22%, 29% { width: 25%; }
    43%, 50% { width: 50%; }
    64%, 90% { width: 75%; opacity: 1; }
    100% { width: 75%; opacity: 0; }
}

@keyframes stb-mile-bead {
    0% { left: 12.5%; opacity: 0; }
    3%, 8% { left: 12.5%; opacity: 1; }
    22%, 29% { left: 37.5%; }
    43%, 50% { left: 62.5%; }
    64%, 90% { left: 87.5%; opacity: 1; }
    100% { left: 87.5%; opacity: 0; }
}

@keyframes stb-mile-pop-1 {
    0%, 2% { opacity: .3; transform: scale(1); }
    6% { opacity: 1; transform: scale(1.2); }
    11%, 90% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes stb-mile-pop-2 {
    0%, 21% { opacity: .3; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.2); }
    30%, 90% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes stb-mile-pop-3 {
    0%, 42% { opacity: .3; transform: scale(1); }
    46% { opacity: 1; transform: scale(1.2); }
    51%, 90% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes stb-mile-pop-4 {
    0%, 63% { opacity: .3; transform: scale(1); }
    67% { opacity: 1; transform: scale(1.2); }
    72%, 90% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

/* Preview variant, switched on by ?miles=count in the address (page.js adds .stb-miles-count): the bead is a little
   larger and carries the month it stands for, counting 3, 4, 5 ... 24 on its way. The later legs cover more months,
   so they take a little longer (1.3 s, 1.8 s and 2.4 s) and the count runs faster there. */
@property --stb-month {
    syntax: "<integer>";
    inherits: false;
    initial-value: 3;
}

.stb-miles-count .stb-miles-list::after {
    top: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border-width: 3px;
    counter-reset: stb-month var(--stb-month);
    content: counter(stb-month);
    color: #0b1730;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .stb-miles-run.stb-miles-count .stb-miles-list::before { animation: stb-mile-line-c 11s ease-in-out .6s infinite; }
    .stb-miles-run.stb-miles-count .stb-miles-list::after { animation: stb-mile-bead-c 11s ease-in-out .6s infinite; }
    .stb-miles-run.stb-miles-count .stb-mile:nth-child(1) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-c1 11s ease-out .6s infinite; }
    .stb-miles-run.stb-miles-count .stb-mile:nth-child(2) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-c2 11s ease-out .6s infinite; }
    .stb-miles-run.stb-miles-count .stb-mile:nth-child(3) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-c3 11s ease-out .6s infinite; }
    .stb-miles-run.stb-miles-count .stb-mile:nth-child(4) :is(.stb-mile-gift svg, .stb-mile-dot) { animation: stb-mile-pop-c4 11s ease-out .6s infinite; }
}

@keyframes stb-mile-line-c {
    0%, 8% { width: 0; opacity: 1; }
    20%, 26% { width: 25%; }
    42%, 48% { width: 50%; }
    70%, 91% { width: 75%; opacity: 1; }
    100% { width: 75%; opacity: 0; }
}

@keyframes stb-mile-bead-c {
    0% { left: 12.5%; opacity: 0; --stb-month: 3; }
    3%, 8% { left: 12.5%; opacity: 1; --stb-month: 3; }
    20%, 26% { left: 37.5%; --stb-month: 6; }
    42%, 48% { left: 62.5%; --stb-month: 12; }
    70%, 91% { left: 87.5%; opacity: 1; --stb-month: 24; }
    100% { left: 87.5%; opacity: 0; --stb-month: 24; }
}

@keyframes stb-mile-pop-c1 {
    0%, 2% { opacity: .3; transform: scale(1); }
    6% { opacity: 1; transform: scale(1.2); }
    11%, 91% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes stb-mile-pop-c2 {
    0%, 19% { opacity: .3; transform: scale(1); }
    23% { opacity: 1; transform: scale(1.2); }
    28%, 91% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes stb-mile-pop-c3 {
    0%, 41% { opacity: .3; transform: scale(1); }
    45% { opacity: 1; transform: scale(1.2); }
    50%, 91% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes stb-mile-pop-c4 {
    0%, 69% { opacity: .3; transform: scale(1); }
    73% { opacity: 1; transform: scale(1.2); }
    78%, 91% { opacity: 1; transform: scale(1.1); }
    100% { opacity: .3; transform: scale(1); }
}

/* Still the preview variant, from tablet width up: the descriptions wait for the bead. Each one appears when the
   bead reaches its stop and then stays; the number above it is pale until then, like the gift. After the first
   full run page.js marks the section .stb-miles-seen and the texts stay for good. On phones the texts are simply
   there: the list is taller than the screen, and a reader may scroll to a stop before the bead gets to it. */
@media (min-width: 768px) {
    .stb-miles-armed.stb-miles-count:not(.stb-miles-seen) .stb-mile-text { opacity: 0; }
    .stb-miles-armed.stb-miles-count:not(.stb-miles-seen) .stb-mile-when { opacity: .3; }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .stb-miles-run.stb-miles-count:not(.stb-miles-seen) .stb-mile-text { animation: stb-mile-appear .6s ease-out 1 both; }
    .stb-miles-run.stb-miles-count:not(.stb-miles-seen) .stb-mile-when { animation: stb-mile-brighten .5s ease-out 1 both; }
    .stb-miles-run.stb-miles-count:not(.stb-miles-seen) .stb-mile:nth-child(1) :is(.stb-mile-text, .stb-mile-when) { animation-delay: .95s; }
    .stb-miles-run.stb-miles-count:not(.stb-miles-seen) .stb-mile:nth-child(2) :is(.stb-mile-text, .stb-mile-when) { animation-delay: 2.8s; }
    .stb-miles-run.stb-miles-count:not(.stb-miles-seen) .stb-mile:nth-child(3) :is(.stb-mile-text, .stb-mile-when) { animation-delay: 5.25s; }
    .stb-miles-run.stb-miles-count:not(.stb-miles-seen) .stb-mile:nth-child(4) :is(.stb-mile-text, .stb-mile-when) { animation-delay: 8.3s; }
}

/* The same run on a phone, where the line stands upright: the filled part grows downwards and the bead moves down. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .stb-miles-run .stb-miles-list::before { animation-name: stb-mile-line-v; }
    .stb-miles-run .stb-miles-list::after { animation-name: stb-mile-bead-v; }
    .stb-miles-run.stb-miles-count .stb-miles-list::before { animation-name: stb-mile-line-cv; }
    .stb-miles-run.stb-miles-count .stb-miles-list::after { animation-name: stb-mile-bead-cv; }
}

@keyframes stb-mile-line-v {
    0%, 8% { height: 0; opacity: 1; }
    22%, 29% { height: 25%; }
    43%, 50% { height: 50%; }
    64%, 90% { height: 75%; opacity: 1; }
    100% { height: 75%; opacity: 0; }
}

@keyframes stb-mile-bead-v {
    0% { top: 12.5%; opacity: 0; }
    3%, 8% { top: 12.5%; opacity: 1; }
    22%, 29% { top: 37.5%; }
    43%, 50% { top: 62.5%; }
    64%, 90% { top: 87.5%; opacity: 1; }
    100% { top: 87.5%; opacity: 0; }
}

@keyframes stb-mile-line-cv {
    0%, 8% { height: 0; opacity: 1; }
    20%, 26% { height: 25%; }
    42%, 48% { height: 50%; }
    70%, 91% { height: 75%; opacity: 1; }
    100% { height: 75%; opacity: 0; }
}

@keyframes stb-mile-bead-cv {
    0% { top: 12.5%; opacity: 0; --stb-month: 3; }
    3%, 8% { top: 12.5%; opacity: 1; --stb-month: 3; }
    20%, 26% { top: 37.5%; --stb-month: 6; }
    42%, 48% { top: 62.5%; --stb-month: 12; }
    70%, 91% { top: 87.5%; opacity: 1; --stb-month: 24; }
    100% { top: 87.5%; opacity: 0; --stb-month: 24; }
}

@keyframes stb-mile-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes stb-mile-brighten {
    from { opacity: .3; }
    to { opacity: 1; }
}

/* ---------- Proposal B: claim, older plans, rules, close ---------- */

.stb-claim-b {
    margin-top: 88px;
    padding: 70px 0 66px;
    background: var(--stb-band);
}

.stb-claim-b h2,
.stb-claim-b-intro {
    text-align: center;
}

.stb-claim-b-intro {
    max-width: 640px;
    margin: 0 auto;
}

.stb-claim-b-grid {
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.stb-steps--large {
    margin: 0;
}

/* The claim as a recording of the client area: a 4:3 film in a frame, with the steps beside it. While it plays,
   the step it has reached is marked (page.js sets data-stb-tour-step on the grid). */

.stb-claim-b-grid--tour {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 46px;
}

.stb-tour {
    margin: 0;
}

.stb-tour-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 42, 84, .14);
    border-radius: 20px;
    background: #f4f4f4;
    box-shadow: 0 18px 44px rgba(16, 42, 84, .14);
}

.stb-tour-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

.stb-tour-video:not([controls]) {
    cursor: pointer;
}

/* bottom left: the gift of the recording sits in the bottom-right corner */
.stb-preview .stb-tour-toggle {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: grid;
    width: 44px;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 23, 48, .8);
    color: #fff;
    line-height: 0;
    cursor: pointer;
}

.stb-preview .stb-tour-toggle[hidden] {
    display: none;
}

.stb-tour-toggle span {
    display: block;
    box-sizing: border-box;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent currentColor;
}

.stb-tour-playing .stb-tour-toggle span {
    width: 13px;
    height: 15px;
    margin-left: 0;
    border-width: 0 4px;
    border-color: currentColor;
}

.stb-tour figcaption {
    margin-top: 14px;
    color: var(--stb-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.stb-claim-b-grid--tour .stb-steps li,
.stb-claim-b-grid--tour .stb-steps li::before {
    transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

.stb-claim-b-grid[data-stb-tour-step="1"] .stb-steps li:nth-child(1),
.stb-claim-b-grid[data-stb-tour-step="2"] .stb-steps li:nth-child(2),
.stb-claim-b-grid[data-stb-tour-step="3"] .stb-steps li:nth-child(3) {
    color: var(--stb-ink);
}

.stb-claim-b-grid[data-stb-tour-step="1"] .stb-steps li:nth-child(1)::before,
.stb-claim-b-grid[data-stb-tour-step="2"] .stb-steps li:nth-child(2)::before,
.stb-claim-b-grid[data-stb-tour-step="3"] .stb-steps li:nth-child(3)::before {
    border-color: var(--stb-orange);
    background: var(--stb-orange);
    color: #0b1730;
}

@media (prefers-reduced-motion: reduce) {
    .stb-claim-b-grid--tour .stb-steps li,
    .stb-claim-b-grid--tour .stb-steps li::before { transition: none; }
}

.stb-steps--large li {
    margin-bottom: 26px;
    font-size: 18px;
}

.stb-steps--large li:last-child {
    margin-bottom: 0;
}

.stb-tip {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 760px;
    margin: 46px auto 0;
    padding: 20px 26px;
    border-radius: 16px;
    background: var(--stb-card);
}

.stb-claim .stb-tip {
    max-width: 560px;
    margin: 0 0 30px;
    background: var(--stb-band);
}

.stb-tip-gift {
    flex: 0 0 auto;
    display: block;
}

.stb-tip-title {
    margin: 0 0 4px;
    color: var(--stb-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.stb-tip-text {
    margin: 0;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1.6;
}

.stb-legacy-b {
    margin-top: 88px;
    padding: 80px 0 78px;
    background: #ffa109;
    color: #0b1730;
}

.stb-legacy-b-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.stb-preview .stb-legacy-b h2 {
    margin: 0 0 24px;
    color: #0b1730 !important; /* the field stays amber in dark mode, so its heading stays navy */
    font-size: clamp(40px, 4.8vw, 70px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-align: left;
}

.stb-legacy-b-copy p {
    max-width: 540px;
    margin: 0 0 16px;
    color: #14213d;
    font-size: 18px;
    line-height: 1.66;
}

.stb-compare-row {
    margin: 0 0 30px;
}

.stb-compare-name {
    margin: 0 0 10px;
    color: #0b1730;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.stb-compare-bar {
    display: flex;
    align-items: center;
    height: 38px;
}

.stb-compare-base {
    flex: 0 0 34%;
    height: 100%;
    border-radius: 8px 0 0 8px;
    background: #0b1730;
}

.stb-compare-bonus {
    box-sizing: border-box;
    height: 100%;
    border: 4px solid #0b1730;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #fff;
}

.stb-compare-gift {
    box-sizing: content-box;
    flex: 0 0 auto;
    margin-left: 12px;
    padding: 7px;
    border: 4px solid #0b1730;
    border-radius: 50%;
    background: #fff;
}

.stb-compare-key {
    margin: 0;
    color: #14213d;
    font-size: 14px;
    line-height: 1.6;
}

.stb-compare-hint {
    display: block;
    margin-top: 8px;
}

.stb-short {
    padding-top: 88px;
}

.stb-short-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 50px;
    margin: 30px 0 0;
}

.stb-short-list div {
    margin: 0;
}

.stb-short-list dt {
    margin: 0 0 6px;
    color: var(--stb-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.stb-short-list dd {
    max-width: 560px;
    margin: 0;
    color: var(--stb-muted);
    font-size: 17px;
    line-height: 1.66;
}

.stb-short-list dd a {
    color: var(--stb-ink) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Opened at its anchor, a section starts 60px below the top of the window. The pinned site header is 83px tall,
   so it still covers the gap, and the section heading lands clear of it instead of underneath. */
.stb-preview section[id] {
    scroll-margin-top: 60px;
}

/* ---------- The rules: a navy field, one traffic cycle as a dial, the rules with line icons ---------- */

.stb-rules {
    padding: 84px 0 92px;
    background: var(--stb-navy);
    color: #fff;
}

.lagom-dark-mode .stb-rules {
    background: #0d1a33;
}

.stb-rules-grid {
    display: grid;
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    gap: 40px 78px;
    align-items: start;
}

.stb-rules-side {
    position: sticky;
    top: 118px;
}

.stb-preview .stb-rules h2 {
    margin-bottom: 26px;
    color: #fff;
}

.stb-cycle-dial {
    position: relative;
    max-width: 330px;
}

.stb-cycle-art {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.stb-cycle-hand {
    transform-origin: 180px 180px;
    transform: rotate(216deg);
}

.stb-cycle-claim {
    transform-box: fill-box;
    transform-origin: center;
}

.stb-cycle-core {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    pointer-events: none;
}

.stb-cycle-gift {
    display: block;
    width: 28%;
    min-width: 72px;
    height: auto;
}

.stb-cycle-word {
    grid-area: 2 / 1;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.stb-cycle-word--ready {
    opacity: 0;
}

.stb-cycle-steps {
    display: grid;
    gap: 10px;
    max-width: 330px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: stb-cycle;
}

.stb-cycle-steps li {
    position: relative;
    margin: 0;
    padding-left: 34px;
    color: #dbe5f5;
    font-size: 15px;
    line-height: 1.5;
    counter-increment: stb-cycle;
}

.stb-cycle-steps li::before {
    content: counter(stb-cycle);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.stb-rules-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 54px;
    margin: 6px 0 0;
}

.stb-rules-list > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 16px;
    align-content: start;
    margin: 0;
}

.stb-rule-icon {
    grid-row: 1 / span 2;
    margin-top: 1px;
    color: var(--stb-orange);
}

.stb-rules-list dt {
    margin: 0 0 6px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.stb-rules-list dd {
    margin: 0;
    color: #c9d4e6;
    font-size: 16px;
    line-height: 1.62;
}

.stb-rules-list dd a {
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.stb-rules a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* The site theme fills every svg path white in dark mode (.lagom-dark-mode svg path { fill: #fff !important }).
   The rule icons and the reset mark of the dial are line drawings, so their paths stay unfilled; the theme rule is
   marked important, so this one has to be as well. */
.lagom-dark-mode .stb-rule-icon path,
.lagom-dark-mode .stb-cycle-art path {
    fill: none !important;
}

/* The last entry is help, not a rule: one wide strip under the two columns, title on the left, text on the right. */
.stb-rules-list > .stb-rule-help {
    grid-column: 1 / -1;
    grid-template-columns: 30px minmax(0, .72fr) minmax(0, 1.5fr);
    margin-top: 8px;
    padding: 26px 30px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
}

.stb-rule-help .stb-rule-icon {
    grid-row: auto;
}

.stb-rules-list > .stb-rule-help dt {
    margin: 0;
}

.stb-rules-list > .stb-rule-help dd {
    margin-left: 14px;
}

/* The dial in motion while it is on screen (page.js adds .stb-rules-run): one turn is one month. A gift is ready
   after the reset, it is claimed at 35 % of the turn, the outer arc is the bonus, and at the next reset it ends. */
@media (prefers-reduced-motion: no-preference) {
    .stb-rules-run .stb-cycle-hand { animation: stb-cycle-hand 12s linear infinite; }
    .stb-rules-run .stb-cycle-time { animation: stb-cycle-time 12s linear infinite; }
    .stb-rules-run .stb-cycle-bonus { animation: stb-cycle-bonus 12s linear infinite; }
    .stb-rules-run .stb-cycle-claim { animation: stb-cycle-claim 12s linear infinite; }
    .stb-rules-run .stb-cycle-gift { animation: stb-cycle-gift 12s ease-in-out infinite; }
    .stb-rules-run .stb-cycle-word--ready { animation: stb-cycle-ready 12s linear infinite; }
    .stb-rules-run .stb-cycle-word--claimed { animation: stb-cycle-claimed 12s linear infinite; }
    .stb-rules-run .stb-cycle-steps li:nth-child(1) { animation: stb-cycle-step-1 12s linear infinite; }
    .stb-rules-run .stb-cycle-steps li:nth-child(2) { animation: stb-cycle-step-2 12s linear infinite; }
    .stb-rules-run .stb-cycle-steps li:nth-child(3) { animation: stb-cycle-step-3 12s linear infinite; }
}

@keyframes stb-cycle-hand {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes stb-cycle-time {
    0% { stroke-dashoffset: 804.25; opacity: 1; }
    96% { stroke-dashoffset: 32.17; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes stb-cycle-bonus {
    0%, 35% { stroke-dashoffset: 948.76; opacity: 0; }
    35.5% { stroke-dashoffset: 944.02; opacity: 1; }
    96% { stroke-dashoffset: 370.02; opacity: 1; }
    100% { stroke-dashoffset: 332.07; opacity: 0; }
}

@keyframes stb-cycle-claim {
    0%, 34% { opacity: 0; transform: scale(.4); }
    37%, 96% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}

@keyframes stb-cycle-gift {
    0% { opacity: 0; transform: scale(.55); }
    5% { opacity: 1; transform: scale(1.08); }
    8%, 33% { opacity: 1; transform: scale(1); }
    36% { opacity: 1; transform: scale(1.2); }
    40%, 95% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(.8); }
}

@keyframes stb-cycle-ready {
    0% { opacity: 0; }
    5%, 33% { opacity: 1; }
    36%, 100% { opacity: 0; }
}

@keyframes stb-cycle-claimed {
    0%, 34% { opacity: 0; }
    37%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes stb-cycle-step-1 {
    0%, 31% { opacity: 1; }
    35%, 100% { opacity: .45; }
}

@keyframes stb-cycle-step-2 {
    0%, 33% { opacity: .45; }
    37%, 83% { opacity: 1; }
    87%, 100% { opacity: .45; }
}

@keyframes stb-cycle-step-3 {
    0%, 83% { opacity: .45; }
    87%, 100% { opacity: 1; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .stb-rules-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px 56px; }
    .stb-rules-list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .stb-rules-list > .stb-rule-help { grid-template-columns: 30px minmax(0, 1fr); padding: 24px 26px 26px; }
    .stb-rule-help .stb-rule-icon { grid-row: 1 / span 2; }
    .stb-rules-list > .stb-rule-help dt { margin: 0 0 6px; }
    .stb-rules-list > .stb-rule-help dd { margin-left: 0; }
}

@media (max-width: 991px) {
    .stb-rules { padding: 64px 0 70px; }
    .stb-rules-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .stb-rules-side { position: static; }
    .stb-cycle { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: center; }
    .stb-cycle-steps { max-width: none; margin-top: 0; }
}

@media (max-width: 767px) {
    .stb-rules { padding: 52px 0 56px; }
    .stb-cycle { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; }
    .stb-cycle-dial { width: 100%; max-width: 280px; }
    .stb-cycle-steps { justify-self: stretch; }
    .stb-rules-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .stb-rules-list > .stb-rule-help { grid-template-columns: 30px minmax(0, 1fr); margin-top: 4px; padding: 20px 18px 22px; border-radius: 16px; }
    .stb-rule-help .stb-rule-icon { grid-row: 1 / span 2; }
    .stb-rules-list > .stb-rule-help dt { margin: 0 0 6px; }
    .stb-rules-list > .stb-rule-help dd { margin-left: 0; }
}

.stb-finale {
    display: grid;
    justify-items: center;
    padding: 30px 0 20px;
    text-align: center;
}

.stb-finale h2 {
    max-width: 900px;
    margin: 18px 0 14px;
    color: var(--stb-ink);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.stb-finale p {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--stb-muted);
    font-size: 18px;
    line-height: 1.6;
}

.stb-finale-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.stb-finale .stb-finale-note {
    margin: 24px 0 0;
    font-size: 16px;
}

/* Sections that arrive as the page is read; set only by the page script, so nothing hides without it. */

.stb-wait {
    opacity: 0;
    transform: translateY(26px);
}

.stb-arrive {
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--stb-delay, 0ms);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1199px) {
    .stb-row { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr); }
    .stb-legacy-panel { padding: 40px 36px 36px; }
    .stb-meter-grid { gap: 32px; }
    .stb-meter-panel { padding: 26px 24px; }
}

@media (max-width: 991px) {
    .stb-meter-grid,
    .stb-claim,
    .stb-claim-b-grid,
    .stb-film,
    .stb-legacy-panel,
    .stb-legacy-b-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stb-earn-head { flex-direction: column; gap: 12px; }
    .stb-row { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.25fr); }
    .stb-cell { padding: 19px 8px 15px; }
    .stb-label { font-size: 13px; }
    .stb-value { font-size: 16px; }
    .stb-cell--total .stb-value { font-size: 20px; }
    .stb-bar { flex-basis: 110px; }
    .stb-cell--bar .stb-value { gap: 10px; }
    .stb-band { grid-template-columns: auto 1fr; }
    .stb-band > a { grid-column: 2; justify-self: start; }
    .stb-film-frame { order: -1; }
    .stb-film--wide .stb-film-frame { order: 0; }
    .stb-legacy-figure { max-width: 380px; }
    .stb-short-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
    .stb-preview .stb-scene-labels .stb-long-label { display: none; }
    .stb-preview .stb-scene-labels .stb-short-label { display: inline; }
    .stb-mile { padding: 0 10px; }
    .stb-mile-text { font-size: 15px; }
    .stb-row--plain { grid-template-columns: minmax(0, .9fr) minmax(0, .5fr) minmax(0, 1.9fr); }
    .stb-row--plain .stb-cell--what { padding-right: 18px; }
    .stb-row--plain .stb-cell--what .stb-value { font-size: 16px; }
}

@media (max-width: 767px) {
    .stb-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .stb-hero h2,
    .stb-meter h2 {
        margin-bottom: 17px;
        font-size: clamp(32px, 6.8vw, 42px);
        line-height: 1.15;
    }

    .stb-hero-description,
    .stb-meter-description {
        max-width: none;
        margin-bottom: 21px;
        font-size: 15px;
    }

    .stb-preview .stb-long-label { display: none; }
    .stb-preview .stb-short-label { display: inline; }
    .stb-scene-labels li { font-size: 12px; }
    .stb-scene-legend { font-size: 12px; }
    .stb-key--bonus, .stb-key--white { margin-left: 12px; }

    .stb-earn { padding: 36px 0 30px; }

    .stb-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "time total" "gift bar";
        gap: 3px 14px;
        padding: 15px 16px 14px;
    }

    .stb-cell { padding: 0; text-align: left; }
    .stb-cell--time { grid-area: time; }
    .stb-cell--gift { grid-area: gift; }
    .stb-cell--total { grid-area: total; text-align: right; }
    .stb-cell--bar { grid-area: bar; }

    .stb-row .stb-label {
        position: absolute;
        width: 1px;
        height: 1px; /* taste-skill-ignore: the column names stay for screen readers; on a phone each card reads as a sentence */
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .stb-cell--time .stb-value { font-size: 17px; font-weight: 700; }
    .stb-cell--total .stb-value { font-size: 22px; }
    .stb-cell--gift .stb-value { font-size: 15px; }
    .stb-cell--gift .stb-value::after { content: " every month"; color: var(--stb-muted); font-weight: 400; }
    .stb-row[data-stb-row="0"] .stb-cell--gift .stb-value::after { content: ""; }
    .stb-cell--bar .stb-value { justify-content: flex-end; gap: 8px; }
    .stb-bar { flex: 0 0 88px; height: 10px; }
    .stb-cell--bar strong { min-width: 2.3em; font-size: 15px; text-align: right; }
    .stb-statement { padding-top: 56px; }
    .stb-example-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    .stb-example-row .stb-use { grid-column: 1 / -1; grid-row: 2; }
    .stb-claim, .stb-film, .stb-legacy, .stb-miles, .stb-short { padding-top: 56px; }
    .stb-claim-b, .stb-legacy-b { margin-top: 56px; padding: 48px 0; }

    .stb-film-copy h2,
    .stb-claim-copy h2,
    .stb-miles h2,
    .stb-claim-b h2,
    .stb-short h2,
    .stb-rules h2 {
        font-size: 28px;
    }

    .stb-steps li { font-size: 16px; }
    .stb-legacy-panel { padding: 28px 20px 26px; }
    .stb-band { display: block; padding: 24px; }
    .stb-band-icon { margin-bottom: 12px; }
    .stb-band > a { margin-top: 20px; }

    .stb-meter { padding: 36px 0 40px; }
    .stb-meter-panel { padding: 22px 16px 22px; }
    .stb-meter-panel .stb-sample { position: static; display: inline-block; margin-bottom: 12px; }
    .stb-stop-name { font-size: 12px; }

    /* The timeline stands upright on a phone: the four stops are rows of equal height, the line runs down the left
       edge through a dot beside each gift, and the bead travels it from top to bottom. */
    .stb-miles-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 0; margin-top: 26px; padding-left: 30px; }

    .stb-mile {
        grid-template-columns: 80px minmax(0, 1fr);
        grid-template-areas: "gift when" "gift text";
        align-items: center;
        justify-items: start;
        column-gap: 14px;
        padding: 16px 0;
        text-align: left;
    }

    .stb-mile::before { top: 0; right: auto; bottom: 0; left: -22px; width: 6px; height: auto; }
    .stb-mile:first-child::before { top: 50%; left: -22px; }
    .stb-mile:last-child::before { right: auto; bottom: 50%; }
    .stb-mile-dot { position: absolute; top: 50%; left: -29px; width: 20px; height: 20px; margin-top: -10px; }
    .stb-miles-list::before { top: 12.5%; left: 8px; width: 6px; height: 0; }
    .stb-miles-list::after,
    .stb-miles-count .stb-miles-list::after { top: 12.5%; left: 11px; }
    .stb-miles-list::after { margin-top: -9px; }
    .stb-miles-count .stb-miles-list::after { margin-top: -14px; }
    .stb-mile-gift { grid-area: gift; align-items: center; justify-self: center; height: auto; }
    .stb-mile-gift svg { max-width: 72px; height: auto; }
    .stb-mile-when { grid-area: when; align-self: end; margin: 0; }
    .stb-mile-when strong { display: inline; font-size: 40px; }
    .stb-mile-text { grid-area: text; align-self: start; max-width: none; font-size: 16px; }
    .stb-miles-note, .stb-miles h2 { text-align: left; }
    .stb-miles-note { max-width: none; margin-inline: 0; }

    .stb-short-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .stb-compare-gift { max-width: 56px; height: auto; }
    .stb-tip { align-items: flex-start; gap: 14px; margin-top: 34px; padding: 18px; }
    .stb-tip-gift { width: 48px; height: 48px; }
    .stb-tip-title { font-size: 17px; }
    .stb-tip-text { font-size: 16px; }

    .stb-row--plain {
        grid-template-columns: 60px minmax(0, 1fr);
        grid-template-areas: "gift time" "gift what";
        align-items: center;
    }

    .stb-row--plain .stb-cell--what { grid-area: what; padding-right: 0; }
    .stb-row--plain .stb-cell--what .stb-value { font-size: 15px; }
    .stb-row--plain .stb-cell--gift .stb-value::after { content: none; }
    .stb-row--plain .stb-row-gift { width: 48px; height: 48px; margin: 0; }
    .stb-row--plain:first-child { grid-template-areas: "time time" "what what"; }
    .stb-row--plain:first-child .stb-cell--gift { display: none; }
    .stb-closing { padding-bottom: 50px; }
}

@media (max-width: 479px) {
    .stb-picker { gap: 10px; }
    .stb-picker-line { gap: 6px; }
    .stb-preview .stb-chip { min-width: 42px; padding: 0 9px; }
    .stb-meter-readout strong { font-size: 52px; }
    .stb-film-play { bottom: 10%; width: 48px; height: 48px; }
    .stb-film-play svg { width: 22px; height: 22px; }
    .stb-film-text { top: 10%; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .stb-preview [class^="stb-"],
    .stb-preview [class^="stb-"] * {
        animation: none !important;
        transition: none !important;
    }

    .stb-wait {
        opacity: 1;
        transform: none;
    }
}
