/* ============================================================
   RP-SYSTEM · shared reimagination system (prototype only).
   Extracted from the approved Homepage prototype (fa5dd39) so the
   Mechanism/Product archetypes inherit ONE system. Links AFTER
   theme.css. Does NOT propagate to live pages.
   ============================================================ */

/* ---- Layout + semantic spacing ---- */
.rp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.rp-s  { padding: 42px 0; }   /* tightly related */
.rp-m  { padding: 56px 0; }   /* new chapter */
.rp-break { padding: 84px 0; }
.rp-bound { margin-top: 22px; }
@media (max-width: 640px) { .rp-s { padding: 32px 0; } .rp-m { padding: 40px 0; } .rp-break { padding: 52px 0; } }

/* ---- Type primitives ---- */
.rp-eyebrow { font-family: var(--ff-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-brass-text); margin: 0 0 16px; }
.rp-h2 { font-family: var(--ff-heading); font-size: clamp(31px, 3.8vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); margin: 0; max-width: 20ch; }
.rp-lead { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; color: var(--sub); max-width: 52ch; margin: 18px 0 0; }

/* ---- Split hero (shared primitive; media side/ratio set per page) ---- */
.rp-hero { padding: 44px 0 20px; }
.rp-hero-grid { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 56px; align-items: stretch; }
.rp-hero-editorial { display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.rp-hero-eyebrow { font-family: var(--ff-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-brass-text); margin: 0 0 20px; }
/* Phrase controls the type: generous measure, moderate size → ~2 lines. */
.rp-hero h1 { font-family: var(--ff-heading); font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; line-height: 1.03; letter-spacing: -0.028em; color: var(--ink); margin: 0 0 24px; max-width: 20ch; }
.rp-hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--sub); max-width: 48ch; margin: 0 0 32px; }
.rp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-hero-media { position: relative; border-radius: 24px; overflow: hidden; background: #0b1613; min-height: 480px; box-shadow: 0 40px 80px -48px rgba(11,22,19,0.55); }
.rp-hero-media img, .rp-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .rp-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .rp-hero-media { min-height: 0; width: 100%; order: -1; aspect-ratio: 16 / 10; }
  .rp-hero-editorial { padding: 0; }
  .rp-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- Product-proof canvas grammar (.rp-canvas wraps a product frame) ---- */
.rp-canvas .patient-header { border-radius: 18px 18px 0 0; padding: 18px 24px; border-bottom: none; }
.rp-canvas .patient-header strong { font-size: 17px; }
.rp-canvas .ui-frame { border-radius: 0 0 18px 18px; border-top: none; }
.rp-canvas .ui-frame-bar { padding: 14px 24px; font-size: 12.5px; }
.rp-canvas .ui-frame-body { padding: 26px 28px; }
.rp-canvas .soap-surface { grid-template-columns: 30px 1fr; gap: 14px 18px; font-size: 15.5px; line-height: 1.55; }
.rp-canvas .soap-surface .k { font-size: 14px; }
.rp-canvas .ui-status .rp-lock { margin-right: 4px; }
.rp-sign { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rp-sign .rp-check { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-verdigris-soft); color: var(--brand-verdigris-text); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto; }
.rp-sign .rp-sign-text { font-size: 14px; color: var(--ink); }
.rp-sign .rp-sign-text b { font-weight: 600; }
.rp-sign .rp-illus { margin-left: auto; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* ---- Editorial clickable rows (the shared navigation primitive) ---- */
.rp-erow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 28px; padding: 24px 18px; border-top: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: background .15s ease; }
.rp-erow:last-child { border-bottom: 1px solid var(--line); }
.rp-erow:hover { background: var(--brand-brass-soft); }
.rp-erow:focus-visible { background: var(--brand-brass-soft); outline: 2px solid var(--brand-brass-text); outline-offset: 2px; }
.rp-erow .e-title { font-family: var(--ff-heading); font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); grid-column: 1; grid-row: 1; transition: color .15s ease; }
.rp-erow:hover .e-title, .rp-erow:focus-visible .e-title { color: var(--brand-brass-text); }
.rp-erow .e-desc { font-size: 15px; line-height: 1.5; color: var(--sub); grid-column: 1; grid-row: 2; margin-top: 6px; max-width: 64ch; }
.rp-erow .e-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--brand-brass-text); font-size: 24px; transition: transform .18s ease; }
.rp-erow:hover .e-arrow, .rp-erow:focus-visible .e-arrow { transform: translateX(5px); }
@media (max-width: 560px) { .rp-erow { padding: 18px 14px; } .rp-erow .e-desc { display: none; } .rp-erow.rp-erow-mobhide { display: none; } }

