/* ═══════════════════════════════════════════════════════
   DATABAY RESIDENTIAL FLEX PROXIES - modern SaaS theme
   Prefix: .rflex-
   Direction: navy hero band → light, airy body.
   Tint: violet (#7C3AED / #A855F7) distinct from Residential's
   royal blue. Green reserved for genuine status semantics only.
   Display font: Mulish (loaded on page).
   ═══════════════════════════════════════════════════════ */

/* ─── Page Tokens ─── */
:root {
    /* Brand constants */
    --db-navy:  #091B36;
    --db-blue:  #3D7FFC;
    --db-cyan:  #15C1E6;

    /* ResidentialFlex tint - violet */
    --pt-tint:        #7C3AED;
    --pt-tint-2:      #A855F7;
    --pt-tint-soft:   rgba(124, 58, 237, 0.08);
    --pt-tint-softer: rgba(124, 58, 237, 0.05);
    --pt-tint-border: rgba(124, 58, 237, 0.20);
    --pt-gradient:    linear-gradient(135deg, #7C3AED, #A855F7);

    /* Status semantics */
    --rflex-green: #16a34a;
    --rflex-amber: #d97706;

    /* Navy band */
    --rflex-navy:          #091B36;
    --rflex-navy-mid:      #0b2140;
    --rflex-hero-gradient: linear-gradient(168deg, #07142b 0%, #091B36 46%, #0d264c 100%);

    /* Ink + surfaces */
    --rflex-text:           #0f172a;
    --rflex-text-secondary: #475569;
    --rflex-text-muted:     #94a3b8;
    --rflex-border:         #e6ebf3;
    --rflex-border-strong:  #d6deea;
    --rflex-bg:             #ffffff;
    --rflex-bg-alt:         #f6f8fc;

    --rflex-radius:    14px;
    --rflex-radius-lg: 18px;
    --rflex-radius-sm: 10px;

    --rflex-shadow:    0 1px 2px rgba(15, 23, 42, 0.04);
    --rflex-shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
    --rflex-shadow-lg: 0 24px 56px -20px rgba(15, 23, 42, 0.18);

    --rflex-font:         'Mulish', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rflex-font-display: 'Mulish', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --rflex-font-mono:    'JetBrains Mono', 'Fira Code', monospace;
    --rflex-ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --rflex-wrap:         1280px;
}

/* ─── Base ─── */
.rflex {
    font-family: var(--rflex-font);
    color: var(--rflex-text);
    background: var(--rflex-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Scope Mulish onto embedded pricing module */
    --db-font-display: var(--rflex-font-display);
}

.rflex-wrap {
    max-width: var(--rflex-wrap);
    margin: 0 auto;
    padding: 0 2rem;
}


/* ═══════════════════════════════════════════════════════
   BREADCRUMB - Navy band
   ═══════════════════════════════════════════════════════ */
.rflex-breadcrumb {
    background: var(--rflex-navy);
    padding: 0.875rem 0;
}
.rflex-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
}
.rflex-breadcrumb__list li {
    display: flex;
    align-items: center;
}
.rflex-breadcrumb__list a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}
.rflex-breadcrumb__list a:hover {
    color: #ffffff;
}
.rflex-breadcrumb__list svg {
    color: rgba(255, 255, 255, 0.25);
}
.rflex-breadcrumb__list [aria-current="page"] {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════
   HERO - Navy, editorial data ledger
   ═══════════════════════════════════════════════════════ */
.rflex-hero {
    position: relative;
    background: var(--rflex-hero-gradient);
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}

/* Single soft brand glow - no floating orbs */
.rflex-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.rflex-hero__bg::before {
    content: '';
    position: absolute;
    width: 1100px;
    height: 700px;
    top: -340px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.22) 0%, rgba(168, 85, 247, 0.05) 45%, transparent 70%);
}

/* Split layout */
.rflex-hero__split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}
.rflex-hero__content {
    max-width: 640px;
}


