/* ============================================================
   Subscription system (plans / checkout / my subscriptions)
   ============================================================ */

.sub-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3.5rem;
}

.sub-positions {
    margin:0;
}

.sub-header {

    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.sub-header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    letter-spacing: -0.045em;
    color: #0f172a;
    line-height: 1.1;
}

.sub-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.sub-back-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
}

.sub-back-link:hover {
    text-decoration: underline;
}

/* ---------- Hero ---------- */
.sub-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.2rem 2.4rem 2.4rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
    color: #f8fafc;
    overflow: hidden;
    margin-bottom: 1.6rem;
    box-shadow: 0 1.2rem 2.6rem rgba(15, 23, 42, 0.18);
}

.sub-hero::before {
    content: "";
    position: absolute;
    top: -7rem;
    right: -4rem;
    width: 19rem;
    height: 19rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, rgba(45, 212, 191, 0) 70%);
    pointer-events: none;
}

.sub-hero::after {
    content: "";
    position: absolute;
    bottom: -8rem;
    left: -5rem;
    width: 17rem;
    height: 17rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.sub-hero-copy,
.sub-hero-actions {
    position: relative;
    z-index: 1;
}

.sub-hero-kicker {
    margin: 0 0 0.5rem;
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sub-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
    color: #ffffff;
    line-height: 1.05;
}

.sub-hero-lead {
    margin: 0.6rem 0 0;
    max-width: 52ch;
    color: rgba(248, 250, 252, 0.82);
    line-height: 1.6;
    font-size: 1.02rem;
}

.sub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.sub-hero-actions .button-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.sub-hero-actions .button-secondary:hover,
.sub-hero-actions .button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ---------- Position groups ---------- */
.sub-positions {
    display: grid;
    gap: 2.6rem;
}

.sub-position-group {
    display: grid;
    gap: 1.1rem;
}

.sub-position-head {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.sub-position-head-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sub-position-head h2 {
    margin: 0.1rem 0 0;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.sub-position-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    max-width: 58ch;
}

.sub-position-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sub-featured-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

/* ---------- Period cards (monthly / yearly) ---------- */
.sub-period-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.sub-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.3rem;
    padding: 1.5rem 1.5rem 1.6rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sub-period-card {
    overflow: hidden;
}

.sub-period-card.is-monthly {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.sub-period-card.is-yearly {
    border-color: rgba(13, 148, 136, 0.4);
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 62%);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.14), 0 1rem 2rem rgba(15, 23, 42, 0.06);
}

.sub-period-card.is-active {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25), 0 1rem 2rem rgba(15, 23, 42, 0.07);
}

.sub-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.2rem 2.4rem rgba(15, 23, 42, 0.1);
}

.sub-period-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}




.sub-period-saving {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.sub-period-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.sub-period-card-price .sub-currency {
    font-size: 1.1rem;
    font-weight: 800;
    color: #64748b;
}

.sub-period-card-price strong {
    font-size: 2.3rem;
    letter-spacing: -0.055em;
    color: #0f172a;
    line-height: 1;
}

.sub-period-card.is-yearly .sub-period-card-price strong {
    color: #0f766e;
}

.sub-period-card-price .sub-period-unit {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}

.sub-period-card-sub {
    margin: 0 0 1.1rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

.sub-period-card-cta {
    margin-top: auto;
    padding-top: 1.1rem;
}

.sub-period-card-cta .button {
    width: 100%;
    justify-content: flex-start;
}

.sub-plan-features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    flex: 1;
}

.sub-plan-features li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.45;
}

.sub-plan-features li::before {
    content: "✓";
    color: #0f766e;
    font-weight: 800;
    flex: none;
}

.sub-note {
    margin-top: 1.6rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
}

.sub-note strong {
    color: #0f172a;
}

/* ---------- Checkout ---------- */
/* A quick checkout: one narrow column, the order in a single line, the card fields.
   The column is centred; the text inside it reads from the left, like the cards. */
.sub-checkout-page .sub-header {
    text-align: left;
}

.sub-checkout-page .sub-header-copy {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.sub-checkout-simple {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
    margin: 1.5rem auto 0;
}

.sub-checkout-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f7fbf9;
}

