:root {
    --rcp-primary: #4F46E5; --rcp-primary-light: #EEF2FF;
    --rcp-bg: #F8FAFC; --rcp-text: #0F172A; --rcp-muted: #64748B;
  }
  * { box-sizing: border-box; }
  html, body { overflow-x: hidden; }
  body { margin: 0; background: var(--rcp-bg); color: var(--rcp-text); font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
  h1, h2 { font-family: 'Plus Jakarta Sans', sans-serif; margin: 0; }
  p { margin: 0; line-height: 1.7; }

  .rcp-wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
  .rcp-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--rcp-primary-light); color: var(--rcp-primary); font-weight: 700; font-size: 12.5px; }
  .rcp-hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--rcp-primary); }
  .rcp-page-hero { padding: 72px 0 40px; }
  .rcp-page-hero h1 { font-size: 38px; font-weight: 800; margin: 18px 0 12px; }
  .rcp-page-hero p { color: var(--rcp-muted); font-size: 16px; }

  .rcp-prose { padding: 8px 0 96px; }
  .rcp-prose p { margin-bottom: 18px; color: var(--rcp-text); font-size: 15px; }
  .rcp-prose h2 { font-size: 20px; font-weight: 800; margin: 32px 0 12px; }
  .rcp-prose a { color: var(--rcp-primary); font-weight: 600; text-decoration: none; }

  @media (max-width: 640px) { .rcp-page-hero h1 { font-size: 28px; } }

  /* ---- Shared header/nav/footer styling (self-contained — does not rely
     on the external css/style.css file loading) ---- */
  .rc2-nav { position: sticky; top: 0; z-index: 50; padding: 16px 24px; background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #E2E8F0; }
  .rc2-nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .rc2-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .rc2-logo-box { width: 40px; height: 40px; background: #4F46E5; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 18px; }
  .rc2-logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #0F172A; font-family: 'Plus Jakarta Sans', sans-serif; }
  .rc2-logo-text span { color: #4F46E5; }
  .rc2-logo-img { height: 38px; width: auto; display: block; }
  .rc2-nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
  .rc2-nav-links a { color: #475569; text-decoration: none; transition: color 0.15s ease; }
  .rc2-nav-links a:hover, .rc2-nav-links a[aria-current="page"] { color: #4F46E5; }
  .rc2-nav-actions { display: flex; align-items: center; gap: 12px; }
  .rc2-btn-login { font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; }
  .rc2-btn-login:hover { color: #4F46E5; }
  .rc2-btn-pill { background: #4F46E5; color: #fff; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 20px -8px rgba(79,70,229,0.45); transition: background 0.15s ease; display: inline-block; }
  .rc2-btn-pill:hover { background: #4338CA; }
  .rc2-menu-btn { display: none; width: 36px; height: 36px; border: 1px solid #E2E8F0; border-radius: 8px; align-items: center; justify-content: center; background: none; cursor: pointer; font-size: 18px; }
  .rc2-mobile-menu { display: none; position: fixed; inset: 0; z-index: 40; background: #fff; padding: 96px 24px 24px; }
  .rc2-mobile-menu.open { display: block; }
  .rc2-mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid #E2E8F0; font-weight: 600; color: #334155; text-decoration: none; }
  .rc2-mobile-menu a[aria-current="page"] { color: #4F46E5; }
  .rc2-mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .rc2-mobile-actions a { text-align: center; border-radius: 999px; padding: 14px; border: 1px solid #E2E8F0; font-weight: 700; text-decoration: none; color: #0F172A; }
  .rc2-mobile-actions a.rc2-btn-pill { border: none; color: #fff; }
  @media (max-width: 860px) {
    .rc2-nav-links { display: none; }
    .rc2-btn-login { display: none; }
    .rc2-btn-pill { display: none; }
    .rc2-menu-btn { display: flex; }
    .rc2-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
  }
  @media (max-width: 480px) {
    .rc2-footer-grid { grid-template-columns: 1fr !important; }
  }

  /* ---- Light/Dark mode: same variable names, dark values only kick in
     when <html data-theme="dark">. Header stays light and footer stays
     dark always (by design, and so the logo — which has no light variant —
     always sits on a background it's visible against). ---- */
  :root[data-theme="dark"] {
    --rcp-bg: #0B1220;
    --rcp-surface: #131C2E;
    --rcp-text: #F1F5F9;
    --rcp-muted: #94A3B8;
    --rcp-muted-light: #64748B;
    --rcp-border: #263449;
  }

  .rcp-theme-toggle { width: 36px; height: 36px; border-radius: 999px; border: 1px solid #E2E8F0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; flex-shrink: 0; margin-right: 4px; }
  [data-theme="dark"] .rcp-theme-toggle .rcp-sun { display: none; }
  .rcp-theme-toggle .rcp-moon { display: none; }
  [data-theme="dark"] .rcp-theme-toggle .rcp-moon { display: inline; }