/* Hero title */
.rflex-hero__title {
    font-family: var(--rflex-font-display);
    font-size: clamp(2.35rem, 4.55vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 1.25rem;
}
.rflex-hero__title-accent {
    color: var(--pt-tint-2);
}

/* Hero subtitle */
.rflex-hero__sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #aebed6;
    margin: 0 0 1.75rem;
}
.rflex-hero__sub a {
    color: #c4b5fd;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 181, 253, 0.3);
    transition: border-color 0.15s ease;
}
.rflex-hero__sub a:hover { border-color: #c4b5fd; }

/* Hero actions */
.rflex-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

/* Hero trust */
.rflex-hero__trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.rflex-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.rflex-hero__trust-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

/* ─── Right: flat-rate price ─── */
/* Hero flat-rate price — single bold figure, no ledger rows */
.rflex-hero__price {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
}
/* soft sky glow behind the figure */
.rflex-hero__price::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    max-width: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.20) 0%, transparent 62%);
    z-index: -1;
    pointer-events: none;
}
.rflex-hero__price-eyebrow {
    font-family: var(--rflex-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(196, 181, 253, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
.rflex-hero__price-figure {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    line-height: 1;
    perspective: 720px;
}
.rflex-hero__price-currency {
    font-family: var(--rflex-font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--pt-tint-2);
    margin-top: 0.7rem;
}
.rflex-hero__price-amount {
    font-family: var(--rflex-font-display);
    font-size: clamp(4.5rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.05em;
    color: #ffffff;
    display: inline-block;
    transform-style: preserve-3d;
    transform: rotateX(5deg);
}
/* Subtle globe wrap: each char rotates on the vertical axis and recedes at the edges, so the number reads curved rather than flat. */
.rflex-hero__price-char {
    display: inline-block;
    --rflex-globe-offset: calc(var(--i) - (var(--n) - 1) / 2);
    transform:
        translateZ(calc(var(--rflex-globe-offset) * var(--rflex-globe-offset) * -0.06em))
        rotateY(calc(var(--rflex-globe-offset) * 5deg));
    backface-visibility: hidden;
}
.rflex-hero__price-unit {
    font-family: var(--rflex-font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    align-self: flex-end;
    margin: 0 0 0.7rem 0.2rem;
}
.rflex-hero__price-caption {
    margin-top: 1.125rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #aebed6;
    max-width: 260px;
}


/* ─── Buttons - pill ─── */
.rflex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--rflex-font);
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    line-height: 1;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    white-space: nowrap;
}
.rflex-btn--primary {
    background: var(--pt-tint);
    color: #ffffff;
    border-color: var(--pt-tint);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.32), 0 1px 2px rgba(14, 21, 37, 0.1);
}
.rflex-btn--primary:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.38);
    transform: translateY(-1px);
    color: #ffffff;
}
.rflex-btn--lg { padding: 1rem 2.125rem; font-size: 1rem; }
.rflex-btn--sm { font-size: 0.875rem; padding: 0.625rem 1.375rem; }
.rflex-btn--full { width: 100%; }
.rflex-btn--outline {
    background: #ffffff;
    color: var(--pt-tint);
    border-color: var(--rflex-border-strong);
}
.rflex-btn--outline:hover {
    border-color: var(--pt-tint);
    background: var(--pt-tint-softer);
    color: var(--pt-tint);
    transform: translateY(-1px);
}
.rflex-btn--outline-light {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}
.rflex-btn--outline-light:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.rflex-btn--outline-light img { width: 18px; height: 18px; }

/* ─── Inline link ─── */
.rflex-inline-link {
    color: var(--pt-tint);
    text-decoration: none;
    border-bottom: 1px solid var(--pt-tint-border);
    transition: border-color 0.15s ease;
}
.rflex-inline-link:hover { border-color: var(--pt-tint); }


/* ═══════════════════════════════════════════════════════
   FEATURES BAR - Navy stat strip
   ═══════════════════════════════════════════════════════ */
