﻿/* ==========================================================================
   Waterway Membership Signup
   Brand palette taken from the Waterway color standards sheet:
     286 C  #0054A5   306 C  #01BCE9   295 C  #012D5C
     Cool Gray 3 #C7C9C8   Cool Gray 10 #484C55
     485 C #EF3125  717 C #F47320  137 C #FAA419  376 C #82C341
   ========================================================================== */

:root {
    /* brand */
    --ww-blue: #0054A5;
    --ww-cyan: #01BCE9;
    --ww-navy: #012D5C;
    --ww-gray-3: #C7C9C8;
    --ww-gray-10: #484C55;
    --ww-red: #EF3125;
    --ww-orange: #F47320;
    --ww-amber: #FAA419;
    /* 376 C is deliberately held back - it appears only on the confirmation
       success mark so the palette stays blue. */
    --ww-green: #82C341;
    /* Discounts and credits read in cyan rather than green. */
    --credit: #7FDBFF;
    /* Per plan tint, overridden inline on each card from the database colour. */
    --plan-rgb: 1, 45, 92;
    --plan-rgb-dark: 0, 21, 47;
    /* Surfaces. Tinted navy rather than white and kept fairly opaque - a lighter
       frost washed out over the bright parts of the backdrop and text suffered. */
    --glass-bg: rgba(4, 38, 76, .74);
    --glass-bg-strong: rgba(4, 38, 76, .86);
    --glass-border: rgba(255, 255, 255, .22);
    --glass-shadow: 0 20px 55px rgba(0, 12, 28, .48);
    --glass-blur: blur(16px) saturate(130%);
    /* type */
    --ink: #FFFFFF;
    --ink-soft: rgba(255, 255, 255, .86);
    --ink-faint: rgba(255, 255, 255, .66);
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --font: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shell: 1240px;
}

/* ------------------------------------------------------------------ reset -- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ww-navy);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 .5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--ww-cyan);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 3px solid var(--ww-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ------------------------------------------------------ animated backdrop -- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(115% 85% at 12% 4%, #0166BF 0%, transparent 55%), radial-gradient(95% 75% at 88% 8%, #01BCE9 0%, transparent 48%), radial-gradient(120% 95% at 50% 108%, #0089B4 0%, transparent 60%), linear-gradient(168deg, #012D5C 0%, #01356C 42%, #001B3D 100%);
}

    /* soft caustic sheen drifting over the gradient */
    .backdrop::after {
        content: "";
        position: absolute;
        inset: -25%;
        background: radial-gradient(closest-side, rgba(255,255,255,.10), transparent 70%) 20% 30% / 46% 46% no-repeat, radial-gradient(closest-side, rgba(1,188,233,.14), transparent 70%) 78% 62% / 52% 52% no-repeat;
        animation: drift 46s ease-in-out infinite alternate;
    }

@keyframes drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    to {
        transform: translate3d( 3%, 2%, 0) scale(1.08);
    }
}

.bubbles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -22vh;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.62), rgba(255,255,255,.13) 42%, rgba(255,255,255,.02) 62%), radial-gradient(circle at 68% 76%, rgba(1,188,233,.28), transparent 58%);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: inset 0 0 22px rgba(255,255,255,.20), 0 0 22px rgba(1,188,233,.16);
    opacity: 0;
    will-change: transform, opacity;
    animation-name: rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

    /* a small highlight so each bubble reads as glass rather than a flat dot */
    .bubble::after {
        content: "";
        position: absolute;
        top: 14%;
        left: 20%;
        width: 26%;
        height: 26%;
        border-radius: 50%;
        background: rgba(255, 255, 255, .55);
        filter: blur(2px);
    }

@keyframes rise {
    0% {
        transform: translate3d(0, 0, 0) scale(.82);
        opacity: 0;
    }

    8% {
        opacity: .85;
    }

    50% {
        transform: translate3d(var(--sway, 24px), -60vh, 0) scale(1);
    }

    92% {
        opacity: .55;
    }

    100% {
        transform: translate3d(0, -125vh, 0) scale(1.06);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
        opacity: .30;
    }

    .backdrop::after {
        animation: none;
    }
}

