/* Phase 01: Research Baskets hero */
:root {
    --rb-green: #20b15a;
    --rb-navy: #15157e;
    --rb-slate: #475569;
    --rb-canvas: #f8fafc;
}

.research-baskets-page,
.research-baskets-page *,
.research-baskets-page *::before,
.research-baskets-page *::after { box-sizing: border-box; }

.rb-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(135deg, #f8fafc 0%, #fff 60%, #f2fcf6 100%); }
.rb-hero__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.rb-hero__content { min-width: 0; text-align: left; }
.rb-badge { display: inline-flex; padding: .45rem .78rem; border-radius: 999px; background: #ebf6ee; color: var(--rb-navy); font-size: .76rem; font-weight: 800; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.rb-hero h1 { max-width: 720px; margin: 1rem 0 0; color: var(--rb-navy); font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1.14; }
.highlight-green { color: #168b46; }
.rb-subheadline { max-width: 650px; margin: 1.05rem 0 0; color: #1d4ed8; font-size: 1.12rem; font-weight: 700; line-height: 1.5; }
.rb-description { max-width: 715px; margin: 1rem 0 0; color: var(--rb-slate); font-size: 1rem; line-height: 1.68; }
.rb-btn-primary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; margin-top: 1.5rem; padding: .85rem 1.35rem; border-radius: 999px; background: var(--rb-green); color: #fff; font-size: .96rem; font-weight: 800; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.rb-btn-primary:hover { background: #168b46; box-shadow: 0 9px 20px rgba(32, 177, 90, .25); transform: translateY(-2px); }
.rb-btn-primary:focus-visible { outline: 3px solid var(--rb-navy); outline-offset: 3px; }
.rb-hero__visual { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.rb-hero__visual svg { display: block; width: min(100%, 520px); max-width: 520px; height: auto; aspect-ratio: 6 / 5; flex: 0 0 auto; }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-hero { padding: 2.5rem 0; }
    .rb-hero__container { display: block; padding: 0 .75rem; }
    .rb-hero h1 { font-size: 22px; }
    .rb-subheadline { font-size: .94rem; }
    .rb-description { font-size: .86rem; }
    .rb-btn-primary { width: 100%; }
    .rb-hero__visual { margin-top: 2rem; }
    .rb-hero__visual svg { width: 100%; max-width: 336px; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-hero__container { display: block; padding: 0 1rem; }
    .rb-hero h1 { font-size: 24px; }
    .rb-hero__visual { margin-top: 2.25rem; }
    .rb-hero__visual svg { width: 100%; max-width: 448px; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-hero__container { display: block; max-width: 680px; padding: 0 1.5rem; }
    .rb-hero h1 { font-size: 28px; }
    .rb-hero__visual { margin-top: 2.5rem; }
    .rb-hero__visual svg { width: 100%; max-width: 480px; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-hero__container { display: block; max-width: 820px; padding: 0 2rem; }
    .rb-hero h1 { font-size: 32px; }
    .rb-hero__visual { margin-top: 2.75rem; }
    .rb-hero__visual svg { width: 100%; max-width: 500px; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-hero__container { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .rb-hero h1 { font-size: 36px; }
    .rb-hero__visual svg { width: 100%; max-width: 520px; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-hero h1 { font-size: 42px; }
    .rb-hero__visual svg { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-btn-primary { transition: none; }
    .rb-btn-primary:hover { transform: none; }
}

/* Phase 02: Upgrade your portfolio */
.rb-upgrade { padding: 3rem 0; background: #fff; text-align: center; }
.rb-upgrade__container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.rb-upgrade-headline { margin: 0; color: var(--rb-navy); font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
.rb-upgrade-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin-top: 1.5rem; }
.rb-stat-card { min-width: 0; padding: 2rem 1.75rem; border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #f0fdf4; text-align: center; transition: transform .3s ease, box-shadow .3s ease; }
.rb-stat-card:nth-child(2) { background: #f1f5f9; }
.rb-stat-number { display: block; color: var(--rb-green); font-size: 3rem; font-weight: 800; line-height: 1.05; }
.rb-stat-text { margin: .65rem 0 0; color: var(--rb-navy); font-size: 1rem; font-weight: 500; line-height: 1.4; }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-upgrade { padding: 32px 0; }
    .rb-upgrade__container { padding: 0 1rem; }
    .rb-upgrade-headline { font-size: 20px; }
    .rb-upgrade-cards { gap: 10px; margin-top: 1.25rem; }
    .rb-stat-card { padding: 16px 10px; border-radius: 12px; }
    .rb-stat-number { font-size: 24px; }
    .rb-stat-text { margin-top: .45rem; font-size: 11px; line-height: 1.3; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-upgrade__container { padding: 0 1rem; }
    .rb-upgrade-cards { gap: 12px; }
    .rb-stat-card { padding: 18px 12px; border-radius: 14px; }
    .rb-stat-number { font-size: 28px; }
    .rb-stat-text { font-size: 12px; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-upgrade__container { max-width: 680px; padding: 0 1.5rem; }
    .rb-upgrade-cards { gap: 16px; }
    .rb-stat-card { padding: 20px 16px; border-radius: 16px; }
    .rb-stat-number { font-size: 32px; }
    .rb-stat-text { font-size: 13px; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-upgrade { padding: 48px 0; }
    .rb-upgrade__container { max-width: 720px; padding: 0; }
    .rb-upgrade-cards { gap: 20px; }
    .rb-stat-card { padding: 24px 20px; border-radius: 18px; }
    .rb-stat-number { font-size: 38px; }
    .rb-stat-text { font-size: 14px; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-upgrade { padding: 48px 0; }
    .rb-upgrade__container { max-width: 880px; padding: 0; }
    .rb-upgrade-cards { gap: 24px; }
    .rb-stat-card { padding: 28px 24px; border-radius: 20px; }
    .rb-stat-number { font-size: 44px; }
    .rb-stat-text { font-size: 15px; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-upgrade { padding: 48px 0; }
    .rb-upgrade__container { max-width: 960px; padding: 0; }
    .rb-upgrade-cards { gap: 28px; }
    .rb-stat-card { padding: 32px 28px; border-radius: 20px; }
    .rb-stat-number { font-size: 48px; }
    .rb-stat-text { font-size: 16px; }
    .rb-stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
}

@media (prefers-reduced-motion: reduce) {
    .rb-stat-card { transition: none; }
    .rb-stat-card:hover { transform: none; }
}

/* Phase 03: WealthBridge product suite */
.rb-products { padding: clamp(3rem, 6vw, 5rem) 0; background: #f8fafc; }
.rb-products__container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.rb-products__eyebrow { display: inline-flex; padding: .42rem .72rem; border-radius: 999px; background: #ebf6ee; color: var(--rb-navy); font-size: .75rem; font-weight: 800; letter-spacing: .06em; line-height: 1.2; text-align: left; text-transform: uppercase; }
.rb-products h2 { margin: 1rem 0 0; color: var(--rb-navy); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; text-align: center; }
.rb-products__intro { max-width: 820px; margin: .8rem auto 0; color: var(--rb-slate); font-size: 1rem; line-height: 1.65; text-align: center; }
.rb-products__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: clamp(2rem, 5vw, 3rem); }
.rb-product-card { min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 1.25rem; background: #fff; box-shadow: 0 4px 12px rgba(21, 21, 126, .04); transition: transform .3s ease, box-shadow .3s ease; }
.rb-product-card__header { padding: 1rem; background: var(--rb-navy); text-align: center; }
.rb-product-card__header h3 { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
/* Distinct product identities with WCAG-friendly white title contrast. */
.rb-product-card:nth-child(1) .rb-product-card__header { background: #15157e; }
.rb-product-card:nth-child(2) .rb-product-card__header { background: #1d4ed8; }
.rb-product-card:nth-child(3) .rb-product-card__header { background: #0f766e; }
.rb-product-card:nth-child(4) .rb-product-card__header { background: #7c3aed; }
.rb-product-card:nth-child(5) .rb-product-card__header { background: #047857; }
.rb-product-card__body { min-height: 122px; padding: 1.15rem 1.25rem; background: #fff; }
.rb-product-card__body p { margin: 0; color: #334155; font-size: .92rem; line-height: 1.55; text-align: left; }
.rb-product-card__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 1rem 1.25rem; background: #f1f5f9; }
.rb-product-card__specs > div { min-width: 0; padding: .7rem .45rem; border: 1px solid #e2e8f0; border-radius: .65rem; background: #f0fdf4; text-align: center; }
.rb-product-card__specs span { display: block; color: #475569; font-size: .72rem; font-weight: 700; line-height: 1.25; }
.rb-product-card__specs strong { display: block; margin-top: .35rem; color: var(--rb-navy); font-size: .95rem; font-weight: 800; line-height: 1.25; }
.rb-product-card__footer { padding: 1rem 1.25rem 1.25rem; background: #fff; text-align: center; }
.rb-product-card__footer a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: .7rem 1.25rem; border-radius: 999px; background: var(--rb-green); color: #fff; font-size: .9rem; font-weight: 800; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, transform .2s ease; }
.rb-product-card__footer a:hover { background: #168b46; transform: translateY(-1px); }
.rb-product-card__footer a:focus-visible { outline: 3px solid var(--rb-navy); outline-offset: 3px; }
.rb-products__disclaimer { margin: 1.75rem 0 0; padding: .85rem 1rem; border: 1px solid #c7d2fe; border-radius: .75rem; color: #64748b; font-size: .84rem; line-height: 1.55; text-align: center; }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-products { padding: 2.5rem 0; }
    .rb-products__container { padding: 0 .75rem; }
    .rb-products__grid { gap: 1rem; }
    .rb-product-card { border-radius: 1rem; }
    .rb-product-card__body { min-height: 0; padding: 1rem; }
    .rb-product-card__specs { gap: 6px; padding: .75rem; }
    .rb-product-card__specs > div { padding: .55rem .25rem; }
    .rb-product-card__specs span { font-size: 10px; }
    .rb-product-card__specs strong { font-size: 12px; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-products__container { padding: 0 1rem; }
    .rb-product-card__specs { gap: 8px; }
    .rb-product-card__specs span { font-size: 11px; }
    .rb-product-card__specs strong { font-size: 13px; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-products__container { max-width: 680px; padding: 0 1.5rem; }
    .rb-product-card__specs { gap: 10px; }
    .rb-product-card__specs span { font-size: 12px; }
    .rb-product-card__specs strong { font-size: 14px; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-products__container { max-width: 680px; padding: 0; }
    .rb-products h2 { font-size: 32px; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-products__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        align-items: stretch;
        gap: 1.5rem;
    }
    .rb-products__grid > .rb-product-card {
        grid-column: auto;
        width: 100%;
    }
    .rb-products__grid > .rb-product-card:nth-child(5) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: calc((100% - 1.5rem) / 2);
    }
    .rb-product-card__specs span { font-size: 12px; text-transform: uppercase; }
    .rb-product-card__specs strong { font-size: 15px; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-products__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        align-items: stretch;
        gap: 1.75rem;
    }
    .rb-products__grid > .rb-product-card {
        grid-column: auto;
        width: 100%;
    }
    .rb-products__grid > .rb-product-card:nth-child(5) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: 48%;
    }
    .rb-product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(21, 21, 126, .12); }
}

@media (prefers-reduced-motion: reduce) {
    .rb-product-card,
    .rb-product-card__footer a { transition: none; }
    .rb-product-card:hover,
    .rb-product-card__footer a:hover { transform: none; }
}

/* Phase 04: WealthBridge on the PL Capital App */
.rb-app-section { background: #15157e; color: #fff; }
.rb-app-section__container { display: grid; width: 100%; max-width: 1280px; margin: 0 auto; }
.rb-app-section__content { text-align: left; }
.rb-app-section__eyebrow { display: inline-flex; padding: .42rem .75rem; border-radius: 999px; background: rgba(32, 177, 90, .16); color: #86efac; font-size: .75rem; font-weight: 800; letter-spacing: .06em; line-height: 1.2; text-align: left; text-transform: uppercase; }
.rb-app-section h2 { margin: 1rem 0 0; color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.2; text-align: left; }
.rb-app-section__description { max-width: 690px; margin: 1rem 0 0; color: #e2e8f0; font-size: 1rem; line-height: 1.6; text-align: left; }
.rb-app-section__highlights { display: grid; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.rb-app-section__highlights li { display: grid; grid-template-columns: 1.8rem 1fr; align-items: center; gap: .55rem; min-height: 64px; padding: .8rem 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: .85rem; background: rgba(255, 255, 255, .09); box-shadow: 0 8px 20px rgba(4, 4, 48, .12); backdrop-filter: blur(8px); }
.rb-app-section__highlights span { display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; border-radius: 50%; background: #20b15a; color: #fff; font-size: 1rem; font-weight: 900; line-height: 1; }
.rb-app-section__highlights p { margin: 0; color: #fff; font-size: .91rem; font-weight: 600; line-height: 1.45; text-align: center; }
.rb-app-section__media { display: flex; align-items: center; justify-content: center; }
.rb-app-section__media img { display: block; width: 100%; max-width: 330px; height: auto; border: 0; border-radius: 1.4rem; box-shadow: 0 18px 40px rgba(3, 3, 44, .28); }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-app-section { padding: 2rem 1rem; }
    .rb-app-section__container { grid-template-columns: 1fr; gap: 1.5rem; }
    .rb-app-section h2 { font-size: 1.45rem; }
    .rb-app-section__description { font-size: .9rem; }
    .rb-app-section__highlights { gap: .65rem; }
    .rb-app-section__highlights li { grid-template-columns: 1.6rem 1fr; min-height: 0; padding: .7rem; }
    .rb-app-section__highlights span { width: 1.6rem; height: 1.6rem; font-size: .9rem; }
    .rb-app-section__highlights p { font-size: .78rem; }
    .rb-app-section__media img { max-width: 195px; border-radius: 1.25rem; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-app-section { padding: 2.5rem 1rem; }
    .rb-app-section__container { grid-template-columns: 1fr; gap: 1.75rem; }
    .rb-app-section h2 { font-size: 1.65rem; }
    .rb-app-section__highlights { gap: .75rem; }
    .rb-app-section__media img { max-width: 225px; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-app-section { padding: 3rem 1.5rem; }
    .rb-app-section__container { grid-template-columns: 1fr; gap: 2rem; max-width: 620px; }
    .rb-app-section__highlights { gap: .85rem; }
    .rb-app-section__media img { max-width: 270px; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-app-section { padding: 3.5rem 1.5rem; }
    .rb-app-section__container { grid-template-columns: 1fr; gap: 2.25rem; max-width: 760px; }
    .rb-app-section__media img { max-width: 315px; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-app-section { padding: 4rem 2rem; }
    .rb-app-section__container { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 2.5rem; }
    .rb-app-section__highlights { gap: .75rem; max-width: 660px; }
    .rb-app-section__media img { max-width: 293px; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-app-section { padding: 4.5rem 1.5rem; }
    .rb-app-section__container { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 3.5rem; }
    .rb-app-section__highlights { gap: .85rem; max-width: 700px; }
    .rb-app-section__media img { max-width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-app-section__highlights li { backdrop-filter: none; }
}

/* Phase 05: How InvestorAi works */
.rb-how-ai { padding: clamp(3rem, 6vw, 5.5rem) 0; background: #f8fafc; overflow: hidden; }
.rb-how-ai__container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.rb-how-ai__header { max-width: 820px; margin: 0 auto; text-align: center; }
.rb-how-ai__eyebrow { display: inline-flex; padding: .42rem .75rem; border-radius: 999px; background: #e8f8ee; color: #15157e; font-size: .75rem; font-weight: 800; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.rb-how-ai h2 { margin: 1rem 0 0; color: #15157e; font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 800; line-height: 1.22; }
.rb-how-ai__header > p { margin: .9rem auto 0; color: #475569; font-size: 1rem; line-height: 1.65; }
.rb-zigzag-flow { position: relative; display: grid; margin: clamp(2rem, 5vw, 4rem) auto 0; padding: 0; list-style: none; }
.rb-zigzag-flow__connector { pointer-events: none; }
.rb-ai-step { position: relative; min-width: 0; }
.rb-ai-step::before { position: absolute; z-index: 2; width: 12px; height: 12px; border: 3px solid #f8fafc; border-radius: 50%; background: #20b15a; box-shadow: 0 0 0 4px rgba(32, 177, 90, .15); content: ''; }
.rb-ai-step article { position: relative; z-index: 1; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(21, 21, 126, .06); opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease; }
.rb-ai-step.is-visible article { opacity: 1; transform: translateY(0); }
.rb-ai-step__number { display: inline-flex; align-items: center; min-height: 2.2rem; color: #20b15a; font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 800; line-height: 1; }
.rb-ai-step__number--now { min-height: auto; padding: .45rem .65rem; border-radius: 999px; background: #20b15a; color: #fff; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }
.rb-ai-step h3 { margin: .7rem 0 0; color: #15157e; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.rb-ai-step p { margin: .55rem 0 0; color: #475569; font-size: .9rem; font-weight: 400; line-height: 1.55; }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-how-ai { padding: 2.5rem 0; }
    .rb-how-ai__container { padding: 0 .75rem; }
    .rb-how-ai h2 { font-size: 1.35rem; }
    .rb-how-ai__header > p { font-size: .87rem; }
    .rb-zigzag-flow { gap: 1rem; padding: 0 0 0 1.5rem; }
    .rb-zigzag-flow::before { position: absolute; top: .4rem; bottom: .4rem; left: .38rem; width: 2px; background: repeating-linear-gradient(to bottom, #20b15a 0 5px, transparent 5px 10px); background-size: 2px 10px; animation: rb-mobile-timeline-flow .8s linear infinite; content: ''; }
    .rb-zigzag-flow__connector { display: none; }
    .rb-ai-step { width: calc(100% - .2rem); }
    .rb-ai-step:nth-of-type(odd) { justify-self: start; }
    .rb-ai-step:nth-of-type(even) { justify-self: end; }
    .rb-ai-step::before { top: 50%; left: -1.5rem; margin-top: -9px; animation: rb-timeline-node-pulse 1.8s ease-in-out infinite; }
    .rb-ai-step article { padding: 1rem; }
    .rb-ai-step__number { font-size: 1.75rem; }
    .rb-ai-step h3 { font-size: .98rem; }
    .rb-ai-step p { font-size: .78rem; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-how-ai { padding: 3rem 0; }
    .rb-how-ai__container { padding: 0 1rem; }
    .rb-zigzag-flow { gap: 1.1rem; padding: 0 0 0 1.8rem; }
    .rb-zigzag-flow::before { position: absolute; top: .5rem; bottom: .5rem; left: .45rem; width: 2px; background: repeating-linear-gradient(to bottom, #20b15a 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: rb-mobile-timeline-flow .8s linear infinite; content: ''; }
    .rb-zigzag-flow__connector { display: none; }
    .rb-ai-step { width: 92%; }
    .rb-ai-step:nth-of-type(odd) { justify-self: start; }
    .rb-ai-step:nth-of-type(even) { justify-self: end; }
    .rb-ai-step::before { top: 50%; left: -1.8rem; margin-top: -9px; animation: rb-timeline-node-pulse 1.8s ease-in-out infinite; }
    .rb-ai-step article { padding: 1.1rem; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-how-ai { padding: 3rem 1.25rem; }
    .rb-how-ai__container { max-width: 640px; padding: 0; }
    .rb-zigzag-flow { gap: 1.25rem; padding: 0 0 0 2rem; }
    .rb-zigzag-flow::before { position: absolute; top: .6rem; bottom: .6rem; left: .5rem; width: 2px; background: repeating-linear-gradient(to bottom, #20b15a 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: rb-mobile-timeline-flow .8s linear infinite; content: ''; }
    .rb-zigzag-flow__connector { display: none; }
    .rb-ai-step { width: 88%; }
    .rb-ai-step:nth-of-type(odd) { justify-self: start; }
    .rb-ai-step:nth-of-type(even) { justify-self: end; }
    .rb-ai-step::before { top: 50%; left: -2rem; margin-top: -9px; animation: rb-timeline-node-pulse 1.8s ease-in-out infinite; }
    .rb-ai-step article { padding: 1.25rem; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-how-ai__container { max-width: 900px; }
    .rb-zigzag-flow { gap: 1.35rem; max-width: 720px; padding: 0 0 0 2.25rem; }
    .rb-zigzag-flow::before { position: absolute; top: .7rem; bottom: .7rem; left: .6rem; width: 2px; background: repeating-linear-gradient(to bottom, #20b15a 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: rb-mobile-timeline-flow .8s linear infinite; content: ''; }
    .rb-zigzag-flow__connector { display: none; }
    .rb-ai-step { width: 86%; }
    .rb-ai-step:nth-of-type(odd) { justify-self: start; }
    .rb-ai-step:nth-of-type(even) { justify-self: end; }
    .rb-ai-step::before { top: 50%; left: -2.25rem; margin-top: -9px; animation: rb-timeline-node-pulse 1.8s ease-in-out infinite; }
    .rb-ai-step article { padding: 1.35rem; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-zigzag-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 1rem; min-height: 360px; }
    .rb-zigzag-flow__connector { position: absolute; top: 39%; left: 4%; width: 92%; height: 32%; overflow: visible; }
    .rb-zigzag-flow__connector path { fill: none; stroke: #20b15a; stroke-width: 3; stroke-dasharray: .02 .03; animation: rb-connector-flow 3.5s linear infinite; }
    .rb-zigzag-flow__connector circle { fill: #20b15a; stroke: #f8fafc; stroke-width: 5; filter: drop-shadow(0 0 5px rgba(32, 177, 90, .45)); }
    .rb-ai-step:nth-of-type(odd) { margin-top: 0; }
    .rb-ai-step:nth-of-type(even) { margin-top: 150px; }
    .rb-ai-step::before { display: none; }
    .rb-ai-step article { min-height: 185px; padding: 1.1rem; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-zigzag-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 1.4rem; min-height: 390px; }
    .rb-zigzag-flow__connector { position: absolute; top: 39%; left: 4%; width: 92%; height: 32%; overflow: visible; }
    .rb-zigzag-flow__connector path { fill: none; stroke: #20b15a; stroke-width: 3; stroke-dasharray: .02 .03; animation: rb-connector-flow 3.5s linear infinite; }
    .rb-zigzag-flow__connector circle { fill: #20b15a; stroke: #f8fafc; stroke-width: 5; filter: drop-shadow(0 0 5px rgba(32, 177, 90, .45)); }
    .rb-ai-step:nth-of-type(odd) { margin-top: 0; }
    .rb-ai-step:nth-of-type(even) { margin-top: 165px; }
    .rb-ai-step::before { display: none; }
    .rb-ai-step article { min-height: 195px; padding: 1.35rem; }
    .rb-ai-step:hover article { box-shadow: 0 12px 30px rgba(21, 21, 126, .13); }
}

@keyframes rb-connector-flow {
    to { stroke-dashoffset: -.1; }
}

@keyframes rb-mobile-timeline-flow {
    to { background-position: 0 12px; }
}

@keyframes rb-timeline-node-pulse {
    50% { box-shadow: 0 0 0 7px rgba(32, 177, 90, .08); transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .rb-ai-step article { opacity: 1; transform: none; transition: none; }
    .rb-zigzag-flow__connector path { animation: none; }
    .rb-zigzag-flow::before,
    .rb-ai-step::before { animation: none; }
}

/* Phase 06: WealthBridge call to action */
.rb-cta-section { padding: 3.75rem 1.25rem; background: #fff; }
.rb-cta-section__card { max-width: 880px; margin: 0 auto; padding: 3.5rem 3rem; border-radius: 1.5rem; background: radial-gradient(circle at top right, rgba(32, 177, 90, .2), transparent 42%), #0f172a; box-shadow: 0 20px 40px rgba(15, 23, 42, .25); text-align: center; }
.rb-cta-section h2 { max-width: 710px; margin: 0 auto; color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.2; text-align: center; }
.rb-cta-section__card > p { max-width: 680px; margin: 1rem auto 2rem; color: #cbd5e1; font-size: 1rem; line-height: 1.6; text-align: center; }
.rb-cta-section__actions { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.rb-cta-section__button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .85rem 2rem; border-radius: 999px; color: #fff; font-size: .95rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.rb-cta-section__button--rm { background: #20b15a; }
.rb-cta-section__button--account { background: #d97706; }
.rb-cta-section__button--rm:hover { background: #168b46; }
.rb-cta-section__button--account:hover { background: #b45309; }
.rb-cta-section__button:focus-visible { outline: 2px solid #20b15a; outline-offset: 4px; }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-cta-section { padding: 2.75rem .75rem; }
    .rb-cta-section__card { padding: 1.5rem 1rem; border-radius: 1.25rem; }
    .rb-cta-section h2 { font-size: 1.5rem; }
    .rb-cta-section__card > p { margin: .85rem auto 1.5rem; font-size: .86rem; }
    .rb-cta-section__actions { flex-direction: column; gap: .75rem; }
    .rb-cta-section__button { width: 100%; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-cta-section { padding: 3rem 1rem; }
    .rb-cta-section__card { padding: 2rem 1.25rem; }
    .rb-cta-section h2 { font-size: 1.65rem; }
    .rb-cta-section__actions { flex-direction: column; gap: .75rem; }
    .rb-cta-section__button { width: 100%; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-cta-section { padding: 3.25rem 1.25rem; }
    .rb-cta-section__card { padding: 2.25rem 1.5rem; }
    .rb-cta-section__actions { flex-direction: column; gap: .75rem; }
    .rb-cta-section__button { width: min(100%, 320px); }
}

@media (min-width: 640px) and (max-width: 767px) {
    .rb-cta-section__actions { flex-direction: row; }
    .rb-cta-section__button { width: auto; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-cta-section__card { max-width: 720px; padding: 2.75rem 2.25rem; }
    .rb-cta-section h2 { font-size: 2rem; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-cta-section__card { max-width: 840px; padding: 3rem 2.5rem; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-cta-section__card { max-width: 880px; padding: 3.5rem 3rem; }
    .rb-cta-section__button:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, .22); transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .rb-cta-section__button { transition: none; }
    .rb-cta-section__button:hover { transform: none; }
}

/* Phase 07: WealthBridge FAQs */
.rb-faq-section { padding: clamp(3rem, 6vw, 5rem) 0; background: #f8fafc; }
.rb-faq-section__container { width: 100%; margin: 0 auto; padding: 0 1rem; text-align: left; }
.rb-faq-section h2 { margin: 0; color: #15157e; font-size: clamp(1.75rem, 3.3vw, 2.25rem); font-weight: 800; line-height: 1.2; text-align: left; }
.rb-faq-section__list { margin-top: 1.5rem; }
.rb-faq-item { border-bottom: 1px solid #e2e8f0; }
.rb-faq-item h3 { margin: 0; }
.rb-faq-trigger { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border: 0; background: transparent; color: #15157e; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.4; text-align: left; }
.rb-faq-trigger > span:first-child { flex: 1; }
.rb-faq-trigger__icon { display: inline-flex; width: 1.7rem; height: 1.7rem; flex: 0 0 1.7rem; align-items: center; justify-content: center; color: #20b15a; font-size: 1.55rem; font-weight: 500; line-height: 1; transition: color .2s ease, transform .25s ease; }
.rb-faq-trigger[aria-expanded="true"] .rb-faq-trigger__icon { color: #15157e; transform: rotate(45deg); }
.rb-faq-trigger:hover { color: #20b15a; }
.rb-faq-trigger:focus-visible { outline: 3px solid #20b15a; outline-offset: 3px; }
.rb-faq-answer { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .25s ease, padding .35s ease; }
.rb-faq-answer[aria-hidden="false"] { max-height: 520px; padding: 0 0 1.25rem; opacity: 1; }
.rb-faq-answer p { margin: 0; color: #475569; font-size: .95rem; font-weight: 400; line-height: 1.6; text-align: left; }

/* Tier 1 — Small mobile */
@media (max-width: 360px) {
    .rb-faq-section { padding: 2.5rem 0; }
    .rb-faq-section__container { padding: 0 1rem; }
    .rb-faq-section h2 { font-size: 1.5rem; }
    .rb-faq-trigger { padding: 1rem 0; font-size: .9375rem; }
    .rb-faq-answer p { font-size: .84rem; }
}

/* Tier 2 — Standard mobile */
@media (min-width: 361px) and (max-width: 480px) {
    .rb-faq-section__container { padding: 0 1rem; }
    .rb-faq-section h2 { font-size: 1.65rem; }
    .rb-faq-trigger { font-size: 1rem; }
}

/* Tier 3 — Large mobile / phablet */
@media (min-width: 481px) and (max-width: 767px) {
    .rb-faq-section__container { padding: 0 1.5rem; }
    .rb-faq-section h2 { font-size: 1.8rem; }
    .rb-faq-trigger { font-size: 1.0625rem; }
}

/* Tier 4 — Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .rb-faq-section__container { width: 75%; max-width: 800px; padding: 0; }
    .rb-faq-section h2 { font-size: 1.95rem; }
    .rb-faq-trigger { font-size: 1.125rem; }
}

/* Tier 5 — Laptop / small monitor */
@media (min-width: 1024px) and (max-width: 1279px) {
    .rb-faq-section__container { width: 75%; max-width: 920px; padding: 0; }
    .rb-faq-section h2 { font-size: 2.05rem; }
    .rb-faq-trigger { font-size: 1.125rem; }
}

/* Tier 6 — Large desktop */
@media (min-width: 1280px) {
    .rb-faq-section__container { width: 75%; max-width: 960px; padding: 0; }
    .rb-faq-section h2 { font-size: 2.25rem; }
    .rb-faq-trigger { padding: 1.5rem 0; font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-faq-answer,
    .rb-faq-trigger__icon { transition: none; }
}
