/* "Your REPA" (repa.html, js/repa-page.js): what a Real Estate Portfolio Account is */
.rx { padding-top: 24px; padding-bottom: 40px; --pp: #3b54a5; }
.rx-hero { background: linear-gradient(135deg, #1b2550 0%, #2c3f8f 60%, #3b54a5 100%); }
.rx-hero::after { background: #ffd76a; opacity: .22; }
.rx-hero h1 { max-width: 22ch; }
.rx-cardwrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 8px 0 0 10px; }
.rx-cardwrap h2 { margin-top: 0; }
.rx-cardwrap p { line-height: 1.55; max-width: 60ch; }
.rx-card { background: linear-gradient(135deg, #1b2550 0%, #2c3f8f 60%, #3b54a5 100%); color: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px rgba(27, 37, 80, .28); transform: rotate(-2deg); }
.rx-k { margin: 0 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.rx-num { margin: 0 0 18px; font-size: 1.3rem; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.rx-val { display: grid; margin: 0 0 14px; } .rx-val span { font-size: .8rem; opacity: .85; } .rx-val strong { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rx-mix { display: flex; gap: 2px; height: 10px; border-radius: 99px; overflow: hidden; }
.rx-legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; }
.rx-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.rx-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.rx-parts div { background: var(--mist, #eef1f6); border-radius: 10px; padding: 10px 12px; }
.rx-parts dt { font-weight: 800; font-size: 1.15rem; color: var(--pp); font-variant-numeric: tabular-nums; } .rx-parts dd { margin: 2px 0 0; font-size: .88rem; color: var(--muted, #5a6478); }
.rx-check { display: grid; gap: 6px; max-width: 420px; } .rx-check label { font-weight: 700; font-size: .92rem; }
.rx-check span { display: flex; gap: 8px; } .rx-check input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line, #dfe3ea); border-radius: 8px; font: inherit; }
.rx-check output { font-size: .9rem; min-height: 1.2em; } .rx-ok { color: #1d7a3a; font-weight: 700; } .rx-bad { color: #b3261e; font-weight: 700; }
.rx-table { border: 1px solid var(--line, #dfe3ea); border-radius: 12px; overflow: hidden; background: #fff; }
.rx-table > div { display: grid; grid-template-columns: 180px 1fr 1fr; border-top: 1px solid var(--line, #dfe3ea); }
.rx-table > div:first-child { border-top: 0; }
.rx-table span { padding: 12px 14px; line-height: 1.45; }
.rx-th { background: var(--ink, #1b2550); color: #fff; font-weight: 800; }
.rx-table [role="rowheader"] { font-weight: 700; background: var(--mist, #eef1f6); }
.rx-table [data-label="REPA"] { color: var(--pp); font-weight: 600; }
.rx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .rx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rx-steps { grid-template-columns: 1fr; } }
.rx-two h3 { margin: 0 0 10px; font-size: 1.1rem; }
.rx-levels { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rx-levels li { background: var(--mist, #eef1f6); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; } .rx-levels span { font-size: .9rem; color: var(--muted, #5a6478); }
.rx-who p { margin: 0; line-height: 1.55; } .rx-small { font-size: .9rem; color: var(--muted, #5a6478); }
.rx-not { margin: 0; padding-left: 20px; line-height: 1.6; max-width: 76ch; }
.rx-end { text-align: center; background: var(--mist, #eef1f6); border-radius: 14px; padding: 28px 20px; }
.rx-end .pp-cta { justify-content: center; } .rx-end p { margin: 0 0 16px; }
@media (max-width: 760px) {
  .rx-cardwrap { grid-template-columns: 1fr; padding: 0; } .rx-card { transform: none; }
  .rx-th { display: none !important; }
  .rx-table > div { grid-template-columns: 1fr; }
  .rx-table span { padding: 6px 14px; } .rx-table [role="rowheader"] { padding-top: 10px; }
  .rx-table [role="cell"]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted, #5a6478); }
  .rx-levels { grid-template-columns: 1fr; } .rx-parts { grid-template-columns: 1fr 1fr 1fr; }
}
.rx-free { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 215, 106, .16); border: 1px solid rgba(255, 215, 106, .55); color: #fff; font-size: .95rem; }
.rx-free b { color: #ffd76a; }
.pp-panel .rx-levels { padding: 0; }

/* What is a REPA? (the overview at the top of repa.html) */
.rx-quick { background: #fff; border: 1px solid var(--line, #dfe3ea); border-radius: 16px; padding: clamp(18px, 3vw, 30px); }
.rx-quick h2 { margin: 0 0 10px; } .rx-quick h2 + .rx-def { margin-top: 0; }
.rx-def { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 68ch; margin: 0 0 26px; }
.rx-def b { color: #2c3f8f; }
.rx-reasons { list-style: none; counter-reset: rx; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.rx-reasons li { counter-increment: rx; position: relative; background: var(--mist, #eef1f6); border-radius: 12px; padding: 16px 16px 16px 56px; line-height: 1.5; }
.rx-reasons li::before { content: counter(rx); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #2c3f8f; color: #fff; font-weight: 800; display: grid; place-items: center; }
.rx-reasons b { display: block; color: #1b2550; margin-bottom: 2px; }
.rx-faq { display: grid; gap: 8px; max-width: 820px; }
.rx-faq details { border: 1px solid var(--line, #dfe3ea); border-radius: 10px; padding: 12px 16px; background: #fff; }
.rx-faq summary { font-weight: 700; cursor: pointer; } .rx-faq details[open] summary { margin-bottom: 6px; } .rx-faq p { margin: 0; line-height: 1.55; color: #374061; }
.rx-cta-line { margin: 20px 0 0; }
@media (min-width: 1100px) { .rx-reasons { grid-template-columns: repeat(5, minmax(0, 1fr)); } .rx-reasons li { padding: 54px 16px 16px; } .rx-reasons li::before { top: 14px; left: 16px; } }