.rflex-features-bar {
    background: var(--rflex-navy-mid);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 0;
}
.rflex-features-bar__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.rflex-features-bar__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0 2.25rem;
}
.rflex-features-bar__divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.rflex-features-bar__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(124, 58, 237, 0.16);
    color: #c4b5fd;
    flex-shrink: 0;
}
.rflex-features-bar__text {
    display: flex;
    flex-direction: column;
}
.rflex-features-bar__value {
    font-family: var(--rflex-font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.rflex-features-bar__desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.125rem;
}


/* ═══════════════════════════════════════════════════════
   SECTION PRIMITIVES
   ═══════════════════════════════════════════════════════ */
.rflex-section {
    padding: 5.5rem 0;
    background: var(--rflex-bg);
}
.rflex-section--alt {
    background: var(--rflex-bg-alt);
}
/* --dark modifier kept for markup compatibility but rendered light */
.rflex-section--dark {
    background: var(--rflex-bg-alt);
    color: var(--rflex-text);
}

.rflex-section-head {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.rflex-label {
    display: inline-block;
    font-family: var(--rflex-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--pt-tint);
    background: var(--pt-tint-soft);
    border: 1px solid var(--pt-tint-border);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
.rflex-section-head h2 {
    font-family: var(--rflex-font-display);
    font-size: clamp(1.875rem, 3.4vw, 2.625rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rflex-text);
    margin: 0 0 1rem;
    line-height: 1.18;
}
.rflex-section-head p {
    font-size: 1.0625rem;
    color: var(--rflex-text-secondary);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.7;
}
.rflex-section-head strong { color: var(--rflex-text); font-weight: 700; }

/* Shared check list */
.rflex-check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.rflex-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--rflex-text-secondary);
    line-height: 1.55;
}
.rflex-check-list li svg {
    flex-shrink: 0;
    color: var(--pt-tint);
    margin-top: 0.125rem;
}
.rflex-check-list li code {
    font-family: var(--rflex-font-mono);
    font-size: 0.875em;
    background: var(--pt-tint-soft);
    color: var(--pt-tint);
    border-radius: 4px;
    padding: 0.1em 0.4em;
}


/* ═══════════════════════════════════════════════════════
   CONTENT ROWS - Alternating benefits
   ═══════════════════════════════════════════════════════ */
.rflex-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.rflex-content-row:last-child { margin-bottom: 0; }
.rflex-content-row--reverse { direction: rtl; }
.rflex-content-row--reverse > * { direction: ltr; }

.rflex-content-row__text h3 {
    font-family: var(--rflex-font-display);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 800;
    color: var(--rflex-text);
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    line-height: 1.25;
}
.rflex-content-row__text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rflex-text-secondary);
    margin: 0 0 1.25rem;
}

/* Visual card (light) */
.rflex-content-row__visual {
    background: #ffffff;
    border: 1px solid var(--rflex-border);
    border-radius: var(--rflex-radius-lg);
    padding: 2rem;
    box-shadow: var(--rflex-shadow-md);
}

/* ─── Spec ledger (inside visual card) ─── */
.rflex-spec-ledger { margin: 0; padding: 0; }
.rflex-spec-ledger__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--rflex-border);
}
.rflex-spec-ledger__row:first-child { padding-top: 0; }
.rflex-spec-ledger__row:last-child  { border-bottom: none; padding-bottom: 0; }
.rflex-spec-ledger__row dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rflex-text-muted);
}
.rflex-spec-ledger__row dd {
    margin: 0;
    font-family: var(--rflex-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rflex-text);
    text-align: right;
}

