/* =====================================================================
   RLTR Sync — /upgrade/ checkout page
   Editorial luxury: navy plan panel + cream form panel.
   Display font: DM Serif Display (the price). Body: v2 dashboard system stack.
===================================================================== */

/* Flatten Hello Elementor theme wrappers around our content
   (only when the body class is present — set via PHP detector) */
body.rltr-upgrade-page,
body.rltr-upgrade-page #content,
body.rltr-upgrade-page .page-content,
body.rltr-upgrade-page article {
    margin: 0;
    padding: 0;
    max-width: none;
    background: #050B5F; /* navy-deep so any micro-gap blends */
}
body.rltr-upgrade-page .page-content > * + *,
body.rltr-upgrade-page article > * + * { margin-top: 0; }
body.rltr-upgrade-page .entry-header,
body.rltr-upgrade-page .post-thumbnail,
body.rltr-upgrade-page .entry-meta,
body.rltr-upgrade-page .entry-footer { display: none; }

.rltr-up {
    --rltr-navy:        #08158D;
    --rltr-navy-deep:   #050B5F;
    --rltr-ink:         #0A0E2E;
    --rltr-cream:       #FAFAF5;
    --rltr-paper:       #FFFFFF;
    --rltr-line:        #E5E7EB;
    --rltr-line-soft:   #F1F2F6;
    --rltr-text:        #15172B;
    --rltr-muted:       #6B7280;
    --rltr-gold:        #FFD89C;
    --rltr-gold-soft:   rgba(255, 216, 156, 0.16);

    /* Break out of theme container width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    background: var(--rltr-cream);
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--rltr-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.rltr-up-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100vh;
    align-items: stretch;
}

@media (max-width: 980px) {
    .rltr-up-grid { grid-template-columns: 1fr; }
}

/* ===== Reset minor things that the parent theme might inject ===== */
.rltr-up h1, .rltr-up h2, .rltr-up p, .rltr-up ul {
    margin: 0;
    padding: 0;
}
.rltr-up ul { list-style: none; }
.rltr-up a { color: inherit; text-decoration: none; transition: color .15s ease; }


/* =====================================================================
   LEFT PANEL — Plan summary on navy
===================================================================== */
.rltr-up-aside {
    position: relative;
    background: var(--rltr-navy-deep);
    background-image:
        radial-gradient(120% 80% at 100% 100%, rgba(8, 21, 141, 1) 0%, var(--rltr-navy-deep) 60%),
        radial-gradient(80% 60% at 0% 0%, rgba(8, 21, 141, 0.6) 0%, transparent 70%);
    color: #FFFFFF;
    padding: clamp(40px, 6vw, 84px) clamp(28px, 5vw, 72px);
    overflow: hidden;
    isolation: isolate;
    display: flex;
}

.rltr-up-aside-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}

/* Decorative orbs */
.rltr-up-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}
.rltr-up-bg-orb--a {
    top: -120px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 216, 156, 0.45), transparent 70%);
}
.rltr-up-bg-orb--b {
    bottom: -100px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(120, 140, 255, 0.4), transparent 70%);
}

/* Subtle dotted grid behind everything */
.rltr-up-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

.rltr-up-brand {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.92);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}
.rltr-up-brand:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.rltr-up-brand-tail {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-left: 2px;
    text-transform: lowercase;
}

/* Lottie brand mark — matches the v2 dashboard sidebar exactly. The pill
   border/padding/background from .rltr-up-brand is dropped here since the
   logo is a self-contained mark. */
.rltr-up-brand--lottie {
    display: inline-flex;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    width: 100%;
    max-width: 170px;
}
.rltr-up-brand--lottie:hover { border: 0; }
.rltr-up-brand--lottie lottie-player {
    width: 100%;
    /* Match v2 sidebar — native lottie is 597×329, so set aspect-ratio so the
       player reserves space before/while the JSON loads. */
    aspect-ratio: 597 / 329;
    height: auto;
    display: block;
}

.rltr-up-eyebrow {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 14px;
}

.rltr-up-plan-head {
    margin-top: 8px;
}

.rltr-up-title {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.rltr-up-tagline {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    letter-spacing: 0.01em;
}

/* The hero price */
.rltr-up-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 26px 0;
}
.rltr-up-price-amount {
    font-family: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(58px, 8vw, 88px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--rltr-gold);
    font-weight: 400;
    font-style: normal;
    /* Tabular figures for clean alignment */
    font-variant-numeric: tabular-nums;
}
.rltr-up-price-period {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.rltr-up-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 420px;
}

.rltr-up-feats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.rltr-up-feats li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}
.rltr-up-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--rltr-gold);
    background: var(--rltr-gold-soft);
    border-radius: 999px;
    padding: 2px;
}

