/* Rankmore production bundle — generated from: base.css, header.css, pages.css, home.css, mobile.css */

/* ===== SOURCE: base.css ===== */
/*
 * Rankmore Base Design System
 * Version: 0.1
 * Purpose: shared CSS foundation for the public Rankmore website
 *
 * Design direction inherited from the current Rankmore waiting page:
 * - Inter-first modern SaaS typography
 * - light neutral surfaces
 * - Rankmore blue as primary accent
 * - subtle borders, shadows and blue ambient glows
 * - rounded cards, restrained pills, outline SVG iconography
 *
 * Naming convention:
 * - shared public-site components use the `rm-` prefix to reduce conflicts
 *   with WordPress / Elementor classes.
 *
 * Font loading:
 * - load Inter in the document <head> or through the site/theme.
 */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  /* Core colors */
  --rm-color-bg: #f5f7fa;
  --rm-color-surface: #ffffff;

  --rm-color-text: #171a1f;
  --rm-color-text-2: #676d7a;
  --rm-color-text-3: #aeb5c2;

  --rm-color-border: #e3e8f0;
  --rm-color-border-2: #d6dde8;

  /* Rankmore brand blue */
  --rm-color-blue: #2d69e0;
  --rm-color-blue-hover: #1f56c7;
  --rm-color-blue-deep: #1c3568;
  --rm-color-blue-soft: #eef4ff;
  --rm-color-blue-border: #bfd5ff;

  /* Functional positive state */
  --rm-color-green: #168a45;
  --rm-color-green-soft: #eaf7ef;
  --rm-color-green-border: #bfe8cf;

  /* Transparent surfaces */
  --rm-surface-glass: rgba(255, 255, 255, 0.78);
  --rm-surface-card: rgba(255, 255, 255, 0.92);
  --rm-surface-card-soft: rgba(255, 255, 255, 0.84);

  /* Typography */
  --rm-font-sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --rm-font-size-xs: 0.8125rem;  /* 13px */
  --rm-font-size-sm: 0.875rem;   /* 14px */
  --rm-font-size-md: 1rem;       /* 16px */
  --rm-font-size-lg: 1.125rem;   /* 18px */
  --rm-font-size-xl: 1.25rem;    /* 20px */

  --rm-font-weight-regular: 400;
  --rm-font-weight-medium: 570;
  --rm-font-weight-semibold: 650;
  --rm-font-weight-bold: 700;
  --rm-font-weight-strong: 760;
  --rm-font-weight-cta: 780;
  --rm-font-weight-heavy: 830;

  --rm-tracking-tight: -0.015em;
  --rm-tracking-tighter: -0.025em;

  /* Layout */
  --rm-container: 1180px;
  --rm-content: 760px;
  --rm-content-wide: 900px;

  --rm-gutter: 24px;
  --rm-gutter-mobile: 18px;

  /* Spacing */
  --rm-space-1: 4px;
  --rm-space-2: 8px;
  --rm-space-3: 12px;
  --rm-space-4: 16px;
  --rm-space-5: 20px;
  --rm-space-6: 24px;
  --rm-space-7: 32px;
  --rm-space-8: 40px;
  --rm-space-9: 48px;
  --rm-space-10: 64px;
  --rm-space-11: 80px;
  --rm-space-12: 96px;
  --rm-space-13: 120px;

  /* Radius */
  --rm-radius-sm: 12px;
  --rm-radius-button: 13px;
  --rm-radius-md: 16px;
  --rm-radius-lg: 22px;
  --rm-radius-pill: 999px;

  /* Shadows */
  --rm-shadow-card:
    0 1px 2px rgba(23, 26, 31, 0.04),
    0 14px 38px rgba(23, 26, 31, 0.075);

  --rm-shadow-soft:
    0 1px 2px rgba(23, 26, 31, 0.03),
    0 8px 22px rgba(23, 26, 31, 0.05);

  --rm-shadow-primary:
    0 12px 26px rgba(45, 105, 224, 0.25);

  /* Motion */
  --rm-transition-fast: 160ms ease;
  --rm-transition-base: 220ms ease;

  /* Header */
  --rm-header-height: 76px;

  /* Layering */
  --rm-z-header: 100;
  --rm-z-dropdown: 200;
  --rm-z-modal: 1000;
}


/* =========================================================
   2. RESET / GLOBAL
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--rm-color-text);
  font-family: var(--rm-font-sans);
  font-size: var(--rm-font-size-md);
  font-weight: var(--rm-font-weight-regular);
  line-height: 1.5;
  letter-spacing: -0.005em;
  background:
    radial-gradient(
      circle at 50% -16%,
      rgba(45, 105, 224, 0.14),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 18%,
      rgba(45, 105, 224, 0.075),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--rm-color-bg) 44%,
      var(--rm-color-bg) 100%
    );
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
blockquote,
figure {
  margin-top: 0;
}

::selection {
  background: var(--rm-color-blue-soft);
  color: var(--rm-color-blue-deep);
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(45, 105, 224, 0.28);
  outline-offset: 3px;
}

.rm-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--rm-z-modal) + 1);
  padding: 10px 14px;
  border-radius: var(--rm-radius-sm);
  background: var(--rm-color-text);
  color: #ffffff;
  transform: translateY(-160%);
  transition: transform var(--rm-transition-fast);
}

.rm-skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

.rm-display,
.rm-h1,
.rm-h2,
.rm-h3,
.rm-h4,
h1,
h2,
h3,
h4 {
  color: var(--rm-color-text);
  letter-spacing: var(--rm-tracking-tighter);
  text-wrap: balance;
}

.rm-display,
.rm-h1,
h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6.4vw, 5.125rem); /* 48px → 82px */
  line-height: 0.98;
  font-weight: var(--rm-font-weight-bold);
}

.rm-h2,
h2 {
  margin-bottom: var(--rm-space-5);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 1.02;
  font-weight: var(--rm-font-weight-bold);
}

.rm-h3,
h3 {
  margin-bottom: var(--rm-space-3);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.12;
  font-weight: var(--rm-font-weight-bold);
}

.rm-h4,
h4 {
  margin-bottom: var(--rm-space-2);
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: var(--rm-font-weight-bold);
}

.rm-lead {
  max-width: 720px;
  margin: var(--rm-space-6) 0 0;
  color: var(--rm-color-text-2);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  font-weight: var(--rm-font-weight-regular);
  letter-spacing: var(--rm-tracking-tight);
}

.rm-body-lg {
  color: var(--rm-color-text-2);
  font-size: 1.125rem;
  line-height: 1.6;
}

.rm-body {
  color: var(--rm-color-text-2);
  font-size: 1rem;
  line-height: 1.6;
}

.rm-small,
small {
  color: var(--rm-color-text-2);
  font-size: var(--rm-font-size-sm);
}

.rm-microcopy {
  color: var(--rm-color-text-3);
  font-size: var(--rm-font-size-sm);
  font-weight: var(--rm-font-weight-medium);
}

