/* ============================================================
   /migrate-from-remove-bg landing page
   Everything is scoped to body.migrate-rbg so it can't leak into other pages.
   Colors follow the :root tokens in style.css (#1abdca teal, #116C7E dark teal, #e6faff light blue).
   ============================================================ */

.migrate-rbg {
    --rbg-teal: #1abdca;
    --rbg-teal-dark: #116C7E;
    --rbg-ink: #1d3b42;
    --rbg-text: #4f6368;
    --rbg-tint: #f2fcfe;
    --rbg-line: #d6eef2;
    --rbg-shadow: 0 6px 12px rgba(17, 108, 126, .15);
    --rbg-code-bg: #0e2a31;
    --rbg-code-text: #d9f1f4;
    --rbg-del: rgba(237, 51, 43, .2);
    --rbg-del-mark: #ff8a84;
    --rbg-add: rgba(26, 189, 202, .22);
    --rbg-add-mark: #5fe3ee;
}

.migrate-rbg code {
    border: 0;
    background: #e9f7f9;
    color: var(--rbg-teal-dark);
    padding: 1px 6px;
    font-size: .86em;
    word-break: break-word;
}

/* --- Hero ----------------------------------------------------------------- */

.migrate-rbg .rbg-hero {
    padding: 40px 0 64px;
    position: relative;
    overflow: hidden;
}
.migrate-rbg .rbg-hero::before {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 189, 202, .10) 0%, transparent 65%);
    top: -280px;
    right: -220px;
    pointer-events: none;
}
.migrate-rbg .rbg-hero .container { position: relative; }

.migrate-rbg .rbg-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rbg-teal-dark);
    background: #fff;
    border: 1px solid var(--rbg-line);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.migrate-rbg .rbg-hero h1 {
    font-size: 42px;
    line-height: 1.18;
    color: var(--rbg-ink);
    margin: 0 0 18px;
    padding: 0;
}
.migrate-rbg .rbg-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--rbg-text);
    margin-bottom: 22px;
}
.migrate-rbg .rbg-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border-left: 4px solid var(--rbg-teal);
    border-radius: 12px;
    box-shadow: var(--rbg-shadow);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rbg-text);
    margin-bottom: 26px;
}
.migrate-rbg .rbg-notice i { color: var(--rbg-teal); font-size: 20px; line-height: 1; margin-top: 2px; }
.migrate-rbg .rbg-notice strong { color: var(--rbg-ink); }

.migrate-rbg .buttons { display: flex; flex-wrap: wrap; }
.migrate-rbg .buttons .btn { display: inline-flex; align-items: center; justify-content: center; }

/* --- Code cards ----------------------------------------------------------- */

