/* ═══════════════════════════════════════════════════════════════════════════
   Topstep Affiliate Landing — scoped under .tst-aff
   Variant 2: dark hero, MZpack-forward, Topstep demoted
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Layout ──────────────────────────────────────────────────────────────── */

.tst-aff {
    --tst-green: #10b860;
    --tst-green-bright: #1ae574;
    --tst-dark: #0d1117;
    --tst-dark-2: #111927;
    --tst-panel: #0f1622;
    --tst-ink: #e6edf3;
    --tst-muted: #8b98a9;
    --tst-line: rgba(255, 255, 255, 0.08);
    --tst-light: #f5f7fa;
    --tst-light-ink: #1a2230;
    --tst-light-muted: #5b6675;
    --tst-text: #1a1d23;
    --tst-text-mid: #4b5563;
    --tst-text-dim: #9ca3af;
    --tst-border: #e5e7eb;
    --tst-bg: #fafbfc;
    --tst-bg-white: #ffffff;
    --tst-radius: 12px;
    --tst-max-w: 1080px;
}

.tst-aff {
    font-family: 'Outfit', sans-serif;
    color: var(--tst-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.tst-aff em {
    font-style: normal;
    color: var(--tst-green-bright);
}

.tst-aff-container {
    max-width: var(--tst-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.tst-aff [id] {
    scroll-margin-top: 80px;
}

/* ─── Hero (dark, left-aligned) ──────────────────────────────────────────── */

.tst-aff-hero {
    background: radial-gradient(1200px 500px at 70% -10%, rgba(26, 229, 116, 0.10), transparent 60%), var(--tst-dark);
    border-bottom: 1px solid var(--tst-line);
    padding: 140px 0 56px;
    position: relative;
    overflow: hidden;
}

.tst-aff-hero::before {
    display: none;
}

.tst-aff-hero .tst-aff-container {
    position: relative;
}

.tst-aff-hero__eyebrow {
    font-family: 'Press Start 2P', monospace;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tst-green-bright);
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 14px;
    line-height: 1.8;
}

.tst-aff-hero__eyebrow sup {
    font-size: 0.7em;
}

.tst-aff-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(34px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tst-ink);
    margin: 0 0 10px;
    line-height: 1.04;
}

.tst-aff-hero h1 em {
    font-style: normal;
    color: var(--tst-green-bright);
}

.tst-aff-hero__sub {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--tst-ink);
    margin-bottom: 16px;
}

.tst-aff-hero__intro {
    color: var(--tst-muted);
    max-width: 620px;
    font-size: 16px;
    margin: 0 0 28px;
    line-height: 1.6;
}

.tst-aff-hero__intro a {
    color: var(--tst-muted);
    text-decoration: underline;
    text-decoration-color: rgba(139, 152, 169, 0.4);
}

.tst-aff-hero__intro a:hover {
    color: var(--tst-ink);
}

.tst-aff-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tst-aff-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--tst-green-bright), var(--tst-green));
    color: #062b16;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 8px 30px rgba(26, 229, 116, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.tst-aff-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(26, 229, 116, 0.35);
    color: #062b16;
    background: linear-gradient(135deg, var(--tst-green-bright), var(--tst-green));
}

.tst-aff-hero__cta-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--tst-ink);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--tst-line);
    transition: border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.tst-aff-hero__cta-outline:hover {
    border-color: var(--tst-green);
    color: var(--tst-green-bright);
}

/* ─── Bridge wrap (dark flow from hero) ──────────────────────────────────── */

.tst-aff-bridge-wrap {
    background: var(--tst-dark);
    padding: 14px 0 64px;
}

/* ─── Bridge block (dark card) ───────────────────────────────────────────── */

.tst-aff-bridge {
    background: linear-gradient(180deg, var(--tst-panel), #0b1119);
    border: 1px solid var(--tst-line);
    border-radius: 20px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.tst-aff-bridge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 90% 0, rgba(26, 229, 116, 0.10), transparent 70%);
    pointer-events: none;
}

.tst-aff-bridge::after {
    display: none;
}

.tst-aff-bridge__inner {
    padding: 40px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.tst-aff-bridge__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 700 12px/1 'Space Mono', monospace;
    letter-spacing: 0.06em;
    color: var(--tst-green-bright);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.tst-aff-bridge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tst-green-bright);
    box-shadow: 0 0 12px var(--tst-green-bright);
    animation: tstPulse 1.8s ease-in-out infinite;
}