/* ─── Price comparison widget ─── */
.rflex-compare-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}
.rflex-compare-type__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.rflex-compare-type__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rflex-text-muted);
}
.rflex-compare-type__price-was {
    font-family: var(--rflex-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rflex-text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    letter-spacing: -0.02em;
}
.rflex-compare-type__price-now {
    font-family: var(--rflex-font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--pt-tint);
    letter-spacing: -0.035em;
    line-height: 1;
}
.rflex-compare-type__arrow {
    color: var(--rflex-text-muted);
    opacity: 0.6;
}
.rflex-compare-type__note {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    color: var(--rflex-text-secondary);
    line-height: 1.5;
    max-width: 280px;
}


/* ═══════════════════════════════════════════════════════
   TRADE-OFFS TABLE
   ═══════════════════════════════════════════════════════ */
.rflex-tradeoffs {
    background: var(--rflex-bg-alt);
}
.rflex-tradeoffs__table {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    border-collapse: collapse;
    border-radius: var(--rflex-radius);
    border: 1px solid var(--rflex-border);
    overflow: hidden;
    box-shadow: var(--rflex-shadow-md);
    background: #ffffff;
}
.rflex-tradeoffs__table th,
.rflex-tradeoffs__table td {
    padding: 1.05rem 1.4rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9375rem;
    color: var(--rflex-text-secondary);
}
.rflex-tradeoffs__table thead th {
    font-family: var(--rflex-font-display);
    font-weight: 700;
    color: var(--rflex-text);
    background: var(--rflex-bg-alt);
    border-bottom: 1px solid var(--rflex-border);
    vertical-align: bottom;
}
.rflex-tradeoffs__table th:first-child { width: 38%; }
.rflex-tradeoffs__table tbody tr:nth-child(even) td:not(.rflex-flex-col) { background: rgba(15, 23, 42, 0.018); }
.rflex-tradeoffs__table tr:last-child td { border-bottom: none; }
.rflex-tradeoffs__table tbody tr:hover td { background: var(--rflex-bg-alt); }

/* Flex column — recommended: gradient-filled header + continuous tinted body */
.rflex-tradeoffs__table .rflex-flex-col {
    background: var(--pt-tint-soft);
    color: var(--rflex-text);
    font-weight: 600;
    box-shadow: inset 1.5px 0 0 var(--pt-tint-border), inset -1.5px 0 0 var(--pt-tint-border);
}
.rflex-tradeoffs__table tbody tr:hover .rflex-flex-col { background: var(--pt-tint-soft); }
.rflex-tradeoffs__table thead .rflex-flex-col {
    background: var(--pt-gradient);
    color: #ffffff;
    border-bottom: none;
    box-shadow: inset 1.5px 0 0 var(--pt-tint-border), inset -1.5px 0 0 var(--pt-tint-border), 0 8px 20px -10px var(--pt-tint);
}
.rflex-tradeoffs__table tbody tr:last-child .rflex-flex-col {
    box-shadow: inset 1.5px 0 0 var(--pt-tint-border), inset -1.5px 0 0 var(--pt-tint-border), inset 0 -1.5px 0 var(--pt-tint-border);
}
.rflex-tradeoffs__table .rflex-yes { color: var(--rflex-text); font-weight: 500; }
.rflex-tradeoffs__table .rflex-yes svg { color: var(--rflex-green); vertical-align: middle; }
.rflex-tradeoffs__table .rflex-no { color: var(--rflex-text-muted); }

.rflex-tradeoffs__footnote {
    max-width: 720px;
    margin: 1.75rem auto 0;
    text-align: center;
    color: var(--rflex-text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}
.rflex-tradeoffs__cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════
   PRICING PREVIEW
   ═══════════════════════════════════════════════════════ */
.rflex-pricing-cta {
    text-align: center;
    margin-top: 2.5rem;
}


/* ═══════════════════════════════════════════════════════
   CODE INTEGRATION - light section, dark code card
   ═══════════════════════════════════════════════════════ */
.rflex-code-section {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
    align-items: start;
}
.rflex-code-section__info h3 {
    font-family: var(--rflex-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rflex-text);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    line-height: 1.3;
}
.rflex-code-section__info p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--rflex-text-secondary);
    margin: 0 0 1.5rem;
}
.rflex-code-section__info p code {
    font-family: var(--rflex-font-mono);
    font-size: 0.875em;
    background: var(--pt-tint-soft);
    color: var(--pt-tint);
    border-radius: 4px;
    padding: 0.1em 0.4em;
}
.rflex-code-section__links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
/* On the light section, outline-light behaves as a bordered outline */
.rflex-code-section__links .rflex-btn--outline-light {
    background: #ffffff;
    color: var(--rflex-text);
    border-color: var(--rflex-border-strong);
}
.rflex-code-section__links .rflex-btn--outline-light:hover {
    border-color: var(--pt-tint);
    background: var(--pt-tint-softer);
    color: var(--rflex-text);
}
.rflex-code-section__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    filter: grayscale(1);
    opacity: 0.55;
    transition: opacity 0.2s ease, filter 0.2s ease;
}
.rflex-code-section__langs:hover { opacity: 0.95; filter: grayscale(0); }
.rflex-code-section__langs img { width: 28px; height: 28px; object-fit: contain; }