/* ------------------------------------------------------------- app shell -- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

/* Used by the plans page so all five memberships fit on one row. */
.shell--wide {
    max-width: 1680px;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 20px is the whole gap between the header and the first thing on the page -
   the header contributes none of it (see .site-header). */
.page-body {
    flex: 1 0 auto;
    padding-block: 20px clamp(40px, 7vw, 80px);
}

/* ---------------------------------------------------------------- header -- */

.site-header {
    padding-block: clamp(0px, 3vw, 5px) 0;
}

/* Logo hard left, location chip hard right, at every width. */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.logo-plate {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

    /* Upper bound is 50% above the original 208px. The lower bound has to give way
   on narrow screens so the chip can stay on the same line. */
    .logo-plate img {
        width: clamp(132px, 34vw, 312px);
    }

.site-header__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
    font-size: .9rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------- glass UI -- */

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    position: relative;
}

    /* the thin light line along the top edge that sells the glass look */
    .glass::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 1px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
        pointer-events: none;
    }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
}

.pill--cyan {
    background: rgba(1, 188, 233, .24);
    border-color: rgba(1, 188, 233, .55);
}

.pill--green {
    background: rgba(1, 188, 233, .22);
    border-color: rgba(1, 188, 233, .55);
}

.pill--amber {
    background: rgba(250, 164, 25, .22);
    border-color: rgba(250, 164, 25, .58);
}

/* --------------------------------------------------------------- buttons -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    -webkit-tap-highlight-color: transparent;
}

    .btn:hover {
        text-decoration: none;
    }

.btn--primary {
    background: linear-gradient(135deg, var(--ww-cyan) 0%, var(--ww-blue) 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(1, 132, 205, .45);
}

    .btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(1, 132, 205, .55);
    }

    .btn--primary:active {
        transform: translateY(0);
    }

.btn--ghost {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(10px);
}

    .btn--ghost:hover {
        background: rgba(255, 255, 255, .18);
        transform: translateY(-2px);
    }

.btn--block {
    width: 100%;
}

.btn--lg {
    padding: 18px 38px;
    font-size: 1.08rem;
}

.btn--sm {
    padding: 10px 20px;
    font-size: .88rem;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ----------------------------------------------------------------- forms -- */

.field {
    margin-bottom: 18px;
}

    .field > label,
    .field-label {
        display: block;
        margin-bottom: 7px;
        font-size: .84rem;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--ink-soft);
    }

.input,
.select {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 20, 44, .55);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-sm);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
    appearance: none;
}

    .input::placeholder {
        color: rgba(255, 255, 255, .55);
    }

    .input:focus,
    .select:focus {
        outline: none;
        border-color: var(--ww-cyan);
        background: rgba(0, 20, 44, .72);
        box-shadow: 0 0 0 4px rgba(1, 188, 233, .22);
    }

    .input.input-validation-error {
        border-color: var(--ww-red);
        box-shadow: 0 0 0 4px rgba(239, 49, 37, .18);
    }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 11px;
    padding-right: 42px;
    cursor: pointer;
}

    .select option {
        background: #012D5C;
        color: #fff;
    }

.field-error,
.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: #FFC9C4;
}

.field-hint {
    margin-top: 6px;
    font-size: .82rem;
    color: var(--ink-faint);
    text-align: center;
}

.validation-summary-errors {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(239, 49, 37, .16);
    border: 1px solid rgba(239, 49, 37, .45);
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
    }

    .validation-summary-errors li {
        font-weight: 600;
    }

.validation-summary-valid {
    display: none;
}

.form-grid {
    display: grid;
    gap: 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .form-grid .span-2 {
        grid-column: 1 / -1;
    }

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

        .form-grid .span-2 {
            grid-column: auto;
        }
}

/* checkbox rows */

.check {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    margin-bottom: 12px;
    cursor: pointer;
}

    .check:hover {
        background: rgba(255, 255, 255, .11);
    }

    .check input[type="checkbox"] {
        flex: 0 0 auto;
        width: 22px;
        height: 22px;
        margin: 1px 0 0;
        accent-color: var(--ww-cyan);
        cursor: pointer;
    }

.check__text {
    font-size: .95rem;
    color: var(--ink-soft);
}

    .check__text strong {
        color: #fff;
    }

/* ------------------------------------------------------------ landing box -- */

.hero {
    display: grid;
    place-items: center;
    min-height: min(76vh, 740px);
    padding-block: 16px;
}

.hero__inner {
    width: min(560px, 100%);
    margin-inline: auto;
}