.sub-checkout-line-name {
    margin: 0;
    color: var(--hub-ink, #0b1f18);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.sub-checkout-line-meta {
    margin: 0.2rem 0 0;
    color: #6b7f76;
    font-size: 0.84rem;
}

.sub-checkout-line-total {
    margin: 0;
    color: var(--hub-ink, #0b1f18);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.sub-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.1rem 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sub-divider::before,
.sub-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.sub-card-form {
    display: grid;
    gap: 0.85rem;
}

.sub-card-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--hub-ink, #0b1f18);
    font-size: 0.82rem;
    font-weight: 700;
}

.sub-card-form input[type="text"],
.sub-card-field {
    width: 100%;
    border: 1px solid #dbe4e0;
    border-radius: 0.65rem;
    background: #ffffff;
    color: var(--hub-ink, #0b1f18);
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    min-height: 2.9rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sub-card-form input[type="text"]:focus,
.sub-card-field:focus-within {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.sub-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.sub-card-note {
    margin: 0.55rem 0 0;
    color: #6b7f76;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ---------- Order summary (checkout side) ---------- */
/* Light throughout, so the checkout reads as part of the pricing page rather than a
   different product. */









.sub-plan-features li {
    color: var(--hub-ink, #0b1f18);
}

.sub-plan-features li::before {
    color: #34d399;
}

/* ---------- My subscriptions ---------- */
.sub-history {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.sub-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 0.6rem 1.3rem rgba(15, 23, 42, 0.04);
}

.sub-history-copy {
    min-width: 0;
}

.sub-history-topline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.sub-status {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sub-status.is-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sub-status.is-expired,
.sub-status.is-cancelled {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.sub-status.is-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.sub-expiry {
    color: #64748b;
    font-size: 0.82rem;
}

.sub-history-row h3 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.sub-position-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.sub-history-meta,
.sub-history-period {
    margin: 0.2rem 0;
    color: #64748b;
    font-size: 0.85rem;
}

.sub-history-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: none;
}

.sub-history-amount {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ---------- Payment history table ---------- */
.sub-table-wrap {
    overflow-x: auto;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sub-table th,
.sub-table td {
    text-align: left;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.sub-table th {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sub-table td {
    color: #334155;
}

.sub-table-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .sub-period-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* minmax(0, 1fr), not 1fr: a bare fr keeps the column's min-content floor, so a wide
       row inside it pushes the whole grid past the viewport on a phone. */

    .sub-checkout-main,

    .sub-order-list>div {
        flex-wrap: wrap;
    }

}

@media (max-width: 720px) {
    .sub-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.8rem 1.5rem 1.9rem;
    }

    .sub-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {

    .sub-header,
    .sub-history-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sub-period-cards {
        grid-template-columns: 1fr;
    }

    .sub-header-actions {
        justify-content: flex-start;
    }

    .sub-history-actions {
        width: 100%;
        justify-content: space-between;
    }

    .sub-card-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- the hero, in the login page's palette ---------- */

/* The sign-in page greets people with a mint panel, ink text and one amber accent.
   Paying for a seat is the same kind of threshold, so it gets the same welcome
   instead of a dark slab that reads like a different product. */
.sub-hero {
    background: linear-gradient(155deg, #edf7f2 0%, #dcefe6 52%, #cde7db 100%);
    color: var(--hub-ink, #0b1f18);
    box-shadow: 0 20px 45px -30px rgba(11, 31, 24, 0.55);
}

.sub-hero::before,
.sub-hero::after {
    opacity: 0.22;
}

.sub-hero h1 {
    color: var(--hub-ink, #0b1f18);
}

.sub-hero-kicker {
    color: var(--hub-amber, #b45309);
}

.sub-hero-lead {
    color: #3f574c;
}

/* The feature ticks were pale green on white - legible only to somebody already
   looking for them. */
.sub-plan-features li {
    color: var(--hub-ink, #0b1f18);
}

.sub-plan-features li::before,
.sub-plan-features li svg {
    color: var(--hub-emerald, #0f7a55);
}

/* The hero's button was a translucent white pill, designed to sit on the dark slab.
   On the mint it was barely readable, so it takes the login page's treatment: ink
   fill, white text, the one solid thing on a soft panel. */
.sub-hero-actions .button,
.sub-hero-actions a {
    background: var(--hub-ink, #0b1f18);
    border-color: transparent;
    color: #ffffff;
    font-weight: 800;
}

.sub-hero-actions .button:hover,
.sub-hero-actions a:hover {
    background: #17402f;
    color: #ffffff;
}


/* ---------- the login page's composition ----------

   The sign-in page is one card split in two: a mint panel carrying the pitch, and a
   white side carrying the work. This page was a hero stacked over a list, which is why
   recolouring it changed nothing about how it felt. Same shape now. */

@media (min-width: 60rem) {

    /* Single column: the reference puts a centred header above the plans, so the hero
       is a banner again rather than a side panel. */
    .sub-page {
        max-width: 72rem;
        margin: 2.5rem auto 3.5rem;
    }

    .sub-hero {
        border-radius: 1.75rem;
    }

    .sub-page> :not(.sub-hero) {}

    .sub-page {
        display: block;
    }

    .sub-hero {
        padding: 2.75rem 2.25rem;
    }
}

@media (max-width: 59.99rem) {
    .sub-page {
        padding: 0 1rem;
    }

    .sub-hero {
        border-radius: 1.5rem;
    }
}


/* ---------- the pricing page, copied from the reference ----------

   Centred header over two plans; each card carries its saving on the top edge, shows
   the price it is beating struck through, and puts the recommendation in a tinted card
   with the only solid button. The layout does the persuading, not the copy. */

.sub-hero {
    text-align: left;
}

.sub-hero-copy {
    max-width: 46rem;
    margin: 0 auto;
}

.sub-hero-actions {
    justify-content: flex-start;
}

.sub-seat-picker {
    margin-top: 1.5rem;
}

/* The saving sits on the card's edge, so it is read before the price. */
.sub-period-card {
    position: relative;
}

.sub-period-card-head {
    justify-content: space-between;
}

/* Inside the card, top right. On the card's edge it was clipped by whatever sat above
   it, and a promise nobody can read is not a promise. */
.sub-period-saving {
    position: absolute;
    top: 1.15rem;
    right: 1.25rem;
    left: auto;
    transform: none;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    background: #fdf3e7;
    border: 1px solid #e8c9a2;
    color: var(--hub-amber, #8a4b06);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

/* The anchor: what a year costs if you pay monthly, struck out above the real price. */
.sub-price-anchor {
    display: block;
    margin-bottom: 0.15rem;
    color: #9aada4;
    font-size: 1rem;
    font-weight: 700;
    text-decoration-thickness: 2px;
}

.sub-period-card-price strong {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

/* ---------- room to breathe ----------

   The reference is generous: cards half the page wide, a clear gap between the header
   lines, and enough space above the cards for the ribbon to sit on their edge. */

.sub-page {
    padding-top: 2.5rem;
}

.sub-hero {
    padding: 2.5rem 1.5rem 1.5rem;
}

.sub-hero-copy {
    max-width: 42rem;
}

.sub-hero h1 {
    margin: 0.85rem 0 0.9rem;
}

.sub-hero-lead {
    margin: 0;
    line-height: 1.65;
}

.sub-hero-actions {
    margin-top: 1.75rem;
}

.sub-seat-picker {
    margin-top: 2.5rem;
}

.sub-seat-label {
    margin-bottom: 0.85rem;
}

/* Everything on the page shares the cards' width, so the heading and the plans line up
   on the same edge instead of the text running wider than the thing it describes. */
.sub-positions,
.sub-page>.alert {
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

.sub-period-cards {
    max-width: 58rem;
    margin: 0 auto;
    gap: 1.5rem;
    align-items: start;
}

.sub-period-card {
    padding: 1.85rem 1.75rem;
}

.sub-period-card-head {
    margin-bottom: 0.9rem;
}

.sub-period-card-blurb {
    margin: 0 0 1.1rem;
    min-height: 2.6rem;
}

.sub-period-card-price {
    margin-top: 0.25rem;
}

.sub-period-card-sub {
    margin-top: 0.5rem;
}

.sub-period-card-cta {
    margin: 1.35rem 0 1.5rem;
}

.sub-plan-features {
    margin-top: 0;
}

.sub-plan-features li {
    padding: 0.32rem 0;
}

/* The header sits centred over centred cards, like the rest of the page. The cards
   themselves keep their text left: only the frame is centred. */
.sub-position-head {
    margin-bottom: 1.25rem;
    text-align: left;
}

.sub-position-head-badges {
    justify-content: flex-start;
}

.sub-position-head h2 {
    margin-top: 0.6rem;
}

.sub-period-card {
    text-align: left;
}

/* ---------- the cards, from the reference ---------- */

.sub-period-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sub-period-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: #eef6f2;
    color: var(--hub-ink, #0b1f18);
    flex: none;
}

.sub-period-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.sub-period-card.is-yearly .sub-period-icon {
    background: #ffffff;
    color: var(--hub-emerald, #0f7a55);
}

.sub-period-card-title {
    margin-right: auto;
    color: var(--hub-ink, #0b1f18);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sub-period-card-blurb {
    margin: 0.6rem 0 0;
    color: #6b7f76;
    font-size: 0.88rem;
    line-height: 1.45;
}

/* ---------- matching the reference ---------- */
.sub-hero {
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 1rem 1.5rem 0.5rem;
}

.sub-hero::before,
.sub-hero::after {
    display: none;
}

.sub-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.sub-hero-lead {
    font-size: 1rem;
    color: #6b7f76;
}

.sub-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: #eaf6f0;
    color: var(--hub-emerald, #0f7a55);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* The reference stacks everything centred: pill, heading, line, then the choice. */
.sub-hero {
    display: block;
    text-align: left;
}

.sub-seat-picker {
    margin: 2rem auto 0;
    max-width: 46rem;
}

.sub-hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.25rem;
}

.sub-period-cards {
    align-items: start;
}

.sub-period-card {
    display: flex;
    flex-direction: column;
}

.sub-period-card-cta {
    margin: 1.25rem 0 1.25rem;
}

.sub-period-card-cta .button {
    width: 100%;
    justify-content: center;
}

.sub-hero-actions {
    margin-top: 1.25rem;
}

.sub-period-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.sub-price-anchor {
    display: block;
    width: 100%;
    margin: 0 0 0.2rem;
}

.sub-plan-features-title {
    margin: 0 0 0.6rem;
    color: var(--hub-ink, #0b1f18);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* The seat sits on the same line as the plan it decides. */
.sub-position-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    row-gap: 0.6rem;
}

.sub-position-title-row h2 {
    margin: 0;
}

/* Equal heights: items stretch to the tallest card, and the button is pinned to the
   bottom so both cards' buttons land on the same line. */
.sub-period-card {
    height: 100%;
}

.sub-period-card-cta {
    margin-top: auto;
}

/* No auto margins here: on a grid item they shrink it to its content and centre it,
   which indented the plans away from the header above them. */

/* ---------- the page, centred ----------

   The header is a grid, so text-align did nothing to it: justify-items is what centres
   a grid's contents. The card contents themselves are left exactly as they were. */

.sub-positions {
    width: 100%;
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

.sub-position-head {
    justify-items: start;
    text-align: left;
}

.sub-position-title-row {
    justify-content: flex-start;
}

/* The row must fill its centred box. With the columns left to size themselves, the pair
   hugged the left edge of a box that was already centred - which is why there was more
   space on the right than the left. Two equal columns, filling a centred row. */
.sub-period-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
    align-items: stretch;
}

/* ---------- the seat picker, as a pop-up ----------

   Six seats is a decision, not a filter row. The trigger states the current seat; the
   dialog is opened by #choose-seat and closed by the OK link, so it needs no script. */

.sub-seat-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.05rem;
    border: 1px solid var(--hub-ink, #0b1f18);
    border-radius: 999px;
    background: #ffffff;
    color: var(--hub-ink, #0b1f18);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.sub-seat-trigger-change {
    padding-left: 0.6rem;
    border-left: 1px solid rgba(11, 31, 24, 0.18);
    color: var(--hub-amber, #b45309);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sub-seat-pop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 20, 15, 0.55);
    backdrop-filter: blur(3px);
}

.sub-seat-pop:target,
.sub-seat-pop.is-open {
    display: flex;
}

.sub-seat-pop-sheet {
    width: 100%;
    /* Wider than a list needed: two columns of seat cards have to breathe. */
    max-width: 38rem;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 40px 90px -40px rgba(6, 20, 15, 0.6);
}

.sub-seat-pop-title {
    margin: 0;
    color: var(--hub-ink, #0b1f18);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.sub-seat-pop-lead {
    margin: 0.35rem 0 1rem;
    color: #6b7f76;
    font-size: 0.9rem;
}

.sub-seat-pop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Two columns stay on a phone: six stacked cards push the OK button off the screen,
   which is worse than a slightly narrower label. */
@media (max-width: 30rem) {
    .sub-seat-pop-sheet {
        padding: 1.25rem;
    }

    .sub-seat-pop-grid {
        gap: 0.5rem;
    }

    .sub-seat-card {
        min-height: 3.9rem;
        padding: 0.65rem 0.75rem;
        border-radius: 0.85rem;
    }

    .sub-seat-card-level {
        font-size: 0.58rem;
    }

    .sub-seat-card-name {
        font-size: 0.84rem;
        line-height: 1.25;
    }

    .sub-seat-card-tick {
        top: 0.5rem;
        right: 0.6rem;
        font-size: 0.8rem;
    }
}

.sub-seat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-height: 4.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(11, 31, 24, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    color: var(--hub-ink, #0b1f18);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sub-seat-card:hover,
.sub-seat-card:focus-visible {
    border-color: var(--hub-ink, #0b1f18);
    background: #f7fbf9;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -18px rgba(6, 20, 15, 0.6);
    outline: none;
}

.sub-seat-card.is-current {
    border-color: var(--hub-emerald, #0f7a55);
    background: #f2faf6;
}

.sub-seat-card-level {
    color: var(--hub-emerald, #0f7a55);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sub-seat-card-name {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.sub-seat-card-tick {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    color: var(--hub-emerald, #0f7a55);
    font-size: 0.95rem;
    font-weight: 900;
}

.sub-seat-pop-ok {
    display: block;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: var(--hub-ink, #0b1f18);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

/* ---------- the seat picker ---------- */

.sub-seat-label {
    margin: 0 0 0.6rem;
    color: #6b7f76;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}



.sub-seat-pill:hover {
    border-color: var(--hub-ink, #0b1f18);
}


.sub-seat-back {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--hub-ink, #0b1f18);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.sub-seat-back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The recommended plan is tinted with the only solid button on the page. */
.sub-period-card.is-yearly {
    background: #f2faf6;
    border: 2px solid var(--hub-emerald, #0f7a55);
    box-shadow: 0 22px 45px -30px rgba(11, 31, 24, 0.45);
}

.sub-period-card.is-yearly .sub-period-card-cta .button {
    background: var(--hub-emerald, #0f7a55);
    border-color: transparent;
    color: #ffffff;
    font-weight: 800;
}

Placed after every other rule on purpose. The card row is defined six times in this file and the later plain definitions were beating the media queries further up,
which is why the plans stayed side by side on a phone. */ @media (max-width: 640px) {
    .sub-period-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    /* The saving pill is positioned at the card's top right, which lands on the title
       once the title wraps. In the flow it cannot overlap anything. */
    .sub-period-saving {
        position: static;
        order: 2;
        margin-left: auto;
    }

    .sub-period-card {
        padding: 1.35rem 1.25rem 1.4rem;
    }

    .sub-period-card-head {
        flex-wrap: wrap;
        gap: 0.5rem 0.6rem;
    }

    .sub-period-card-title {
        margin-right: 0;
        font-size: 1.05rem;
    }

    .sub-position-title-row {
        gap: 0.75rem;
    }

    .sub-position-title-row h2 {
        font-size: 1.35rem;
    }

    .sub-hero {
        padding: 1.5rem 1.25rem;
    }

    .sub-hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .sub-positions {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .sub-period-card-price strong {
        font-size: 1.6rem;
    }

    .sub-checkout-line {
        flex-wrap: wrap;
    }

    .sub-checkout-line-total {
        font-size: 1.2rem;
    }
}


/* ---------- small screens ----------

   Last in the file on purpose. The card row is defined several times above and those
   plain definitions were beating the earlier media queries, which is why the plans
   stayed side by side on a phone. */

@media (max-width: 640px) {
    .sub-period-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .sub-period-saving {
        position: static;
        order: 2;
        margin-left: auto;
    }

    .sub-period-card {
        padding: 1.35rem 1.25rem 1.4rem;
    }

    .sub-period-card-head {
        flex-wrap: wrap;
        gap: 0.5rem 0.6rem;
    }

    .sub-period-card-title {
        margin-right: 0;
        font-size: 1.05rem;
    }

    .sub-position-title-row {
        gap: 0.75rem;
    }

    .sub-position-title-row h2 {
        font-size: 1.35rem;
    }

    .sub-hero {
        padding: 1.5rem 1.25rem;
    }

    .sub-hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .sub-positions {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .sub-period-card-price strong {
        font-size: 1.6rem;
    }

    .sub-checkout-line {
        flex-wrap: wrap;
    }

    .sub-checkout-line-total {
        font-size: 1.2rem;
    }
}

/* ---------- one left edge ----------

   The header lived in a 42rem centred box while the plans and cards below it use 58rem,
   so its text was indented relative to everything else. The hero also carried its own
   horizontal padding, which the content column does not. Same box, same edge. */

.sub-hero {
    padding-left: 0;
    padding-right: 0;
}

.sub-hero-copy {
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- my subscriptions: insights, the live plan, filters ---------- */

.my-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.5rem 0 0;
}

.my-insight {
    padding: 1.1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.my-insight-label { margin: 0; color: #6b7f76; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.my-insight-value { margin: 0.4rem 0 0; color: var(--hub-ink, #0b1f18); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }
.my-insight-note { margin: 0.2rem 0 0; color: #6b7f76; font-size: 0.82rem; }

/* the live plan gets a band of its own */
.my-current {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 1rem 0 0;
    padding: 1.35rem 1.5rem;
    border: 2px solid var(--hub-emerald, #0f7a55);
    border-radius: 1.25rem;
    background: #f2faf6;
}

.my-ring { position: relative; width: 4.5rem; height: 4.5rem; flex: none; }
.my-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.my-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.my-ring-track { stroke: #dcefe6; }
.my-ring-value { stroke: var(--hub-emerald, #0f7a55); }
.my-ring > strong {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--hub-ink, #0b1f18); font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
}
.my-ring > strong span { margin-top: 0.15rem; color: #6b7f76; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.my-current-copy { flex: 1 1 auto; min-width: 0; }
.my-current-label { margin: 0; color: #0f7a55; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.my-current-copy h2 { margin: 0.3rem 0 0; color: var(--hub-ink, #0b1f18); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.my-current-meta { margin: 0.3rem 0 0; color: #3f574c; font-size: 0.9rem; }
.my-current-action { flex: none; }

.my-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 0.9rem; }
.my-filter {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 999px;
    background: #ffffff; color: #3f574c; font-size: 0.84rem; font-weight: 700; text-decoration: none;
}
.my-filter span { padding: 0.05rem 0.4rem; border-radius: 999px; background: #f1f5f3; color: #6b7f76; font-size: 0.72rem; font-weight: 900; }
.my-filter:hover { border-color: var(--hub-ink, #0b1f18); }
.my-filter.is-current { background: var(--hub-ink, #0b1f18); border-color: transparent; color: #ffffff; }
.my-filter.is-current span { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.my-none { margin: 1rem 0; color: #6b7f76; font-size: 0.92rem; }

@media (max-width: 640px) {
    .my-insights { grid-template-columns: minmax(0, 1fr); }
    .my-current { flex-wrap: wrap; }
}

/* recurring checkout: PayPal renders its own button, so the page only provides the slot */
.sub-subscribe {
    display: grid;
    gap: 0.9rem;
    justify-items: stretch;
    margin-top: 0.4rem;
}

.sub-subscribe #paypal-subscribe { min-height: 3rem; }
.sub-subscribe .sub-card-note { margin: 0; }

/* A party code: the other way into a subscription. Kept visually distinct from the
   plan cards, because it is not a choice between plans - it is a code that already
   decided which seat is being paid for. */
.sub-code-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 1.5rem 0 0;
    padding: 22px 24px;
    border: 1px solid #dbe6df;
    border-radius: 18px;
    background: #f6faf7;
}

@media (min-width: 820px) {
    .sub-code-card {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: center;
    }
}

.sub-code-card.is-sponsored {
    border-color: #bfe0cd;
    background: #eef8f1;
}

.sub-code-kicker {
    margin: 0 0 6px;
    color: #0b5c42;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sub-code-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.sub-code-card p {
    margin: 0;
    color: #3f574c;
    font-size: 14.5px;
    line-height: 1.6;
}

.sub-code-form {
    display: block;
}

.sub-code-label {
    display: block;
    margin-bottom: 6px;
    color: #3f574c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sub-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-code-row input {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #cbd8d0;
    border-radius: 10px;
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sub-code-row input:focus {
    border-color: #0b5c42;
    outline: 2px solid rgba(11, 92, 66, 0.15);
}

.sub-code-notice {
    margin: 1rem 0 0;
    padding: 12px 16px;
    border: 1px solid #bfe0cd;
    border-radius: 12px;
    background: #eef8f1;
    color: #0b5c42;
    font-size: 14px;
    font-weight: 700;
}

.sub-code-notice.is-error {
    border-color: #f0c4b8;
    background: #fdf1ee;
    color: #8a2d12;
}
