/* ===== Infographic plan page (reference layout) ===== */
:root {
    --pl-bg: #e8f4dc;
    --pl-navy: #1a1a1a;
    --pl-navy-deep: #0f0f0f;
    --pl-lime: #d4ff33;
    --pl-lime-deep: #b8e832;
    --pl-text: #1a1a1a;
    --pl-text-muted: #7c8a6f;
    --pl-card: #ffffff;
    --pl-radius: 14px;
    --pl-shadow: 0 10px 28px rgba(40, 60, 20, 0.1);
    /* cohesive dashboard palette: lime + dark only (no green) */
    --pl-grad-green: linear-gradient(145deg, #f0ff8a 0%, #d4ff33 45%, #b8e832 100%);
    --pl-grad-blue: linear-gradient(150deg, #2b2b2b 0%, #1a1a1a 55%, #0f140a 100%);
    --pl-grad-gold: linear-gradient(145deg, #f0ff8a 0%, #d4ff33 45%, #b8e832 100%);
    --pl-tab-green: #5c7a12;
    --pl-tab-blue: #1a1a1a;
    --pl-tab-gold: #5c7a12;
}

*, *::before, *::after { box-sizing: border-box; }

body:has(.pl-page) {
    background: var(--pl-bg) !important;
    background-image: linear-gradient(180deg, #eef8e4 0%, var(--pl-bg) 45%, #e2f0d4 100%) !important;
    color: var(--pl-text);
    overflow-x: hidden;
}
body:has(.pl-page) .ft-topbar {
    background: linear-gradient(180deg, rgba(238, 248, 228, 0.96) 0%, rgba(232, 244, 220, 0.9) 100%) !important;
    border-bottom-color: rgba(26, 26, 26, 0.05) !important;
}
body:has(.pl-page) .ft-topbar-name { color: var(--pl-text); }
body:has(.pl-page) .ft-main {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

.pl-page {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 14px 48px;
}

.pl-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pl-navy);
    background: #fff;
    border: 1px solid rgba(40, 60, 20, 0.1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 60, 20, 0.08);
    transition: transform .2s, box-shadow .2s;
}
.pl-back:hover {
    transform: translateX(-2px);
    color: var(--pl-navy);
    box-shadow: 0 6px 16px rgba(40, 60, 20, 0.12);
}

/* Hero banner */
.pl-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 8px 0 28px;
}
.pl-hero-wing {
    width: 42px;
    height: 52px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #d4ff33, #b8e832);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    opacity: .95;
}
.pl-hero-wing--l {
    transform: scaleX(-1);
    margin-right: -2px;
}
.pl-hero-wing--r {
    margin-left: -2px;
}
.pl-hero-bar {
    flex: 1;
    max-width: 520px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--pl-navy-deep) 0%, var(--pl-navy) 50%, var(--pl-navy-deep) 100%);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(21, 42, 69, 0.35);
    position: relative;
}
.pl-hero-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
    border-radius: inherit;
    pointer-events: none;
}
.pl-hero-title {
    margin: 0;
    font-size: clamp(18px, 4.5vw, 26px);
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Grid */
.pl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
    width: 100%;
}
.pl-grid--embedded {
    margin-bottom: 0;
}

@media (max-width: 639px) {
    .pl-grid--embedded {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: none;
        scroll-padding-inline: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 10px;
        margin-bottom: 0;
        scrollbar-width: thin;
        scrollbar-color: #d4ff33 rgba(40, 60, 20, 0.12);
    }
    .pl-grid--embedded::-webkit-scrollbar {
        height: 5px;
        display: block;
    }
    .pl-grid--embedded::-webkit-scrollbar-track {
        background: rgba(40, 60, 20, 0.1);
        border-radius: 999px;
    }
    .pl-grid--embedded::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #e8ff7a, #d4ff33);
        border-radius: 999px;
    }
    .pl-grid--embedded > .pl-card {
        flex: 0 0 min(320px, 86vw);
        width: min(320px, 86vw);
        max-width: min(320px, 86vw);
        min-width: min(320px, 86vw);
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
}