.join-card {
    width: 100%;
    padding: clamp(28px, 5vw, 46px);
    text-align: center;
}

    .join-card h1 {
        font-size: clamp(1.75rem, 3.2vw, 2.50rem);
        margin-bottom: 14px;
    }

    .join-card .lede {
        font-size: clamp(1rem, 2.4vw, 1.14rem);
        color: var(--ink-soft);
        margin-bottom: 28px;
    }

.join-form {
    display: grid;
    gap: 14px;
    text-align: left;
}

    .join-form .code-input {
        text-align: center;
        font-size: 1.22rem;
        font-weight: 700;
        letter-spacing: .16em;
        text-transform: uppercase;
        padding-block: 17px;
    }

        .join-form .code-input::placeholder {
            letter-spacing: .08em;
            font-weight: 500;
        }

.join-alt {
    margin-top: 18px;
    font-size: .9rem;
    color: var(--ink-faint);
}

.code-error {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(239, 49, 37, .16);
    border: 1px solid rgba(239, 49, 37, .45);
    font-size: .92rem;
    font-weight: 600;
    text-align: left;
    margin: 15px 0px 10px 0px;
}

/* returning member banner */

.member-banner {
    width: 100%;
    margin: 0 auto 20px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, rgba(1, 188, 233, .22), rgba(0, 165, 128, .18));
    border: 1px solid rgba(1, 188, 233, .48);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.member-banner__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 1.3rem;
}

.member-banner strong {
    color: #fff;
}

.member-banner p {
    margin: 0;
    font-size: .93rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------- section header -- */

/* Width >= 600px */
@media (min-width: 600px) {
    .section-head {
        text-align: center;
        margin-bottom: clamp(22px, 4vw, 34px);
        margin-top: -115px;
    }
}

/* Width < 600px */
@media (max-width: 599px) {
    .section-head {
        text-align: center;
        margin-bottom: clamp(22px, 4vw, 34px);
        margin-top: 5px;
    }
}

.section-head h1 {
    font-size: clamp(1.9rem, 5vw, 2.0rem);
}

.section-head p {
    color: var(--ink-soft);
    max-width: 60ch;
    margin-inline: auto;
}

/* Sits in the header, to the right of the logo. */
.location-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 20, 44, .45);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .86rem;
    line-height: 1.35;
    color: var(--ink-soft);
    text-align: left;
}

    .location-chip svg {
        flex: 0 0 auto;
    }

    .location-chip strong {
        color: #fff;
    }

@media (max-width: 620px) {
    .location-chip {
        font-size: .74rem;
        padding: 6px 11px;
        gap: 6px;
    }
        /* "Pricing for" goes, leaving just the city and state */
        .location-chip .chip-prefix {
            display: none;
        }
}

/* ------------------------------------------------------------ promo banner -- */

.promo-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    margin-bottom: 26px;
    border-radius: var(--radius-md);
    background: linear-gradient(115deg, rgba(250, 164, 25, .26), rgba(244, 115, 32, .18));
    border: 1px solid rgba(250, 164, 25, .55);
}

.promo-banner__spark {
    font-size: 1.6rem;
    line-height: 1;
    flex: 0 0 auto;
}

.promo-banner__body {
    flex: 1 1 auto;
    min-width: 0;
}

.promo-banner h3 {
    font-size: 1.06rem;
    margin-bottom: 3px;
}

.promo-banner p {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-soft);
}

.savings-banner {
    background: linear-gradient(115deg, rgba(1, 188, 233, .24), rgba(0, 84, 165, .20));
    border-color: rgba(1, 188, 233, .55);
}

.code-banner {
    background: linear-gradient(115deg, rgba(1, 188, 233, .26), rgba(0, 84, 165, .20));
    border-color: rgba(1, 188, 233, .58);
}

/* Copy-only announcement. Brighter than a campaign banner because it usually
   carries the headline for an offer priced across every plan. */
.promo-banner--announce {
    background: linear-gradient(115deg, rgba(250, 164, 25, .30), rgba(239, 49, 37, .16));
    border-color: rgba(250, 164, 25, .68);
}

    .promo-banner--announce h3 {
        font-size: 1.12rem;
    }

/* ------------------------------------------------------------ cycle toggle -- */