.rm-kicker {
  margin-bottom: var(--rm-space-4);
  color: var(--rm-color-blue);
  font-size: var(--rm-font-size-sm);
  font-weight: var(--rm-font-weight-strong);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.rm-text-blue {
  color: var(--rm-color-blue);
}

.rm-text-muted {
  color: var(--rm-color-text-2);
}

.rm-text-subtle {
  color: var(--rm-color-text-3);
}

.rm-text-center {
  text-align: center;
}


/* =========================================================
   5. LAYOUT PRIMITIVES
   ========================================================= */

.rm-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rm-main {
  flex: 1;
}

.rm-container {
  width: min(100%, calc(var(--rm-container) + (var(--rm-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
}

.rm-container--narrow {
  width: min(100%, calc(var(--rm-content) + (var(--rm-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
}

.rm-container--content-wide {
  width: min(100%, calc(var(--rm-content-wide) + (var(--rm-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
}

.rm-section {
  position: relative;
  padding-block: var(--rm-space-12);
}

.rm-section--compact {
  padding-block: var(--rm-space-10);
}

.rm-section--large {
  padding-block: var(--rm-space-13);
}

.rm-section--white {
  background: var(--rm-color-surface);
}

.rm-section--soft {
  background: rgba(245, 247, 250, 0.72);
}

.rm-section--bordered {
  border-top: 1px solid var(--rm-color-border);
  border-bottom: 1px solid var(--rm-color-border);
}

.rm-section-header {
  max-width: 760px;
  margin-bottom: var(--rm-space-10);
}

.rm-section-header--center {
  margin-inline: auto;
  text-align: center;
}

.rm-stack > * + * {
  margin-top: var(--rm-space-6);
}

.rm-stack--sm > * + * {
  margin-top: var(--rm-space-4);
}

.rm-stack--lg > * + * {
  margin-top: var(--rm-space-8);
}

.rm-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rm-space-4);
}

.rm-grid {
  display: grid;
  gap: var(--rm-space-4);
}

.rm-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 42px;
  align-items: center;
}


/* =========================================================
   6. SITE HEADER / NAVIGATION
   ========================================================= */

.rm-header {
  position: sticky;
  top: 0;
  z-index: var(--rm-z-header);
  width: 100%;
  border-bottom: 1px solid rgba(227, 232, 240, 0.8);
  background: var(--rm-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rm-header__inner {
  width: min(100%, calc(var(--rm-container) + (var(--rm-gutter) * 2)));
  min-height: var(--rm-header-height);
  margin-inline: auto;
  padding-inline: var(--rm-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rm-space-6);
}

.rm-logo {
  display: inline-flex;
  align-items: center;
  height: 34px;
  flex: 0 0 auto;
}

.rm-logo img,
.rm-logo svg {
  width: 206px;
  max-width: 44vw;
  height: auto;
}

.rm-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rm-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  color: var(--rm-color-text-2);
  font-size: 14px;
  font-weight: var(--rm-font-weight-semibold);
  transition:
    color var(--rm-transition-fast),
    background var(--rm-transition-fast);
}

.rm-nav__link:hover,
.rm-nav__link[aria-current="page"] {
  color: var(--rm-color-text);
}

.rm-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  border-radius: var(--rm-radius-pill);
  background: var(--rm-color-blue);
}

.rm-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--rm-color-text);
}


/* =========================================================
   7. HERO
   ========================================================= */

.rm-hero {
  position: relative;
  overflow: clip;
  padding: 86px 0 72px;
}

.rm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.rm-hero__content {
  position: relative;
  z-index: 2;
}

.rm-hero__title {
  max-width: 800px;
}

.rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.rm-hero__proof {
  margin-top: 34px;
}

.rm-hero__visual {
  position: relative;
  min-width: 0;
}

.rm-hero__glow {
  position: absolute;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(45, 105, 224, 0.08);
  filter: blur(64px);
  pointer-events: none;
}


/* =========================================================
   8. BADGES / PILLS / STATUS
   ========================================================= */

.rm-badge,
.rm-eyebrow,
.rm-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--rm-radius-pill);
  white-space: nowrap;
}

.rm-eyebrow {
  min-height: 34px;
  padding: 0 13px;
  margin-bottom: 24px;
  border: 1px solid var(--rm-color-blue-border);
  background: var(--rm-color-blue-soft);
  color: var(--rm-color-blue);
  font-size: var(--rm-font-size-sm);
  font-weight: var(--rm-font-weight-strong);
  letter-spacing: -0.01em;
}

.rm-eyebrow svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.rm-pill {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rm-color-border);
  background: rgba(255, 255, 255, 0.76);
  color: #4d5668;
  font-size: var(--rm-font-size-xs);
  font-weight: 690;
  box-shadow: 0 1px 2px rgba(23, 26, 31, 0.025);
}

.rm-pill svg {
  width: 15px;
  height: 15px;
  color: var(--rm-color-blue);
}

.rm-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-pill);
  background: var(--rm-color-surface);
  color: var(--rm-color-text-2);
  font-size: var(--rm-font-size-xs);
  font-weight: var(--rm-font-weight-semibold);
}

.rm-status--success {
  border-color: var(--rm-color-green-border);
  background: var(--rm-color-green-soft);
  color: var(--rm-color-green);
}

.rm-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.9;
}


/* =========================================================
   9. BUTTONS / LINKS
   ========================================================= */

.rm-btn {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--rm-radius-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--rm-color-text);
  background: transparent;
  font-size: var(--rm-font-size-md);
  font-weight: var(--rm-font-weight-cta);
  letter-spacing: var(--rm-tracking-tight);
  line-height: 1;
  user-select: none;
  transition:
    transform var(--rm-transition-fast),
    box-shadow var(--rm-transition-fast),
    background var(--rm-transition-fast),
    border-color var(--rm-transition-fast),
    color var(--rm-transition-fast);
}

.rm-btn:hover {
  transform: translateY(-1px);
}

.rm-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.rm-btn--primary {
  background: var(--rm-color-blue);
  color: #ffffff;
  box-shadow: var(--rm-shadow-primary);
}

.rm-btn--primary:hover {
  background: var(--rm-color-blue-hover);
}

.rm-btn--secondary {
  border-color: var(--rm-color-border-2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--rm-color-text);
  box-shadow: var(--rm-shadow-soft);
}

.rm-btn--secondary:hover {
  border-color: var(--rm-color-blue-border);
  background: #ffffff;
}

.rm-btn--ghost {
  min-height: 44px;
  padding-inline: 16px;
  color: var(--rm-color-text-2);
}

.rm-btn--ghost:hover {
  color: var(--rm-color-text);
  background: rgba(255, 255, 255, 0.72);
}

.rm-btn--sm {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 14px;
}

.rm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rm-color-blue);
  font-weight: var(--rm-font-weight-bold);
  transition: color var(--rm-transition-fast);
}

.rm-link:hover {
  color: var(--rm-color-blue-hover);
}

.rm-link svg {
  width: 18px;
  height: 18px;
}


/* =========================================================
   10. CARDS / SURFACES
   ========================================================= */

.rm-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-md);
  background: var(--rm-surface-card);
  box-shadow: var(--rm-shadow-soft);
}

.rm-card--large {
  padding: 28px;
  border-radius: var(--rm-radius-lg);
  box-shadow: var(--rm-shadow-card);
}

.rm-card--flat {
  box-shadow: none;
}

.rm-card--interactive {
  transition:
    transform var(--rm-transition-base),
    box-shadow var(--rm-transition-base),
    border-color var(--rm-transition-base);
}

.rm-card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--rm-color-blue-border);
  box-shadow: var(--rm-shadow-card);
}

.rm-card--glow {
  overflow: hidden;
}

.rm-card--glow::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 110px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(45, 105, 224, 0.13),
      transparent 58%
    );
  pointer-events: none;
}

.rm-card__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rm-space-4);
  margin-bottom: var(--rm-space-5);
}

.rm-card__title {
  margin: 0;
  color: var(--rm-color-text);
  font-size: 17px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rm-card__description {
  margin: 8px 0 0;
  color: var(--rm-color-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.rm-card__footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rm-color-border);
}

.rm-feature-card {
  padding: 24px;
}

.rm-feature-card__icon,
.rm-icon-box {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--rm-color-blue-soft);
  color: var(--rm-color-blue);
}

.rm-feature-card__icon svg,
.rm-icon-box svg {
  width: 21px;
  height: 21px;
}

