/* ============================================================
   REALIVO POLISH — overrides loaded after all other CSS
   No structural changes. Only quiet refinements per audit P6.
   ============================================================ */

/* 1. Unify brass colour: header uses #C0A977, home uses #C9A961.
      Move header to canonical #C9A961. */
:root {
    --rv-brand: #C9A961 !important;
    --rv-brand2: rgba(201,169,97,0.18) !important;
}

/* 2. Body base 14px → 16px (FT-standard). Keep mono/eyebrow scales unchanged. */
body { font-size: 16px; }
.rv2-page p, .rv2-page li { font-size: 16px; line-height: 1.65; }

/* 3. Restore visible focus rings — accessibility critical for institutional buyers */
.rv2-page :focus-visible,
.rv-header :focus-visible,
.rv-footer :focus-visible,
.rv-mobile-overlay :focus-visible {
    outline: 2px solid var(--brass, #C9A961) !important;
    outline-offset: 3px;
    border-radius: 2px;
}

/* 4. Tabular nums for all numeric displays */
.rv2-strip__n, .rv2-caps__num,
.rv2-pillar__num, .rv2-feature__num,
.rv2-phero__strip-n, .rv2-pipeline__n,
.rv2-story__amount, .rv2-authority__num,
.rv2-mandate__detail {
    font-variant-numeric: tabular-nums;
}

/* 5. text-wrap: balance on display headlines — single CSS line, premium uplift */
.rv2-h1, .rv2-h2, .rv2-h,
.rv2-hero h1, .rv2-phero h1, .rv2-trust-hero h1,
.rv2-sec-head h2, .rv2-stories__h, .rv2-pipeline__h,
.rv2-founder__h, .rv2-faq2 summary {
    text-wrap: balance;
}

/* 6. Replace header pill flag emojis with mono country letters (HVS-style) */
.rv-phones__flag {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: var(--brass, #C9A961) !important;
    background: rgba(201,169,97,0.06) !important;
    padding: 3px 6px !important;
    border-radius: 2px !important;
    border: 1px solid rgba(201,169,97,0.2) !important;
    text-transform: uppercase;
}

/* 7. Card hover quieter (Aman, not Stripe) */
.rv2-case:hover, .rv2-tx:hover, .rv2-team-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18) !important;
}

/* 8. Quote glyph subtle on testimonials (if present) */
.rv2-faq__q { font-feature-settings: 'kern', 'liga', 'calt'; }

/* 9. Prefers-reduced-motion — kill the cursor + particle effects respectfully */
@media (prefers-reduced-motion: reduce) {
    .rv2-hero__particles, .rv2-ticker__track { animation: none !important; }
    .rv2-cursor, .rv2-cursor--ring { display: none !important; }
    .rv2-reveal { opacity: 1 !important; transform: none !important; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 10. Smooth scrolling (only when user hasn't asked for reduced motion) */
@media not (prefers-reduced-motion: reduce) {
    html { scroll-behavior: smooth; }
}

/* 11. Slight type weight bump in body for retina (small but felt) */
.rv2-page p { -webkit-font-smoothing: antialiased; }
.rv2-hero__sub, .rv2-phero__sub { font-weight: 400; }

/* 12. Section padding rhythm — lock 8pt scale: 120/80/56 */
.rv2-sec { padding: 120px 0; }
@media (max-width: 900px)  { .rv2-sec { padding: 80px 0; } }
@media (max-width: 600px)  { .rv2-sec { padding: 56px 0; } }

/* 13. footer-bottom run-on prose → tight regulatory note */
.rv-footer__bottom { font-feature-settings: 'tnum'; }