.migrate-rbg .rbg-code-card {
    background: var(--rbg-code-bg);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(14, 42, 49, .25);
    overflow: hidden;
    text-align: left;
}
.migrate-rbg .rbg-code-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.migrate-rbg .rbg-dots { display: inline-flex; gap: 6px; }
.migrate-rbg .rbg-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: block; }
.migrate-rbg .rbg-code-title { color: rgba(217, 241, 244, .7); font-size: 13px; font-weight: 600; }
.migrate-rbg .rbg-copy {
    margin-left: auto;
    background: rgba(255, 255, 255, .08);
    color: var(--rbg-code-text);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    transition: background .15s;
}
.migrate-rbg .rbg-copy:hover { background: rgba(255, 255, 255, .16); }
.migrate-rbg .rbg-copy.copied { background: var(--rbg-teal); border-color: var(--rbg-teal); color: #fff; }
.migrate-rbg .rbg-copy i { color: inherit; }

.migrate-rbg .rbg-pre {
    margin: 0;
    padding: 14px 0;
    overflow-x: auto;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--rbg-code-text);
}
.migrate-rbg .rbg-pre code {
    display: block;
    min-width: max-content;
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
    word-break: normal;
}
/* style.css sets *{font-family:Montserrat}, which would hit every line span */
.migrate-rbg .rbg-pre * { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; }
/* one span per line; the +/- markers are pseudo-elements so they are never copied */
.migrate-rbg .rbg-pre .l {
    display: block;
    white-space: pre;
    padding: 0 20px 0 40px;
    position: relative;
}
.migrate-rbg .rbg-pre .l::before {
    position: absolute;
    left: 16px;
    width: 12px;
    font-weight: 700;
}
.migrate-rbg .rbg-pre .del { background: var(--rbg-del); color: #ffd3d0; }
.migrate-rbg .rbg-pre .del::before { content: '-'; color: var(--rbg-del-mark); }
.migrate-rbg .rbg-pre .add { background: var(--rbg-add); color: #fff; }
.migrate-rbg .rbg-pre .add::before { content: '+'; color: var(--rbg-add-mark); }

.migrate-rbg .rbg-hero-card .rbg-pre { font-size: 14px; padding: 18px 0; }
.migrate-rbg .rbg-code-foot {
    padding: 12px 18px 16px;
    font-size: 13px;
    color: rgba(217, 241, 244, .7);
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* --- Sections ------------------------------------------------------------- */

.migrate-rbg .rbg-section { padding: 64px 0; background: #fff; }
.migrate-rbg .rbg-section-tint { background: var(--rbg-tint); }
.migrate-rbg .rbg-section h2,
.migrate-rbg .rbg-cta h2 {
    color: #333;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 10px;
}
.migrate-rbg .rbg-sub { font-size: 16px; color: var(--rbg-text); margin-bottom: 28px; }
/* headings without a subtitle still need room before the content */
.migrate-rbg .rbg-section h2:last-child { margin-bottom: 28px; }

.migrate-rbg .rbg-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--rbg-shadow);
    padding: 26px 28px;
    text-align: left;
    color: var(--rbg-text);
    font-size: 15px;
    line-height: 1.6;
}
.migrate-rbg .rbg-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--rbg-ink);
    margin-bottom: 12px;
}
.migrate-rbg .rbg-card h3 i { color: var(--rbg-teal); margin-right: 6px; }
.migrate-rbg .rbg-card p:last-child { margin-bottom: 0; }
.migrate-rbg .rbg-card-change { border-top: 4px solid var(--sp-red, #ED332B); }
.migrate-rbg .rbg-card-change h3 i { color: var(--sp-red, #ED332B); }
.migrate-rbg .rbg-card-same { border-top: 4px solid var(--rbg-teal); }

.migrate-rbg .rbg-list { list-style: none; padding: 0; margin: 0; }
.migrate-rbg .rbg-list li { position: relative; padding: 0 0 12px 26px; }
.migrate-rbg .rbg-list li:last-child { padding-bottom: 0; }
.migrate-rbg .rbg-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rbg-teal);
}
.migrate-rbg .rbg-card-change .rbg-list li::before { background: var(--sp-red, #ED332B); }

.migrate-rbg .rbg-feature .rbg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--sp-bg-light-blue, #e6faff);
    color: var(--rbg-teal-dark);
    font-size: 22px;
    margin-bottom: 14px;
}
.migrate-rbg .rbg-feature .rbg-icon i { color: inherit; }
.migrate-rbg .rbg-card a { color: var(--rbg-teal-dark); font-weight: 600; }

/* --- Tabs ----------------------------------------------------------------- */

.migrate-rbg .rbg-tabs {
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.migrate-rbg .rbg-tabs .nav-link {
    border: 1px solid var(--rbg-line);
    background: #fff;
    color: var(--rbg-ink);
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
}
.migrate-rbg .rbg-tabs .nav-link:hover { border-color: var(--rbg-teal); }
.migrate-rbg .rbg-tabs .nav-link.active {
    background: var(--rbg-teal);
    border-color: var(--rbg-teal);
    color: #fff;
}

/* --- Tables --------------------------------------------------------------- */

.migrate-rbg .rbg-table-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--rbg-ink);
    margin: 0 0 12px;
    text-align: left;
}
.migrate-rbg .rbg-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--rbg-shadow);
}
.migrate-rbg .rbg-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rbg-text);
}
.migrate-rbg .rbg-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--rbg-teal-dark);
    background: var(--sp-bg-light-blue, #e6faff);
    padding: 12px 18px;
}
.migrate-rbg .rbg-table td { padding: 13px 18px; border-top: 1px solid #eef5f6; vertical-align: top; }
.migrate-rbg .rbg-table tbody tr:first-child td { border-top: 0; }
.migrate-rbg .rbg-table td:first-child { min-width: 170px; }
.migrate-rbg .rbg-ok {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: #0c7a63;
    background: #ddf7ef;
    border-radius: 999px;
    padding: 3px 10px;
}
.migrate-rbg .rbg-note { font-size: 14px; color: var(--rbg-text); margin: 14px 4px 0; text-align: left; }
.migrate-rbg .rbg-note a { color: var(--rbg-teal-dark); font-weight: 600; }

/* --- Steps ---------------------------------------------------------------- */

.migrate-rbg .rbg-steps {
    list-style: none;
    counter-reset: rbg-step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 18px 0 0;
}
.migrate-rbg .rbg-steps li {
    counter-increment: rbg-step;
    position: relative;
    background: #fff;
    border: 1px solid var(--rbg-line);
    border-radius: 16px;
    padding: 56px 20px 22px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rbg-text);
}
.migrate-rbg .rbg-steps li::before {
    content: counter(rbg-step);
    position: absolute;
    top: 18px;
    left: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rbg-teal);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.migrate-rbg .rbg-steps h3 { font-size: 16px; font-weight: 700; color: var(--rbg-ink); margin-bottom: 6px; }
