/* ============================================================
   ThinkPartners — Program Page Components
   ============================================================ */

.tp-hero--program {
    min-height: 60vh;
    padding: 8rem 0 4rem;
}

.tp-hero--program .tp-badge {
    margin-bottom: 1rem;
}

/* ── Calculator ───────────────────────────────────────────── */
.tp-calculator {
    padding: 2.5rem;
    margin-top: 2rem;
}

.tp-calculator__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tp-calculator__label {
    flex: 0 0 200px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tp-calculator__slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--tp-glow-border);
    border-radius: 2px;
    outline: none;
}

.tp-calculator__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tp-green);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(94, 225, 90, 0.4);
}

.tp-calculator__slider--orange::-webkit-slider-thumb {
    background: #ffb95f;
    box-shadow: 0 0 12px rgba(255, 185, 95, 0.4);
}

.tp-calculator__output {
    flex: 0 0 60px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    color: var(--tp-green);
}

.tp-calculator__output--orange {
    color: #ffb95f;
}

/* Result cards — 3-column row inside the glass card */
.tp-calculator__results {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--tp-glow-border);
    padding-top: 1.5rem;
}

.tp-calculator__results--no-subib {
    grid-template-columns: 1fr 1fr;
}

.tp-calculator__result-card {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(94, 225, 90, 0.05);
    border: 1px solid rgba(94, 225, 90, 0.15);
}

.tp-calculator__result-card--total {
    background: rgba(94, 225, 90, 0.08);
    border-color: rgba(94, 225, 90, 0.3);
}

.tp-calculator__result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--tp-text-muted);
    margin-bottom: 0.25rem;
}

.tp-calculator__result-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #5EE15A;
}

.tp-calculator__result-value--total {
    font-size: 2.25rem;
    font-weight: 800;
}

.tp-calculator__disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--tp-text-muted);
    margin: 1rem 0 0;
    opacity: 0.8;
}

/* ── Process Flow ─────────────────────────────────────────── */
/* Override the global .tp-section escalation (5→6→8rem) — Vercel keeps a flat
   py-20 (5rem) across breakpoints for this section, so we match that. */
.tp-process-section.tp-section {
    padding-block: 5rem;
}

.tp-process-section .tp-section__header {
    margin-bottom: 3rem;
}

/* Vercel uses a flat text-3xl (1.875rem / 30px) for this heading — no
   responsive scale-up — so we override the global section header clamp
   that otherwise reaches 2.5rem (40px) at desktop. */
.tp-process-section .tp-section__header h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.tp-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
    max-width: 64rem;
    margin-inline: auto;
}

.tp-process__step {
    padding: 1.5rem;
    text-align: center;
}

.tp-process__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(94, 225, 90, 0.2);
    color: #5EE15A;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 1rem;
}

/* Last step gets the brand-orange accent (matches Vercel — highlights the
   "scale" / progression milestone). */
.tp-process__step:last-child .tp-process__number {
    background: rgba(255, 185, 95, 0.2);
    color: #ffb95f;
}

/* Gradient variant — activated per-step via Step*Gradient checkbox.
   Larger circle with green-to-orange gradient (Influencer, Regional Partners pages). */
.tp-process__number.tp-process__number--gradient {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5EE15A, #ffb95f);
    color: #003824;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 16px rgba(94, 225, 90, 0.3);
}

