/* River product page. Loads after site.css and reuses its tokens, nav, footer,
   buttons, hairlines and the data-reveal / .rv pattern. Mobile first (<960px). */

/* ---------- HERO ---------- */
.rp-hero { padding: 48px 28px 56px; }
.rp-hero .wordmark { margin-top: 4px; }
.rp-hero h1 { margin-top: 28px; font-size: 38px; line-height: 1.06; font-weight: 500; letter-spacing: -1.2px; text-wrap: balance; }
.rp-hero-row { margin-top: 20px; }
.rp-hero-sub { font-size: 16.5px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.rp-hero-ctas { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- STORY ---------- */
.rp-story { padding: 56px 16px 24px; }
.rp-story-head { padding: 0 12px; display: flex; flex-direction: column; gap: 14px; }
.rp-story-head h2 { font-size: 28px; line-height: 1.12; font-weight: 500; letter-spacing: -0.8px; text-wrap: balance; }
.rp-story-head p { font-size: 15px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.rp-grid { margin-top: 36px; }
.rp-steps { display: flex; flex-direction: column; gap: 44px; }
.rp-step { display: flex; flex-direction: column; gap: 10px; }
.rp-step-tx { padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.rp-k { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.rp-step h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 500; letter-spacing: -0.4px; text-wrap: balance; }
.rp-step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.rp-step ul { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rp-step li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.rp-step li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--blue); }
.rp-mstage { margin-top: 8px; width: 100%; overflow: hidden; }
.rp-sticky { display: none; }

/* ---------- SPLIT (River prepares / broker decides) ---------- */
.rp-split { padding: 56px 28px; }
.rp-split h2 { font-size: 28px; line-height: 1.12; font-weight: 500; letter-spacing: -0.8px; text-wrap: balance; }
.rp-cols { margin-top: 28px; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--card); }
.rp-col { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.rp-col + .rp-col { border-top: 1px solid var(--line); }
.rp-col-t { font-size: 17px; font-weight: 500; }
.rp-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rp-col li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.rp-col li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border: 1px solid var(--mut); }
.rp-col.you li::before { background: var(--blue); border-color: var(--blue); }
.rp-note { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--mut); text-wrap: pretty; }

/* ---------- INTEGRATIONS ---------- */
.rp-int { padding: 48px 28px 56px; }
.rp-int-head { display: flex; flex-direction: column; gap: 12px; }
.rp-int-head h2 { font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -0.6px; text-wrap: balance; }
.rp-int-head p { font-size: 14.5px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.rp-int-list { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.rp-int-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); }
.rp-glyph { flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--line); background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.rp-glyph svg { display: block; width: 22px; height: 22px; }
.rp-int-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp-int-n { font-size: 14.5px; font-weight: 500; }
.rp-int-d { font: 500 10.5px var(--mono); color: var(--mut); }
.rp-cov { padding: 48px 28px 56px; }
.rp-cov-grid { margin-top: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); }
.rp-cov-g { border-bottom: 1px solid var(--line); }
.rp-cov-g:last-child { border-bottom: 0; }
.rp-cov-g summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; }
.rp-cov-g summary::-webkit-details-marker { display: none; }
.rp-cov-g summary::after { content: '+'; font: 500 14px var(--mono); color: var(--mut); margin-left: 8px; }
.rp-cov-g[open] summary::after { content: '−'; }
.rp-cov-n { flex: 1; }
.rp-cov-c { font: 500 11px var(--mono); color: var(--blue); }
.rp-cov-g ul { list-style: none; margin: 0; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.rp-cov-g li { font-size: 13.5px; line-height: 1.4; color: var(--ink2); }

/* ---------- MOTION ---------- */
@keyframes rpIn { from { opacity: 0; } to { opacity: 1; } }
.rp-scene { animation: rpIn .35s var(--ease) both; }

/* ---------- TABLET ---------- */
@media (min-width: 600px) and (max-width: 959.98px) {
  .rp-mstage { max-width: 560px; margin-left: auto; margin-right: auto; }
  .rp-int-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- DESKTOP ---------- */
@media (min-width: 960px) {
  .rp-hero { padding: 112px calc(var(--rail) + 24px) 96px; }
  .rp-hero .wordmark { width: 174px; height: 48px; }
  .rp-hero h1 { margin-top: 36px; max-width: 1080px; font-size: clamp(52px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.034em; }
  .rp-hero-row { margin-top: 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .rp-hero-sub { max-width: 600px; font-size: 19px; }
  .rp-hero-ctas { margin-top: 0; flex-direction: row; gap: 12px; flex-shrink: 0; }
  .rp-hero-ctas .btn-primary { height: auto; padding: 14px 22px; }
  .rp-hero-ctas .btn-secondary { height: auto; padding: 13px 22px; }

  .rp-story { padding: 104px var(--rail) 40px; }
  .rp-story-head { padding: 0 24px; display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .rp-story-head h2 { font-size: 44px; line-height: 1.08; letter-spacing: -1.3px; }
  .rp-story-head p { font-size: 16px; line-height: 1.6; padding-bottom: 6px; }
  .rp-grid { margin-top: 24px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .rp-steps { gap: 0; padding-bottom: 28vh; }
  .rp-step { min-height: 86vh; justify-content: center; padding: 48px 0; }
  .rp-step:first-child { min-height: 70vh; }
  .rp-step:last-child { min-height: 80vh; }
  .rp-step-tx { padding: 0; max-width: 440px; gap: 14px; }
  .js .rp-step-tx { opacity: .3; transition: opacity .4s var(--ease); }
  .js .rp-step.on .rp-step-tx { opacity: 1; }
  .rp-k { font-size: 11px; }
  .rp-step h3 { font-size: 28px; letter-spacing: -0.6px; }
  .rp-step p { font-size: 16px; line-height: 1.6; }
  .rp-step li { font-size: 14.5px; }
  .rp-mstage { display: none; }
  .rp-sticky { display: flex; position: sticky; top: 96px; height: calc(100vh - 120px); max-height: 700px; align-items: center; justify-content: center; }
  .rp-sticky [data-rp-stage] { width: 100%; }

  .rp-split { padding: 96px calc(var(--rail) + 24px); }
  .rp-split-in { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .rp-split h2 { font-size: 40px; line-height: 1.1; letter-spacing: -1.1px; }
  .rp-cols { margin-top: 0; grid-template-columns: 1fr 1fr; }
  .rp-col { padding: 28px 28px 32px; gap: 14px; }
  .rp-col + .rp-col { border-top: 0; border-left: 1px solid var(--line); }
  .rp-col-t { font-size: 18px; }
  .rp-col li { font-size: 15px; }
  .rp-note { font-size: 14px; }

  .rp-int { padding: 88px calc(var(--rail) + 24px) 96px; }
  .rp-cov { padding: 88px calc(var(--rail) + 24px) 96px; }
  .rp-cov-grid { margin-top: 36px; display: block; columns: 4; column-gap: 16px; border: 0; background: none; }
  .rp-cov-g { border: 1px solid var(--line); background: var(--card); break-inside: avoid; margin-bottom: 16px; }
  .rp-cov-g:last-child { border-bottom: 1px solid var(--line); }
  .rp-cov-g summary { padding: 18px 20px 12px; font-size: 15px; cursor: default; pointer-events: none; }
  .rp-cov-g summary::after { content: none; }
  .rp-cov-g ul { padding: 0 20px 20px; }
  .rp-int-head { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .rp-int-head h2 { font-size: 32px; letter-spacing: -0.9px; }
  .rp-int-head p { font-size: 15.5px; }
  .rp-int-list { margin-top: 36px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--card); }
  .rp-int-item { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px 24px; border: 0; border-right: 1px solid var(--line); }
  .rp-int-item:last-child { border-right: 0; }
  .rp-int-n { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-scene { animation: none; }
  .js .rp-step-tx { transition: none; }
}