/* ---- Dark trust teaser ---- */
.rp-trust { background: #0B1613; color: #EAF3EE; border-radius: 28px; padding: clamp(44px, 5.5vw, 76px); }
.rp-trust .rp-eyebrow { color: rgba(255,255,255,0.5); }
.rp-trust h2 { font-family: var(--ff-heading); font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; color: #fff; margin: 0; max-width: 22ch; }
.rp-trust p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 56ch; margin: 20px 0 0; }
.rp-trust .rp-trust-strip { margin-top: 26px; }
.rp-trust .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; margin-top: 30px; }
.rp-trust .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---- Dark convert band ---- */
.rp-convert { background: #07110E; padding: 0; }
.rp-convert-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(52px, 6vw, 84px) 32px; }
.rp-convert .rp-eyebrow { color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.rp-convert h2 { font-family: var(--ff-heading); font-size: clamp(34px, 3.3vw, 46px); font-weight: 700; line-height: 1.13; letter-spacing: -0.02em; text-wrap: balance; color: #fff; margin: 0 auto 16px; max-width: 22ch; }
.rp-convert p { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.72); margin: 0 auto 26px; max-width: 50ch; }
.rp-convert-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rp-convert .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; }
.rp-convert .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---- Simplified footer ---- */
.rp-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--paper); }
.rp-footer-grid { max-width: 1160px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
.rp-footer-brand .fb-name { font-family: var(--ff-heading); font-size: 22px; font-weight: 700; color: var(--ink); }
.rp-footer-brand p { font-size: 15px; line-height: 1.55; color: var(--sub); margin: 12px 0 0; max-width: 32ch; }
.rp-fcol h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; font-weight: 500; }
.rp-fcol a { display: block; font-size: 15px; color: var(--sub); text-decoration: none; margin-bottom: 12px; }
.rp-fcol a:hover { color: var(--brand-verdigris-text); }
.rp-footer-strip { max-width: 1160px; margin: 40px auto 0; padding: 24px 32px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--faint); }
@media (max-width: 760px) { .rp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .rp-footer-brand { grid-column: 1 / -1; } }

/* ---- Products mega (restrained; attached to Products) ---- */
.rp-mega { padding: 0; width: 600px; max-width: calc(100vw - 40px); left: auto; right: 0; transform: none; }
.rp-mega-grid { display: grid; grid-template-columns: 1fr 1fr 0.92fr; gap: 0; }
.rp-mega-col { display: block; text-decoration: none; padding: 26px 26px; border-right: 1px solid var(--line); position: relative; transition: background .15s ease; }
.rp-mega-col::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--brand-verdigris); opacity: 0; transition: opacity .15s ease; }
.rp-mega-col:hover { background: var(--bg-tint); }
.rp-mega-col:hover::before { opacity: 1; }
.rp-mega-col:last-child { border-right: none; background: var(--bg-section); }
.rp-mega-col .mc-aud { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-verdigris-text); margin-bottom: 10px; }
.rp-mega-col .mc-name { display: block; font-family: var(--ff-heading); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
.rp-mega-col .mc-desc { display: block; font-size: 13.5px; line-height: 1.5; color: var(--sub); margin: 0; }
.rp-mega-col .mc-go { display: block; margin-top: 16px; font-family: var(--ff-mono); font-size: 12px; color: var(--brand-verdigris-text); font-weight: 600; }
@media (max-width: 900px) { .rp-mega-grid { grid-template-columns: 1fr; } .rp-mega-col { border-right: none; border-top: 1px solid var(--line); } .rp-mega-col:first-child { border-top: none; } }