.rm-feature-card__title {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.rm-feature-card__text {
  margin: 0;
  color: var(--rm-color-text-2);
  font-size: 14px;
  line-height: 1.55;
}


/* =========================================================
   11. METRICS / PROOF
   ========================================================= */

.rm-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rm-metric {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rm-metric__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--rm-color-blue-soft);
  color: var(--rm-color-blue);
}

.rm-metric__icon svg {
  width: 24px;
  height: 24px;
}

.rm-metric__value {
  color: var(--rm-color-text);
  font-size: 28px;
  line-height: 1;
  font-weight: var(--rm-font-weight-heavy);
  letter-spacing: -0.04em;
}

.rm-metric__label {
  margin-top: 6px;
  color: var(--rm-color-text-2);
  font-size: 13px;
  line-height: 1.35;
  font-weight: var(--rm-font-weight-medium);
}


/* =========================================================
   12. PROCESS / STEPS
   ========================================================= */

.rm-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rm-process__step {
  position: relative;
  padding: 20px;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.rm-process__number {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rm-radius-pill);
  background: var(--rm-color-blue-soft);
  color: var(--rm-color-blue);
  font-size: 13px;
  font-weight: var(--rm-font-weight-strong);
}

.rm-process__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rm-process__text {
  margin: 0;
  color: var(--rm-color-text-2);
  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   13. FORMS
   ========================================================= */

.rm-field {
  display: grid;
  gap: 8px;
}

.rm-label {
  color: var(--rm-color-text);
  font-size: 14px;
  font-weight: var(--rm-font-weight-semibold);
}

.rm-input,
.rm-select,
.rm-textarea {
  width: 100%;
  border: 1px solid var(--rm-color-border-2);
  border-radius: var(--rm-radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--rm-color-text);
  outline: none;
  transition:
    border-color var(--rm-transition-fast),
    box-shadow var(--rm-transition-fast),
    background var(--rm-transition-fast);
}

.rm-input,
.rm-select {
  min-height: 48px;
  padding: 0 14px;
}

.rm-textarea {
  min-height: 132px;
  padding: 13px 14px;
  resize: vertical;
}

.rm-input::placeholder,
.rm-textarea::placeholder {
  color: var(--rm-color-text-3);
}

.rm-input:focus,
.rm-select:focus,
.rm-textarea:focus {
  border-color: var(--rm-color-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(45, 105, 224, 0.10);
}

.rm-help {
  color: var(--rm-color-text-3);
  font-size: 13px;
  line-height: 1.45;
}


/* =========================================================
   14. TABLES / DATA
   ========================================================= */

.rm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--rm-shadow-soft);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.rm-table th,
.rm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rm-color-border);
  text-align: left;
  vertical-align: middle;
}

.rm-table th {
  color: var(--rm-color-text-2);
  background: rgba(245, 247, 250, 0.72);
  font-size: 12px;
  font-weight: var(--rm-font-weight-strong);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rm-table td {
  color: var(--rm-color-text);
  font-size: 14px;
}

.rm-table tbody tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   15. MEDIA / PRODUCT PREVIEW
   ========================================================= */

.rm-preview-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-lg);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.90)
    );
  box-shadow: var(--rm-shadow-card);
  overflow: hidden;
}

.rm-preview-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 110px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(45, 105, 224, 0.13),
      transparent 58%
    );
  pointer-events: none;
}

.rm-preview-card__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rm-preview-card__body {
  position: relative;
}

.rm-product-shot {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-md);
  background: var(--rm-color-surface);
  box-shadow: 0 8px 28px rgba(23, 26, 31, 0.06);
}

.rm-product-shot img {
  width: 100%;
}


/* =========================================================
   16. LOGO / INTEGRATION STRIPS
   ========================================================= */

.rm-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rm-logo-chip {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--rm-color-text-2);
  font-size: 13px;
  font-weight: var(--rm-font-weight-semibold);
}


/* =========================================================
   17. CALLOUT / CTA BAND
   ========================================================= */

.rm-callout {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--rm-color-blue-border);
  border-radius: var(--rm-radius-lg);
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(45, 105, 224, 0.12),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      var(--rm-color-blue-soft) 100%
    );
  box-shadow: var(--rm-shadow-soft);
}