/* =====================================================================
   Upsell card (left panel) — "Add the other plan"
===================================================================== */
/* `[hidden]` MUST override our display:grid below. Without this !important,
   the bundle upsell stays visible on ?plan=both (the PHP outputs the `hidden`
   attribute, but `display: grid` wins by default). */
.rltr-up-upsell[hidden] { display: none !important; }

/* ── Plan switcher tabs (top of page) ────────────────────────────────
   Three-segment control above the .rltr-up-grid. Clicking a tab calls
   switchPlan() inline — no reload, no "back to plans" step.
   Tabs sit on the cream body BG (above the navy/cream split), so this
   palette is dark text on white card, active = navy gradient with white. */
.rltr-up-plan-tabs-wrap {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}
.rltr-up-plan-tabs-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(8, 21, 141, 0.72);
    margin: 0 0 10px;
}
.rltr-up-plan-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(8, 21, 141, 0.12);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(8, 21, 141, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rltr-up-plan-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(8, 21, 141, 0.78);
    font-family: inherit;
    font-size: 13.5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.rltr-up-plan-tab:hover {
    background: rgba(8, 21, 141, 0.05);
    color: var(--rltr-navy);
}
/* Active = navy gradient with white text — same gradient v2 dashboard
   CTAs and the page-lock unlock button use, so the upgrade page reads
   as part of the same product. */
.rltr-up-plan-tab.is-active {
    background: linear-gradient(135deg, var(--rltr-navy) 0%, var(--rltr-navy-deep) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(8, 21, 141, 0.30);
}
.rltr-up-plan-tab .tab-label { font-weight: 700; line-height: 1.15; }
.rltr-up-plan-tab .tab-price {
    font-size: 12px;
    color: rgba(8, 21, 141, 0.55);
    font-weight: 500;
}
.rltr-up-plan-tab.is-active .tab-price { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 640px) {
    .rltr-up-plan-tabs-wrap { margin-bottom: 20px; }
    .rltr-up-plan-tabs { padding: 4px; gap: 4px; }
    .rltr-up-plan-tab { padding: 10px 6px; font-size: 12.5px; }
    .rltr-up-plan-tab .tab-price { font-size: 11px; }
}
.rltr-up-upsell {
    display: grid;
    grid-template-areas:
        "eyebrow eyebrow"
        "headline headline"
        "sub sub"
        "cta cta";
    gap: 6px;
    padding: 22px 24px;
    margin: 4px 0;
    background: linear-gradient(135deg, rgba(255, 216, 156, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 216, 156, 0.28);
    border-radius: 14px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all .25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.rltr-up-upsell::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: var(--rltr-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.rltr-up-upsell:hover {
    background: linear-gradient(135deg, rgba(255, 216, 156, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 216, 156, 0.48);
    transform: translateX(2px);
    color: #FFFFFF;
}
.rltr-up-upsell:hover::before {
    transform: scaleY(1);
}

.rltr-up-upsell-eyebrow {
    grid-area: eyebrow;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rltr-gold);
}
.rltr-up-upsell-headline {
    grid-area: headline;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
}
.rltr-up-upsell-headline strong { font-weight: 700; }
.rltr-up-upsell-sub {
    grid-area: sub;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.rltr-up-upsell-price {
    color: var(--rltr-gold);
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
}
.rltr-up-upsell-cta {
    grid-area: cta;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    align-self: end;
    justify-self: end;
}
.rltr-up-upsell-cta svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}
.rltr-up-upsell:hover .rltr-up-upsell-cta svg {
    transform: translateX(4px);
}

.rltr-up-trust {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rltr-up-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
}
.rltr-up-trust-item svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 216, 156, 0.7);
    flex-shrink: 0;
}


/* =====================================================================
   RIGHT PANEL — Form
===================================================================== */
.rltr-up-main {
    background: var(--rltr-cream);
    padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 72px);
    display: flex;
    align-items: flex-start;
    position: relative;
}

.rltr-up-main::before {
    /* Hairline texture: faint paper-noise feel */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.4) 2px, rgba(0, 0, 0, 0.4) 3px);
    mix-blend-mode: multiply;
}

.rltr-up-main-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.rltr-up-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--rltr-muted);
    margin-bottom: 40px;
    align-self: flex-start;
    transition: color .15s ease, transform .2s ease;
}
.rltr-up-back svg { width: 14px; height: 14px; transition: transform .2s ease; }
.rltr-up-back:hover { color: var(--rltr-navy); }
.rltr-up-back:hover svg { transform: translateX(-3px); }