.cycle-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.cycle-toggle__label {
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cycle-toggle__inner {
    position: relative;
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
}

.cycle-toggle__thumb {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ww-cyan), var(--ww-blue));
    box-shadow: 0 8px 22px rgba(1, 132, 205, .48);
    transition: transform .32s cubic-bezier(.4, 1.3, .5, 1);
}

.cycle-toggle__inner[data-cycle="Annual"] .cycle-toggle__thumb {
    transform: translateX(100%);
}

.cycle-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px clamp(18px, 4vw, 32px);
    border: 0;
    background: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    white-space: nowrap;
    transition: color .22s ease;
}

    .cycle-btn[aria-pressed="true"] {
        color: #fff;
    }

    .cycle-btn .save-tag {
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .05em;
        padding: 3px 8px;
        border-radius: 999px;
        background: var(--ww-amber);
        color: #2A1800;
    }

/* ------------------------------------------------------------- plan cards -- */

/* Deliberately never wraps.
   Cards size to their own content so expanding one card's cost details leaves
   the others alone. In a wrapped layout that combination is unavoidably ragged:
   a shorter card leaves dead background under it until the next row starts, and
   the gap grows to several hundred pixels once a neighbour is expanded. So it is
   one card per row until there is room for all five on a single row. */
.plan-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 1.6vw, 22px);
}

@media (min-width: 1440px) {
    .plan-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

        .plan-grid .plan-card {
            flex: 1 1 0;
            max-width: none;
        }
}

.plan-card {
    width: 100%;
    max-width: 560px;
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Deliberately no backdrop-filter.
       backdrop-filter + overflow:hidden + border-radius on an element this tall
       (700-1300px) intermittently fails to paint in Chrome: a band of the card
       renders as bare page background, slicing straight through whatever
       element straddles the boundary. With five tall cards stacked over an
       animated backdrop it showed up regularly at phone widths.
       The card is near opaque anyway, so the blur was contributing almost
       nothing - the head is a solid gradient and the body carries a 25% tint. */
    background: rgba(4, 38, 76, .94);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .plan-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 255, 255, .40);
        box-shadow: 0 28px 70px rgba(0, 14, 33, .52);
    }

.plan-card--popular {
    border-color: rgba(1, 188, 233, .70);
}

.plan-card--current {
    border-color: rgba(255, 255, 255, .60);
}

/* colored head, tinted from the plan row in the database */
.plan-card__head {
    padding: 8px 22px 18px;
    background: linear-gradient(140deg, var(--plan-color) 0%, var(--plan-color-dark) 100%);
    position: relative;
}

    .plan-card__head::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120% 90% at 82% 6%, rgba(255,255,255,.26), transparent 58%);
        pointer-events: none;
    }

/* Badges live in the flow above the plan name. They used to be absolutely
   positioned, which let a long name run underneath and clip them. */
.plan-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 23px; /* keeps names on a common baseline across cards */
    margin-bottom: 11px;
    position: relative;
    z-index: 1;
}

.plan-card__ribbon {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.25;
    white-space: nowrap;
    background: var(--ww-amber);
    color: #2A1800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .26);
}

.plan-card__ribbon--popular {
    background: var(--ww-cyan);
    color: #00243B;
}

.plan-card__ribbon--current {
    background: #fff;
    color: var(--ww-navy);
}

.plan-card__name {
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

.plan-card__tagline {
    font-size: .87rem;
    color: rgba(255, 255, 255, .84);
    margin: 0;
    position: relative;
    z-index: 1;
}

.plan-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 16px;
    /* Same gradient as the head, dialled back to 25% so each card carries its
       plan colour the whole way down without hurting text contrast. */
    background: linear-gradient(140deg, rgba(var(--plan-rgb), .25) 0%, rgba(var(--plan-rgb-dark), .25) 100%);
}

/* price block --------------------------------------------------------------*/

.price-block {
    text-align: center;
}

.price-strike {
    font-size: 1.05rem;
    color: var(--ink-faint);
    text-decoration: line-through;
    margin: -10px 0px -4px 0px;
    min-height: 1.6em;
}