/* Code block (stays dark - it is an editor) */
.rflex-code {
    background: #1e1e2e;
    border-radius: var(--rflex-radius);
    overflow: hidden;
    box-shadow: 0 18px 50px -16px rgba(15, 23, 42, 0.4);
    position: relative;
}
.rflex-code .db-tabs {
    display: flex;
    padding: 0.75rem 0.75rem 0;
    background: #1e1e2e;
    overflow-x: auto;
    scrollbar-width: none;
}
.rflex-code .db-tabs::-webkit-scrollbar { display: none; }
.rflex-code [data-tab] {
    background: transparent;
    border: none;
    color: #6c7086;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 7px 7px 0 0;
    transition: color 0.15s ease, background 0.15s ease;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-family: var(--rflex-font);
}
.rflex-code [data-tab].active { color: #cdd6f4; background: #282a3a; }
.rflex-code [data-tab] img { width: 16px; height: 16px; }
.rflex-code__body {
    position: relative;
    background: #282a3a;
    height: 400px;
    overflow: hidden;
}
.rflex-code [data-tab-panel] {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    overflow-y: auto;
}
.rflex-code [data-tab-panel].active { opacity: 1; visibility: visible; }
.rflex-code [data-tab-panel] pre {
    margin: 0;
    padding: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    tab-size: 4;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #cdd6f4;
}
.rflex-code [data-tab-panel] code { font-family: var(--rflex-font-mono); color: #cdd6f4; }
.rflex-code [data-tab-panel]::-webkit-scrollbar { width: 6px; }
.rflex-code [data-tab-panel]::-webkit-scrollbar-track { background: transparent; }
.rflex-code [data-tab-panel]::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.rflex-code__copy {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cdd6f4;
    padding: 0.375rem 0.75rem;
    border-radius: 7px;
    font-size: 0.75rem;
    font-family: var(--rflex-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: background 0.15s ease;
    opacity: 0.7;
    z-index: 5;
}
.rflex-code__copy:hover { background: rgba(255, 255, 255, 0.15); opacity: 1; }
.rflex-code__copy.copied { background: var(--pt-tint); color: #fff; opacity: 1; }


/* ═══════════════════════════════════════════════════════
   USE CASES - 4-column cards
   ═══════════════════════════════════════════════════════ */
.rflex-usecases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.rflex-usecase {
    background: #ffffff;
    border: 1px solid var(--rflex-border);
    border-radius: var(--rflex-radius-lg);
    padding: 1.875rem;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}
.rflex-section--alt .rflex-usecase { background: #ffffff; }
.rflex-usecase:hover {
    box-shadow: var(--rflex-shadow-md);
    transform: translateY(-3px);
    border-color: var(--rflex-border-strong);
}
.rflex-usecase__num {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--rflex-font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--pt-tint);
    background: var(--pt-tint-soft);
    border: 1px solid var(--pt-tint-border);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}
.rflex-usecase h3 {
    font-family: var(--rflex-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--rflex-text);
    margin: 0 0 0.5rem;
}
.rflex-usecase p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--rflex-text-secondary);
    margin: 0;
}


/* ═══════════════════════════════════════════════════════
   GEOGRAPHIC COVERAGE
   ═══════════════════════════════════════════════════════ */
.rflex-coverage {
    max-width: 720px;
    margin: 0 auto;
}
.rflex-coverage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rflex-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
}
.rflex-coverage-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--rflex-border);
}
.rflex-coverage-item__flag {
    width: 22px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.rflex-coverage-item__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--rflex-text);
}
.rflex-coverage__meta {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--rflex-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */
.rflex-faq {
    max-width: 800px;
    margin: 0 auto;
}
.rflex-faq__item {
    border-bottom: 1px solid var(--rflex-border);
    background: transparent;
}
.rflex-faq__item:first-child { border-top: 1px solid var(--rflex-border); }
.rflex-faq__item summary {
    cursor: pointer;
    padding: 1.375rem 0;
    font-family: var(--rflex-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--rflex-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    list-style: none;
    transition: color 0.15s ease;
}
.rflex-faq__item summary::-webkit-details-marker { display: none; }
.rflex-faq__item summary::after {
    content: '+';
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--rflex-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
}
.rflex-faq__item[open] > summary::after {
    content: '\2212';
    color: var(--pt-tint);
}
.rflex-faq__item[open] > summary { color: var(--pt-tint); }
.rflex-faq__body {
    padding: 0 0 1.375rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--rflex-text-secondary);
    max-width: 720px;
}
.rflex-faq__body a { color: var(--pt-tint); text-decoration: none; }
.rflex-faq__body a:hover { text-decoration: underline; }
.rflex-faq__body code {
    font-family: var(--rflex-font-mono);
    font-size: 0.875em;
    background: var(--pt-tint-soft);
    color: var(--pt-tint);
    border-radius: 4px;
    padding: 0.1em 0.4em;
}


/* ═══════════════════════════════════════════════════════
   PRICING CARD (single-SKU, reused on landing + pricing pages)
   ═══════════════════════════════════════════════════════ */
/* ── PAYG calculator card — controls left, live price summary right ── */
.rflex-pricing-card {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid var(--rflex-border);
    border-radius: var(--rflex-radius-lg);
    overflow: hidden;
    box-shadow: var(--rflex-shadow-lg);
    background: #ffffff;
}

/* Left: interactive calculator */
.rflex-pricing-card__calc {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
}
.rflex-pricing-card__eyebrow {
    align-self: flex-start;
    font-family: var(--rflex-font);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pt-tint);
    background: var(--pt-tint-soft);
    border: 1px solid var(--pt-tint-border);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.rflex-pricing-card__name {
    font-family: var(--rflex-font-display);
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    color: var(--rflex-text);
    margin: 0;
}
.rflex-pricing-card__sub {
    margin: 0.375rem 0 1.625rem;
    color: var(--rflex-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}
.rflex-pricing-card__readout {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.875rem;
}
.rflex-pricing-card__readout-val {
    font-family: var(--rflex-font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--rflex-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.rflex-pricing-card__readout-unit {
    font-family: var(--rflex-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pt-tint);
}
.rflex-pricing-card__slider { margin-bottom: 1.75rem; }
.rflex-pricing-card__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e6ebf3;
    outline: none;
    cursor: pointer;
}
.rflex-pricing-card__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pt-tint);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.rflex-pricing-card__range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.rflex-pricing-card__range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pt-tint);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5);
    cursor: pointer;
}
.rflex-pricing-card__slider-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--rflex-text-muted);
    letter-spacing: 0.02em;
}
.rflex-pricing-card__features {
    list-style: none;
    margin: auto 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rflex-border);
    display: grid;
    gap: 0.6rem;
}
.rflex-pricing-card__features li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--rflex-text-secondary);
}
.rflex-pricing-card__check-inline {
    color: var(--pt-tint);
    flex-shrink: 0;
}