/* =====================================================================
   Stepper
===================================================================== */
.rltr-up-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.rltr-up-stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rltr-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color .2s ease;
}
.rltr-up-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--rltr-line-soft);
    border: 1px solid var(--rltr-line);
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--rltr-muted);
    transition: all .25s ease;
}
.rltr-up-stepper-item.is-active {
    color: var(--rltr-ink);
}
.rltr-up-stepper-item.is-active .rltr-up-stepper-num {
    background: var(--rltr-ink);
    border-color: var(--rltr-ink);
    color: #fff;
}
.rltr-up-stepper-item.is-complete .rltr-up-stepper-num {
    background: var(--rltr-navy);
    border-color: var(--rltr-navy);
    color: #fff;
}
.rltr-up-stepper-item.is-complete .rltr-up-stepper-num::before {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
}
.rltr-up-stepper-item.is-complete .rltr-up-stepper-num {
    font-size: 0;  /* hide the number */
    line-height: 28px;
}
.rltr-up-stepper-item.is-complete .rltr-up-stepper-num::before { font-size: 12px; }
.rltr-up-stepper-bar {
    flex: 1;
    height: 1px;
    background: var(--rltr-line);
    margin: 0 14px;
    position: relative;
    overflow: hidden;
}
.rltr-up-stepper-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rltr-navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.rltr-up-stepper-item.is-complete + .rltr-up-stepper-bar::after {
    transform: scaleX(1);
}

/* =====================================================================
   Step panes — keep both in DOM so Stripe Payment Element stays mounted.
   Inactive panes go offscreen + invisible (NOT display:none, which would
   break the iframe's dimensions).
===================================================================== */
.rltr-up-form { position: relative; }

.rltr-up-pane {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0 0 auto 0;
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(8px);
}
.rltr-up-pane.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: none;
}
/* Override default browser [hidden] = display:none */
.rltr-up-pane[hidden] { display: block; }

.rltr-up-back-step {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--rltr-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    transition: color .15s ease;
}
.rltr-up-back-step:hover { color: var(--rltr-navy); }
.rltr-up-back-step svg { width: 14px; height: 14px; transition: transform .2s ease; }
.rltr-up-back-step:hover svg { transform: translateX(-3px); }

.rltr-up-form-hd { margin-bottom: 28px; }

/* =====================================================================
   Saved card row — shown in step 2 when user has a card on file
===================================================================== */
.rltr-up-saved-pm {
    background: #FFFFFF;
    border: 1px solid var(--rltr-line);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 4px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rltr-up-saved-pm-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rltr-up-saved-pm-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a2db5 0%, #08158D 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.rltr-up-saved-pm-brand[data-brand="visa"]        { background: linear-gradient(135deg, #1A1F71 0%, #0F1648 100%); }
.rltr-up-saved-pm-brand[data-brand="mastercard"]  { background: linear-gradient(135deg, #EB001B 0%, #F79E1B 100%); }
.rltr-up-saved-pm-brand[data-brand="amex"]        { background: linear-gradient(135deg, #006FCF 0%, #00316C 100%); }
.rltr-up-saved-pm-brand[data-brand="discover"]    { background: linear-gradient(135deg, #FF6000 0%, #C03A00 100%); }
.rltr-up-saved-pm-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.rltr-up-saved-pm-label {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rltr-muted);
}
.rltr-up-saved-pm-num {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--rltr-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}
.rltr-up-saved-pm-exp {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--rltr-muted);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.rltr-up-saved-pm-change {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rltr-navy);
    text-decoration: none;
    align-self: flex-end;
    transition: color 0.15s ease;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.rltr-up-saved-pm-change:hover {
    color: var(--rltr-ink);
    text-decoration: underline;
}

.rltr-up-payment-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Re-assert [hidden] override so the wrap actually hides
   when the wrap's own display:flex would otherwise win the cascade. */
.rltr-up-payment-wrap[hidden],
.rltr-up-saved-pm[hidden] { display: none; }
.rltr-up-saved-pm-change--back {
    align-self: flex-start;
    color: var(--rltr-muted);
}
.rltr-up-saved-pm-change--back:hover { color: var(--rltr-navy); }

.rltr-up-eyebrow--dark {
    color: var(--rltr-navy);
    font-weight: 700;
    margin-bottom: 12px;
}

.rltr-up-form-hd h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--rltr-ink);
    margin-bottom: 12px;
}

.rltr-up-form-hd p {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rltr-muted);
}

.rltr-up-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rltr-up-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rltr-up-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}
.rltr-up-field > span {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rltr-muted);
}
.rltr-up-field input {
    border: 1px solid var(--rltr-line);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--rltr-paper);
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: var(--rltr-text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    width: 100%;
}
.rltr-up-field input::placeholder { color: #b8bcc6; }
.rltr-up-field input:hover { border-color: #cdd1dc; }
.rltr-up-field input:focus {
    outline: 0;
    border-color: var(--rltr-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 21, 141, 0.10);
}

.rltr-up-divider {
    margin: 12px 0 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--rltr-muted);
}
.rltr-up-divider::before,
.rltr-up-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rltr-line);
}
.rltr-up-divider span {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Stripe Payment Element wrapper */
#rltr-sc-payment.rltr-up-pay,
#rltr-sc-payment {
    background: var(--rltr-paper);
    border: 1px solid var(--rltr-line);
    border-radius: 10px;
    padding: 18px;
    min-height: 60px;
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
    margin: 0;
}
#rltr-sc-payment:focus-within {
    border-color: var(--rltr-navy);
    box-shadow: 0 0 0 4px rgba(8, 21, 141, 0.08);
}
#rltr-sc-payment:empty::before {
    content: 'Complete the fields above to enter payment details';
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #a4a8b3;
    font-style: italic;
    display: block;
    padding: 8px 0;
}

