/* Shared chrome for every demo page: the Runeflake bar on top, the CTA strip at the
   bottom. Everything between them belongs to the demo's own stylesheet, so all
   selectors here are rf- prefixed and nothing here styles bare elements except the reset. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rf-skip { position: absolute; left: -9999px; z-index: 100; }
.rf-skip:focus { left: 12px; top: 8px; background: #141218; color: #fff; padding: 8px 14px; border-radius: 8px; font: 600 14px Figtree, system-ui, sans-serif; }

.rf-bar { position: relative; z-index: 50; background: #0d0d11; color: #fff; font: 500 13px/1.3 Figtree, system-ui, sans-serif; }
.rf-bar__in { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); min-height: 48px;
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.rf-bar a { color: inherit; text-decoration: none; }
.rf-bar__logo { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.rf-bar__logo span { background: #d9f26b; color: #141218; letter-spacing: .06em; font-size: 10.5px; padding: 3px 7px; border-radius: 999px; }
.rf-bar__crumb { color: rgba(255,255,255,.62); }
.rf-bar__crumb b { color: #fff; font-weight: 600; }
.rf-bar__note { margin-left: auto; color: rgba(255,255,255,.62); display: flex; align-items: center; gap: 8px; }
.rf-bar__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9f26b; }
.rf-bar__nav { display: flex; gap: 6px; }
.rf-bar__nav a { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 11px; }
.rf-bar__nav a:hover { background: rgba(255,255,255,.1); }
.rf-bar a:focus-visible, .rf-foot a:focus-visible { outline: 2px solid #d9f26b; outline-offset: 2px; }
@media (max-width: 900px) { .rf-bar__note { display: none; } .rf-bar__nav { margin-left: auto; } }
@media (max-width: 720px) {
  /* one compact row on phones: logo left, buttons right; the demo's own page names it */
  .rf-bar__in { flex-wrap: nowrap; gap: 10px; min-height: 52px; }
  .rf-bar__crumb { display: none; }
  .rf-bar__nav { gap: 6px; }
  .rf-bar__nav a { padding: 6px 10px; white-space: nowrap; }
}
@media (max-width: 430px) {
  .rf-bar__logo { font-size: 11.5px; letter-spacing: .1em; }
  .rf-bar__logo span { display: none; }
  .rf-bar__nav a.rf-bar__all { display: none; }
}

