/* Renncora case (5 Nov): same story method as BroadMoney, its own flavour. Notes are chat bubbles (it's a social app),
   the paper sketches sit in a dark night sketchbook in chalk and magenta, before/after screens wipe with a slider,
   and the feed prototype swipes up like the real thing. Shares the phone/prototype parts from bm.css. */
.rn { --mag: #D61FCB; --vio: #5B2BE0; }

/* hero: the widened photo, whole, with the sun breathing across it */
.rn-film { position: relative; margin: 0 var(--pad); aspect-ratio: 16 / 9; overflow: hidden; background: #6f7f99; }
.rn-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* phones: Renncora's screens are 412 x 917 */
.rn .bm-ph { aspect-ratio: 412 / 917; border-radius: 8.5% / 3.8%; }
.rn .bm-proto .bm-ph { width: min(290px, 100%); }
.rn .bm-tap { background: rgba(214, 31, 203, 0.28); }
/* the feed swipes up, like a real vertical feed */
.bm-proto[data-dir="up"] .bm-ph img { transform: translateY(14%); }
.bm-proto[data-dir="up"] .bm-ph img.is-on { transform: none; }
.bm-proto[data-dir="up"] .bm-ph img.is-off { transform: translateY(-14%); }
.bm-tap.is-swipe { animation: rn-swipe 0.62s var(--ease); }
@keyframes rn-swipe { 0% { opacity: 0; transform: translateY(0) scale(1.2); } 25% { opacity: 1; transform: translateY(0) scale(0.9); } 100% { opacity: 0; transform: translateY(-360%) scale(0.9); } }

/* two flows side by side (voice and video AI) */
.rn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); margin: 0 var(--pad) 0 var(--col); max-width: 900px; }
.rn-pair .bm-proto { margin: 0; grid-template-columns: 1fr; gap: 22px; }
.rn-pair .bm-proto .bm-ph { width: min(260px, 100%); justify-self: start; }
.rn-pair h3 { margin: 0 0 4px; font-weight: 500; font-size: 15px; }

/* ---- real square sticky notes: a darker adhesive strip at the top, the bottom corner lifting off the page with its
   own shadow underneath. Renncora's own colours (lilac, mint, sky, peach, lemon-lime), not BroadMoney's. ---- */