/* Right: navy live-price summary */
.rflex-pricing-card__summary {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem 2rem;
    background: var(--rflex-hero-gradient);
    color: #ffffff;
    overflow: hidden;
}
.rflex-pricing-card__summary::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
    pointer-events: none;
}
.rflex-pricing-card__summary-label {
    position: relative;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 0.625rem;
}
.rflex-pricing-card__total-line {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
    line-height: 1;
}
.rflex-pricing-card__total-cur {
    font-family: var(--rflex-font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-top: 0.45rem;
}
.rflex-pricing-card__total {
    font-family: var(--rflex-font-display);
    font-size: clamp(2.75rem, 6vw, 3.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.035em;
}
.rflex-pricing-card__rate {
    position: relative;
    margin: 0.5rem 0 1.75rem;
    font-size: 0.875rem;
    color: #aebed6;
}
.rflex-pricing-card__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #ffffff;
    color: var(--rflex-navy);
    font-family: var(--rflex-font);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rflex-pricing-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    background: #f5f3ff;
    color: var(--rflex-navy);
}
.rflex-pricing-card__cta-icon { color: currentColor; }
.rflex-pricing-card__validity {
    position: relative;
    margin: 0.875rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ═══════════════════════════════════════════════════════
   PRICING PAGE SECTIONS
   ═══════════════════════════════════════════════════════ */
.rflex-pr-section {
    padding: 5.5rem 0;
    background: var(--rflex-bg);
}
.rflex-pr-section--alt {
    background: var(--rflex-bg-alt);
}

/* ─── Included list ─── */
.rflex-included-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 880px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
}
.rflex-included-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rflex-border);
}
.rflex-included-item strong {
    font-family: var(--rflex-font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--rflex-text);
    letter-spacing: -0.005em;
}
.rflex-included-item span {
    color: var(--rflex-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   Breakpoints: 1440, 1280, 992, 768, 480px
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1440px) {
    .rflex-hero__split { gap: 3rem; }
}

@media (max-width: 1280px) {
    .rflex-hero__split { gap: 2.5rem; }
    .rflex-usecases { grid-template-columns: repeat(2, 1fr); }
    .rflex-content-row { gap: 3.5rem; }
    .rflex-features-bar__item { padding: 0 1.75rem; }
}

@media (max-width: 992px) {
    .rflex-hero { padding: 4.5rem 0 4rem; }
    .rflex-hero__split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .rflex-hero__content { max-width: 640px; margin: 0 auto; }
    .rflex-hero__actions { justify-content: center; }
    .rflex-hero__trust { justify-content: center; }
    .rflex-hero__price { margin: 0 auto; }

    .rflex-section { padding: 4rem 0; }
    .rflex-pr-section { padding: 4rem 0; }
    .rflex-section-head { margin-bottom: 3rem; }

    .rflex-features-bar__grid { flex-wrap: wrap; gap: 1rem 0; }
    .rflex-features-bar__item { padding: 0.25rem 1.5rem; }
    .rflex-features-bar__divider { display: none; }

    .rflex-content-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3.5rem;
        text-align: left;
    }
    .rflex-content-row--reverse { direction: ltr; }

    .rflex-code-section { grid-template-columns: 1fr; gap: 2.5rem; }
    .rflex-usecases { grid-template-columns: repeat(2, 1fr); }
    .rflex-coverage-list { grid-template-columns: 1fr; column-gap: 0; }
    .rflex-included-list { grid-template-columns: 1fr; column-gap: 0; }

    .rflex-tradeoffs__table th,
    .rflex-tradeoffs__table td { padding: 0.75rem 1rem; font-size: 0.875rem; }
}