.price-now {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

    .price-now .cur {
        font-size: 1.5rem;
        font-weight: 700;
        align-self: flex-start;
        margin-top: .35em;
    }

    .price-now .amt {
        font-size: clamp(2.7rem, 8vw, 3.5rem);
        font-weight: 800;
        letter-spacing: -.035em;
        line-height: 1;
    }

    .price-now .per {
        font-size: 1rem;
        color: var(--ink-soft);
        font-weight: 600;
    }

.price-alt {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px dashed rgba(255, 255, 255, .30);
    font-size: .85rem;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.35;
    transition: background .18s ease, border-color .18s ease;
}

.price-alt__row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Second line, so the promotional first payment cannot be mistaken for the
   ongoing monthly rate on the line above. */
.price-alt__note {
    font-size: .74rem;
    font-weight: 600;
    color: var(--credit);
}

.price-alt:hover {
    background: rgba(255, 255, 255, .16);
    border-color: var(--ww-cyan);
}

.price-alt b {
    color: #fff;
}

.price-alt .save {
    color: var(--ww-amber);
    font-weight: 700;
}

/* per plan promo copy ------------------------------------------------------*/

.plan-promo {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: rgba(250, 164, 25, .13);
    border: 1px solid rgba(250, 164, 25, .42);
    text-align: left;
}

.plan-promo__spark {
    flex: 0 0 auto;
    font-size: .95rem;
    line-height: 1.35;
}

.plan-promo strong {
    display: block;
    font-size: .87rem;
    line-height: 1.35;
    color: #fff;
}

.plan-promo p {
    margin: 4px 0 0;
    font-size: .65rem;
    line-height: 1.4;
    color: var(--ink-soft);
}

/* features -----------------------------------------------------------------*/

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

    .features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: .80rem;
        color: var(--ink-soft);
    }

        .features li.is-key {
            color: #fff;
            font-weight: 600;
        }

    .features .tick {
        flex: 0 0 auto;
        width: 19px;
        height: 19px;
        margin-top: 2px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(1, 188, 233, .22);
        border: 1px solid rgba(1, 188, 233, .55);
        font-size: .62rem;
        color: #fff;
    }

    .features li.is-key .tick {
        background: var(--ww-cyan);
        border-color: var(--ww-cyan);
        color: #00243B;
    }

/* receipt / cart -----------------------------------------------------------*/

/* ------------------------------------------- collapsible cost details ---- */

.receipt-drop {
    border-radius: var(--radius-md);
    background: rgba(0, 18, 40, .38);
    border: 1px solid rgba(255, 255, 255, .18);
    overflow: hidden;
}

/* Total on top, then the disclosure button underneath it. */
.receipt-drop__summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

    /* hide the native disclosure triangle in every engine */
    .receipt-drop__summary::-webkit-details-marker {
        display: none;
    }

    .receipt-drop__summary::marker {
        content: "";
    }

.receipt-drop__total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

    .receipt-drop__total b {
        font-size: 1.3rem;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .receipt-drop__total small {
        font-size: .78rem;
        font-weight: 600;
        color: var(--ink-faint);
    }

.receipt-drop__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .26);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.receipt-drop__summary:hover .receipt-drop__btn,
.receipt-drop__summary:focus-visible .receipt-drop__btn {
    background: rgba(255, 255, 255, .18);
    border-color: var(--ww-cyan);
    color: #fff;
}

.receipt-drop__chev {
    flex: 0 0 auto;
    transition: transform .24s ease;
}

.receipt-drop[open] .receipt-drop__chev {
    transform: rotate(180deg);
}

.receipt-drop[open] .receipt-drop__summary {
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    padding-bottom: 12px;
}

/* the receipt itself sits flush inside the drawer on the plans page */
.receipt-drop .receipt {
    border: 0;
    border-radius: 0;
    background: none;
}

.receipt {
    border-radius: var(--radius-md);
    background: rgba(0, 20, 45, .30);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 15px 16px;
    font-size: .9rem;
}

.receipt__title {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 10px;
}

.receipt__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 5px 0;
}

    .receipt__row .label {
        color: var(--ink-soft);
        min-width: 0;
    }

        .receipt__row .label small {
            display: block;
            font-size: .76rem;
            color: var(--ink-faint);
        }

    .receipt__row .val {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        font-weight: 600;
    }

.receipt__row--credit .val {
    color: var(--credit);
}

.receipt__row--credit .label {
    color: var(--credit);
}

.receipt__rule {
    height: 1px;
    background: rgba(255, 255, 255, .18);
    margin: 9px 0;
}

.receipt__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 1.02rem;
    font-weight: 800;
}

    .receipt__total .val {
        font-size: 1.4rem;
        font-variant-numeric: tabular-nums;
    }