/* Infographic card */
.pl-card {
    display: flex;
    align-items: stretch;
    min-height: 148px;
    background: var(--pl-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--pl-shadow);
    border: 1px solid rgba(40, 60, 20, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.pl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(40, 60, 20, 0.14);
}

.pl-card-tab {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pl-card-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.08) 0,
        rgba(255, 255, 255, 0.08) 4px,
        transparent 4px,
        transparent 10px
    );
    pointer-events: none;
}
.pl-card--green .pl-card-tab { background: var(--pl-grad-green); color: #1a1a1a; }
.pl-card--blue .pl-card-tab { background: var(--pl-grad-blue); color: var(--pl-lime); }
.pl-card--gold .pl-card-tab { background: var(--pl-grad-gold); color: #1a1a1a; }

.pl-card-tab-lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .92;
    position: relative;
    z-index: 1;
}
.pl-card-tab-num {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    position: relative;
    z-index: 1;
}

.pl-card-body {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.pl-card-headrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.pl-card-ico { display: none; }
.pl-card-titles { min-width: 0; width: 100%; text-align: center; }
.pl-card-price {
    margin: 0;
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 900;
    color: var(--pl-navy);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.pl-card-range {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--pl-text-muted);
    line-height: 1.3;
}
.pl-card-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pl-navy);
    font-size: 17px;
    box-shadow: inset 0 1px 0 #fff;
}
.pl-card--green .pl-card-ico { color: var(--pl-tab-green); background: #f4ffd6; }
.pl-card--blue .pl-card-ico { color: #1a1a1a; background: #f0f5e6; }
.pl-card--gold .pl-card-ico { color: var(--pl-tab-gold); background: #f4ffd6; }
.pl-card-ico i { color: inherit; }

.pl-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.pl-card-meta li {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(244, 255, 214, 0.45) 100%);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 4px 14px rgba(120, 138, 111, 0.1);
    min-width: 0;
}
.pl-card-meta span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7a5c;
    margin-bottom: 4px;
    line-height: 1.25;
}
.pl-card-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--pl-navy);
    line-height: 1.2;
    letter-spacing: -.01em;
}

/* Referral level tree */
.pl-card-tree {
    margin-top: 2px;
}
.pl-card-tree-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pl-text-muted);
    margin-bottom: 10px;
}
.pl-card-tree-title i {
    color: #8bb32a;
    font-size: 11px;
}
.pl-tree {
    --pl-wire: #8bb32a;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* root row */
.pl-tree-top {
    position: relative;
    display: flex;
    justify-content: center;
}
/* vertical stub dropping from the root to the horizontal bus */
.pl-tree-top::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
    background: var(--pl-wire);
}
/* children row */
.pl-tree-kids {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 14px;
}
.pl-tree-branch {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}
/* horizontal bus line across the children */
.pl-tree-branch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pl-wire);
}
.pl-tree-branch:first-child::after { left: 50%; width: 50%; }
.pl-tree-branch:last-child::after { left: 0; width: 50%; }
.pl-tree-branch:only-child::after { display: none; }
/* vertical drop from the bus down to each child */
.pl-tree-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
    background: var(--pl-wire);
}
.pl-tree-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 10px 5px 5px;
    background: linear-gradient(135deg, #f4ffd6 0%, #eaf7c8 100%);
    border: 1px solid rgba(184, 232, 50, 0.55);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(120, 138, 111, 0.12);
    white-space: nowrap;
}
.pl-tree-node--root {
    padding: 6px 15px 6px 7px;
    box-shadow: 0 4px 12px rgba(139, 179, 42, 0.28);
}
.pl-tree-lvl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 21px;
    padding: 0 7px;
    background: #1a1a1a;
    color: var(--pl-lime);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}
.pl-tree-pct {
    font-size: 13px;
    font-weight: 800;
    color: #4b7a1e;
    letter-spacing: .01em;
}