.migrate-rbg .rbg-steps p { margin: 0; }
.migrate-rbg .rbg-steps a { color: var(--rbg-teal-dark); font-weight: 600; }

/* --- FAQ (the global .accordion rules are tuned for the compressor, so reset here) --- */

.migrate-rbg .rbg-faq { text-align: left; }
.migrate-rbg .rbg-faq .accordion-item {
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(17, 108, 126, .08);
    margin-bottom: 12px;
    overflow: hidden;
}
.migrate-rbg .rbg-faq .accordion-header { margin: 0; }
.migrate-rbg .rbg-faq .accordion-button {
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rbg-ink);
    background: #fff;
    box-shadow: none;
}
.migrate-rbg .rbg-faq .accordion-button:not(.collapsed) { color: var(--rbg-teal-dark); }
/* No ring on mouse click: an outer ring gets clipped by the item's overflow and shows as a line under the
   question. Keyboard users still get an inset ring, which the rounded card can't clip. */
.migrate-rbg .rbg-faq .accordion-button:focus { box-shadow: none; outline: 0; border-color: transparent; }
.migrate-rbg .rbg-faq .accordion-button:focus-visible { box-shadow: inset 0 0 0 2px rgba(26, 189, 202, .7); border-radius: 14px; }
.migrate-rbg .rbg-faq .accordion-body {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rbg-text);
}
.migrate-rbg .rbg-faq .accordion-body a { color: var(--rbg-teal-dark); font-weight: 600; }

/* --- Closing CTA ---------------------------------------------------------- */