.receipt__dates {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px dashed rgba(255, 255, 255, .22);
    display: grid;
    gap: 5px;
    font-size: .81rem;
    color: var(--ink-faint);
}

    .receipt__dates div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .receipt__dates b {
        color: var(--ink-soft);
        font-weight: 600;
    }

/* No auto margin - the button follows the cost details directly. */
.plan-card__foot {
    padding-top: 2px;
}

/* ------------------------------------------------------ per card switch -- */

.card-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 18, 40, .55);
    border: 1px solid rgba(255, 255, 255, .20);
}

.card-switch__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ww-cyan), var(--ww-blue));
    box-shadow: 0 4px 14px rgba(1, 132, 205, .45);
    transition: transform .3s cubic-bezier(.4, 1.25, .5, 1);
}

.plan-card[data-card-cycle="Annual"] .card-switch__thumb {
    transform: translateX(100%);
}

.card-switch__btn {
    position: relative;
    z-index: 1;
    padding: 9px 4px;
    border: 0;
    background: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: .87rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .22s ease;
    -webkit-tap-highlight-color: transparent;
}

    .card-switch__btn[aria-pressed="true"] {
        color: #fff;
    }

/* Page level panes (the campaign banners above the grid). */
[data-cycle-pane] {
    display: none;
}

    [data-cycle-pane].is-active {
        display: block;
    }

/* Per card panes - each card shows only its own cycle. */
[data-card-pane] {
    display: none;
}

.plan-card[data-card-cycle="Monthly"] [data-card-pane="Monthly"],
.plan-card[data-card-cycle="Annual"] [data-card-pane="Annual"] {
    display: block;
}

/* ------------------------------------------------------------ two column -- */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(18px, 2.6vw, 30px);
    align-items: start;
}

.summary-col {
    position: sticky;
    top: 22px;
}

@media (max-width: 940px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    /* Order summary shows above the form on a phone. */
    .summary-col {
        position: static;
        order: -1;
    }
}

.panel {
    padding: clamp(20px, 3.4vw, 32px);
}

    .panel + .panel {
        margin-top: 20px;
    }

.panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.panel__step {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ww-cyan), var(--ww-blue));
    font-size: .92rem;
    font-weight: 800;
}

.panel__head h2 {
    font-size: 1.2rem;
    margin: 0;
}

/* selected plan strip on the checkout page */
.chosen-plan {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--plan-color), var(--plan-color-dark));
    margin-bottom: 18px;
}

.chosen-plan__name {
    font-size: 1.14rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chosen-plan__cycle {
    font-size: .85rem;
    color: rgba(255, 255, 255, .82);
}

.chosen-plan__price {
    margin-left: auto;
    text-align: right;
    font-weight: 800;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- select2 -- */
/* Restyled so the type-ahead inputs match the glass form controls. */

.select2-container {
    width: 100% !important;
}

/* Select2 hard codes a 28px line-height on the rendered value, which pushed the
   text below the taller glass control. Flex centring makes it independent of
   whatever line-height the library sets. */
.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 51px;
    padding: 0 42px 0 16px;
    background: rgba(0, 20, 44, .55);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-sm);
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        flex: 1 1 auto;
        min-width: 0;
        color: #fff;
        font-size: 1rem;
        line-height: 1.4;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: rgba(255, 255, 255, .55);
        line-height: 1.4;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        position: absolute;
        top: 0;
        right: 12px;
        height: 100%;
        width: 20px;
    }

        .select2-container--default .select2-selection--single .select2-selection__arrow b {
            border-color: #fff transparent transparent;
        }

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ww-cyan);
    box-shadow: 0 0 0 4px rgba(1, 188, 233, .22);
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-radius: var(--radius-sm);
}

.select2-dropdown {
    background: #042A54;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: var(--radius-sm);
    box-shadow: 0 22px 50px rgba(0, 10, 26, .55);
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
    padding: 9px;
}

    .select2-container--default .select2-search--dropdown .select2-search__field {
        background: rgba(255, 255, 255, .10);
        border: 1px solid rgba(255, 255, 255, .24);
        border-radius: 8px;
        color: #fff;
        padding: 9px 11px;
        font-family: inherit;
    }

        .select2-container--default .select2-search--dropdown .select2-search__field:focus {
            outline: none;
            border-color: var(--ww-cyan);
        }