.pl-card-action { margin-top: auto; }
.pl-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
    background: linear-gradient(135deg, #e8ff7a 0%, #d4ff33 55%, #b8e832 100%);
    box-shadow: 0 6px 16px rgba(184, 232, 50, 0.4);
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
}
.pl-card--green .pl-card-btn { background: linear-gradient(135deg, #e8ff7a 0%, #d4ff33 55%, #b8e832 100%); color: #1a1a1a; box-shadow: 0 6px 16px rgba(184, 232, 50, 0.4); }
.pl-card--blue .pl-card-btn { background: linear-gradient(150deg, #2b2b2b 0%, #1a1a1a 60%, #0f140a 100%); color: var(--pl-lime); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); }
.pl-card--gold .pl-card-btn { background: linear-gradient(135deg, #e8ff7a 0%, #d4ff33 55%, #b8e832 100%); color: #1a1a1a; box-shadow: 0 6px 16px rgba(184, 232, 50, 0.4); }
.pl-card-btn:hover {
    transform: translateY(-2px);
}

/* Intro text below hero â€” hidden on mobile */
.pl-intro {
    display: none;
    margin: -12px auto 22px;
    max-width: 680px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
    color: var(--pl-text-muted);
    text-align: center;
}

/* Grid */
@media (min-width: 640px) {
    .pl-page { padding: 20px 16px 56px; }
    .pl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .pl-hero-bar { max-width: 640px; }
    .pl-intro {
        display: block;
        margin: -8px auto 24px;
        font-size: 14px;
        padding: 0 16px;
    }
    .pl-card-tab { width: 86px; }
    .pl-card-tab-num { font-size: 30px; }
    .pl-card-body { padding: 14px 16px 16px; }
    .pl-card-meta strong { font-size: 15px; }
    .pl-card-price { font-size: 30px; }
}

/* Desktop */
@media (min-width: 1024px) {
    body:has(.pl-page) .ft-main {
        padding-left: 28px;
        padding-right: 28px;
    }
    .pl-page { padding: 24px 20px 64px; }
    .pl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 20px;
    }
    .pl-hero { margin-bottom: 36px; }
    .pl-hero-wing { width: 56px; height: 64px; }
    .pl-hero-bar { max-width: 720px; min-height: 62px; }
    .pl-hero-title { font-size: 28px; }
    .pl-intro {
        margin: -10px auto 28px;
        max-width: 760px;
        font-size: 15px;
        line-height: 1.7;
    }
    .pl-card { min-height: 128px; }
    .pl-card-tab { width: 92px; }
    .pl-card-tab-num { font-size: 34px; }
    .pl-card-ico { width: 44px; height: 44px; font-size: 18px; }
    .pl-card-price { font-size: 34px; }
    .pl-card-meta span { font-size: 11px; }
    .pl-card-meta strong { font-size: 16px; }
    .pl-card-btn { padding: 11px 16px; font-size: 12px; }
}

/* Large desktop */
@media (min-width: 1280px) {
    .pl-grid {
        gap: 20px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-card,
    .pl-card-btn,
    .pl-back {
        transition: none !important;
    }
}

/* Unified mobile card polish â€” same layout on Android + iPhone */
@media (max-width: 639px) {
    .pl-card-tab { width: 72px; }
    .pl-card-tab-num { font-size: 26px; }
    .pl-card-body { padding: 14px 12px 14px; gap: 10px; }
    .pl-card-price { font-size: 24px; }
    .pl-card-meta { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-card-meta li {
        display: block;
        text-align: center;
        padding: 9px 6px;
    }
    .pl-card-meta span { font-size: 9px; letter-spacing: .03em; margin-bottom: 3px; }
    .pl-card-meta strong { font-size: 12px; }
    .pl-tree-lvl { min-width: 22px; height: 18px; padding: 0 5px; font-size: 9px; }
    .pl-tree-pct { font-size: 11px; }
}

@media (max-width: 400px) {
    .pl-card-tab { width: 64px; }
    .pl-card-tab-num { font-size: 22px; }
    .pl-card-meta { gap: 5px; }
    .pl-card-meta li { padding: 8px 4px; }
    .pl-card-meta span { font-size: 8px; }
    .pl-card-meta strong { font-size: 11px; }
    .pl-tree-node { padding: 4px 7px 4px 4px; gap: 3px; }
    .pl-tree-lvl { min-width: 20px; height: 17px; font-size: 8px; }
    .pl-tree-pct { font-size: 10px; }
}

.pl-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

/* Promo strip on plans page */
.pl-promo {
    margin-bottom: 18px;
}
.pl-promo.is-applied {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(145deg, #f0fdf4, #fff);
}
.pl-promo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.pl-promo-top h4 { margin: 0; }
.pl-promo-remove {
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: #fff;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.pl-promo-applied {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #4b7a1e;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.pl-promo-applied strong {
    color: #1a1a1a;
    letter-spacing: .05em;
}
.pl-promo-applied span { color: #7c8a6f; font-weight: 600; }
.gw-promo-form .is-applied-btn {
    background: linear-gradient(145deg, #d4ff33, #b8e832) !important;
    color: #1a1a1a !important;
    opacity: 1;
    cursor: default;
}
.pl-card.is-promo-eligible {
    box-shadow: 0 0 0 2px rgba(184, 232, 50, 0.6), var(--pl-shadow);
}
.pl-card.is-promo-muted {
    opacity: .72;
}
.pl-card-promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #4b7a1e;
    background: #f0f7de;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(184, 232, 50, 0.4);
}