.migrate-rbg .rbg-cta { padding: 64px 0 40px; background: #fff; }
.migrate-rbg .rbg-cta-box {
    background: linear-gradient(135deg, var(--rbg-teal-dark) 0%, var(--rbg-teal) 100%);
    border-radius: 24px;
    padding: 48px 24px;
    color: #fff;
}
.migrate-rbg .rbg-cta-box h2 { color: #fff; }
.migrate-rbg .rbg-cta-box p { color: rgba(255, 255, 255, .9); font-size: 17px; margin-bottom: 24px; }
.migrate-rbg .rbg-cta-box .view-prices-button { background: rgba(255, 255, 255, .95); }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .migrate-rbg .rbg-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .migrate-rbg .rbg-hero { padding: 24px 0 48px; text-align: left; }
    .migrate-rbg .rbg-hero h1 { font-size: 34px; }
}
@media (max-width: 767.98px) {
    .migrate-rbg .rbg-section { padding: 48px 0; }
    .migrate-rbg .rbg-section h2, .migrate-rbg .rbg-cta h2 { font-size: 26px; }
    .migrate-rbg .rbg-hero h1 { font-size: 29px; }
    .migrate-rbg .rbg-hero h1 br { display: none; }
    .migrate-rbg .rbg-lead { font-size: 16px; }
    .migrate-rbg .rbg-card { padding: 22px 20px; }
    .migrate-rbg .rbg-pre { font-size: 12.5px; }
    .migrate-rbg .rbg-hero-card .rbg-pre { font-size: 12.5px; }

    /* stack table rows: the 3-column request table is too narrow to read on phones */
    .migrate-rbg .rbg-table thead { display: none; }
    .migrate-rbg .rbg-table tr { display: block; padding: 14px 18px; border-top: 1px solid #eef5f6; }
    .migrate-rbg .rbg-table tbody tr:first-child { border-top: 0; }
    .migrate-rbg .rbg-table td { display: block; padding: 0; border: 0; min-width: 0; }
    .migrate-rbg .rbg-table td:first-child { min-width: 0; margin-bottom: 6px; }
    .migrate-rbg .rbg-table td + td + td { margin-top: 8px; }
}
@media (max-width: 575.98px) {
    .migrate-rbg .rbg-steps { grid-template-columns: 1fr; }
    .migrate-rbg .rbg-cta-box { padding: 36px 18px; }
}

/* --- Pricing comparison --------------------------------------------------- */

.migrate-rbg .rbg-pricing { background: linear-gradient(180deg, #fff 0%, var(--sp-bg-light-blue, #e6faff) 100%); }
.migrate-rbg .rbg-price-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 32px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.migrate-rbg .rbg-price-card h3 { font-size: 20px; font-weight: 700; color: var(--rbg-ink); margin-bottom: 6px; }
.migrate-rbg .rbg-price-old { border: 1px solid var(--rbg-line); }
.migrate-rbg .rbg-price-old h3 { color: #6b7f84; }
.migrate-rbg .rbg-price-model { font-size: 28px; font-weight: 700; color: #6b7f84; margin: 10px 0 22px; }
.migrate-rbg .rbg-price-new { border: 2px solid var(--rbg-teal); box-shadow: 0 18px 40px rgba(17, 108, 126, .18); }
.migrate-rbg .rbg-price-badge {
    position: absolute;
    top: -13px;
    right: 24px;
    background: var(--sp-red, #ED332B);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
}
.migrate-rbg .rbg-price-amount { margin: 6px 0 0; color: var(--rbg-ink); }
.migrate-rbg .rbg-price-amount strong { font-size: 44px; line-height: 1.1; font-weight: 700; color: var(--rbg-teal-dark); }
.migrate-rbg .rbg-price-amount span { font-size: 16px; font-weight: 600; color: var(--rbg-text); margin-left: 4px; }
.migrate-rbg .rbg-price-alt { font-size: 14px; color: var(--rbg-text); margin: 4px 0 20px; }
.migrate-rbg .rbg-price-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: var(--rbg-text); }
.migrate-rbg .rbg-price-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.migrate-rbg .rbg-price-list i { flex-shrink: 0; font-size: 16px; line-height: 1.5; color: var(--rbg-teal); }
.migrate-rbg .rbg-price-list li.neg i { color: #b9c6c9; }
.migrate-rbg .rbg-price-new .rbg-price-list strong { color: var(--rbg-ink); }
.migrate-rbg .rbg-price-new .get-started { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; }

@media (max-width: 767.98px) {
    .migrate-rbg .rbg-price-card { padding: 28px 22px; }
    .migrate-rbg .rbg-price-amount strong { font-size: 38px; }
}