@keyframes tstPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.tst-aff-bridge__top {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.tst-aff-bridge__top--solo {
    display: flex;
}

.tst-aff-bridge__price {
    flex: 0 0 auto;
    text-align: center;
    background: rgba(26, 229, 116, 0.08);
    border: 1px solid rgba(26, 229, 116, 0.25);
    border-radius: 16px;
    padding: 18px 22px;
    min-width: 130px;
}

.tst-aff-bridge__price-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 52px;
    line-height: 1;
    color: var(--tst-green-bright);
    letter-spacing: -0.03em;
    text-shadow: none;
}

.tst-aff-bridge__price-num small {
    font-size: 24px;
}

.tst-aff-bridge__price-lbl {
    font: 700 11px/1.3 'Space Mono', monospace;
    color: var(--tst-muted);
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

.tst-aff-bridge__headline {
    flex: 1;
    min-width: 300px;
}

.tst-aff-bridge__headline h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.tst-aff-bridge__headline em {
    font-style: normal;
    color: var(--tst-green-bright);
    text-shadow: none;
}

.tst-aff-bridge__headline p {
    font-size: 15.5px;
    color: var(--tst-muted);
    max-width: 60ch;
    margin: 0;
}

.tst-aff-bridge__activate {
    margin: 26px 0;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(26, 229, 116, 0.3);
    border-radius: 12px;
}

.tst-aff-bridge__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.tst-aff-bridge__card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tst-line);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
    text-align: left;
}

.tst-aff-bridge__card:hover {
    border-color: var(--tst-green);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
}

.tst-aff-bridge__card-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--tst-ink);
    margin-bottom: 6px;
}

.tst-aff-bridge__card-name b {
    color: var(--tst-green-bright);
    font-weight: 700;
}

.tst-aff-bridge__card-desc {
    color: var(--tst-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 0;
}

.tst-aff-bridge__card-link {
    display: none;
}

.tst-aff-bridge__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 0;
    justify-content: flex-start;
    align-items: center;
}

.tst-aff-bridge__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--tst-green-bright), var(--tst-green));
    color: #062b16;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 8px 30px rgba(26, 229, 116, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.tst-aff-bridge__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(26, 229, 116, 0.35);
    color: #062b16;
}

.tst-aff-bridge__btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--tst-ink);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid var(--tst-line);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    cursor: pointer;
}

.tst-aff-bridge__btn-ghost:hover {
    border-color: var(--tst-green);
    color: var(--tst-green-bright);
}

.tst-aff-bridge__footer {
    color: var(--tst-muted);
    font-size: 13px;
    margin-top: 18px;
    font-family: 'Space Mono', monospace;
}

/* ─── Bridge — activation widget (inside dashed box) ─────────────────────── */

.tst-aff-bridge__activate .mz-tst-activate-head span,
.tst-aff-bridge__activate .mz-tst-form-head {
    font-weight: 600;
    display: block;
    margin-bottom: 14px;
    color: var(--tst-ink);
}

.tst-aff-bridge__activate .mz-tst-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.tst-aff-bridge__activate input[type="email"] {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tst-line);
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--tst-ink);
    font: 400 15px/1 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.15s;
}

.tst-aff-bridge__activate input[type="email"]::placeholder {
    color: var(--tst-muted);
}

.tst-aff-bridge__activate input[type="email"]:focus {
    border-color: var(--tst-green);
}

.tst-aff-bridge__activate .mz-tst-consent,
.tst-aff-bridge__activate label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    cursor: pointer;
}

.tst-aff-bridge__activate .mz-tst-consent input[type="checkbox"],
.tst-aff-bridge__activate label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--tst-green);
    flex: 0 0 auto;
}

.tst-aff-bridge__activate .mz-tst-consent span,
.tst-aff-bridge__activate label span {
    font-size: 13px;
    color: var(--tst-muted);
    line-height: 1.5;
}

/* ─── Topstep info (light section) ───────────────────────────────────────── */

.tst-aff-discount {
    background: var(--tst-light);
    color: var(--tst-light-ink);
    padding: 60px 0;
}