.tp-process__badge {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.tp-process__step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.tp-process__step p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Bottom note card — wraps a paragraph; <b>/<strong> inside auto-color green
   so editors can emphasise any phrase by wrapping it in <b>...</b>. */
.tp-process__note-card {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
}

.tp-process__note {
    margin: 0;
    color: #d0e8df;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tp-process__note b,
.tp-process__note strong {
    color: #5EE15A;
    font-weight: 600;
}

@media (max-width: 900px) {
    .tp-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tp-process__connector {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    color: var(--tp-green);
    font-size: 1.5rem;
    opacity: 0.4;
}

/* ── IB "What you earn" ───────────────────────────────────── */
/* Vercel uses py-20 (5rem) flat; override the global section escalation. */
.tp-ib-earn.tp-section {
    padding-block: 5rem;
}

.tp-ib-earn__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .tp-ib-earn__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Vercel: text-3xl font-bold (30px flat) */
.tp-ib-earn__heading {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.tp-ib-earn__copy p {
    color: #d0e8df;
    line-height: 1.7;
    margin: 0 0 1rem;
    font-size: 1rem;
}

/* <b>/<strong>: green + bold accent (the lead phrase). Editor wraps the
   key dollar amount or KPI in <b>...</b>. */
.tp-ib-earn__copy p b,
.tp-ib-earn__copy p strong {
    color: #5EE15A;
    font-weight: 700;
}

/* <span>: white + semibold (subsection labels like "Multi-tier structure",
   "Volume bonuses", "Daily payouts"). */
.tp-ib-earn__copy p span {
    color: #fff;
    font-weight: 600;
}

.tp-ib-earn__scales-card {
    padding: 2rem;
}

.tp-ib-earn__scales-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.tp-ib-earn__scales-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tp-ib-earn__scales-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #0a1f1a;
    border-radius: 8px;
    border: 1px solid transparent;
}

.tp-ib-earn__scales-row--accent {
    border-color: rgba(94, 225, 90, 0.2);
}

.tp-ib-earn__scales-row-title {
    color: #fff;
    font-weight: 500;
}

.tp-ib-earn__scales-row-sub {
    color: #bbcac0;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.tp-ib-earn__scales-indicator {
    color: #5EE15A;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

.tp-ib-earn__scales-indicator--amber {
    color: #ffb95f;
}

.tp-ib-earn__scales-footnote {
    color: #bbcac0;
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

/* ── Compare Table ────────────────────────────────────────── */
.tp-compare-table__wrap {
    overflow-x: auto;
    margin-top: 2rem;
    -webkit-overflow-scrolling: touch;
}

.tp-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 0.875rem;
}

.tp-compare-table th {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(94, 225, 90, 0.1);
    min-width: 150px;
}

.tp-compare-table th:first-child {
    text-align: left;
    min-width: 140px;
}

/* Sticky first column */
.tp-compare-table__sticky {
    position: sticky;
    left: 0;
    background: rgba(10, 31, 26, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.tp-compare-table__row-label {
    font-weight: 600;
    color: #d0e8df;
}

.tp-compare-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(94, 225, 90, 0.05);
    color: #bbcac0;
}

.tp-compare-table td:first-child {
    text-align: left;
}

/* Inline formatting: <span> = green semibold, <b>/<strong> = green bold.
   Editors can wrap text in these tags to highlight key values. */
.tp-compare-table td span {
    color: #5EE15A;
    font-weight: 600;
}

.tp-compare-table td b,
.tp-compare-table td strong {
    color: #5EE15A;
    font-weight: 700;
}

/* Alternating row stripes */
.tp-compare-table tbody tr:nth-child(even) {
    background: rgba(3, 23, 18, 0.3);
}

.tp-compare-table tbody tr:hover {
    background: rgba(94, 225, 90, 0.03);
}

/* Column highlight on hover (toggled via JS) */
.tp-col-hl {
    background: rgba(94, 225, 90, 0.04) !important;
}

/* ── Payment Methods ──────────────────────────────────────── */
.tp-payment__header {
    text-align: center;
    margin-bottom: 3rem;
}

.tp-payment__header h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tp-payment__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .tp-payment__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tp-payment__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tp-payment__card {
    padding: 1.5rem;
    text-align: center;
}

.tp-payment__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.tp-payment__card-desc {
    font-size: 0.875rem;
    color: #bbcac0;
    line-height: 1.6;
    margin: 0;
}

/* ── Program Comparison Cards ─────────────────────────────── */
.tp-comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tp-comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tp-comparison-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--tp-radius-lg);
    overflow: visible;
}

/* Page Builder editing mode: backdrop-filter doesn't work inside the
   editing iframe so glass cards appear nearly invisible against the
   Page Builder's own background. This fallback uses a solid opaque
   background when backdrop-filter isn't active. */
@supports not (backdrop-filter: blur(1px)) {
    .tp-comparison-card {
        background: var(--tp-bg-card, #0a1f1a);
    }
}

.tp-comparison-card--featured {
    border: 1px solid rgba(94, 225, 90, 0.2);
}

.tp-comparison-card__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.tp-comparison-card__badge span {
    background: #5EE15A;
    color: #031712;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.tp-comparison-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.tp-comparison-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.tp-comparison-card__features li {
    color: #d0e8df;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tp-comparison-card__features li span {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.tp-comparison-card__bestfor {
    font-size: 0.75rem;
    color: #bbcac0;
    margin: 0 0 1.5rem;
}

.tp-comparison-card__cta {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
    transition: box-shadow 0.3s ease;
}

.tp-comparison-card__cta:hover {
    box-shadow: 0 0 20px rgba(94, 225, 90, 0.3);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 639px) {
    .tp-calculator__row {
        flex-wrap: wrap;
    }

    .tp-calculator__label {
        flex: 1 1 100%;
    }

    .tp-calculator__results {
        grid-template-columns: 1fr;
    }

    .tp-calculator__results--no-subib {
        grid-template-columns: 1fr;
    }

    .tp-process__connector {
        display: none;
    }

    .tp-process {
        grid-template-columns: 1fr;
    }
}