.rf-foot { background: #0d0d11; color: rgba(255,255,255,.7); font: 400 14px/1.5 Figtree, system-ui, sans-serif; }
.rf-foot__in { max-width: 1320px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.rf-foot strong { color: #fff; font-weight: 600; }
.rf-foot__cta { background: #d9f26b; color: #141218; font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.rf-foot__cta:hover { background: #c6e553; }
.rf-bar__nav a.rf-bar__video { background: #d9f26b; color: #141218; border-color: #d9f26b; font-weight: 700; }
.rf-bar__nav a.rf-bar__video:hover { background: #c6e553; }

/* video modal (assets/video-modal.js) */
.rf-vm { border: 0; padding: 0; background: transparent; max-width: min(1100px, calc(100vw - 32px)); width: 100%; color: #fff; }
.rf-vm::backdrop { background: rgba(8, 8, 12, .82); backdrop-filter: blur(4px); }
.rf-vm[open] { animation: rf-vm-in .22s ease both; }
@keyframes rf-vm-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.rf-vm__box { background: #0d0d11; border-radius: 18px; padding: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); font: 400 14px/1.4 Figtree, system-ui, sans-serif; }
.rf-vm__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; }
.rf-vm__title { margin: 0; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.rf-vm__close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 1; }
.rf-vm__close:hover { background: rgba(255,255,255,.14); }
.rf-vm__video { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; border-radius: 10px; background: #000; }
.rf-vm__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 4px 2px; color: rgba(255,255,255,.62); }
.rf-vm__try { color: #d9f26b; font-weight: 700; text-decoration: none; }
.rf-vm__try:hover { text-decoration: underline; }
.rf-vm :focus-visible { outline: 2px solid #d9f26b; outline-offset: 2px; }
html.rf-vm-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .rf-vm[open] { animation: none; } }

/* floating "Book a call" CTA (assets/cta.js) */
.rf-cta { position: fixed; right: 20px; bottom: 20px; z-index: 60; font: 400 14px/1.45 Figtree, system-ui, sans-serif;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.rf-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rf-cta__card { position: relative; width: 300px; background: #0d0d11; color: #fff; border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.rf-cta__k { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.rf-cta__dot { width: 8px; height: 8px; border-radius: 50%; background: #d9f26b; box-shadow: 0 0 0 4px rgba(217,242,107,.18); flex: none; }
.rf-cta__h { margin: 10px 0 0; font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; padding-right: 22px; }
.rf-cta__p { margin: 6px 0 0; color: rgba(255,255,255,.66); font-size: 13.5px; }
.rf-cta__btn { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; background: #d9f26b; color: #141218;
  font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.rf-cta__btn:hover { background: #c6e553; }
.rf-cta__x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.rf-cta__x:hover { background: rgba(255,255,255,.16); }
.rf-cta__pill { display: none; align-items: center; gap: 10px; background: #d9f26b; color: #141218; font-weight: 800; font-size: 15px; letter-spacing: -.01em;
  padding: 14px 22px 14px 16px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 0 0 2px #0d0d11, 0 0 0 5px rgba(217,242,107,.35), 0 18px 36px -12px rgba(0,0,0,.55); transition: background .2s, transform .2s; }
.rf-cta__pill:hover { background: #c6e553; transform: translateY(-1px); }
.rf-cta__ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.rf-cta.is-on .rf-cta__pill { animation: rf-cta-ping 2.4s ease-out .6s 3; }
@keyframes rf-cta-ping {
  0% { box-shadow: 0 0 0 2px #0d0d11, 0 0 0 5px rgba(217,242,107,.35), 0 18px 36px -12px rgba(0,0,0,.55); }
  40% { box-shadow: 0 0 0 2px #0d0d11, 0 0 0 14px rgba(217,242,107,0), 0 18px 36px -12px rgba(0,0,0,.55); }
  100% { box-shadow: 0 0 0 2px #0d0d11, 0 0 0 5px rgba(217,242,107,.35), 0 18px 36px -12px rgba(0,0,0,.55); }
}
.rf-cta.is-min .rf-cta__card { display: none; }
.rf-cta.is-min .rf-cta__pill { display: inline-flex; }
.rf-cta a:focus-visible, .rf-cta button:focus-visible { outline: 2px solid #d9f26b; outline-offset: 3px; }
.rf-cta .rf-cta__pill:focus-visible { outline: 3px solid #0d0d11; outline-offset: 4px; }
html.rf-vm-open .rf-cta { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  /* phones: a slim bar across the bottom instead of a card */
  .rf-cta { left: 12px; right: 12px; bottom: 12px; }
  .rf-cta__card { width: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 12px 12px 16px; border-radius: 16px; }
  .rf-cta__k, .rf-cta__p { display: none; }
  .rf-cta__h { margin: 0; font-size: 15px; padding: 0; }
  .rf-cta__btn { margin: 0; padding: 10px 14px; font-size: 14px; grid-row: 1; grid-column: 2; }
  .rf-cta__x { position: static; grid-row: 1; grid-column: 3; width: 26px; height: 26px; }
  .rf-cta__card { grid-template-columns: 1fr auto auto; }
  .rf-cta.is-min { left: auto; }
}
@media (prefers-reduced-motion: reduce) { .rf-cta, .rf-cta__pill { transition: none; animation: none !important; } }
/* tablet: keep the bar on one row, shorten the demo name if needed */
@media (max-width: 1100px) {
  .rf-bar__in { flex-wrap: nowrap; }
  .rf-bar__crumb { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rf-bar__nav { flex: none; }
  .rf-bar__nav a { white-space: nowrap; }
}
.rf-cta.is-compact .rf-cta__card { display: none; }
.rf-cta.is-compact .rf-cta__pill { display: inline-flex; }
@media (max-width: 640px) { .rf-cta.is-compact { left: auto; } }