.select2-container--default .select2-results__option {
    color: rgba(255,255,255,.82);
    padding: 10px 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background: linear-gradient(135deg, var(--ww-cyan), var(--ww-blue));
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.select2-results__options {
    max-height: 260px;
}

.input-validation-error + .select2-container .select2-selection--single {
    border-color: var(--ww-red);
    box-shadow: 0 0 0 4px rgba(239, 49, 37, .18);
}

.select2-container.is-locked .select2-selection--single,
.select2-container--disabled .select2-selection--single {
    background: transparent;
    opacity: .75;
    cursor: not-allowed;
    pointer-events: none;
}

/* the swatch dot rendered next to each color option */
.color-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 9px;
    vertical-align: -1px;
    border: 1px solid rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------- processing veil -- */

.processing {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    background: rgba(0, 18, 40, .74);
    backdrop-filter: blur(10px);
    padding: 24px;
}

    .processing.is-on {
        display: grid;
    }

.processing__card {
    text-align: center;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: var(--glass-shadow);
    max-width: 400px;
}

    .processing__card h3 {
        font-size: 1.24rem;
    }

    .processing__card p {
        margin: 0;
        color: var(--ink-soft);
        font-size: .93rem;
    }

.spinner {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .16);
    border-top-color: var(--ww-cyan);
    border-right-color: var(--ww-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.processing__dots {
    display: inline-flex;
    gap: 6px;
    margin-top: 14px;
}

    .processing__dots i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--ww-cyan);
        animation: bounce 1.25s ease-in-out infinite;
    }

        .processing__dots i:nth-child(2) {
            animation-delay: .16s;
        }

        .processing__dots i:nth-child(3) {
            animation-delay: .32s;
        }

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .45;
    }

    30% {
        transform: translateY(-7px);
        opacity: 1;
    }
}

/* ----------------------------------------------------------- confirmation -- */

.success-mark {
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ww-green), #00A580);
    box-shadow: 0 16px 40px rgba(0, 165, 128, .45);
    animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes pop {
    from {
        transform: scale(.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* digital membership card */
.member-card {
    border-radius: 22px;
    padding: 26px;
    background: linear-gradient(140deg, var(--plan-color) 0%, var(--plan-color-dark) 100%);
    box-shadow: 0 24px 60px rgba(0, 12, 30, .5);
    position: relative;
    overflow: hidden;
}

    .member-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(110% 80% at 85% 4%, rgba(255,255,255,.28), transparent 55%);
        pointer-events: none;
    }

.member-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.member-card__brand {
    width: 11rem;
    margin: -0.75rem -1.25rem 0.00rem -1.65rem;
}

.member-card__tier {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-top: -10px;
}

.member-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

    .member-card__meta div span {
        display: block;
        font-size: .68rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .68);
        margin-bottom: 2px;
    }

    .member-card__meta div b {
        font-size: .98rem;
        font-weight: 700;
        word-break: break-word;
    }

.barcode {
    margin-top: 22px;
    border-radius: 7px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .barcode img {
        max-width: 100%;
        height: 64px;
    }

/* wallet buttons */
.wallet-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 14px 18px;
    border-radius: 13px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .26);
    color: #fff;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
    text-align: left;
}

    .wallet-btn:hover {
        transform: translateY(-2px);
        background: #14181D;
        text-decoration: none;
    }

    .wallet-btn svg {
        flex: 0 0 auto;
    }

    .wallet-btn small {
        display: block;
        font-size: .68rem;
        font-weight: 500;
        color: rgba(255,255,255,.62);
        letter-spacing: .04em;
    }

    .wallet-btn span b {
        display: block;
        font-size: .98rem;
        font-weight: 700;
    }

.wallet-note {
    margin-top: 11px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: rgba(250, 164, 25, .14);
    border: 1px solid rgba(250, 164, 25, .40);
    font-size: .83rem;
    color: var(--ink-soft);
    display: none;
}

    .wallet-note.is-on {
        display: block;
    }

/* --------------------------------------------------------------- utility -- */

.stack {
    display: grid;
    gap: 18px;
}

.center {
    text-align: center;
}

.muted {
    color: var(--ink-soft);
}

.faint {
    color: var(--ink-faint);
}