@media (max-width: 768px) {
    .rflex-wrap { padding: 0 1.25rem; }

    .rflex-hero { padding: 3.5rem 0 3rem; }
    .rflex-hero__title { font-size: 1.9375rem; }
    .rflex-hero__sub { font-size: 1rem; }
    .rflex-hero__actions { flex-direction: column; width: 100%; align-items: center; }
    .rflex-hero__actions .rflex-btn { width: 100%; max-width: 320px; }

    .rflex-features-bar { padding: 1.5rem 0; }
    .rflex-features-bar__grid { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
    .rflex-features-bar__item { padding: 0; }

    .rflex-section { padding: 3rem 0; }
    .rflex-pr-section { padding: 3rem 0; }

    .rflex-content-row { gap: 2rem; margin-bottom: 3rem; }

    .rflex-code__body { height: 320px; }
    .rflex-code__copy { display: none; }

    .rflex-usecases { grid-template-columns: 1fr; }

    .rflex-tradeoffs__table { font-size: 0.8125rem; }
    .rflex-tradeoffs__table th,
    .rflex-tradeoffs__table td { padding: 0.625rem 0.875rem; }

    .rflex-pricing-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .rflex-hero__title { font-size: 1.6875rem; }
    .rflex-hero__trust { gap: 0.5rem; }
    .rflex-hero__price-amount { font-size: clamp(3.5rem, 16vw, 5rem); }

    .rflex-usecase { padding: 1.5rem; }
    .rflex-code .db-tabs [data-tab] { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
    .rflex-code [data-tab-panel] pre { padding: 1rem; font-size: 0.75rem; }
    .rflex-code__body { height: 280px; }
    .rflex-code-section__links { flex-direction: column; }
    .rflex-code-section__links .rflex-btn { width: 100%; }

    .rflex-tradeoffs__cta { flex-direction: column; align-items: center; gap: 0.75rem; }
    .rflex-tradeoffs__cta .rflex-btn { width: 100%; max-width: 320px; }
    .rflex-included-list { column-gap: 0; }
}

@media (min-width: 1920px) {
    .rflex-wrap { padding: 0 3rem; }
    .rflex-hero { padding: 7rem 0 6rem; }
    .rflex-hero__title { font-size: 3.5rem; }
    .rflex-section { padding: 7rem 0; }
    .rflex-pr-section { padding: 7rem 0; }
}

@media (min-width: 2560px) {
    :root { --rflex-wrap: 1600px; }
    .rflex-hero__title { font-size: 4rem; }
    .rflex-section-head h2 { font-size: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rflex-btn,
    .rflex-usecase,
    .rflex-content-row__visual,
    .rflex-pricing-card__cta { transition: none !important; }
    .rflex-usecase:hover { transform: none !important; }
    .rflex-code-section__langs { transition: none !important; }
}