.rn-notes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); margin: 0 var(--pad) 0 var(--col); max-width: 1180px; padding: 10px 0 30px; }
.rn-note { position: relative; margin: 0; aspect-ratio: 1; padding: 13% 11% 11%; background: var(--c); transform: rotate(var(--t)); border-radius: 1px 1px 2px 14% / 1px 1px 2px 10%;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0) 16%), linear-gradient(160deg, rgba(255, 255, 255, 0.4), transparent 45%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 2px 3px -1px rgba(0, 0, 0, 0.08), 10px 18px 16px -12px rgba(40, 20, 50, 0.38); transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1); }
.rn-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 15%; height: 11%; border-radius: 0 0 2px 100% / 0 0 2px 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.55) 48%, rgba(0, 0, 0, 0.12) 100%); }
.rn-note:hover { transform: rotate(0deg) translateY(-5px); }
.rn-note b { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(17, 17, 17, 0.8); }
.rn-note p { margin: 0; font-family: "Caveat", cursive; font-size: clamp(18px, 1.4vw, 23px); line-height: 1.06; color: #1d1620; }
.rn-note:nth-child(1) { --c: #E3D9FB; --t: -2deg; }
.rn-note:nth-child(2) { --c: #CDEFE0; --t: 1.5deg; }
.rn-note:nth-child(3) { --c: #FFD8BF; --t: -1deg; }
.rn-note:nth-child(4) { --c: #D2E6FA; --t: 2deg; }
.rn-note:nth-child(5) { --c: #E6F2B8; --t: -1.4deg; }

/* ---- live: the stream plays, hearts, likes and gifts keep pouring up the right side ---- */
.rn-live video { object-fit: cover; }
.rn-fly { position: absolute; z-index: 2; right: 6%; bottom: 18%; width: 22%; height: 55%; pointer-events: none; }
.rn-fly i { position: absolute; bottom: 0; left: var(--x); font-style: normal; font-size: clamp(13px, 1.3vw, 18px); opacity: 0; animation: rn-up var(--d) linear infinite; animation-delay: var(--w); animation-play-state: paused; }
.rn-live.is-on .rn-fly i { animation-play-state: running; }
@keyframes rn-up { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 12% { opacity: 1; transform: translate(-4px, -12%) scale(1.05); } 50% { transform: translate(6px, -160%) scale(1); } 85% { opacity: 0.9; } 100% { opacity: 0; transform: translate(-6px, -330%) scale(0.85); } }
.rn-fly i:nth-child(1) { --x: 60%; --d: 2.4s; --w: 0s; } .rn-fly i:nth-child(2) { --x: 20%; --d: 2.8s; --w: 0.3s; }
.rn-fly i:nth-child(3) { --x: 45%; --d: 3.1s; --w: 0.7s; } .rn-fly i:nth-child(4) { --x: 70%; --d: 2.2s; --w: 0.9s; }
.rn-fly i:nth-child(5) { --x: 10%; --d: 2.9s; --w: 1.2s; } .rn-fly i:nth-child(6) { --x: 55%; --d: 2.6s; --w: 1.5s; }
.rn-fly i:nth-child(7) { --x: 30%; --d: 2.3s; --w: 1.7s; } .rn-fly i:nth-child(8) { --x: 75%; --d: 2.7s; --w: 2s; }
.rn-fly i:nth-child(9) { --x: 15%; --d: 3.2s; --w: 2.3s; } .rn-fly i:nth-child(10) { --x: 50%; --d: 2.5s; --w: 2.6s; }
.rn-fly i:nth-child(11) { --x: 65%; --d: 2.1s; --w: 0.5s; } .rn-fly i:nth-child(12) { --x: 35%; --d: 2.9s; --w: 1.9s; }

/* ---- night sketchbook: chalk on dark dot paper, magenta marker ---- */
.rn-sketch { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 2vw, 30px); margin: 0 var(--pad) 0 var(--col); max-width: 900px; padding: clamp(22px, 3vw, 46px); border-radius: 6px; background-color: #1E1A24; background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.2px); background-size: 18px 18px; box-shadow: 0 40px 70px -45px rgba(30, 10, 40, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.04); transform: rotate(0.5deg); }
.rn-sketch figure { margin: 0; }
.rn-sketch svg { display: block; width: 100%; height: auto; overflow: visible; }
.rn-sketch .ch { fill: none; stroke: #F4EFE6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.92; }
.rn-sketch .mg { fill: none; stroke: #FF4FD8; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rn-sketch .glass { fill: rgba(255, 255, 255, 0.10); stroke: #F4EFE6; stroke-width: 1.6; }
.rn-sketch .t { font-family: "Caveat", cursive; font-size: 22px; fill: #F4EFE6; }
.rn-sketch .t.m { fill: #FF4FD8; }
.rn-sketch figcaption { margin-top: 10px; text-align: center; font-family: "Caveat", cursive; font-size: 24px; color: #F4EFE6; }
.rn-sketch .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1); }
.rn-sketch.is-in .draw { stroke-dashoffset: 0; }

/* ---- before / after: drag to wipe ---- */
.rn-cmp { --p: 50%; position: relative; width: min(300px, 70vw); aspect-ratio: 412 / 917; margin: 0 0 0 var(--col); border-radius: 8.5% / 3.8%; overflow: hidden; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 50px 90px -50px rgba(60, 20, 70, 0.5); user-select: none; touch-action: pan-y; }
.rn-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.rn-cmp .rn-cmp__a { clip-path: inset(0 0 0 var(--p)); }
.rn-cmp__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12); pointer-events: none; }
.rn-cmp__bar::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.rn-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rn-cmp__k { position: absolute; top: 12px; z-index: 2; padding: 4px 8px; border-radius: 99px; background: rgba(17, 17, 17, 0.6); color: #fff; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.rn-cmp__k--b { left: 12px; } .rn-cmp__k--a { right: 12px; }
.rn-cmpw { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; }
.rn-cmpw p { margin: 0; max-width: 16em; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

@media (max-width: 760px) {
  .rn-film { aspect-ratio: 4 / 3; }
  .rn-film video { object-position: 50% 50%; }
  .rn-notes { grid-template-columns: 1fr 1fr; margin-left: var(--pad); gap: 18px; }
  .rn-note:nth-child(5) { grid-column: 1 / -1; aspect-ratio: auto; padding: 22px 20px 24px; }
  .rn-note p { font-size: 20px; }
  .rn-sketch { grid-template-columns: 1fr 26px 1fr; gap: 6px; padding: 16px 12px; margin-left: var(--pad); }
  .rn-sketch figcaption { font-size: 16px; }
  .rn-pair { grid-template-columns: 1fr; margin-left: var(--pad); }
  .rn-pair .bm-proto .bm-ph { width: 64vw; justify-self: center; }
  .rn .bm-proto .bm-ph { width: 64vw; }
  .rn-cmpw { margin-left: var(--pad); }
  .rn-cmp { margin: 0 auto; width: 70vw; }
}
@media (prefers-reduced-motion: reduce) { .rn-fly { display: none; } .rn-sketch .draw { transition: none; stroke-dashoffset: 0; } }
.rn-cmpw { margin: 0 var(--pad) 0 var(--col); }
.rn-cmpw .rn-cmp { margin: 0; }
@media (max-width: 760px) { .rn-cmpw { margin-left: var(--pad); justify-content: center; } .rn-cmpw .rn-cmp { width: 70vw; } }

/* the splash pair: video prototype and image prototype, the same size */
.rn-pair .bm-proto[data-rec] .bm-ph video { object-position: center; }
.rn .bm-proto[data-rec] .bm-ph { background: #111; }
/* profile row: the before/after slider and the profile phone are exactly the same size */
.rn .rn-cmpw .rn-cmp, .rn .rn-cmpw__ph .bm-ph { width: min(280px, 42vw); }
.rn-cmpw__ph { margin: 0; grid-template-columns: 1fr; gap: 18px; max-width: none; }
.rn .rn-cmpw__ph .bm-ph { justify-self: start; }
@media (max-width: 760px) {
  .rn-cmpw { gap: 14px; align-items: flex-start; flex-wrap: nowrap; }
  .rn .rn-cmpw:has(.rn-cmpw__ph) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .rn .rn-cmpw:has(.rn-cmpw__ph) .rn-cmp, .rn .rn-cmpw__ph, .rn .rn-cmpw__ph .bm-ph { width: 100%; min-width: 0; }
  .rn-cmpw:has(> p) { flex-wrap: wrap; }
  .rn .rn-cmpw:has(> p) .rn-cmp { width: 64vw; }
  .rn-cmpw__ph .bm-steps--row { font-size: 12px; gap: 4px 12px; }
}
.rn-cmpw:has(.rn-cmpw__ph) { align-items: flex-start; }

/* phones: notes keep inside the page */
@media (max-width: 760px) {
  .rn-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-note { min-width: 0; aspect-ratio: auto; min-height: 42vw; }
}