.nowrap {
    white-space: nowrap;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-3 {
    margin-top: 18px;
}

.mb-3 {
    margin-bottom: 18px;
}

.small {
    font-size: .75rem;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: .92rem;
    font-weight: 600;
    /*margin-bottom: 16px;*/
}

    .back-link:hover {
        color: #fff;
        text-decoration: none;
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
    flex-shrink: 0;
    padding: 26px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    font-size: .86rem;
    color: var(--ink-faint);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-footer a {
    color: var(--ink-soft);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* --------------------------------------------------------- prose (terms) -- */

.prose {
    max-width: 78ch;
}

    .prose h2 {
        font-size: 1.25rem;
        margin-top: 26px;
    }

    .prose p, .prose li {
        color: var(--ink-soft);
    }

    .prose ul {
        padding-left: 22px;
    }

/* ------------------------------------------------------- small screen fit -- */

@media (max-width: 480px) {
    .join-card {
        padding: 24px 20px;
    }

    .cycle-btn {
        padding: 14px 10px 14px 30px;
        font-size: .9rem;
    }

    .btn {
        padding: 14px 22px;
    }

    .member-banner {
        flex-direction: column;
        text-align: center;
    }

    .processing__card {
        padding: 32px 26px;
    }
}

/* Backdrop-filter is not everywhere - fall back to a solid tint. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass, .cycle-toggle__inner {
        background: rgba(2, 40, 80, .88);
    }
}
/* ------------------------------------------------- upgrade timing choice -- */
/* Shown on the plans page for a member who can start an upgrade now or defer
   it to their renewal date. The choice is carried into checkout. */
.timing-choice {
    max-width: 820px;
    margin: 0 auto 30px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.timing-choice__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.timing-choice__spark {
    font-size: 1.4rem;
    line-height: 1;
    flex: 0 0 auto;
}

.timing-choice__head strong {
    display: block;
    font-size: 1.05rem;
}

.timing-choice__hint {
    display: block;
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

.timing-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    .timing-opts {
        grid-template-columns: 1fr;
    }
}

.timing-opt {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    text-align: left;
    padding: 14px 15px;
    border-radius: var(--radius-md);
    background: rgba(0, 20, 44, .40);
    border: 1px solid rgba(255, 255, 255, .20);
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

    .timing-opt:hover {
        background: rgba(0, 20, 44, .60);
        border-color: rgba(255, 255, 255, .35);
    }

    .timing-opt[aria-pressed="true"] {
        border-color: var(--ww-cyan);
        background: rgba(1, 188, 233, .14);
        box-shadow: 0 0 0 3px rgba(1, 188, 233, .25);
    }

.timing-opt__check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .40);
    position: relative;
    transition: border-color .16s ease;
}

.timing-opt[aria-pressed="true"] .timing-opt__check {
    border-color: var(--ww-cyan);
}

    .timing-opt[aria-pressed="true"] .timing-opt__check::after {
        content: "";
        position: absolute;
        inset: 3px;
        border-radius: 50%;
        background: var(--ww-cyan);
    }

.timing-opt__title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.timing-opt__sub {
    display: block;
    font-size: .82rem;
    color: var(--ink-soft);
    margin-top: 2px;
    line-height: 1.35;
}

.timing-note {
    margin-bottom: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--credit);
    text-align: center;
}

/* --- Modal Overlays --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

.modal-content {
    background: radial-gradient(115% 85% at 12% 4%, #0166BF 0%, transparent 55%), radial-gradient(95% 75% at 88% 8%, #0166bf 0%, transparent 48%), radial-gradient(120% 95% at 50% 108%, #0089B4 0%, transparent 60%), linear-gradient(168deg, #012D5C 0%, #01356C 42%, #001B3D 100%);
    border-radius: 24px;
    /*max-width: 500px;*/
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.4);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--waterway-blue);
    }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
}

    .modal-body p {
        margin-bottom: 1.25rem;
        color: #ffffff;
    }

    .modal-body b {
        color: var(--text-main);
        display: block;
        margin-bottom: 4px;
    }

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.modal-btn {
    width: 100%;
    background: var(--waterway-blue);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.modalButton {
    color: var(--waterway-blue);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.modalButtonFooter {
    color: var(--waterway-blue);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.price-alt__save {
    color: var(--ww-amber);
    font-weight: 700;
}

.status-required {
    color: #ef4444;
    font-size: 0.85rem;
}

.status-optional {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
    font-size: 0.85rem;
}

.agreement-status {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}