/* =====================================================================================
   Resume Builder – public pages (landing + templates gallery). Site colours (header.css --_newh_primary …)
   ===================================================================================== */

.rbp {
    --rbp-brand: #6c3cf0;
    --rbp-brand-dark: #5228d9;
    --rbp-brand-soft: #f4f0ff;
    --rbp-grad: linear-gradient(135deg, rgba(47, 28, 106, 1) 0%, rgba(80, 37, 209, 1) 55%, rgba(103, 61, 230, 1) 100%);
    --rbp-text: #1f2937;
    --rbp-muted: #6b7280;
    --rbp-border: #ebe8f3;
    --rbp-soft-bg: #f8f6fd;
    color: var(--rbp-text);
    overflow-x: hidden;
}
.rbp h1, .rbp h2, .rbp h3 { color: var(--rbp-text); letter-spacing: -.02em; }
.rbp a { text-decoration: none; }

/* buttons */
.rbp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1.5px solid transparent; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.rbp-btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.rbp-btn-block { width: 100%; }
.rbp-btn-primary { background: var(--rbp-brand); color: #fff !important; box-shadow: 0 10px 24px rgba(108, 60, 240, .28); }
.rbp-btn-primary:hover { background: var(--rbp-brand-dark); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(108, 60, 240, .34); }
.rbp-btn-ghost { background: #fff; border-color: #ddd3fb; color: var(--rbp-brand) !important; }
.rbp-btn-ghost:hover { background: var(--rbp-brand-soft); border-color: var(--rbp-brand); }
.rbp-btn-light { background: #fff; color: var(--rbp-brand-dark) !important; }
.rbp-btn-light:hover { background: #f4f0ff; transform: translateY(-1px); }
.rbp-btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.rbp-btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.rbp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.rbp-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 14px; border-radius: 100px; background: var(--rbp-brand-soft); color: var(--rbp-brand); font-size: 13px; font-weight: 600; }
.rbp-h1 { margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; line-height: 1.12; }
.rbp-h1-sm { font-size: clamp(30px, 4vw, 44px); }
.rbp-lead { max-width: 580px; margin: 0; color: var(--rbp-muted); font-size: 18px; line-height: 1.65; }
.rbp-muted { color: var(--rbp-muted); }

/* sections */
.rbp-section { padding: 5rem 0; }
.rbp-section-tight { padding: 2.5rem 0 4rem; }
.rbp-soft { background: var(--rbp-soft-bg); }
.rbp-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.rbp-head h2, .rbp-h2-left { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.2; }
.rbp-head p { margin: 0; color: var(--rbp-muted); font-size: 16.5px; }
.rbp-narrow { max-width: 900px; }

/* template cards */
.rbp-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.rbp-tpl { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rbp-border); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rbp-tpl[hidden] { display: none; }
.rbp-tpl:hover { transform: translateY(-4px); border-color: #d5c8fb; box-shadow: 0 24px 48px rgba(47, 28, 106, .13); }
.rbp-tpl-thumb { position: relative; display: block; overflow: hidden; margin: 14px 14px 0; border: 1px solid var(--rbp-border); border-radius: 10px; background: #f3f1f9; }
.rbp-tpl-thumb iframe { position: absolute; left: 0; top: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.rbp-tpl-hover { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(47, 28, 106, 0); opacity: 0; transition: opacity .2s ease, background .2s ease; }
.rbp-tpl-hover span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 100px; background: #fff; color: var(--rbp-brand-dark); font-weight: 600; font-size: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.rbp-tpl:hover .rbp-tpl-hover { opacity: 1; background: rgba(47, 28, 106, .42); }
.rbp-badge-new { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 3px 10px; border-radius: 100px; background: #16a34a; color: #fff; font-size: 11.5px; font-weight: 700; }
.rbp-tpl-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 18px 18px; }
.rbp-tpl-name { margin: 0; font-size: 18px !important; font-weight: 700; }
.rbp-tpl-body p { flex: 1; margin: 0; color: var(--rbp-muted); font-size: 14px; line-height: 1.55; }
.rbp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rbp-tags span { padding: 3px 10px; border-radius: 100px; background: var(--rbp-brand-soft); color: var(--rbp-brand); font-size: 12px; font-weight: 600; }

/* sample profiles */
.rbp-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rbp-profile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--rbp-border); border-radius: 16px; background: #fff; color: var(--rbp-text) !important; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.rbp-profile:hover { border-color: var(--rbp-brand); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(108, 60, 240, .12); }
.rbp-profile > i:first-child { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--rbp-brand-soft); color: var(--rbp-brand); font-size: 21px; }
.rbp-profile span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rbp-profile b { font-size: 16px; }
.rbp-profile small { color: var(--rbp-muted); font-size: 13.5px; }
.rbp-profile-go { color: var(--rbp-brand); }

/* tips */
.rbp-tips { margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.rbp-tips li { position: relative; margin: 0 0 14px; padding: 18px 20px 18px 66px; border: 1px solid var(--rbp-border); border-radius: 16px; background: #fff; color: #4b5563; line-height: 1.6; counter-increment: tip; }
.rbp-tips li::before { content: counter(tip); position: absolute; left: 18px; top: 16px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--rbp-brand); color: #fff; font-weight: 700; }
.rbp-tips b { color: var(--rbp-text); }

/* FAQ */
.rbp-faq { display: flex; flex-direction: column; gap: 12px; }
.rbp-faq-item { border: 1px solid var(--rbp-border); border-radius: 16px; background: #fff; }
.rbp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--rbp-text); font-size: 16.5px; font-weight: 600; cursor: pointer; list-style: none; }
.rbp-faq-item summary::-webkit-details-marker { display: none; }
.rbp-faq-item summary i { flex-shrink: 0; color: var(--rbp-brand); transition: transform .2s ease; }
.rbp-faq-item[open] summary i { transform: rotate(45deg); }
.rbp-faq-item p { margin: 0; padding: 0 22px 20px; color: var(--rbp-muted); line-height: 1.65; }

/* final CTA */
.rbp-final { padding: 4rem 0 5rem; }
.rbp-final-box { padding: 56px 28px; border-radius: 26px; background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .18), transparent 45%), var(--rbp-grad); text-align: center; box-shadow: 0 30px 60px rgba(47, 28, 106, .25); }
.rbp-final-box h2 { margin: 0 0 10px; color: #fff !important; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.rbp-final-box p { margin: 0; color: #e9e2ff; font-size: 17px; }

/* gallery page */
.rbp-page-hero { padding: 2.5rem 0 1.5rem; background: linear-gradient(180deg, #fff 0%, #faf8ff 100%); }
.rbp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--rbp-muted); font-size: 14px; }
.rbp-crumbs a { color: var(--rbp-brand); }
.rbp-crumbs i { font-size: 11px; }
.rbp-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.rbp-filters { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
.rbp-filters::-webkit-scrollbar { display: none; }
.rbp-filter { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--rbp-border); border-radius: 100px; background: #fff; color: #374151; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.rbp-filter span { padding: 0 8px; border-radius: 100px; background: #f1eefb; color: var(--rbp-muted); font-size: 12px; }
.rbp-filter:hover { border-color: #cdbffb; }
.rbp-filter.active { border-color: var(--rbp-brand); background: var(--rbp-brand); color: #fff; }
.rbp-filter.active span { background: rgba(255, 255, 255, .2); color: #fff; }
.rbp-search { position: relative; flex: 0 1 280px; margin: 0; }
.rbp-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.rbp-search input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--rbp-border); border-radius: 100px; background: #fff; font-size: 16px; }
.rbp-search input:focus { outline: none; border-color: var(--rbp-brand); box-shadow: 0 0 0 3px rgba(108, 60, 240, .14); }
.rbp-result { margin: 0 0 18px; color: var(--rbp-muted); font-size: 14px; }
.rbp-empty { padding: 30px; border: 1px dashed #d5c8fb; border-radius: 16px; color: var(--rbp-muted); text-align: center; }
.rbp-empty[hidden] { display: none; }
.rbp-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.rbp-guide div { padding: 22px; border: 1px solid var(--rbp-border); border-radius: 16px; background: #fff; }
.rbp-guide i { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 13px; background: var(--rbp-brand-soft); color: var(--rbp-brand); font-size: 20px; }
.rbp-guide h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.rbp-guide p { margin: 0; color: var(--rbp-muted); font-size: 14.5px; line-height: 1.6; }

/* responsive */
@media (max-width: 991.98px) {
    .rbp-guide { grid-template-columns: 1fr; }
    .rbp-section { padding: 3.5rem 0; }
    .rbp-page-hero { padding: 1.5rem 0 1rem; }
}
@media (max-width: 575.98px) {
    .rbp-lead { font-size: 16px; }
    .rbp-cta .rbp-btn { width: 100%; }
    .rbp-tpl-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rbp-tpl-thumb { margin: 8px 8px 0; }
    .rbp-tpl-body { padding: 10px 10px 12px; gap: 6px; }
    .rbp-tpl-name { font-size: 14.5px !important; }
    .rbp-tpl-body p, .rbp-tags { display: none; }
    .rbp-tpl-body .rbp-btn { padding: 9px 8px; font-size: 13px; }
    .rbp-search { flex-basis: 100%; }
    .rbp-final-box { padding: 40px 20px; }
    .rbp-tips li { padding: 16px 16px 16px 60px; }
}

/* ------------------------------------------------------------------ template filter bar (style / layout / photo / search) */
.cv-tf { margin-bottom: 18px; }
.cv-tf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cv-tf-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
.cv-tf-row::-webkit-scrollbar { display: none; }
.cv-tf-search { position: relative; flex: 0 1 260px; margin: 0; }
.cv-tf-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e5e1f0; }
.cv-tf-sub .rbp-filter { padding: 6px 12px; font-size: 13px; }
.cv-tf-label { flex-shrink: 0; margin-right: 2px; color: #6b7280; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.cv-tf-gap { flex-shrink: 0; width: 1px; height: 22px; margin: 0 6px; background: #e5e1f0; }
.cv-tf-reset { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; padding: 6px 10px; border: 0; border-radius: 100px; background: none; color: #dc2626; font-size: 13px; font-weight: 600; }
.cv-tf-reset:hover { background: #fef2f2; }
.cv-tf-reset[hidden] { display: none; }
@media (max-width: 575.98px) { .cv-tf-search { flex-basis: 100%; } }

/* ------------------------------------------------------------------ paged template list (20 at a time) */
.cv-tl-more { display: flex; justify-content: center; margin: 22px 0 6px; }
.cv-tl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 1.5px solid #ddd3fb; border-radius: 100px; background: #fff; color: #6c3cf0 !important; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.cv-tl-btn:hover { border-color: #6c3cf0; background: #f4f0ff; }
.cv-tl-btn[hidden], .cv-tl-loading[hidden], .cv-tl-empty[hidden] { display: none !important; }
.cv-tl-loading { display: inline-flex; align-items: center; gap: 8px; color: #6b7280; font-weight: 600; font-size: 14px; }
.cv-tl-loading .spinner-border { width: 16px; height: 16px; border-width: 2px; color: #6c3cf0; }
.cv-tl-empty { margin-top: 6px; padding: 26px; border: 1px dashed #d5c8fb; border-radius: 16px; background: #fff; color: #6b7280; text-align: center; }
#cvTplSentinel { height: 1px; }

/* design preview image (assets/previews/) – same A4 shape as the live iframe preview */
.cv-tpl-img { display: block; width: 100%; aspect-ratio: 794 / 1123; object-fit: contain; object-position: top center; background: #fff; }   /* contain: the whole page is visible, never cut */

/* =====================================================================================
   Landing page (index.php) – .rbl
   ===================================================================================== */
.rbl { --rbl-ink: #0f0a1f; --rbl-night: #140d33; }
.rbl h2 { font-weight: 800; letter-spacing: -.03em; }
.rbl .rbp-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.rbl-kicker { display: inline-block; margin-bottom: 12px; color: var(--rbp-brand); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rbl-kicker-light { color: #c4b5fd; }
.rbl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rbl-btn-soft { background: #fff; border-color: var(--rbp-border); color: var(--rbl-ink) !important; box-shadow: 0 1px 2px rgba(15, 10, 31, .06); }
.rbl-btn-soft:hover { border-color: #cdbffb; background: #faf8ff; }
.rbl-btn-main i { transition: transform .15s ease; }
.rbl-btn-main:hover i { transform: translateX(3px); }
.rbl-link { display: inline-flex; align-items: center; gap: 6px; color: var(--rbp-brand) !important; font-weight: 700; white-space: nowrap; }
.rbl-link:hover i { transform: translateX(3px); }
.rbl-link i { transition: transform .15s ease; }

/* hero */
.rbl-hero { position: relative; overflow: hidden; padding: 4.5rem 0 5.5rem; background: #fbfaff; }
.rbl-hero-glow { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 380px at 78% 30%, rgba(124, 58, 237, .22), transparent 70%),
                radial-gradient(500px 320px at 95% 85%, rgba(236, 72, 153, .12), transparent 70%),
                radial-gradient(520px 340px at 0% 0%, rgba(59, 130, 246, .10), transparent 70%); }
.rbl-hero-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(108, 60, 240, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 60, 240, .06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.rbl-hero .container { position: relative; }
.rbl-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 14px; border: 1px solid #e4dcfd; border-radius: 100px; background: rgba(255, 255, 255, .8); color: #4c1d95; font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 10, 31, .05); }
.rbl-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.rbl-h1 { margin: 0 0 18px; color: var(--rbl-ink) !important; font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
.rbl-lead { max-width: 560px; margin: 0; color: #4b5563; font-size: 19px; line-height: 1.6; }
.rbl-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: #374151; font-size: 14.5px; font-weight: 600; }
.rbl-trust i { margin-right: 6px; color: var(--rbp-brand); }

.rbl-stage { position: relative; height: 540px; max-width: 580px; margin: 0 auto; }
.rbl-paper { position: absolute; top: 40px; width: 270px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 4px rgba(15, 10, 31, .06), 0 30px 60px -10px rgba(47, 28, 106, .3); }
.rbl-paper img, .rbl-wall-item img, .rbl-switch img, .rbl-final-art img { display: block; width: 100%; aspect-ratio: 794 / 1123; object-fit: contain; object-position: top center; background: #fff; }   /* contain: the whole page is visible, never cut */
.rbl-paper-1 { left: 0; transform: rotate(-8deg); }
.rbl-paper-3 { right: 0; transform: rotate(8deg); }
.rbl-paper-2 { left: 50%; top: 0; z-index: 2; width: 320px; transform: translateX(-50%); animation: rbl-float 7s ease-in-out infinite; }
.rbl-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px -12px rgba(47, 28, 106, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: rbl-float 6s ease-in-out infinite; }
.rbl-float > i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #dcfce7; color: #16a34a; font-size: 17px; }
.rbl-float span { display: flex; flex-direction: column; line-height: 1.2; }
.rbl-float b { color: var(--rbl-ink); font-size: 14px; }
.rbl-float small { color: #6b7280; font-size: 12px; }
.rbl-float-1 { left: -48px; top: 96px; animation-delay: -2s; }   /* sits on the back page, not over the front one */
.rbl-float-2 { right: -4px; top: 250px; animation-delay: -4s; }
.rbl-float-2 > i { background: var(--rbp-brand-soft); color: var(--rbp-brand); }
.rbl-float-3 { left: 30px; bottom: 30px; flex-direction: column; align-items: flex-start; gap: 6px; animation-delay: -1s; }
.rbl-swatches { display: flex !important; flex-direction: row !important; gap: 6px; }
.rbl-swatches i { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
@keyframes rbl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* stats */
.rbl-stats { position: relative; z-index: 2; margin-top: -2.2rem; }
.rbl-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rbp-border); border-radius: 20px; background: #fff; box-shadow: 0 20px 50px -20px rgba(47, 28, 106, .25); }
.rbl-stats-grid div { display: flex; flex-direction: column; align-items: center; padding: 24px 12px; text-align: center; }
.rbl-stats-grid div + div { border-left: 1px solid var(--rbp-border); }
.rbl-stats-grid b { background: linear-gradient(135deg, #4c1d95, #7c3aed 60%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.rbl-stats-grid span { color: var(--rbp-muted); font-size: 14px; font-weight: 500; }

/* moving wall of designs */
.rbl-wall-sec { padding: 5.5rem 0 1rem; overflow: hidden; }
.rbl-wall { display: flex; flex-direction: column; gap: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rbl-wall-row { overflow: hidden; }
.rbl-wall-track { display: flex; gap: 22px; width: max-content; padding: 6px 0 14px; animation: rbl-marquee 70s linear infinite; }
.rbl-wall-rev .rbl-wall-track { animation-direction: reverse; animation-duration: 80s; }
.rbl-wall:hover .rbl-wall-track { animation-play-state: paused; }
.rbl-wall-item { position: relative; flex-shrink: 0; width: 200px; overflow: hidden; border: 1px solid var(--rbp-border); border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -12px rgba(47, 28, 106, .25); transition: transform .2s ease, box-shadow .2s ease; }
.rbl-wall-item:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -14px rgba(47, 28, 106, .4); }
.rbl-wall-item span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(15, 10, 31, .82); color: #fff; font-size: 12.5px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.rbl-wall-item:hover span, .rbl-wall-item:focus-visible span { opacity: 1; transform: none; }
@keyframes rbl-marquee { to { transform: translateX(calc(-50% - 11px)); } }

/* template grid header */
.rbl-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 2.2rem; }
.rbl-head-row h2 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 44px); }
.rbl-head-row p { margin: 0; color: var(--rbp-muted); font-size: 16.5px; }
.rbl-tpl-grid { grid-template-columns: repeat(4, 1fr); }

/* how it works (dark) */
.rbl-dark { position: relative; overflow: hidden; background: radial-gradient(700px 400px at 85% 0%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(219, 39, 119, .22), transparent 70%), var(--rbl-night); }
.rbl-dark h2 { color: #fff !important; }
.rbl-dark .rbp-head p { color: #c7c2dd; }
.rbl-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.rbl-steps li { position: relative; padding: 30px 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: rgba(255, 255, 255, .04); transition: background .2s ease, border-color .2s ease; }
.rbl-steps li:hover { border-color: rgba(196, 181, 253, .4); background: rgba(255, 255, 255, .07); }
.rbl-step-n { position: absolute; right: 24px; top: 20px; color: rgba(255, 255, 255, .12); font-size: 52px; font-weight: 800; line-height: 1; }
.rbl-steps i { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; font-size: 22px; box-shadow: 0 10px 24px -8px rgba(219, 39, 119, .6); }
.rbl-steps h3 { margin: 0 0 8px; color: #fff !important; font-size: 19px; font-weight: 700; }
.rbl-steps p { margin: 0; color: #c7c2dd; font-size: 15px; line-height: 1.6; }

/* features bento */
.rbl-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rbl-tile { padding: 26px; border: 1px solid var(--rbp-border); border-radius: 20px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.rbl-tile:hover { border-color: #d5c8fb; box-shadow: 0 20px 40px -20px rgba(47, 28, 106, .25); transform: translateY(-2px); }
.rbl-tile > i, .rbl-tile-copy > i { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--rbp-brand-soft); color: var(--rbp-brand); font-size: 21px; }
.rbl-tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.rbl-tile p { margin: 0; color: var(--rbp-muted); font-size: 14.5px; line-height: 1.6; }
.rbl-tile-big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; background: linear-gradient(160deg, #faf8ff 0%, #f1ebff 100%); }
.rbl-tile-big h3 { font-size: 24px; }
.rbl-tile-big p { max-width: 420px; font-size: 15.5px; }
.rbl-tile-wide { grid-column: span 2; }
.rbl-switch { position: relative; flex: 1; min-height: 250px; margin: 0 -26px -26px; overflow: hidden; }
.rbl-switch div { position: absolute; top: 34px; width: 38%; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 40px -12px rgba(47, 28, 106, .35); transition: transform .3s ease; }
.rbl-switch div:nth-child(1) { left: 7%; transform: rotate(-6deg); }
.rbl-switch div:nth-child(2) { left: 31%; z-index: 2; top: 14px; }
.rbl-switch div:nth-child(3) { right: 7%; transform: rotate(6deg); }
.rbl-tile-big:hover .rbl-switch div:nth-child(1) { transform: rotate(-9deg) translateX(-10px); }
.rbl-tile-big:hover .rbl-switch div:nth-child(3) { transform: rotate(9deg) translateX(10px); }

.rbl-sticky { position: sticky; top: 90px; }

/* final CTA */
.rbl-final { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px; overflow: hidden; padding: 56px 56px 0; border-radius: 28px; background: radial-gradient(600px 360px at 90% 10%, rgba(219, 39, 119, .35), transparent 70%), var(--rbp-grad); box-shadow: 0 40px 80px -30px rgba(47, 28, 106, .55); }
.rbl-final-copy { padding-bottom: 56px; }
.rbl-final h2 { margin: 0 0 12px; color: #fff !important; font-size: clamp(28px, 3.6vw, 44px); }
.rbl-final p { margin: 0; color: #e9e2ff; font-size: 18px; }
.rbl-final-art { position: relative; align-self: end; height: 300px; }
.rbl-final-art div { position: absolute; bottom: -80px; width: 210px; overflow: hidden; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.rbl-final-art div:nth-child(1) { left: 6%; transform: rotate(-6deg); }
.rbl-final-art div:nth-child(2) { right: 6%; bottom: -40px; transform: rotate(5deg); }

@media (prefers-reduced-motion: reduce) {
    .rbl-paper-2, .rbl-float { animation: none; }
    .rbl-wall-track { animation: none; }
    .rbl-wall-row { overflow-x: auto; }
}
@media (max-width: 1199.98px) {
    .rbl-tpl-grid { grid-template-columns: repeat(3, 1fr); }
    .rbl-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .rbl-hero { padding: 2.5rem 0 4.5rem; }
    .rbl-hero-copy { text-align: center; }
    .rbl-hero-copy .rbl-lead { margin: 0 auto; }
    .rbl-cta, .rbl-trust { justify-content: center; }
    .rbl-stage { height: 460px; }
    .rbl-paper { width: 220px; }
    .rbl-paper-2 { width: 270px; }
    .rbl-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rbl-stats-grid div:nth-child(3) { border-left: 0; }
    .rbl-stats-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--rbp-border); }
    .rbl-steps { grid-template-columns: 1fr; }
    .rbl-sticky { position: static; }
    .rbl-final { grid-template-columns: 1fr; padding: 44px 28px 0; text-align: center; }
    .rbl-final .rbl-cta { justify-content: center; }
    .rbl-final-copy { padding-bottom: 0; }
    .rbl-final-art { height: 220px; max-width: 460px; width: 100%; margin: 0 auto; }
    .rbl-final-art div { width: 170px; }
}
@media (max-width: 767.98px) {
    .rbl-head-row { display: block; text-align: center; }
    .rbl-head-row .rbl-link { display: none; }
    .rbl-tpl-grid { grid-template-columns: 1fr 1fr; }
    .rbl-wall-sec { padding-top: 4rem; }
    .rbl-wall-item { width: 150px; }
}
@media (max-width: 575.98px) {
    .rbl-lead { font-size: 16.5px; }
    .rbl-cta .rbp-btn { width: 100%; }
    .rbl-stage { height: 380px; }
    .rbl-paper { top: 30px; width: 165px; }
    .rbl-paper-1 { left: -12px; }
    .rbl-paper-3 { right: -12px; }
    .rbl-paper-2 { width: 210px; }
    .rbl-float { padding: 8px 10px; }
    .rbl-float-1 { left: -4px; top: 30px; }
    .rbl-float-2 { right: -4px; top: 200px; }
    .rbl-float-3 { left: 6px; bottom: 10px; }
    .rbl-float small { display: none; }
    .rbl-float-3 small { display: block; }
    .rbl-stats-grid b { font-size: 28px; }
    .rbl-bento { grid-template-columns: 1fr; }
    .rbl-tile-big, .rbl-tile-wide { grid-column: auto; grid-row: auto; }
    .rbl-switch { min-height: 200px; }
    .rbl-final-art div { width: 140px; }
}