.rm-callout__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.rm-callout__content {
  max-width: 680px;
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.rm-footer {
  margin-top: auto;
  border-top: 1px solid var(--rm-color-border);
  background: rgba(255, 255, 255, 0.72);
}

.rm-footer__main {
  padding-block: 64px 48px;
}

.rm-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.rm-footer__grid--compact {
  grid-template-columns: 1.45fr repeat(2, minmax(0, 1fr));
}

.rm-footer__brand {
  max-width: 310px;
}

.rm-footer__logo {
  width: 180px;
  margin-bottom: 18px;
}

.rm-footer__text {
  margin: 0;
  color: var(--rm-color-text-2);
  font-size: 14px;
  line-height: 1.55;
}

.rm-footer__heading {
  margin-bottom: 14px;
  color: var(--rm-color-text);
  font-size: 13px;
  font-weight: var(--rm-font-weight-strong);
}

.rm-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-footer__link {
  color: var(--rm-color-text-2);
  font-size: 14px;
  transition: color var(--rm-transition-fast);
}

.rm-footer__link:hover {
  color: var(--rm-color-text);
}


/* Footer Cookie settings is a semantic button, but must look exactly like
   the adjacent footer links even before cookie-consent.css is lazy-loaded. */
.rm-footer__button {
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.rm-footer__legal {
  display: grid;
  gap: 6px;
  line-height: 1.5;
}

.rm-footer__bottom {
  padding-block: 20px;
  border-top: 1px solid var(--rm-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--rm-color-text-3);
  font-size: 13px;
}


/* =========================================================
   19. MODAL
   ========================================================= */

.rm-modal {
  position: fixed;
  inset: 0;
  z-index: var(--rm-z-modal);
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 26, 31, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rm-modal[hidden] {
  display: none;
}

.rm-modal__panel {
  width: min(100%, 720px);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-lg);
  background: #ffffff;
  box-shadow:
    0 24px 80px rgba(23, 26, 31, 0.18),
    0 2px 8px rgba(23, 26, 31, 0.08);
}

.rm-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rm-color-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.rm-modal__body {
  padding: 20px;
}


/* =========================================================
   20. UTILITIES
   ========================================================= */

.rm-hidden {
  display: none !important;
}

.rm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rm-w-full {
  width: 100%;
}

.rm-max-content {
  max-width: var(--rm-content);
}

.rm-max-wide {
  max-width: var(--rm-content-wide);
}

.rm-mx-auto {
  margin-inline: auto;
}

.rm-mt-0 {
  margin-top: 0 !important;
}

.rm-mb-0 {
  margin-bottom: 0 !important;
}


/* =========================================================
   21. RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .rm-nav__list {
    gap: 18px;
  }

  .rm-footer__grid {
    grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --rm-header-height: 68px;
  }

  .rm-container,
  .rm-container--narrow,
  .rm-container--content-wide,
  .rm-header__inner {
    padding-inline: var(--rm-gutter);
  }

  .rm-section {
    padding-block: var(--rm-space-11);
  }

  .rm-section--large {
    padding-block: var(--rm-space-12);
  }

  .rm-split,
  .rm-hero__grid {
    grid-template-columns: 1fr;
  }

  .rm-hero {
    padding-top: 58px;
  }

  .rm-hero__visual {
    order: -1;
  }

  .rm-grid--3,
  .rm-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-nav__list {
    display: none;
  }

  .rm-menu-toggle {
    display: inline-flex;
  }

  .rm-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-footer__brand {
    grid-column: 1 / -1;
  }

  .rm-callout__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --rm-gutter: var(--rm-gutter-mobile);
  }

  .rm-display,
  .rm-h1,
  h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
    line-height: 0.98;
  }

  .rm-h2,
  h2 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .rm-section,
  .rm-section--compact,
  .rm-section--large {
    padding-block: 64px;
  }

  .rm-section-header {
    margin-bottom: 40px;
  }

  .rm-hero {
    padding: 38px 0 36px;
  }

  .rm-hero__grid {
    gap: 32px;
  }

  .rm-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .rm-btn {
    width: 100%;
  }

  .rm-nav__actions .rm-btn {
    display: none;
  }

  .rm-logo img,
  .rm-logo svg {
    width: 174px;
  }

  .rm-grid--2,
  .rm-grid--3,
  .rm-grid--4,
  .rm-process,
  .rm-footer__grid {
    grid-template-columns: 1fr;
  }

  .rm-card,
  .rm-card--large,
  .rm-feature-card,
  .rm-preview-card {
    padding: 20px;
  }

  .rm-callout {
    padding: 28px 22px;
  }

  .rm-footer__main {
    padding-block: 48px 36px;
  }

  .rm-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .rm-modal {
    padding: 12px;
  }
}


/* ===== SOURCE: header.css ===== */
/* =========================================================
   RANKMORE PUBLIC HOME — FLOATING HEADER + HOMEPAGE
   ========================================================= */

/* ---------------------------------------------------------
   FLOATING HEADER
   --------------------------------------------------------- */

.rm-floating-header {
  position: sticky;
  top: 16px;
  z-index: var(--rm-z-header);
  width: min(var(--rm-container), calc(100% - 32px));
  height: 68px;
  margin: 16px auto 0;
  border: 1px solid rgba(227, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 1px 2px rgba(23, 26, 31, 0.03),
    0 10px 36px rgba(23, 26, 31, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rm-floating-header__inner {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.rm-floating-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.rm-floating-header__logo img {
  display: block;
  width: 168px;
  height: auto;
}

.rm-floating-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.rm-floating-nav__link,
.rm-nav-dropdown__trigger {
  min-height: 42px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rm-color-text-2);
  font-family: var(--rm-font-sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    color var(--rm-transition-fast),
    background var(--rm-transition-fast);
}

.rm-floating-nav__link:hover,
.rm-nav-dropdown__trigger:hover,
.rm-nav-dropdown[open] .rm-nav-dropdown__trigger {
  color: var(--rm-color-text);
  background: rgba(245, 247, 250, 0.9);
}

.rm-nav-dropdown {
  position: relative;
}

.rm-nav-dropdown > summary,
.rm-mobile-menu > summary {
  list-style: none;
}

.rm-nav-dropdown > summary::-webkit-details-marker,
.rm-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.rm-nav-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--rm-transition-fast);
}

.rm-nav-dropdown[open] .rm-nav-dropdown__trigger svg {
  transform: rotate(180deg);
}

.rm-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  width: 390px;
  padding: 12px;
  border: 1px solid var(--rm-color-border);
  border-radius: var(--rm-radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 2px 6px rgba(23, 26, 31, 0.05),
    0 22px 60px rgba(23, 26, 31, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-50%);
  animation: rm-dropdown-enter 150ms ease both;
}

.rm-nav-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

.rm-nav-dropdown__menu--wide {
  width: 680px;
}

.rm-nav-dropdown__menu--small {
  width: 350px;
}

@keyframes rm-dropdown-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.rm-nav-dropdown__eyebrow {
  padding: 7px 10px 10px;
  color: var(--rm-color-text-3);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.rm-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.rm-dropdown-item {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  transition: background var(--rm-transition-fast);
}

.rm-dropdown-item:hover {
  background: var(--rm-color-blue-soft);
}

.rm-dropdown-item__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--rm-color-blue-soft);
  color: var(--rm-color-blue);
}

.rm-dropdown-item:hover .rm-dropdown-item__icon {
  background: #ffffff;
}

.rm-dropdown-item__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rm-dropdown-item strong {
  display: block;
  color: var(--rm-color-text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.rm-dropdown-item small {
  display: block;
  margin-top: 4px;
  color: var(--rm-color-text-2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.rm-dropdown-item--simple {
  padding: 12px 13px;
}

.rm-dropdown-footer-link {
  margin-top: 8px;
  padding: 12px 13px 4px;
  border-top: 1px solid var(--rm-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--rm-color-blue);
  font-size: 13px;
  font-weight: 700;
}

.rm-dropdown-footer-link span {
  transition: transform var(--rm-transition-fast);
}

.rm-dropdown-footer-link:hover span {
  transform: translateX(3px);
}

.rm-floating-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.rm-header-login {
  height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--rm-color-text-2);
  font-size: 14px;
  font-weight: 650;
  transition:
    color var(--rm-transition-fast),
    background var(--rm-transition-fast);
}

.rm-header-login:hover {
  color: var(--rm-color-text);
  background: var(--rm-color-bg);
}

.rm-floating-header .rm-btn--sm {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(45, 105, 224, 0.18);
}

.rm-mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.rm-mobile-menu__toggle {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--rm-color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.rm-mobile-menu__toggle span {
  width: 17px;
  height: 1.5px;
  display: block;
  border-radius: 999px;
  background: var(--rm-color-text);
  transition:
    transform var(--rm-transition-fast),
    opacity var(--rm-transition-fast);
}

.rm-mobile-menu[open] .rm-mobile-menu__toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.rm-mobile-menu[open] .rm-mobile-menu__toggle span:nth-child(2) {
  opacity: 0;
}

.rm-mobile-menu[open] .rm-mobile-menu__toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.rm-mobile-menu__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -7px;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--rm-color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 4px 10px rgba(23, 26, 31, 0.05),
    0 22px 60px rgba(23, 26, 31, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.rm-mobile-menu__group {
  padding: 10px 0;
  display: grid;
}

.rm-mobile-menu__group + .rm-mobile-menu__group {
  border-top: 1px solid var(--rm-color-border);
}

.rm-mobile-menu__label {
  padding: 7px 9px;
  color: var(--rm-color-text-3);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.rm-mobile-menu__group a,
.rm-mobile-menu__main-link {
  padding: 10px 9px;
  border-radius: 9px;
  color: var(--rm-color-text);
  font-size: 14px;
  font-weight: 650;
}

.rm-mobile-menu__group a:hover,
.rm-mobile-menu__main-link:hover {
  background: var(--rm-color-blue-soft);
}

.rm-mobile-menu__main-link {
  display: block;
  margin: 3px 0;
}

.rm-mobile-menu__actions {
  margin-top: 12px;
  padding-top: 14px;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--rm-color-border);
}

.rm-mobile-menu__actions .rm-btn {
  width: 100%;
}




/* =========================================================
   GLOBAL RESPONSIVE HEADER
   These rules intentionally live in header.css so the mobile
   navigation behaves identically on every public page.
   ========================================================= */

.rm-footer__heading--link {
  display: inline-flex;
  transition: color var(--rm-transition-fast);
}

.rm-footer__heading--link:hover {
  color: var(--rm-color-blue);
}

@media (max-width: 1080px) {
  .rm-floating-header {
    width: calc(100% - 24px);
  }

  .rm-floating-header__logo img {
    width: 150px;
  }

  .rm-floating-nav {
    gap: 1px;
  }

  .rm-floating-nav__link,
  .rm-nav-dropdown__trigger {
    padding-inline: 8px;
  }

  .rm-floating-header__actions {
    gap: 2px;
  }
}

@media (max-width: 940px) {
  .rm-floating-header {
    top: 12px;
    width: calc(100% - 24px);
    height: 62px;
    margin-top: 12px;
    border-radius: 16px;
  }

  .rm-floating-header__inner {
    padding: 0 9px 0 16px;
  }

  .rm-floating-nav,
  .rm-floating-header__actions {
    display: none;
  }

  .rm-mobile-menu {
    display: block;
  }

  .rm-floating-header__logo img {
    width: 158px;
  }
}

@media (max-width: 560px) {
  .rm-floating-header {
    top: 10px;
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .rm-mobile-menu__panel {
    right: -5px;
    width: min(390px, calc(100vw - 20px));
  }
}


/* =========================================================
   LANGUAGE SWITCHER — rendered only when an alternate locale is ready
   ========================================================= */
.rm-language-switcher{
  display:flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid rgba(23,26,31,.12);
  border-radius:999px;
  background:rgba(255,255,255,.72);
}
.rm-language-switcher__link{
  min-width:34px;
  min-height:30px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--rm-color-text-2);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
}
.rm-language-switcher__link:hover,
.rm-language-switcher__link.is-active{
  background:var(--rm-color-text);
  color:#fff;
}
.rm-mobile-language-switcher{
  display:flex;
  gap:8px;
  padding:14px 0 4px;
  border-top:1px solid var(--rm-color-border);
}
.rm-mobile-language-switcher a{
  min-width:48px;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--rm-color-border);
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.rm-mobile-language-switcher a.is-active{
  border-color:var(--rm-color-text);
  background:var(--rm-color-text);
  color:#fff;
}
@media (max-width:940px){.rm-language-switcher{display:none}}


/* ===== SOURCE: pages.css ===== */
/* Generic public page scaffold */
.rm-standard-page{flex:1}.rm-page-hero{padding:150px 0 80px}.rm-page-hero__inner{max-width:900px}.rm-page-hero__actions{margin-top:32px;display:flex;flex-wrap:wrap;gap:12px}.rm-page-placeholder{padding:0 0 96px}.rm-page-placeholder .rm-card{max-width:760px}.rm-nav-dropdown__trigger.is-active,.rm-floating-nav__link.is-active{color:var(--rm-color-text);background:rgba(245,247,250,.92)}.rm-mobile-menu__label-link{padding:7px 9px!important;color:var(--rm-color-text-3)!important;font-size:11px!important;font-weight:760!important;letter-spacing:.055em;text-transform:uppercase}@media(max-width:640px){.rm-page-hero{padding:112px 0 60px}.rm-page-placeholder{padding-bottom:64px}}


/* ===== SOURCE: home.css ===== */
/* =========================================================
   RANKMORE HOME — EDITORIAL / CORPORATE-TECH PILOT V2
   Inspired by high-end consulting / innovation websites.
   Home scope only.
   ========================================================= */

.home {
  --h3-black: #0b0d10;
  --h3-white: #ffffff;
  --h3-paper: #f2f3f5;
  --h3-blue: #2d69e0;
  --h3-blue-deep: #183a82;
  --h3-indigo: #5548d9;
  --h3-ink-soft: #686f7c;
  overflow-x: clip;
}

.home .rm-home-main {
  /* Pull the Home under the sticky floating header so the header
     visually floats on top of the hero from the first viewport. */
  margin-top: -84px;
  padding-top: 0;
  overflow: clip;
}

/* HERO */
.rm-homev3-hero {
  position: relative;
  min-height: 860px;
  padding: 150px 0 110px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.rm-homev3-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .72fr);
  gap: 56px;
  align-items: center;
}

.rm-homev3-eyebrow,
.rm-homev3-section-intro > span,
.rm-homev3-cta__eyebrow {
  color: var(--h3-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.rm-homev3-hero h1 {
  max-width: 930px;
  margin: 24px 0 26px;
  color: var(--h3-black);
  font-size: clamp(60px, 6.4vw, 92px);
  line-height: .92;
  font-weight: 760;
  letter-spacing: -.072em;
}

.rm-homev3-hero h1 span {
  color: var(--h3-blue);
}

.rm-homev3-hero__copy > p {
  max-width: 660px;
  margin: 0;
  color: var(--h3-ink-soft);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.018em;
}

.rm-homev3-hero__actions {
  margin-top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.rm-homev3-button,
.rm-homev3-cta__primary,
.rm-homev3-cta__secondary {
  min-height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 780;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.rm-homev3-button--primary {
  background: var(--h3-black);
  color: #fff;
}

.rm-homev3-button--primary:hover,
.rm-homev3-cta__primary:hover {
  transform: translateY(-2px);
}

.rm-homev3-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h3-black);
  font-size: 12px;
  font-weight: 760;
}
.rm-homev3-link span { color: var(--h3-blue); }

.rm-homev3-hero__visual {
  position: relative;
  min-height: 520px;
  padding: 28px 30px 34px;
  border-top: 6px solid var(--h3-blue);
  border-right: 1px solid #dcdfe4;
  border-bottom: 1px solid #dcdfe4;
  border-left: 1px solid #dcdfe4;
  background: #fff;
}

.rm-homev3-hero__accent {
  position: absolute;
  top: -6px;
  right: -28px;
  width: 28px;
  height: 176px;
  background: var(--h3-blue);
}

.rm-homev3-hero__metric span,
.rm-homev3-hero__bars span,
.rm-homev3-hero__caption {
  color: #8d939e;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rm-homev3-hero__metric strong {
  display: block;
  margin-top: 9px;
  color: var(--h3-black);
  font-size: 84px;
  line-height: .92;
  letter-spacing: -.07em;
}

.rm-homev3-hero__metric strong small {
  margin-left: 4px;
  color: var(--h3-blue);
  font-size: 25px;
}

.rm-homev3-hero__metric em {
  display: block;
  margin-top: 12px;
  color: var(--h3-blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.rm-homev3-hero__bars {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}

.rm-homev3-hero__bars > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: center;
}

.rm-homev3-hero__bars i {
  height: 7px;
  background: #ebedf0;
}
.rm-homev3-hero__bars b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--h3-blue), var(--h3-indigo));
}
.rm-homev3-hero__bars b.is-chatgpt { width: 78%; }
.rm-homev3-hero__bars b.is-google { width: 65%; }
.rm-homev3-hero__bars b.is-perplexity { width: 45%; }
.rm-homev3-hero__bars b.is-gemini { width: 35%; }
.rm-homev3-hero__bars strong {
  color: var(--h3-black);
  font-size: 10px;
  text-align: right;
}

.rm-homev3-hero__note {
  position: absolute;
  z-index: 4;
  min-width: 190px;
  padding: 13px 15px;
  background: var(--h3-black);
  color: #fff;
  box-shadow: 0 18px 45px rgba(11,13,16,.14);
}
.rm-homev3-hero__note span {
  display: block;
  margin-bottom: 4px;
  color: #9ca2ad;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rm-homev3-hero__note strong { font-size: 10px; }
.rm-homev3-hero__note--top { top: 145px; right: -68px; }
.rm-homev3-hero__note--bottom { left: -58px; bottom: 58px; background: var(--h3-blue); }
.rm-homev3-hero__note--bottom span { color: rgba(255,255,255,.62); }

.rm-homev3-thread {
  position: absolute;
  right: -55px;
  bottom: 78px;
  width: 155px;
  height: 90px;
}
.rm-homev3-thread::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 8px;
  top: 44px;
  height: 1px;
  background: var(--h3-blue);
}
.rm-homev3-thread span {
  position: absolute;
  top: 39px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--h3-blue);
  background: #fff;
}
.rm-homev3-thread span:nth-child(1){left:5px}
.rm-homev3-thread span:nth-child(2){left:49px}
.rm-homev3-thread span:nth-child(3){left:96px}
.rm-homev3-thread span:nth-child(4){right:1px;background:var(--h3-blue)}

.rm-homev3-hero__caption {
  position: absolute;
  left: 30px;
  bottom: 18px;
}

.rm-homev3-hero__word {
  position: absolute;
  left: -10px;
  bottom: -31px;
  color: #f0f1f3;
  font-size: clamp(110px, 17vw, 250px);
  line-height: .8;
  font-weight: 820;
  letter-spacing: -.075em;
  pointer-events: none;
  white-space: nowrap;
}

/* PLATFORM INTRO */
.rm-homev3-platform {
  padding: 124px 0 136px;
  background: var(--h3-paper);
}

.rm-homev3-section-intro {
  margin-bottom: 68px;
}
.rm-homev3-section-intro h2 {
  max-width: 940px;
  margin: 18px 0 18px;
  color: var(--h3-black);
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: .94;
  font-weight: 750;
  letter-spacing: -.065em;
}
.rm-homev3-section-intro p {
  margin: 0;
  color: var(--h3-ink-soft);
  font-size: 14px;
}

/* STICKY PLATFORM PANELS */
.rm-homev3-platform-stack {
  display: grid;
  gap: 20px;
}

.rm-homev3-panel {
  position: sticky;
  min-height: 610px;
  padding: 42px;
  display: grid;
  grid-template-columns: 90px minmax(0, .82fr) minmax(330px, .78fr);
  gap: 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(11,13,16,.10);
  color: var(--h3-black);
  background: #fff;
  box-shadow: 0 10px 30px rgba(11,13,16,.035);
}
.rm-homev3-panel:nth-child(1){top:95px}
.rm-homev3-panel:nth-child(2){top:111px}
.rm-homev3-panel:nth-child(3){top:127px}
.rm-homev3-panel:nth-child(4){top:143px}
.rm-homev3-panel:nth-child(5){top:159px}
.rm-homev3-panel:nth-child(6){top:175px}

.rm-homev3-panel--blue { background: var(--h3-blue); color:#fff; border-color:transparent; }
.rm-homev3-panel--dark { background: var(--h3-black); color:#fff; border-color:transparent; }
.rm-homev3-panel--paper { background: #e8edf8; }
.rm-homev3-panel--indigo { background: var(--h3-indigo); color:#fff; border-color:transparent; }
.rm-homev3-panel--white { background:#fff; }

.rm-homev3-panel__index {
  align-self: start;
  color: rgba(11,13,16,.18);
  font-size: 82px;
  line-height: .8;
  font-weight: 800;
  letter-spacing: -.07em;
}
.rm-homev3-panel--blue .rm-homev3-panel__index,
.rm-homev3-panel--dark .rm-homev3-panel__index,
.rm-homev3-panel--indigo .rm-homev3-panel__index { color:rgba(255,255,255,.18); }

.rm-homev3-panel__copy > span {
  color: var(--h3-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.rm-homev3-panel--blue .rm-homev3-panel__copy > span,
.rm-homev3-panel--dark .rm-homev3-panel__copy > span,
.rm-homev3-panel--indigo .rm-homev3-panel__copy > span { color:rgba(255,255,255,.66); }

.rm-homev3-panel h3 {
  margin: 18px 0 18px;
  color: inherit;
  font-size: clamp(46px, 5vw, 72px);
  line-height: .92;
  font-weight: 750;
  letter-spacing: -.06em;
}
.rm-homev3-panel p {
  max-width: 520px;
  margin: 0;
  color: rgba(11,13,16,.58);
  font-size: 14px;
  line-height: 1.62;
}
.rm-homev3-panel--blue p,
.rm-homev3-panel--dark p,
.rm-homev3-panel--indigo p { color:rgba(255,255,255,.64); }

.rm-homev3-panel em {
  display: inline-block;
  margin-top: 28px;
  color: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.rm-homev3-panel__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-homev3-panel__visual--visibility {
  flex-direction: column;
  align-items:flex-start;
}
.rm-homev3-panel__visual--visibility > strong {
  font-size: clamp(92px, 10vw, 150px);
  line-height: .82;
  letter-spacing: -.08em;
}
.rm-homev3-spark {
  width: 100%;
  height: 90px;
  margin-top: 34px;
  display: flex;
  align-items:flex-end;
  gap: 7px;
}
.rm-homev3-spark i { flex:1; background:var(--h3-blue); }
.rm-homev3-spark i:nth-child(1){height:22%;opacity:.20}
.rm-homev3-spark i:nth-child(2){height:34%;opacity:.28}
.rm-homev3-spark i:nth-child(3){height:29%;opacity:.34}
.rm-homev3-spark i:nth-child(4){height:47%;opacity:.45}
.rm-homev3-spark i:nth-child(5){height:55%;opacity:.58}
.rm-homev3-spark i:nth-child(6){height:68%;opacity:.72}
.rm-homev3-spark i:nth-child(7){height:82%;opacity:.86}
.rm-homev3-spark i:nth-child(8){height:100%}

.rm-homev3-panel__visual--ranking {
  width:100%;
  display:grid;
  align-content:center;
  gap:1px;
}
.rm-homev3-panel__visual--ranking div {
  min-height:74px;
  padding:0 18px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border-top:1px solid rgba(255,255,255,.20);
}
.rm-homev3-panel__visual--ranking div:last-child { border-bottom:1px solid rgba(255,255,255,.20); }
.rm-homev3-panel__visual--ranking span { color:rgba(255,255,255,.52); font-size:10px; }
.rm-homev3-panel__visual--ranking strong { font-size:14px; }
.rm-homev3-panel__visual--ranking b { font-size:24px; }

.rm-homev3-panel__visual--health { flex-direction:column; }
.rm-homev3-panel__visual--health > strong { font-size:150px; line-height:.82; letter-spacing:-.08em; }
.rm-homev3-panel__visual--health > span { margin-top:16px; color:rgba(255,255,255,.52); font-size:10px; text-transform:uppercase; letter-spacing:.07em; }
.rm-homev3-panel__visual--health div { width:220px; margin-top:36px; display:grid; gap:8px; }
.rm-homev3-panel__visual--health i { height:6px; background:rgba(255,255,255,.16); }
.rm-homev3-panel__visual--health i:nth-child(1){width:82%;background:#fff}
.rm-homev3-panel__visual--health i:nth-child(2){width:64%}
.rm-homev3-panel__visual--health i:nth-child(3){width:46%}

.rm-homev3-panel__visual--sources { display:grid; grid-template-columns:repeat(2,110px); gap:14px; }
.rm-homev3-panel__visual--sources span { width:110px;height:110px;display:grid;place-items:center;border:1px solid rgba(11,13,16,.16);font-size:11px;font-weight:800; }

.rm-homev3-panel__visual--content { width:100%; display:grid; align-content:center; gap:13px; }
.rm-homev3-panel__visual--content i { height:9px; background:rgba(255,255,255,.22); }
.rm-homev3-panel__visual--content i:nth-child(1){width:100%;background:#fff}
.rm-homev3-panel__visual--content i:nth-child(2){width:86%}
.rm-homev3-panel__visual--content i:nth-child(3){width:72%}
.rm-homev3-panel__visual--content i:nth-child(4){width:58%}
.rm-homev3-panel__visual--content i:nth-child(5){width:39%}

.rm-homev3-panel__visual--actions { gap:12px; flex-wrap:wrap; }
.rm-homev3-panel__visual--actions span { padding:17px 22px;border:1px solid rgba(11,13,16,.14);font-size:11px;font-weight:760; }
.rm-homev3-panel__visual--actions b { color:var(--h3-blue);font-size:20px; }

.rm-homev3-platform__more { margin-top:38px;text-align:right; }
.rm-homev3-platform__more a { color:var(--h3-black);font-size:12px;font-weight:760; }
.rm-homev3-platform__more span { color:var(--h3-blue);margin-left:7px; }

/* SOLUTIONS */
.rm-homev3-solutions {
  padding: 132px 0 142px;
  background:#fff;
}

.rm-homev3-section-intro--solutions { margin-bottom:64px; }

.rm-homev3-solution-list { border-top:1px solid var(--h3-black); }

.rm-homev3-solution-row {
  position:relative;
  min-height:360px;
  padding:40px 78px 42px 0;
  display:grid;
  grid-template-columns:180px minmax(0,1fr) 230px;
  gap:36px;
  align-items:start;
  border-bottom:1px solid var(--h3-black);
  color:var(--h3-black);
  transition:background 220ms ease,color 220ms ease,padding 220ms ease;
}
.rm-homev3-solution-row:hover {
  padding-left:28px;
  padding-right:106px;
  background:var(--h3-blue);
  color:#fff;
}

.rm-homev3-solution-row__meta {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rm-homev3-solution-row__meta span { color:var(--h3-blue); }
.rm-homev3-solution-row:hover .rm-homev3-solution-row__meta span { color:#fff;opacity:.60; }

.rm-homev3-solution-row h3 {
  max-width:790px;
  margin:0;
  color:inherit;
  font-size:clamp(40px,4.8vw,66px);
  line-height:.98;
  font-weight:730;
  letter-spacing:-.055em;
}

.rm-homev3-solution-row__aside { display:grid;gap:12px;padding-top:6px; }
.rm-homev3-solution-row__aside span { color:#7b818c;font-size:10px;font-weight:680; }
.rm-homev3-solution-row:hover .rm-homev3-solution-row__aside span { color:rgba(255,255,255,.68); }

.rm-homev3-solution-row__arrow {
  position:absolute;
  right:0;
  top:36px;
  font-size:36px;
  color:var(--h3-blue);
  transition:transform 180ms ease,color 180ms ease;
}
.rm-homev3-solution-row:hover .rm-homev3-solution-row__arrow { color:#fff;transform:translate(3px,-3px); }

/* CTA */
.rm-homev3-cta {
  position:relative;
  padding:126px 0 118px;
  overflow:hidden;
  color:#fff;
  background:var(--h3-blue);
}

.rm-homev3-cta__inner { position:relative;z-index:2; }
.rm-homev3-cta__eyebrow { color:rgba(255,255,255,.68); }
.rm-homev3-cta h2 {
  max-width:1050px;
  margin:20px 0 24px;
  color:#fff;
  font-size:clamp(62px,8vw,112px);
  line-height:.90;
  font-weight:760;
  letter-spacing:-.07em;
}
.rm-homev3-cta p { max-width:620px;margin:0;color:rgba(255,255,255,.70);font-size:14px;line-height:1.65; }
.rm-homev3-cta__actions { margin-top:36px;display:flex;flex-wrap:wrap;gap:12px; }
.rm-homev3-cta__primary { min-width:205px;background:#fff;color:var(--h3-blue); }
.rm-homev3-cta__secondary { border:1px solid rgba(255,255,255,.42);color:#fff;background:transparent; }
.rm-homev3-cta__secondary:hover { background:rgba(255,255,255,.08); }

.rm-homev3-cta__mark {
  position:absolute;
  right:-50px;
  top:-6px;
  width:430px;
  height:430px;
  opacity:.22;
}
.rm-homev3-cta__mark::before,
.rm-homev3-cta__mark::after,
.rm-homev3-cta__mark span {
  content:"";
  position:absolute;
  border:1px solid #fff;
  transform:rotate(45deg);
}
.rm-homev3-cta__mark::before { width:280px;height:280px;right:60px;top:60px; }
.rm-homev3-cta__mark::after { width:190px;height:190px;right:105px;top:105px; }
.rm-homev3-cta__mark span:nth-child(1){width:100px;height:100px;right:150px;top:150px;background:rgba(255,255,255,.06)}
.rm-homev3-cta__mark span:nth-child(2){width:24px;height:24px;right:188px;top:188px;background:#fff}
.rm-homev3-cta__mark span:nth-child(3){display:none}

/* Home footer continues the closing scene. */
.home .rm-footer {
  border-top:1px solid rgba(255,255,255,.09);
  background:var(--h3-black);
  color:#fff;
}
.home .rm-footer__heading,
.home .rm-footer__heading--link { color:rgba(255,255,255,.90); }
.home .rm-footer__text,
.home .rm-footer__link { color:rgba(255,255,255,.48); }
.home .rm-footer__link:hover,
.home .rm-footer__heading--link:hover { color:#fff; }
.home .rm-footer__bottom { border-top-color:rgba(255,255,255,.09);color:rgba(255,255,255,.34); }

/* RESPONSIVE */
@media (max-width:1100px){
  .rm-homev3-hero__inner{grid-template-columns:minmax(0,1fr) minmax(370px,.65fr);gap:34px}
  .rm-homev3-hero__note--top{right:-25px}
  .rm-homev3-hero__note--bottom{left:-25px}
  .rm-homev3-panel{grid-template-columns:70px minmax(0,.9fr) minmax(300px,.7fr);gap:28px;padding:34px}
  .rm-homev3-solution-row{grid-template-columns:150px minmax(0,1fr) 190px}
}

@media (max-width:940px){
  .rm-homev3-hero{min-height:0;padding:142px 0 100px}
  .rm-homev3-hero__inner{grid-template-columns:1fr;gap:70px}
  .rm-homev3-hero__visual{max-width:640px}
  .rm-homev3-panel{min-height:560px;grid-template-columns:58px minmax(0,1fr);}
  .rm-homev3-panel__visual{grid-column:2;min-height:230px;justify-self:stretch}
  .rm-homev3-solution-row{grid-template-columns:130px minmax(0,1fr);}
  .rm-homev3-solution-row__aside{grid-column:2;grid-row:2}
}

@media (max-width:720px){
  .rm-homev3-hero h1{font-size:clamp(50px,13vw,70px)}
  .rm-homev3-hero__word{font-size:24vw;bottom:-16px}
  .rm-homev3-hero__visual{min-height:500px;padding:22px}
  .rm-homev3-hero__accent{right:-18px;width:18px}
  .rm-homev3-hero__note{display:none}
  .rm-homev3-thread{right:-16px}

  .rm-homev3-platform{padding:92px 0 98px}
  .rm-homev3-section-intro h2{font-size:clamp(46px,12vw,66px)}

  .rm-homev3-platform-stack{
    width:calc(100% + var(--rm-gutter-mobile));
    margin-right:calc(var(--rm-gutter-mobile) * -1);
    padding:2px var(--rm-gutter-mobile) 14px 0;
    display:grid;
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:min(84vw,380px);
    gap:10px;
    overflow-x:auto;
    scroll-snap-type:inline mandatory;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .rm-homev3-platform-stack::-webkit-scrollbar{display:none}
  .rm-homev3-panel,
  .rm-homev3-panel:nth-child(n){position:relative;top:auto;min-height:620px;padding:26px;display:flex;flex-direction:column;scroll-snap-align:start;}
  .rm-homev3-panel__index{font-size:58px}
  .rm-homev3-panel__copy{margin-top:28px}
  .rm-homev3-panel h3{font-size:clamp(42px,11vw,58px)}
  .rm-homev3-panel__visual{width:100%;margin-top:auto;min-height:210px}
  .rm-homev3-platform__more{text-align:left}

  .rm-homev3-solutions{padding:96px 0 100px}
  .rm-homev3-solution-row{min-height:430px;padding:28px 50px 30px 0;grid-template-columns:1fr;gap:18px}
  .rm-homev3-solution-row:hover{padding-left:18px;padding-right:62px}
  .rm-homev3-solution-row__aside{grid-column:auto;grid-row:auto}
  .rm-homev3-solution-row h3{font-size:clamp(40px,11vw,54px)}
  .rm-homev3-solution-row__arrow{top:25px;font-size:29px}

  .rm-homev3-cta{padding:94px 0}
  .rm-homev3-cta h2{font-size:clamp(58px,15vw,82px)}
  .rm-homev3-cta__mark{opacity:.14;right:-190px}
}

@media (max-width:560px){
  .rm-homev3-hero{padding-top:126px}
  .rm-homev3-hero__copy > p{font-size:15px}
  .rm-homev3-hero__actions{align-items:stretch;gap:14px}
  .rm-homev3-button--primary{width:100%}
  .rm-homev3-link{padding:7px 0}
  .rm-homev3-hero__metric strong{font-size:68px}
  .rm-homev3-hero__bars > div{grid-template-columns:66px minmax(0,1fr) 25px;gap:8px}
  .rm-homev3-hero__caption{left:22px}
  .rm-homev3-cta__actions{display:grid}
  .rm-homev3-cta__primary,.rm-homev3-cta__secondary{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .rm-homev3-button,.rm-homev3-solution-row,.rm-homev3-solution-row__arrow{transition:none}
}


@media (max-width:420px){
  .rm-homev3-platform-stack{
    grid-auto-columns:86vw;
    gap:10px;
  }
}


/* =========================================================
   MOBILE OVERSIZED WORD FIT V1
   Keep RANKMORE large, but fully visible inside the viewport.
   ========================================================= */
@media (max-width:720px){
  .rm-homev3-hero__word{
    left: var(--rm-gutter-mobile);
    right: var(--rm-gutter-mobile);
    bottom: -4px;
    width: auto;
    font-size: clamp(52px, 16.5vw, 70px);
    line-height: .92;
    letter-spacing: -.06em;
    white-space: nowrap;
  }
}

@media (max-width:420px){
  .rm-homev3-hero__word{
    font-size: clamp(48px, 16vw, 62px);
  }
}


/* =========================================================
   PERFORMANCE PASS V1
   Mobile-only rendering containment. Sticky desktop panels are not
   contained so their existing interaction remains unchanged.
   ========================================================= */
@supports (content-visibility:auto) {
  .home .rm-homev3-solutions,
  .home .rm-homev3-cta,
  .home .rm-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
  }

  @media (max-width:720px) {
    .rm-homev3-platform-stack .rm-homev3-panel {
      content-visibility: auto;
      contain-intrinsic-size: auto 620px;
    }
  }
}


/* ===== SOURCE: mobile.css ===== */
/* =========================================================
   RANKMORE MOBILE HORIZONTAL CARD SYSTEM
   Native touch scrolling + scroll snap.
   The next card remains partially visible to signal that the
   row can be swiped horizontally.
   ========================================================= */

@media (max-width: 720px) {

  /*
   * Standard card rails.
   * They deliberately extend into the right page gutter so a
   * piece of the next card remains visible off-canvas.
   */
  :where(
    .rm-home-grid-2,
    .rm-home-grid-3,
    .rm-home-grid-6,
    .rm-method-loop,
    .rm-solution-choice-grid,
    .rm-benefit-grid,
    .rm-role-grid,
    .rm-client-value-grid,
    .rm-how-context__grid,
    .rm-how-module-map,
    .rm-pricing-driver-grid,
    .rm-pricing-demo-steps,
    .rm-company-destination-grid,
    .rm-manifesto-product-grid,
    .rm-partner-audience-grid,
    .rm-partner-model-grid,
    .rm-partner-steps,
    .rm-resource-type-grid,
    .rm-resource-listing-grid,
    .rm-resource-explore__grid
  ) {
    width: calc(100% + var(--rm-gutter));
    margin-right: calc(var(--rm-gutter) * -1);
    padding: 2px var(--rm-gutter) 14px 0;

    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: min(80vw, 340px);
    gap: 10px;

    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  :where(
    .rm-home-grid-2,
    .rm-home-grid-3,
    .rm-home-grid-6,
    .rm-method-loop,
    .rm-solution-choice-grid,
    .rm-benefit-grid,
    .rm-role-grid,
    .rm-client-value-grid,
    .rm-how-context__grid,
    .rm-how-module-map,
    .rm-pricing-driver-grid,
    .rm-pricing-demo-steps,
    .rm-company-destination-grid,
    .rm-manifesto-product-grid,
    .rm-partner-audience-grid,
    .rm-partner-model-grid,
    .rm-partner-steps,
    .rm-resource-type-grid,
    .rm-resource-listing-grid,
    .rm-resource-explore__grid
  )::-webkit-scrollbar {
    display: none;
  }

  :where(
    .rm-home-grid-2,
    .rm-home-grid-3,
    .rm-home-grid-6,
    .rm-method-loop,
    .rm-solution-choice-grid,
    .rm-benefit-grid,
    .rm-role-grid,
    .rm-client-value-grid,
    .rm-how-context__grid,
    .rm-how-module-map,
    .rm-pricing-driver-grid,
    .rm-pricing-demo-steps,
    .rm-company-destination-grid,
    .rm-manifesto-product-grid,
    .rm-partner-audience-grid,
    .rm-partner-model-grid,
    .rm-partner-steps,
    .rm-resource-type-grid,
    .rm-resource-listing-grid,
    .rm-resource-explore__grid
  ) > * {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  /*
   * Platform and How-it-works use large cards that are sticky on
   * desktop. On mobile they become a horizontal deck instead of a
   * vertical stack.
   */
  .rm-stack-cards,
  .rm-how-stack {
    width: calc(100% + var(--rm-gutter));
    margin-right: calc(var(--rm-gutter) * -1);
    padding: 2px var(--rm-gutter) 16px 0;

    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 380px);
    gap: 10px;

    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .rm-stack-cards::-webkit-scrollbar,
  .rm-how-stack::-webkit-scrollbar {
    display: none;
  }

  .rm-stack-card,
  .rm-how-step,
  .rm-stack-card:nth-child(n),
  .rm-how-step:nth-child(n) {
    position: relative !important;
    top: auto !important;
    width: auto;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  .rm-stack-card:last-child {
    margin-bottom: 0 !important;
  }

  /* More compact complex cards when they become slides. */
  .rm-stack-card {
    min-height: 100%;
  }

  .rm-how-step {
    min-height: 100%;
  }

  /*
   * Resource-family navigation: keep it compact and horizontally
   * swipeable instead of turning the four archive links into a
   * long vertical block.
   */
  .rm-resource-nav {
    display: block;
  }

  .rm-resource-nav__home {
    min-height: 44px;
    margin-bottom: 6px;
  }

  .rm-resource-nav__items {
    width: calc(100% + 8px);
    margin-right: -8px;
    padding: 0 8px 6px 0;

    display: flex !important;
    gap: 7px;

    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .rm-resource-nav__items::-webkit-scrollbar {
    display: none;
  }

  .rm-resource-nav__item {
    flex: 0 0 min(70vw, 245px);
    min-height: 60px;
    scroll-snap-align: start;
  }

  .rm-resource-nav__item small {
    display: block;
  }
}

@media (max-width: 420px) {
  :where(
    .rm-home-grid-2,
    .rm-home-grid-3,
    .rm-home-grid-6,
    .rm-method-loop,
    .rm-solution-choice-grid,
    .rm-benefit-grid,
    .rm-role-grid,
    .rm-client-value-grid,
    .rm-how-context__grid,
    .rm-how-module-map,
    .rm-pricing-driver-grid,
    .rm-pricing-demo-steps,
    .rm-company-destination-grid,
    .rm-manifesto-product-grid,
    .rm-partner-audience-grid,
    .rm-partner-model-grid,
    .rm-partner-steps,
    .rm-resource-type-grid,
    .rm-resource-listing-grid,
    .rm-resource-explore__grid
  ) {
    grid-auto-columns: 82vw;
  }

  .rm-stack-cards,
  .rm-how-stack {
    grid-auto-columns: 86vw;
  }
}