.tst-aff-discount h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--tst-light-ink);
    margin: 0 0 8px;
    text-align: left;
}

.tst-aff-discount h2 em {
    font-style: normal;
    color: var(--tst-green);
}

.tst-aff-discount__desc {
    font-size: 15.5px;
    color: var(--tst-light-muted);
    max-width: 760px;
    margin: 0 0 16px;
    text-align: left;
    line-height: 1.7;
}

.tst-aff-discount__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tst-green);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(16, 184, 96, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.15s;
}

.tst-aff-discount__link:hover {
    border-color: var(--tst-green);
}

/* ─── NinjaTrader strip (inside Topstep info) ────────────────────────────── */

.tst-aff-nt-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-left: 4px solid var(--tst-green);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 28px;
    flex-wrap: wrap;
    font-size: 14.5px;
    color: var(--tst-light-ink);
    line-height: 1.6;
    max-width: none;
    justify-content: flex-start;
}

.tst-aff-nt-strip a {
    color: var(--tst-green);
    text-decoration: none;
    font-weight: 700;
}

.tst-aff-nt-strip a:hover {
    text-decoration: underline;
}

.tst-aff-nt-tag {
    font: 700 10px/1 'Space Mono', monospace;
    background: var(--tst-green);
    color: #fff;
    padding: 6px 9px;
    border-radius: 5px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ─── Coaching (light gray) ──────────────────────────────────────────────── */

.tst-aff-coaching {
    background: #eef1f5;
    color: var(--tst-light-ink);
    padding: 50px 0;
}

.tst-aff-coaching h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--tst-light-ink);
    margin: 0 0 8px;
    text-align: left;
}

.tst-aff-coaching h2 em {
    font-style: normal;
    color: var(--tst-green);
}

.tst-aff-coaching__desc {
    font-size: 15px;
    color: var(--tst-light-muted);
    max-width: 680px;
    margin: 0 0 24px;
    text-align: left;
    line-height: 1.7;
}

.tst-aff-coaching__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 0;
}

.tst-aff-coaching__card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
}

.tst-aff-coaching__icon {
    font-size: 22px;
    font-weight: 800;
    color: var(--tst-green);
    font-family: 'Space Mono', monospace;
    margin-bottom: 8px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    display: block;
}

.tst-aff-coaching__card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tst-light-ink);
}

/* ─── Disclosure (dark) ──────────────────────────────────────────────────── */

.tst-aff-disclosure {
    background: var(--tst-dark-2);
    color: var(--tst-muted);
    padding: 26px 0;
    border-top: 1px solid var(--tst-line);
    text-align: left;
}

.tst-aff-disclosure p {
    font-size: 12.5px;
    max-width: 820px;
    margin: 0;
    line-height: 1.7;
    color: var(--tst-muted);
}

.tst-aff-disclosure p strong {
    color: var(--tst-green-bright);
    font-weight: 700;
}

/* ─── Legacy class stubs (unused in v2 but kept for safety) ──────────────── */

.tst-aff-offers { display: none; }
.tst-aff-offer { display: none; }
.tst-aff-combines { display: none; }
.tst-aff-bridge__label { display: none; }
.tst-aff-bridge__title { display: none; }
.tst-aff-bridge__desc { display: none; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    .tst-aff-bridge__inner {
        padding: 26px;
        text-align: center;
    }
    .tst-aff-bridge__top {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }
    .tst-aff-bridge__price {
        align-self: center;
    }
    .tst-aff-bridge__headline {
        min-width: 0;
    }
    .tst-aff-bridge__headline p {
        margin: 0 auto;
    }
    .tst-aff-bridge__eyebrow {
        justify-content: center;
    }
    .tst-aff-bridge__ctas {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .tst-aff-bridge__cards {
        grid-template-columns: 1fr;
    }
    .tst-aff-coaching__cards {
        grid-template-columns: 1fr;
    }
    .tst-aff-bridge-wrap {
        padding-bottom: 40px;
    }
    .tst-aff-bridge__inner {
        padding: 26px;
    }
    .tst-aff-nt-strip {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .tst-aff-hero h1 {
        font-size: clamp(28px, 8vw, 40px);
    }
    .tst-aff-bridge__ctas {
        flex-direction: column;
    }
    .tst-aff-bridge__btn-primary,
    .tst-aff-bridge__btn-ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
