/* =========================================================
   RELIFY SITE — shared navbar, footer and page kit
   Used by every page. Edit here once; every page updates.
   All classes are prefixed rx- so they never collide with
   older page styles.
   ========================================================= */
:root {
  --rx-ink: #0d1220;
  --rx-ink-2: #4a5262;
  --rx-ink-3: #868d9b;
  --rx-line: rgba(13, 18, 32, .08);
  --rx-line-2: rgba(13, 18, 32, .14);
  --rx-soft: #f5f8ff;
  --rx-navy: #13213f;
  --rx-navy-2: #24457d;
  --rx-royal: #2f54eb;
  --rx-grad: linear-gradient(90deg, #13213f 0%, #172a4d 28%, #1b315a 52%, #203a69 76%, #24457d 100%);
  --rx-dark: #0b0b0d;
  --rx-radius: 24px;
  --rx-ease: cubic-bezier(.16, 1, .3, 1);
  --rx-gutter: 24px;
}

.rx-wrap { width: min(1200px, calc(100% - var(--rx-gutter) * 2)); margin: 0 auto; }
.rx-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.rx-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--rx-ease), background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.rx-btn .rx-ico { width: 15px; height: 15px; transition: transform .25s var(--rx-ease); }
.rx-btn:hover .rx-ico { transform: translateX(2px); }
.rx-btn-primary { color: #fff; background: var(--rx-grad); box-shadow: 0 8px 22px rgba(19, 33, 63, .2), inset 0 1px 0 rgba(255,255,255,.08); }
.rx-btn-primary:hover { color: #fff; transform: none; filter: brightness(1.12); box-shadow: 0 0 0 4px rgba(47,84,235,.14), 0 8px 20px rgba(19,33,63,.16); }
.rx-btn-ghost { color: var(--rx-ink); background: rgba(255,255,255,.75); border-color: var(--rx-line-2); }
.rx-btn-ghost:hover { color: var(--rx-ink); background: #fff; border-color: rgba(13,18,32,.24); }
.rx-btn-white { color: var(--rx-ink); background: #fff; }
.rx-btn-white:hover { color: var(--rx-ink); background: #eef1f6; transform: none; filter: brightness(1.12); box-shadow: 0 0 0 4px rgba(47,84,235,.14), 0 8px 20px rgba(19,33,63,.16); }
.rx-btn-outline-light { color: #fff; border-color: rgba(255,255,255,.26); }
.rx-btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.08); }

/* =========================================================
   NAVBAR — desktop
   ========================================================= */
.rx-nav, .rx-mmenu {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
.rx-nav-link, .rx-btn, .rx-round-btn, .rx-arrow { font-family: inherit; }
.rx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--rx-ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .45s var(--rx-ease), color .3s ease;
}
.rx-nav:not(.is-scrolled):has(.rx-nav-item.open),
.rx-nav:not(.is-scrolled):has(.rx-nav-item:hover) {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--rx-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* At the top: a full-width transparent bar. Once scrolled: a floating pill fades in behind it.
   Only the ::before background animates, so the logo and links never move (no jitter). */
.rx-nav-inner {
  position: relative;
  z-index: 0;
  width: min(1200px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.rx-nav-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -12px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--rx-line);
  border-radius: 0;
  box-shadow: 0 12px 36px rgba(13,18,32,.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, inset .55s var(--rx-ease), border-radius .55s var(--rx-ease);
}
.rx-nav.is-scrolled .rx-nav-inner::before {
  inset: 8px -24px;
  border-radius: 20px;
  opacity: 1;
}
.rx-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.rx-brand img { width: 34px; height: 34px; object-fit: contain; }
.rx-brand span { font-size: 20px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }

.rx-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.rx-nav-item { display: flex; align-items: center; align-self: stretch; }
.rx-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  color: var(--rx-ink-2);
  background: none;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.rx-nav-link:hover,
.rx-nav-item:hover > .rx-nav-link,
.rx-nav-item.open > .rx-nav-link { color: var(--rx-ink); background: rgba(13,18,32,.05); }
.rx-caret { width: 12px; height: 12px; transition: transform .25s ease; }
.rx-nav-item:hover .rx-caret, .rx-nav-item.open .rx-caret { transform: rotate(180deg); }
.rx-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rx-nav-right .rx-btn { min-height: 40px; padding: 0 17px; font-size: 13.5px; }

.rx-dd {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 28px;
  padding: 24px;
  color: var(--rx-ink);
  background: #fff;
  border: 1px solid var(--rx-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(13,18,32,.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .3s var(--rx-ease), visibility 0s linear .3s;
}
.rx-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.rx-dd-4 { grid-template-columns: repeat(4, 1fr); }
.rx-dd-3 { grid-template-columns: repeat(3, 1fr); }
.rx-nav-item:hover .rx-dd, .rx-nav-item.open .rx-dd, .rx-nav-item:focus-within .rx-dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rx-dd-label { margin-bottom: 10px; color: var(--rx-ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.rx-dd-link { display: block; margin: 0 -10px; padding: 9px 10px; color: var(--rx-ink); border-radius: 10px; text-decoration: none; transition: background .15s ease; }
.rx-dd-link:hover { background: #f4f6fa; }
.rx-dd-link strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.rx-dd-link span { display: block; margin-top: 2px; color: var(--rx-ink-3); font-size: 13px; line-height: 1.4; }
.rx-dd-feature { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: -8px -10px -6px; padding: 14px 12px; color: var(--rx-ink); text-decoration: none; border-top: 1px solid var(--rx-line); border-radius: 0 0 12px 12px; transition: background .15s ease; }
.rx-dd-feature:hover { background: #f4f6fa; }
.rx-dd-feature .rx-tile { width: 40px; height: 40px; flex: 0 0 auto; }
.rx-dd-feature-copy { flex: 1; min-width: 0; }
.rx-dd-feature-copy strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.rx-dd-feature-copy span { display: block; margin-top: 2px; color: var(--rx-ink-3); font-size: 13px; line-height: 1.4; }
.rx-dd-new { padding: 4px 10px; color: #24457d; background: #eaf0fb; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 600; }
.rx-dd-feature-arrow { width: 18px; height: 18px; color: var(--rx-ink-3); transition: transform .2s ease, color .2s ease; }
.rx-dd-feature:hover .rx-dd-feature-arrow { color: var(--rx-ink); transform: translateX(3px); }
.rx-round-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--rx-ink); background: #f0f2f6; border: 0; border-radius: 14px; cursor: pointer; }
.rx-round-btn .rx-ico { width: 20px; height: 20px; }
.rx-menu-btn { display: none; }

/* States driven by the hero scroll-story controller */
html body .rx-nav.relify-story-nav-hidden { transform: translate3d(0, -120%, 0); pointer-events: none; }
html body .rx-nav.relify-dark-nav { color: #fff; }
html body .rx-nav.relify-dark-nav .rx-nav-inner::before {
  background: rgba(17,17,19,.86);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}
html body .rx-nav.relify-dark-nav .rx-nav-link { color: rgba(255,255,255,.72); }
html body .rx-nav.relify-dark-nav .rx-nav-link:hover,
html body .rx-nav.relify-dark-nav .rx-nav-item:hover > .rx-nav-link,
html body .rx-nav.relify-dark-nav .rx-nav-item.open > .rx-nav-link { color: #fff; background: rgba(255,255,255,.08); }
html body .rx-nav.relify-dark-nav .rx-btn-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.22); }
html body .rx-nav.relify-dark-nav .rx-btn-ghost:hover { background: rgba(255,255,255,.08); }
html body .rx-nav.relify-dark-nav .rx-btn-primary { color: var(--rx-ink); background: #fff; box-shadow: none; }
html body .rx-nav.relify-dark-nav .rx-round-btn { color: #fff; background: rgba(255,255,255,.1); }
html body .rx-nav.relify-dark-nav.relify-white-logo-fallback .logo-img { filter: brightness(0) invert(1); }

/* =========================================================
   MOBILE MENU (CleanShot style)
   ========================================================= */
.rx-mmenu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  color: var(--rx-ink);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.rx-mmenu.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.rx-mmenu-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: env(safe-area-inset-top) 20px 0;
  border-bottom: 1px solid var(--rx-line);
}
.rx-mmenu-head .rx-brand img { width: 32px; height: 32px; }
.rx-mmenu-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); }
.rx-mmenu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.rx-mmenu-actions .rx-btn { width: 100%; min-height: 50px; border-radius: 14px; font-size: 15.5px; }
.rx-mmenu-label { margin: 26px 0 8px; color: var(--rx-ink-3); font-size: 14px; font-weight: 500; }
.rx-mmenu-actions + .rx-mmenu-label { margin-top: 0; }
.rx-mmenu-feature { display: flex; align-items: center; gap: 14px; min-height: 58px; color: var(--rx-ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.rx-tile { width: 44px; height: 44px; display: grid; place-items: center; color: var(--rx-navy-2); background: #fff; border: 1px solid var(--rx-line-2); border-radius: 13px; box-shadow: 0 2px 6px rgba(13,18,32,.05); }
.rx-tile .rx-ico { width: 20px; height: 20px; }
.rx-mmenu-link { display: flex; align-items: center; min-height: 48px; color: var(--rx-ink); font-size: 17px; font-weight: 600; text-decoration: none; }

/* =========================================================
   FLOW SECTIONS
   ========================================================= */
.rx-section { position: relative; padding: 112px 0; color: var(--rx-ink); background: #fff; }
.rx-section-soft { background: var(--rx-soft); }
.rx-section-tight { padding-bottom: 128px; }
.rx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.rx-head-copy { max-width: 680px; }
.rx-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: var(--rx-navy-2);
  background: #eaf0fb;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.rx-section-soft .rx-eyebrow { background: #fff; }
.rx-h2 { margin: 0; color: var(--rx-ink); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; font-weight: 600; letter-spacing: -.05em; text-wrap: balance; }
.rx-lead { margin: 14px 0 0; color: var(--rx-ink-2); font-size: 17px; line-height: 1.6; font-weight: 400; }

/* Image slots */
.rx-slot { position: relative; overflow: hidden; background: linear-gradient(160deg, #f1f5ff 0%, #d6e2ff 100%); }
.rx-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rx-slot--blue  { background: linear-gradient(160deg, #f1f5ff 0%, #cfdcff 100%); }
.rx-slot--lav   { background: linear-gradient(160deg, #f6f2ff 0%, #ddd2ff 100%); }
.rx-slot--peach { background: linear-gradient(160deg, #fff6f0 0%, #ffd9c6 100%); }
.rx-slot--mint  { background: linear-gradient(160deg, #effbf6 0%, #c8ecdd 100%); }
.rx-slot--sky   { background: linear-gradient(160deg, #eff9ff 0%, #c6e5fa 100%); }
.rx-slot--night { background: linear-gradient(160deg, #1b2440 0%, #10162a 100%); }

/* Carousel */
.rx-carousel { position: relative; }
.rx-track {
  display: flex;
  gap: 20px;
  margin: -4px -4px 0;
  padding: 4px 4px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rx-track::-webkit-scrollbar { display: none; }
.rx-ccard {
  flex: 0 0 min(380px, 82%);
  scroll-snap-align: start;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.rx-ccard:hover { border-color: var(--rx-line-2); box-shadow: 0 16px 40px rgba(13,18,32,.07); }
.rx-ccard-head { padding: 22px 24px 20px; }
.rx-ccard-title { display: flex; align-items: center; gap: 11px; color: var(--rx-ink); font-size: 20px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.rx-ccard-title .rx-ico { width: 22px; height: 22px; color: var(--rx-royal); }
.rx-ccard-head p { margin: 8px 0 0; color: var(--rx-ink-2); font-size: 15px; line-height: 1.55; font-weight: 400; }
.rx-ccard .rx-slot { aspect-ratio: 4 / 3; }
.rx-carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.rx-arrow { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--rx-ink); background: #eef0f4; border: 0; border-radius: 50%; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.rx-arrow:hover { background: #e2e6ed; }
.rx-arrow:disabled { opacity: .35; cursor: default; }

/* Bento */
.rx-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rx-bcard { position: relative; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; border: 1px solid var(--rx-line); border-radius: var(--rx-radius); }
.rx-bcard.rx-span-2 { grid-column: span 2; }
.rx-bcard-copy { position: relative; z-index: 1; padding: 28px 28px 0; }
.rx-bcard h3 { margin: 0; color: var(--rx-ink); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.rx-bcard p { max-width: 440px; margin: 10px 0 0; color: var(--rx-ink-2); font-size: 15px; line-height: 1.55; font-weight: 400; }
.rx-bcard .rx-slot { flex: 1; min-height: 220px; margin-top: 24px; background: transparent; }
.rx-bcard .rx-slot img { object-fit: contain; object-position: center bottom; }
.rx-bcard--peach { background: linear-gradient(160deg, #fff7f2 0%, #fde3d6 100%); }
.rx-bcard--blue  { background: linear-gradient(170deg, #f3f7ff 0%, #c9d9ff 100%); }
.rx-bcard--lav   { background: linear-gradient(170deg, #f6f3ff 0%, #d7cdfd 100%); }
.rx-bcard--mint  { background: linear-gradient(170deg, #f1fbf7 0%, #c9ecdc 100%); }
.rx-bcard--dark  { background: linear-gradient(170deg, #121a33 0%, #07090f 100%); border-color: transparent; }
.rx-bcard--royal { background: linear-gradient(160deg, #24457d 0%, #13213f 100%); border-color: transparent; }
.rx-bcard--dark h3, .rx-bcard--royal h3 { color: #fff; }
.rx-bcard--dark p, .rx-bcard--royal p { color: rgba(255,255,255,.72); }

/* HQ showcase */
.rx-hq-frame {
  overflow: hidden;
  padding: clamp(14px, 3vw, 40px) clamp(14px, 3vw, 40px) 0;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(47,84,235,.35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(140,110,255,.25), transparent 70%),
    #0b1020;
}
.rx-hq-window { overflow: hidden; background: #141a2b; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 16px 16px 0 0; }
.rx-hq-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rx-hq-bar i { width: 10px; height: 10px; border-radius: 50%; }
.rx-hq-bar i:nth-child(1) { background: #ff5f57; }
.rx-hq-bar i:nth-child(2) { background: #febc2e; }
.rx-hq-bar i:nth-child(3) { background: #28c840; }
.rx-hq-bar span { margin: 0 auto; padding-right: 44px; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 500; }
.rx-hq-window .rx-slot { aspect-ratio: 16 / 9; }

/* =========================================================
   END — CTA + FOOTER + WORDMARK
   ========================================================= */
.rx-end {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--rx-dark);

  /* Keep the shared footer typography identical on every page.
     Without this, it inherits whatever font/weight that page sets on <body>. */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.rx-end button,
.rx-end input,
.rx-end select,
.rx-end textarea {
  font-family: inherit;
}

.rx-end::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 60% at 30% 8%, rgba(47,84,235,.32), transparent 70%),
    radial-gradient(ellipse 45% 60% at 72% 18%, rgba(140,110,255,.24), transparent 70%);
}
.rx-end > * { position: relative; }

.rx-cta { padding: 120px 0 96px; text-align: center; }
.rx-cta-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  background: var(--rx-grad);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12);
}
.rx-cta-icon img { width: 50px; height: 50px; object-fit: contain; filter: brightness(0) invert(1); }
.rx-cta h2 { max-width: 760px; margin: 0 auto; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 600; letter-spacing: -.05em; text-wrap: balance; }
.rx-cta p { margin: 16px 0 0; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.6; font-weight: 400; }
.rx-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rx-cta-actions .rx-btn { min-height: 52px; padding: 0 26px; font-size: 15.5px; }

.rx-footer { padding: 0; border: 0; background: transparent; }
.rx-news {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px);
  align-items: center;
  gap: 40px;
  padding: 52px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rx-news h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
.rx-news p { margin: 6px 0 0; color: rgba(255,255,255,.62); font-size: 15.5px; line-height: 1.55; font-weight: 400; }
.rx-news-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.rx-news-form input {
  min-height: 50px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  outline: none;
  font-size: 15px;
}
.rx-news-form input::placeholder { color: rgba(255,255,255,.45); }
.rx-news-form input:focus { border-color: rgba(140,170,255,.7); }
.rx-news-form .rx-btn { min-height: 50px; }
.rx-news-form .rx-news-note { grid-column: 1 / -1; margin: 0; color: rgba(255,255,255,.48); font-size: 13px; line-height: 1.5; }
.rx-news-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rx-news-form .rx-news-status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: #8fe0b7; font-size: 14px; }

.rx-fgrid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding: 56px 0 24px; }
.rx-brand-light { color: #fff; }
.rx-brand-light img { filter: brightness(0) invert(1); }
.rx-fbrand p { max-width: 340px; margin: 18px 0 0; color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.65; font-weight: 400; }
.rx-fcontact { display: inline-block; margin-top: 16px; color: rgba(255,255,255,.85); font-size: 15px; text-decoration: none; }
.rx-fcontact:hover { color: #fff; }
.rx-fcol h4 { margin: 0 0 16px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rx-fcol ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rx-fcol a { color: rgba(255,255,255,.6); font-size: 15px; text-decoration: none; transition: color .2s ease; }
.rx-fcol a:hover { color: #fff; }

/* Giant wordmark — Casemix style */
.rx-wordmark {
  display: block;
  margin: 8px 0 -0.02em;
  color: #18181b;
  font-size: clamp(76px, 21vw, 330px);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, #202024 0%, #141417 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rx-fbottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); }
.rx-copy { color: rgba(255,255,255,.55); font-size: 14px; }
.rx-flegal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rx-flegal a { color: rgba(255,255,255,.72); font-size: 14px; text-decoration: none; }
.rx-flegal a:hover { color: #fff; }
.rx-fbottom-right { display: flex; align-items: center; gap: 20px; }
.rx-socials { display: flex; gap: 8px; }
.rx-socials a { width: 38px; height: 38px; display: grid; place-items: center; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; transition: color .2s ease, background .2s ease; }
.rx-socials a:hover { color: #fff; background: rgba(255,255,255,.08); }
.rx-socials .rx-ico { width: 16px; height: 16px; }
.rx-totop { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; }
.rx-totop:hover { color: #fff; }
.rx-totop .rx-ico { width: 15px; height: 15px; }

/* Reveal */
html.rx-motion .rx-reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s ease, transform .9s var(--rx-ease); }
html.rx-motion .rx-reveal.is-in { opacity: 1; transform: none; }

/* Image / visual reveal — soft rise + unmask. Add class="rx-media" to any picture wrapper.
   Add rx-stagger as well to reveal its children one after another. */
html.rx-motion .rx-media {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  clip-path: inset(10% 4% 0 4% round 24px);
  transition: opacity .8s ease, transform 1.1s var(--rx-ease), clip-path 1.2s var(--rx-ease);
}
html.rx-motion .rx-media.is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(-80px -80px -80px -80px round 0);
}
html.rx-motion .rx-media.rx-stagger { opacity: 1; transform: none; clip-path: none; }
html.rx-motion .rx-media.rx-stagger > * {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity .7s ease, transform .9s var(--rx-ease);
}
html.rx-motion .rx-media.rx-stagger.is-in > * { opacity: 1; transform: none; }
html.rx-motion .rx-media.rx-stagger.is-in > :nth-child(2) { transition-delay: .12s; }
html.rx-motion .rx-media.rx-stagger.is-in > :nth-child(3) { transition-delay: .24s; }
html.rx-motion .rx-media.rx-stagger.is-in > :nth-child(4) { transition-delay: .36s; }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1080px) {
  .rx-nav-link { padding: 8px 9px; }
  .rx-dd-4 { grid-template-columns: repeat(2, 1fr); }
  .rx-bento { grid-template-columns: repeat(2, 1fr); }
  .rx-fgrid { grid-template-columns: repeat(4, 1fr); }
  .rx-fbrand { grid-column: 1 / -1; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px) {
  :root { --rx-gutter: 18px; }

  /* Mobile header: a normal full-width bar at the top; once scrolled, a floating pill
     fades in behind it (only the ::before animates, so nothing jitters). */
  html body .rx-nav,
  html body .rx-nav.is-scrolled,
  html body .rx-nav.relify-dark-nav {
    top: 0;
    left: 0;
    right: 0;
    padding-top: env(safe-area-inset-top);
    color: var(--rx-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
  }
  .rx-nav-inner { width: 100%; height: 72px; padding: 0 18px 0 22px; }
  html body .rx-nav .rx-nav-inner::before { inset: 0; border-radius: 0; }
  html body .rx-nav.is-scrolled .rx-nav-inner::before { inset: 6px 10px; border-radius: 20px; box-shadow: 0 8px 30px rgba(13,18,32,.08); }
  html body .rx-nav.relify-dark-nav .rx-nav-inner::before { background: rgba(255,255,255,.92); border-color: var(--rx-line); }
  html body .rx-nav.relify-dark-nav .logo-img,
  html body .rx-nav.relify-dark-nav.relify-white-logo-fallback .logo-img { filter: brightness(0); }
  html body .rx-nav.relify-dark-nav .rx-round-btn { color: var(--rx-ink); background: #f0f2f6; }
  .rx-nav-links, .rx-nav-right { display: none; }
  .rx-menu-btn { display: grid; margin-left: auto; }
  .rx-brand img { width: 30px; height: 30px; }
  .rx-brand span { font-size: 19px; }

  .rx-section { padding: 80px 0; }
  .rx-section-tight { padding-bottom: 96px; }
  .rx-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
  .rx-head .rx-btn { width: 100%; min-height: 50px; }
  .rx-h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .rx-lead { font-size: 16px; }

  .rx-ccard { flex-basis: 86%; }
  .rx-ccard-title { font-size: 19px; }

  .rx-bento { grid-template-columns: 1fr; gap: 14px; }
  .rx-bcard, .rx-bcard.rx-span-2 { grid-column: auto; min-height: 360px; }
  .rx-bcard-copy { padding: 24px 22px 0; }
  .rx-bcard h3 { font-size: 20px; }

  .rx-hq-frame { border-radius: 20px; }
  .rx-hq-window .rx-slot { aspect-ratio: 4 / 3; }

  .rx-cta { padding: 96px 0 72px; }
  .rx-cta p { font-size: 16.5px; }
  .rx-cta-actions { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }

  .rx-news { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .rx-fgrid { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding: 40px 0 16px; }
  .rx-fbrand { grid-column: 1 / -1; }
  .rx-fbottom { flex-direction: column; align-items: flex-start; }
  .rx-fbottom-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 420px) {
  .rx-news-form { grid-template-columns: 1fr; }
  .rx-news-form .rx-btn { width: 100%; }
  .rx-mmenu-actions .rx-btn { font-size: 15px; }
}

@media (hover: none) {
  .rx-btn-primary:hover, .rx-btn-white:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.rx-motion .rx-reveal,
  html.rx-motion .rx-media,
  html.rx-motion .rx-media.rx-stagger > * { opacity: 1; transform: none; clip-path: none; transition: none; }
  .rx-track { scroll-behavior: auto; }
}

/* =========================================================
   PAGE KIT — shared building blocks for product pages
   (hero, splash frame, split rows, steps, stats, FAQ)
   ========================================================= */
.rx-page { color: var(--rx-ink); background: #fff; }

/* Hero */
.rx-page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 0;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 50% at 8% 0%, rgba(111,174,255,.28), transparent 70%),
    radial-gradient(ellipse 55% 50% at 92% 0%, rgba(155,123,255,.22), transparent 70%),
    linear-gradient(180deg, #f3f7ff 0%, #fff 72%);
}
.rx-h1 { max-width: 900px; margin: 0 auto; color: var(--rx-ink); font-size: clamp(40px, 6vw, 72px); line-height: 1.03; font-weight: 600; letter-spacing: -.055em; text-wrap: balance; }
.rx-h1 span { background: var(--rx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rx-hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--rx-ink-2); font-size: 18px; line-height: 1.6; font-weight: 400; }
.rx-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rx-hero-actions .rx-btn { min-height: 52px; padding: 0 24px; font-size: 15.5px; }
.rx-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 26px auto 0; padding: 0; list-style: none; }
.rx-proof li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; color: var(--rx-ink-2); background: rgba(255,255,255,.75); border: 1px solid var(--rx-line); border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.2; }
.rx-proof .rx-ico { width: 14px; height: 14px; color: #1f8a5b; stroke-width: 2.4; }

/* Splash frame (browser-style window) */
.rx-frame {
  position: relative;
  width: min(1120px, calc(100% - var(--rx-gutter) * 2));
  margin: 60px auto 0;
  padding: 10px 10px 0;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--rx-line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 30px 80px rgba(19,33,63,.12);
}
.rx-frame-bar { display: flex; gap: 7px; padding: 8px 10px 14px; }
.rx-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe3; }
.rx-frame .rx-slot { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; }

/* Split rows */
.rx-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.rx-split.is-reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.rx-split.is-reverse > :first-child { order: 2; }
.rx-split + .rx-split { margin-top: 120px; }
.rx-split-copy .rx-h2 { font-size: clamp(30px, 3.6vw, 44px); }
.rx-checks { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.rx-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.rx-checks .rx-check { width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; color: #fff; background: var(--rx-grad); border-radius: 50%; }
.rx-checks .rx-check .rx-ico { width: 12px; height: 12px; stroke-width: 2.6; }
.rx-checks strong { display: block; color: var(--rx-ink); font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.rx-checks span { display: block; margin-top: 2px; color: var(--rx-ink-2); font-size: 14.5px; line-height: 1.55; font-weight: 400; }
.rx-panel { position: relative; overflow: hidden; border: 1px solid var(--rx-line); border-radius: var(--rx-radius); background: var(--rx-soft); }
.rx-panel > img, .rx-panel > video { display: block; width: 100%; height: auto; }
.rx-panel--lav { background: linear-gradient(160deg, #f6f3ff 0%, #e4dcff 100%); }
.rx-panel--blue { background: linear-gradient(160deg, #f3f7ff 0%, #d9e5ff 100%); }
.rx-panel--mint { background: linear-gradient(160deg, #f1fbf7 0%, #d3efe3 100%); }
.rx-panel--peach { background: linear-gradient(160deg, #fff7f2 0%, #fde3d6 100%); }

/* Numbered steps */
.rx-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rx-step { padding: 22px 20px 24px; background: #fff; border: 1px solid var(--rx-line); border-radius: 20px; }
.rx-step b { display: inline-grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--rx-grad); border-radius: 11px; font-size: 13px; font-weight: 600; }
.rx-step strong { display: block; margin-top: 18px; color: var(--rx-ink); font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.rx-step span { display: block; margin-top: 6px; color: var(--rx-ink-2); font-size: 14px; line-height: 1.55; font-weight: 400; }

/* Stats / trust row */
.rx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rx-stat { padding: 24px; background: #fff; border: 1px solid var(--rx-line); border-radius: 20px; }
.rx-stat strong { display: block; color: var(--rx-ink); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.rx-stat span { display: block; margin-top: 6px; color: var(--rx-ink-2); font-size: 14px; line-height: 1.55; font-weight: 400; }

/* FAQ (native details, no JS needed) */
.rx-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.rx-faq-list { border-top: 1px solid var(--rx-line-2); }
.rx-faq-item { border-bottom: 1px solid var(--rx-line-2); }
.rx-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0; color: var(--rx-ink); font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; list-style: none; cursor: pointer; }
.rx-faq-item summary::-webkit-details-marker { display: none; }
.rx-faq-item summary .rx-ico { width: 20px; height: 20px; color: var(--rx-ink-3); transition: transform .3s var(--rx-ease); }
.rx-faq-item[open] summary .rx-ico { transform: rotate(45deg); color: var(--rx-ink); }
.rx-faq-item p { margin: 0; padding: 0 40px 22px 0; color: var(--rx-ink-2); font-size: 15.5px; line-height: 1.7; font-weight: 400; }
.rx-text-link { color: var(--rx-navy-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Picture box (CleanShot style): a light-to-deep gradient panel with the UI floating inside.
   Use for light UI pictures with only one or two elements. */
.rx-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 32vw, 470px); /* box keeps its size even when the picture is wide and short */
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 52px);
  border-radius: 28px;
  isolation: isolate;
}
.rx-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 18% 0%, rgba(255,255,255,.75), transparent 70%);
  pointer-events: none;
}
.rx-box--royal { background: linear-gradient(175deg, #eef3ff 0%, #d3e0fd 30%, #8aa6ec 64%, #3f5fc0 88%, #2a468f 100%); }
.rx-box--lav   { background: linear-gradient(175deg, #f6f3ff 0%, #e3dbff 30%, #ad9cf3 64%, #6c56d6 88%, #4c3aa6 100%); }
.rx-box--navy  { background: linear-gradient(175deg, #2a3a63 0%, #182544 55%, #0d1530 100%); }
.rx-box > img {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: calc(100% * var(--rx-zoom, 1)); /* --rx-zoom enlarges the UI past empty space in the PNG */
  max-width: none;
  height: auto;
  transform: translate3d(0, var(--rx-par, 0px), 0);
  will-change: transform;
}

@media (max-width: 1080px) {
  .rx-steps { grid-template-columns: repeat(3, 1fr); }
  .rx-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .rx-page-hero { padding-top: 118px; }
  .rx-hero-sub { font-size: 16.5px; }
  .rx-hero-actions { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }
  .rx-frame { margin-top: 40px; padding: 6px 6px 0; border-radius: 18px 18px 0 0; }
  .rx-frame-bar { padding: 6px 8px 10px; }
  .rx-frame .rx-slot { aspect-ratio: 4 / 3; border-radius: 12px 12px 0 0; }

  .rx-split, .rx-split.is-reverse { grid-template-columns: 1fr; gap: 32px; }
  .rx-split.is-reverse > :first-child { order: 0; }
  .rx-split + .rx-split { margin-top: 80px; }
  .rx-split-copy .rx-h2 { font-size: clamp(28px, 8vw, 36px); }

  .rx-steps {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--rx-gutter) * -1);
    padding: 0 var(--rx-gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .rx-steps::-webkit-scrollbar { display: none; }
  .rx-step { flex: 0 0 74%; scroll-snap-align: start; }

  .rx-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rx-stat { padding: 18px; }

  .rx-faq { grid-template-columns: 1fr; gap: 24px; }
  .rx-faq-item summary { font-size: 16px; }
  .rx-faq-item p { padding-right: 0; font-size: 15px; }
}

@media (max-width: 480px) {
  .rx-stats { grid-template-columns: 1fr; }
  .rx-box { min-height: 240px; padding: 26px 14px; border-radius: 22px; }
}