.rltr-up button.rltr-up-submit,
.rltr-up .rltr-up-submit,
.rltr-up #rltr-sc-submit,
.rltr-up #rltr-sc-next {
    margin-top: 12px;
    width: 100%;
    background: var(--rltr-ink);
    color: #FFFFFF;
    border: 0;
    padding: 18px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background .18s ease, transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 14px rgba(10, 14, 46, 0.18);
    text-transform: none;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
}
.rltr-up button.rltr-up-submit:not(:disabled):hover,
.rltr-up #rltr-sc-submit:not(:disabled):hover,
.rltr-up #rltr-sc-next:not(:disabled):hover {
    background: var(--rltr-navy);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 22px rgba(8, 21, 141, 0.28);
    color: #FFFFFF;
}
.rltr-up button.rltr-up-submit:not(:disabled):active,
.rltr-up #rltr-sc-submit:not(:disabled):active,
.rltr-up #rltr-sc-next:not(:disabled):active {
    transform: translateY(0);
}
.rltr-up button.rltr-up-submit:disabled,
.rltr-up #rltr-sc-submit:disabled,
.rltr-up #rltr-sc-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.rltr-up button.rltr-up-submit:focus,
.rltr-up #rltr-sc-submit:focus,
.rltr-up #rltr-sc-next:focus {
    outline: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 0 4px rgba(8, 21, 141, 0.18);
}
.rltr-up-arrow {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}
#rltr-sc-submit:not(:disabled):hover .rltr-up-arrow {
    transform: translateX(4px);
}
.rltr-sc-spinner {
    width: 14px; height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rltr-sc-spin 0.8s linear infinite;
}
@keyframes rltr-sc-spin { to { transform: rotate(360deg); } }

.rltr-up-error,
#rltr-sc-error.rltr-up-error {
    margin-top: 6px;
    color: #B3261E;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    min-height: 1em;
}

.rltr-up-fineprint {
    margin-top: 18px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco Pro', 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: var(--rltr-muted);
}
.rltr-up-fineprint strong {
    color: var(--rltr-ink);
    font-weight: 700;
}


/* =====================================================================
   Mobile
===================================================================== */
@media (max-width: 980px) {
    .rltr-up-aside-inner { max-width: none; margin: 0; }
    .rltr-up-main-inner { max-width: none; margin: 0; }
    .rltr-up-back { margin-bottom: 24px; }
    .rltr-up-trust { gap: 14px; }
}

@media (max-width: 520px) {
    .rltr-up-field-row { grid-template-columns: 1fr; }
    .rltr-up-price-amount { font-size: 56px; }
}

/* Page-load reveal */
@keyframes rltr-up-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.rltr-up-aside-inner > * {
    animation: rltr-up-rise 0.5s ease both;
}
.rltr-up-aside-inner > *:nth-child(1) { animation-delay: 0.05s; }
.rltr-up-aside-inner > *:nth-child(2) { animation-delay: 0.12s; }
.rltr-up-aside-inner > *:nth-child(3) { animation-delay: 0.20s; }
.rltr-up-aside-inner > *:nth-child(4) { animation-delay: 0.28s; }
.rltr-up-aside-inner > *:nth-child(5) { animation-delay: 0.36s; }
.rltr-up-aside-inner > *:nth-child(6) { animation-delay: 0.44s; }

.rltr-up-main-inner > * {
    animation: rltr-up-rise 0.5s ease both;
}
.rltr-up-main-inner > *:nth-child(1) { animation-delay: 0.30s; }
.rltr-up-main-inner > *:nth-child(2) { animation-delay: 0.38s; }
.rltr-up-main-inner > *:nth-child(3) { animation-delay: 0.46s; }
