/* ROL'S FUN FACTORY — brand + components (works with Tailwind utilities) */

:root {
  --rff-base: #1c1a49;
  --rff-btn: #018ef8;
  --rff-green: #23b72b;
  --rff-yellow: #ffd707;
  --rff-red: #ed292a;
  --rff-cream: #f4f6fb;
  --rff-white: #ffffff;
  --rff-text-on-dark: rgba(255, 255, 255, 0.92);
  --rff-text-muted-dark: rgba(255, 255, 255, 0.72);
  --rff-radius-xl: 1.5rem;
  --rff-radius-2xl: 2rem;
  --rff-shadow-card: 0 18px 50px -12px rgba(28, 26, 73, 0.35);
  --rff-max: 72rem;
  /* Pastel surfaces (tints of brand palette — flat, no gradients) */
  --rff-pastel-page: #f7f6fb;
  --rff-pastel-lilac: #eceafa;
  --rff-pastel-sky: #e0f2fe;
  --rff-pastel-mint: #e8f5e9;
  --rff-pastel-rose: #fce8ea;
  --rff-pastel-peach: #fff3e0;
  --rff-pastel-butter: #fff9e6;
  --rff-pastel-sand: #f3f1ed;
  --rff-pastel-indigo: #e8eaf6;

  /* Brand colour scales — 25 (lightest tint) → 900 (darkest shade) */
  /* Yellow (#FFD707 = 400) */
  --rff-yellow-25:  #fffde8;
  --rff-yellow-50:  #fffacc;
  --rff-yellow-100: #fff4a0;
  --rff-yellow-200: #ffe84d;
  --rff-yellow-300: #ffdd1a;
  --rff-yellow-400: #ffd707;
  --rff-yellow-500: #e6c200;
  --rff-yellow-600: #b89b00;
  --rff-yellow-700: #8a7400; /* accessible on light bg (≥3:1 large text) */
  --rff-yellow-800: #5c4e00;
  --rff-yellow-900: #2e2700;
  /* Blue (#018EF8 = 400) */
  --rff-blue-25:  #e6f4ff;
  --rff-blue-50:  #cce9ff;
  --rff-blue-100: #99d3ff;
  --rff-blue-200: #4db3ff;
  --rff-blue-300: #1a9eff;
  --rff-blue-400: #018ef8;
  --rff-blue-500: #0178d4;
  --rff-blue-600: #015ea8;
  --rff-blue-700: #00467c;
  --rff-blue-800: #002d50;
  --rff-blue-900: #001526;
  /* Green (#23B72B = 400) */
  --rff-green-25:  #e8fbe9;
  --rff-green-50:  #d1f8d4;
  --rff-green-100: #a3f1a8;
  --rff-green-200: #5de566;
  --rff-green-300: #33d43d;
  --rff-green-400: #23b72b;
  --rff-green-500: #1d9924; /* accessible on light bg (≥3:1 large text) */
  --rff-green-600: #157a1c;
  --rff-green-700: #0e5c14;
  --rff-green-800: #073d0d;
  --rff-green-900: #031f07;
  /* Red (#ED292A = 400) */
  --rff-red-25:  #fee8e8;
  --rff-red-50:  #fdd1d1;
  --rff-red-100: #fba3a3;
  --rff-red-200: #f85e5e;
  --rff-red-300: #f13a3b;
  --rff-red-400: #ed292a;
  --rff-red-500: #d02021;
  --rff-red-600: #a81a1a;
  --rff-red-700: #801313;
  --rff-red-800: #580d0d;
  --rff-red-900: #2b0606;
  /* Neutral (base #1C1A49 = 900) */
  --rff-neutral-25:  #f7f6fb;
  --rff-neutral-50:  #efedf5;
  --rff-neutral-100: #ddd9eb;
  --rff-neutral-200: #bdb9d7;
  --rff-neutral-300: #9c98c3;
  --rff-neutral-400: #7b77af;
  --rff-neutral-500: #5a569b;
  --rff-neutral-600: #453f84;
  --rff-neutral-700: #332c73;
  --rff-neutral-800: #271f5c;
  --rff-neutral-900: #1c1a49;

  /* Fluid type & spacing (shared “demo-style” rhythm — use with .rff-fluid-* utilities) */
  --rff-fluid-section-y: clamp(2.5rem, 6vw, 4.25rem);
  --rff-fluid-section-x: clamp(1rem, 4vw, 2rem);
  --rff-fluid-h2: clamp(1.65rem, 4vw, 2.5rem);
  --rff-fluid-h3: clamp(1.2rem, 2.8vw, 1.5rem);
  --rff-fluid-body: clamp(1rem, 2.2vw, 1.0625rem);
  --rff-fluid-gap: clamp(1.25rem, 3vw, 2.5rem);
  --rff-fluid-max-copy: 32rem;
  --rff-fluid-tab-pad-y: clamp(0.55rem, 1.5vw, 0.7rem);
  --rff-fluid-tab-pad-x: clamp(1rem, 2.5vw, 1.35rem);
}

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

html {
  scroll-behavior: smooth;
}

/* Match Tailwind-style 2rem radius when CDN build omits rounded-4xl */
.rounded-4xl {
  border-radius: 2rem;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.0625rem; /* 17px — comfortable reading */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Reserve space when floating announcement is visible (fixed; does not flow in document) */
body.rff-announcement-open {
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

/* Optional: slightly tighter headings handled in Tailwind; body copy inherits rhythm */
main p,
main li {
  line-height: 1.7;
}

/* Skip link */
.rff-skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--rff-btn);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.rff-skip:focus {
  left: 0;
  top: 0;
}

/* Site-wide Early Bird announcement (injected on document.body in main.js) — fixed to viewport bottom, inset so it floats (not docked) */
.rff-announcement {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(44rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  background: var(--rff-yellow);
  color: var(--rff-base);
  border: 1px solid rgba(28, 26, 73, 0.12);
  border-radius: 0.6875rem;
  box-shadow: 0 10px 36px -10px rgba(28, 26, 73, 0.22), 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  font-size: clamp(0.8125rem, 2vw, 0.9375rem);
  line-height: 1.4;
}

.rff-announcement__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  padding: 0.45rem 0.6rem 0.45rem 0.45rem;
}

/* Left zone — left padding reserves space for the close button; graphic is the only flow child */
.rff-announcement__left-zone {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.4rem 0.3rem 2.25rem;
  border-radius: 0.5rem;
}

.rff-announcement__graphic {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(190px, 32vw);
  object-fit: contain;
  object-position: left center;
  transform: translateY(3px);
}

/* Close: absolutely fills the reserved left-padding space → perfectly centred between strip edge and graphic */
.rff-announcement__close {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  background: transparent;
  color: var(--rff-base);
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.rff-announcement__left-zone:hover .rff-announcement__close,
.rff-announcement__close:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.rff-announcement__close:focus-visible {
  outline: 2px solid var(--rff-base);
  outline-offset: 2px;
}

/* Center body — headline on top row, countdown on row below */
.rff-announcement__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.rff-announcement__link {
  display: inline-block;
  font-weight: 600;
  color: var(--rff-base);
  text-decoration: none;
  line-height: 1.3;
}

.rff-announcement__link:hover,
.rff-announcement__link:focus-visible {
  text-decoration: none;
}

.rff-announcement__headline {
  font-weight: 700;
}

.rff-announcement__link:focus-visible {
  outline: 2px solid var(--rff-base);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Right decorative arrow — subtle periodic nudge animation */
@keyframes rff-arrow-nudge {
  0%, 70%, 100% { transform: translateX(0); }
  85%            { transform: translateX(6px); }
}

.rff-announcement__cta-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  color: var(--rff-base);
  opacity: 1;
  background: rgba(28, 26, 73, 0.14);
  border-radius: 0.5rem;
}

.rff-announcement__cta-arrow svg {
  display: block;
  animation: rff-arrow-nudge 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rff-announcement__cta-arrow svg {
    animation: none;
  }
}

.rff-announcement__countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
  font-size: 0.78em;
  opacity: 0.72;
}

.rff-announcement__cd-seg {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}

.rff-announcement__cd-num {
  min-width: 1.5em;
  font-weight: 700;
  color: var(--rff-base);
  text-align: center;
}

.rff-announcement__cd-unit {
  font-size: 0.75em;
  font-weight: 600;
  color: rgba(28, 26, 73, 0.55);
  text-transform: lowercase;
}

.rff-announcement__sep {
  color: rgba(28, 26, 73, 0.35);
  font-weight: 600;
  user-select: none;
}

.rff-announcement__link:focus-visible {
  outline: 2px solid var(--rff-base);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .rff-announcement__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 0.45rem 0.85rem 0.45rem 1.15rem;
  }

  .rff-announcement__graphic-wrap {
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  }

  .rff-announcement__left {
    text-align: left;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
  }

  .rff-announcement__countdown {
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

/* Sticky header — same behaviour as ROLCC: transparent blur over hero, solid bar after scroll */
.rff-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Over hero: subtle glass bar (RFF pastels stay readable with dark nav text) */
.rff-header:not(.header-scrolled) {
  background: #ffffff;
  border-bottom: 1px solid rgba(28, 26, 73, 0.07);
  box-shadow: none;
}

.rff-header:not(.header-scrolled).header-over-hero--light {
  background: #ffffff;
  border-bottom: 1px solid rgba(28, 26, 73, 0.08);
}

.rff-header:not(.header-scrolled) .rff-header__inner {
  background: transparent;
}

/* Past hero: solid patch (matches ROLCC “scrolled” state) */
.rff-header.header-scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(28, 26, 73, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rff-header__inner {
  max-width: var(--rff-max);
  margin-inline: auto;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rff-logo {
  text-decoration: none;
  color: var(--rff-base);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}
.rff-logo:hover {
  opacity: 0.9;
}
.rff-logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.15rem;
}

.rff-nav-link {
  color: #475569;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Over hero: soften non-active links (ROLCC-style) */
.rff-header:not(.header-scrolled) .rff-nav-link:not(.is-active) {
  opacity: 0.82;
}
.rff-header:not(.header-scrolled) .rff-nav-link:not(.is-active):hover,
.rff-header:not(.header-scrolled) .rff-nav-link:not(.is-active):focus-visible {
  opacity: 1;
}

.rff-nav-link:hover,
.rff-nav-link:focus-visible {
  color: var(--rff-btn);
}

.rff-nav-link.is-active {
  color: var(--rff-btn);
  font-weight: 600;
  opacity: 1 !important;
}

.rff-header.header-scrolled .rff-nav-link {
  color: #334155;
}
.rff-header.header-scrolled .rff-nav-link.is-active {
  color: var(--rff-btn);
}
.rff-header.header-scrolled .rff-nav-link:hover {
  color: var(--rff-btn);
}

.rff-header__cta {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.rff-header__cta:hover {
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .rff-header .rff-nav-link,
  .rff-header .rff-header__cta {
    font-size: 14px;
  }
}

.rff-header__hamburger {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.rff-header:not(.header-scrolled) .rff-header__hamburger {
  border-color: rgba(28, 26, 73, 0.2);
}
.rff-header.header-scrolled .rff-header__hamburger {
  border-color: rgb(203, 213, 225);
  color: rgb(51, 65, 85);
}
.rff-header.header-scrolled .rff-header__hamburger:hover {
  background: rgb(241, 245, 249);
}

/* Dropdown (ROLCC: hover on desktop + click; .is-open for touch) */
.rff-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.35rem;
  min-width: 14rem;
  padding: 0.5rem 0;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(28, 26, 73, 0.1);
  box-shadow: 0 20px 40px -12px rgba(28, 26, 73, 0.2);
  transition: opacity 0.2s ease;
}
@media (min-width: 768px) {
  .rff-dropdown:hover .rff-dropdown-panel {
    display: block;
  }
}
.rff-dropdown.is-open .rff-dropdown-panel {
  display: block !important;
}

.rff-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.rff-dropdown-link:hover,
.rff-dropdown-link:focus-visible {
  background: var(--rff-cream);
  color: var(--rff-base);
}
.rff-dropdown-link.is-active {
  font-weight: 600;
  color: var(--rff-btn);
}

/* Mobile menu (ROLCC: hidden + is-open toggles display) */
.rff-menu {
  border-top: 1px solid rgba(28, 26, 73, 0.08);
  background: #fff;
  transition: opacity 0.2s ease;
}
.rff-menu.is-open {
  display: block !important;
}
.rff-menu a {
  display: block;
  padding: 0.65rem 0;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 26, 73, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}
.rff-menu a:hover {
  color: var(--rff-btn);
}
.rff-menu a.is-active {
  color: var(--rff-btn);
  font-weight: 600;
}

/* Buttons */
.rff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.rff-btn:focus-visible {
  outline: 2px solid var(--rff-btn);
  outline-offset: 2px;
}
.rff-btn--primary {
  background: var(--rff-btn);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(1, 142, 248, 0.55);
}
.rff-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.rff-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.rff-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.rff-btn--outline-dark {
  background: transparent;
  color: var(--rff-base);
  border: 2px solid rgba(28, 26, 73, 0.2);
}
.rff-btn--outline-dark:hover {
  border-color: var(--rff-btn);
  color: var(--rff-btn);
}

/* B2B organizations promo — RFF colours, Montserrat, max-w-6xl shell */
.rff-b2b-hs {
  background: var(--rff-pastel-page);
  color: var(--rff-text-on-dark);
  font-family: "Montserrat", system-ui, sans-serif;
  padding: clamp(2.25rem, 4vw, 3rem) 0 clamp(3.25rem, 6vw, 4.5rem);
  box-sizing: border-box;
}
.rff-b2b-hs__card {
  background-color: var(--rff-base);
  border-radius: var(--rff-radius-xl);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 12px 40px -12px rgba(28, 26, 73, 0.28);
}
.rff-b2b-hs__carousel {
  display: flex;
  align-self: center;
  overflow: hidden;
  width: 100%;
}
.rff-b2b-hs__carousel-track {
  flex-direction: row;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(3.25rem, 5vw, 4.5rem);
  width: 100%;
}
.rff-b2b-hs__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0 1.25rem 2.35rem;
  gap: 0;
  box-sizing: border-box;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: 0 clamp(1.25rem, 3vw, 2rem) 2.85rem;
  }
}
@media (min-width: 64rem) {
  .rff-b2b-hs__row {
    margin-top: 1.75rem;
    padding: 0 clamp(1.5rem, 3.5vw, 2.5rem) 3.35rem;
  }
}
.rff-b2b-hs__copy {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__copy {
    width: auto;
    flex: 0 1 28rem;
    max-width: 28rem;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (min-width: 64rem) {
  .rff-b2b-hs__copy {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.rff-b2b-hs__title {
  -webkit-font-smoothing: antialiased;
  text-align: left;
  align-self: stretch;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  width: 100%;
  letter-spacing: -0.02em;
  color: var(--rff-white);
  font-weight: 800;
  line-height: 1.2;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__title {
    margin-bottom: 0.65rem;
  }
}
@media (min-width: 64rem) {
  .rff-b2b-hs__title {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    margin-bottom: 0.6rem;
  }
}
.rff-b2b-hs__markdown {
  -webkit-font-smoothing: antialiased;
  text-align: left;
  align-self: stretch;
  width: 100%;
  font-size: 0.9375rem;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--rff-text-on-dark);
  font-weight: 500;
}
.rff-b2b-hs__markdown p {
  margin: 0;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__markdown {
    font-size: 1rem;
  }
}
@media (min-width: 64rem) {
  .rff-b2b-hs__markdown {
    font-size: 1.0625rem;
    line-height: 1.5;
  }
}
.rff-b2b-hs__actions {
  align-self: stretch;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin-top: 1.1rem;
  gap: 0.65rem;
  width: 100%;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__actions {
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1.15rem;
    gap: 0.65rem 0.75rem;
    width: auto;
    max-width: 100%;
  }
}
@media (min-width: 64rem) {
  .rff-b2b-hs__actions {
    margin-top: 1.35rem;
  }
}
.rff-b2b-hs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  min-height: 2.875rem;
  line-height: 1.2;
  max-width: 20.4375rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  width: auto;
  align-self: flex-start;
  box-sizing: border-box;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  user-select: none;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__btn {
    white-space: nowrap;
    font-size: 1rem;
    min-height: 3rem;
    padding: calc((3rem - 1.2em) / 2) 1.5rem;
  }
}
.rff-b2b-hs__btn:focus-visible {
  outline: 2px solid var(--rff-yellow-400);
  outline-offset: 2px;
}
.rff-b2b-hs__btn--cream {
  background: var(--rff-yellow-25);
  color: var(--rff-base);
  border-color: rgba(255, 255, 255, 0.45) !important;
}
.rff-b2b-hs__btn--cream:hover {
  background: var(--rff-yellow-50);
}
.rff-b2b-hs__btn--cream:active {
  background: var(--rff-yellow-100);
}
.rff-b2b-hs__btn--blue {
  background: var(--rff-btn);
  color: var(--rff-white);
  border-color: transparent !important;
  box-shadow: 0 4px 14px -4px rgba(1, 142, 248, 0.45);
}
.rff-b2b-hs__btn--blue:hover {
  filter: brightness(1.06);
}
.rff-b2b-hs__btn--blue:active {
  filter: brightness(0.96);
}
.rff-b2b-hs__btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.rff-b2b-hs__media {
  width: 100%;
  max-width: min(100%, 29rem);
  margin: 0 auto;
  padding: 1.25rem 0.75rem 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
@media (min-width: 48rem) {
  .rff-b2b-hs__media {
    width: auto;
    flex: 0 1 26rem;
    max-width: min(100%, 27rem);
    margin: 0;
    padding: 0 0.5rem 0 0;
  }
}
@media (min-width: 64rem) {
  .rff-b2b-hs__media {
    flex: 0 1 31rem;
    max-width: min(100%, 32rem);
    padding: 0 0.75rem 0 0;
  }
}
.rff-b2b-hs__media-inner {
  max-width: min(100%, 880px);
  width: 100%;
}
.rff-b2b-hs__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  color: transparent;
  border-radius: 0.5rem;
}

/* Parent testimonials — portrait cards, ref palette, hover tilt (matches retro-testimonial framer hover) */
.rff-retro-t {
  --rff-retro-surface: #f9f5f2;
  --rff-retro-ink: #3d3a3c;
  --rff-retro-ink-soft: rgba(61, 58, 60, 0.78);
  --rff-retro-ink-muted: rgba(61, 58, 60, 0.55);
  overflow-x: visible;
  overflow-y: visible;
  background: linear-gradient(180deg, rgba(249, 245, 242, 0.5) 0%, rgba(247, 246, 251, 0.92) 100%),
    url("https://images.ctfassets.net/v3n26e09qg2r/21aSvuHeAF6KmsLXPnhWUV/f38a7d3ad9c5239a9844886c74b48bec/sky-bg.webp") center / cover no-repeat;
}
.rff-retro-t__shell {
  position: relative;
  margin-top: 2rem;
  overflow: visible;
}
.rff-retro-t__track {
  /* --rff-retro-t-gap: shared by .rff-retro-t__row */
  --rff-retro-t-gap: 1rem;
  --rff-retro-t-inset-x: 1.75rem;
  --rff-retro-t-inset-y-top: 1rem;
  --rff-retro-t-inset-y-bottom: 2.25rem;
  display: block;
  width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  padding: var(--rff-retro-t-inset-y-top) var(--rff-retro-t-inset-x) var(--rff-retro-t-inset-y-bottom);
  box-sizing: border-box;
}
.rff-retro-t__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rff-retro-t-gap);
  width: 100%;
}
@media (min-width: 48rem) {
  .rff-retro-t__track {
    --rff-retro-t-gap: 1.125rem;
    --rff-retro-t-inset-x: 4.5rem;
    --rff-retro-t-inset-y-top: 2rem;
    /* Room below cards for box-shadow + hover */
    --rff-retro-t-inset-y-bottom: 4.5rem;
  }
  .rff-retro-t__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rff-retro-t-gap);
    justify-content: start;
    align-content: start;
    align-items: stretch;
  }
}
/* Portrait shell — md+: 3-column grid; mobile: stacked column, max-width cards */
.rff-retro-t__card {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 17.5rem);
  padding: 0.45rem;
  box-sizing: border-box;
  perspective: 1000px;
}
@media (min-width: 48rem) {
  .rff-retro-t__card {
    flex: initial;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
.rff-retro-t__inner {
  position: relative;
  height: 100%;
  min-height: 25.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 40px -18px rgba(45, 42, 40, 0.22);
  border: 1px solid rgba(28, 26, 73, 0.05);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, opacity 0.55s ease;
  will-change: transform;
}
@media (min-width: 48rem) {
  .rff-retro-t__inner {
    min-height: 28rem;
  }
}
/* Reveal: opacity only (keeps transform free for hover tilt) */
@media (prefers-reduced-motion: reduce) {
  .rff-retro-t__inner {
    transition: opacity 0.45s ease;
  }
}
.rff-retro-t__inner--mint {
  background: linear-gradient(180deg, #f4faf6 0%, #eef6f0 100%);
}
.rff-retro-t__inner--sky {
  background: linear-gradient(180deg, #f3f8fc 0%, #edf4fb 100%);
}
.rff-retro-t__inner--lilac {
  background: linear-gradient(180deg, #f5f4fb 0%, #eef0fa 100%);
}
.rff-retro-t__inner--butter {
  background: linear-gradient(180deg, #fdfaf3 0%, #f9f5eb 100%);
}
.rff-retro-t__inner--rose {
  background: linear-gradient(180deg, #fcf6f7 0%, #f9eef0 100%);
}
.rff-retro-t__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 25.5rem;
  height: 100%;
  padding: 1rem 1.25rem 1.4rem;
  text-align: left;
  box-sizing: border-box;
}
@media (min-width: 48rem) {
  .rff-retro-t__body {
    min-height: 28rem;
    padding: 1.05rem 1.3rem 1.5rem;
  }
}
.rff-retro-t__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-height: 0;
}
.rff-retro-t__mark {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  margin: 0 0 0.4rem;
  padding: 0;
  color: rgba(61, 58, 60, 0.48);
  user-select: none;
}
.rff-retro-t__mark-icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}
@media (min-width: 48rem) {
  .rff-retro-t__mark {
    margin-bottom: 0.45rem;
  }
  .rff-retro-t__mark-icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}
.rff-retro-t__quote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--rff-retro-ink);
  flex: 0 1 auto;
}
@media (min-width: 48rem) {
  .rff-retro-t__quote {
    font-size: 1.0625rem;
    line-height: 1.62;
  }
}
.rff-retro-t__by {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: none;
}
.rff-retro-t__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--rff-base);
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(28, 26, 73, 0.1);
}
.rff-retro-t__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rff-retro-t__meta {
  min-width: 0;
  text-align: left;
}
.rff-retro-t__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rff-retro-ink);
  line-height: 1.25;
}
.rff-retro-t__role {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rff-retro-ink-muted);
  line-height: 1.35;
}

/* Cards */
.rff-card-xl {
  border-radius: var(--rff-radius-2xl);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rff-card-xl:hover {
  transform: translateY(-4px);
  box-shadow: var(--rff-shadow-card);
}

/* Scroll reveal */
.rff-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.rff-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retro testimonials: reveal uses opacity only so hover tilt (transform) is not stripped by .rff-reveal */
.rff-retro-t .rff-retro-t__inner.rff-reveal {
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease, opacity 0.55s ease;
}
.rff-retro-t .rff-retro-t__inner.rff-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.rff-retro-t__row > .rff-retro-t__card:nth-child(1) .rff-retro-t__inner.rff-reveal {
  transition-delay: 0s, 0s, 0s;
}
.rff-retro-t__row > .rff-retro-t__card:nth-child(2) .rff-retro-t__inner.rff-reveal {
  transition-delay: 0s, 0s, 0.08s;
}
.rff-retro-t__row > .rff-retro-t__card:nth-child(3) .rff-retro-t__inner.rff-reveal {
  transition-delay: 0s, 0s, 0.16s;
}

/* Hover tilt after reveal overrides — matches framer whileHover */
.rff-retro-t__card:hover .rff-retro-t__inner.rff-reveal.is-visible {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) rotate(3deg) scale(1.02);
  box-shadow: 0 18px 42px -18px rgba(45, 42, 40, 0.26);
}
@media (prefers-reduced-motion: reduce) {
  .rff-retro-t__card:hover .rff-retro-t__inner.rff-reveal.is-visible {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 12px 40px -18px rgba(45, 42, 40, 0.22);
  }
}

/* Home hero — rotating line (hero-v3 variant title) */
.rff-hero-rotate__inner {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rff-hero-rotate__inner.rff-hero-rotate__inner--out {
  opacity: 0;
  transform: translateY(-0.12em);
}

.rff-hero-rotate__inner.rff-hero-rotate__inner--in {
  opacity: 0;
  transform: translateY(0.14em);
}

@media (prefers-reduced-motion: reduce) {
  .rff-hero-rotate__inner {
    transition: none;
  }
  .rff-hero-rotate__inner.rff-hero-rotate__inner--out,
  .rff-hero-rotate__inner.rff-hero-rotate__inner--in {
    opacity: 1;
    transform: none;
  }
}

/* Headspace hero-v3: Emotion .css-lvi47o later sets max-width:100%, so cards go full-bleed vs site max-w-6xl — align wrapper + allow grid shrink */
#hero-banner .rff-hero-v3 {
  box-sizing: border-box;
  max-width: var(--rff-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  #hero-banner .rff-hero-v3 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  #hero-banner .rff-hero-v3 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
#hero-banner [data-testid="hero-cards-container"],
#hero-banner [data-testid="hero-card"] {
  min-width: 0;
  box-sizing: border-box;
}
/* Card background: lightest yellow tint from brand scale — overrides Headspace Emotion default */
#hero-banner [data-testid="hero-card"] {
  background-color: var(--rff-yellow-25);
}

/* Hero program cards — brand type, tighter line-height than Headspace markdown defaults */
#hero-banner .rff-hero-card__title {
  text-align: center;
  max-width: 28.125rem;
  padding-top: 1rem;
}
#hero-banner .rff-hero-card__program {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--rff-base);
  margin: 0;
}
@media (min-width: 48rem) {
  #hero-banner .rff-hero-card__program {
    font-size: 1.375rem;
  }
}
@media (min-width: 64rem) {
  #hero-banner .rff-hero-card__program {
    font-size: 1.5rem;
  }
}
#hero-banner .rff-hero-card__blurb {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgb(71 85 105);
  margin: 0.5rem 0 0;
}
@media (min-width: 48rem) {
  #hero-banner .rff-hero-card__blurb {
    font-size: 0.9375rem;
  }
}

/* Focus tiles (Headspace section 2 pattern) */
.rff-focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 48rem) {
  .rff-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.rff-focus-tile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(28, 26, 73, 0.14);
  border-radius: 0.75rem;
  background: #ffffff;
  color: rgba(28, 26, 73, 0.86);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.rff-focus-tile:hover {
  border-color: rgba(28, 26, 73, 0.22);
  box-shadow: 0 10px 24px -14px rgba(28, 26, 73, 0.35);
  transform: translateY(-1px);
}
.rff-focus-tile:focus-visible {
  outline: 3px solid rgba(1, 142, 248, 0.45);
  outline-offset: 3px;
}

.rff-focus-tile__label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rff-focus-tile__right {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.rff-focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(28, 26, 73, 0.06);
  color: var(--rff-base);
}
.rff-focus-icon svg {
  display: block;
}
.rff-focus-tile__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(28, 26, 73, 0.6);
  transition: transform 0.18s ease;
}
.rff-focus-tile:hover .rff-focus-tile__chev {
  transform: translateX(2px);
}

@keyframes rff-focus-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes rff-focus-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(6deg);
  }
}
@keyframes rff-focus-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
.rff-focus-icon--focus {
  animation: rff-focus-pulse 2.6s ease-in-out infinite;
}
.rff-focus-icon--discipline {
  animation: rff-focus-float 2.2s ease-in-out infinite;
}
.rff-focus-icon--expression {
  animation: rff-focus-wiggle 2.4s ease-in-out infinite;
}
.rff-focus-icon--creative {
  animation: rff-focus-pulse 2.8s ease-in-out infinite;
}
.rff-focus-icon--academics {
  animation: rff-focus-float 2.5s ease-in-out infinite;
}
.rff-focus-icon--stage {
  animation: rff-focus-wiggle 2.9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .rff-focus-icon--focus,
  .rff-focus-icon--discipline,
  .rff-focus-icon--expression,
  .rff-focus-icon--creative,
  .rff-focus-icon--academics,
  .rff-focus-icon--stage {
    animation: none;
  }
  .rff-focus-tile,
  .rff-focus-tile__chev {
    transition: none;
  }
  .rff-focus-tile:hover {
    transform: none;
  }
}

/* Deeper dive (Demo section 3: pill tabs + panels) */
.rff-dd {
  margin: 0;
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  background: var(--rff-pastel-page);
  font-family: inherit;
}
.rff-dd__inner {
  max-width: var(--rff-max);
  margin: 0 auto;
}
.rff-dd__title {
  text-align: center;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  color: var(--rff-base);
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
}
.rff-dd__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  justify-content: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.rff-dd__tab {
  border: 1px solid rgba(28, 26, 73, 0.12);
  background: #ffffff;
  color: #334155;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.rff-dd__tab.is-active {
  background: var(--rff-base);
  color: #ffffff;
}
.rff-dd__tab:focus-visible {
  outline: 3px solid rgba(1, 142, 248, 0.45);
  outline-offset: 3px;
}
.rff-dd__panels {
  position: relative;
  overflow: visible;
  padding-inline: clamp(0.75rem, 2.5vw, 1.5rem);
}
.rff-dd__track {
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1rem);
  transform: translateX(var(--rff-dd-track-x, 0px));
  transition: transform 0.28s ease;
  will-change: transform;
}
.rff-dd__panel {
  flex: 0 0 min(100%, 56rem);
  max-width: min(100%, 56rem);
  height: 100%;
}
.rff-dd__card {
  border: 1px solid rgba(28, 26, 73, 0.12);
  border-radius: 20px;
  padding: clamp(1.75rem, 4.5vw, 2.85rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 4vw, 2.75rem);
  height: 100%;
  min-height: clamp(30rem, 46vw, 34rem);
}
@media (min-width: 48rem) {
  .rff-dd__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
.rff-dd__copy {
  color: var(--rff-base);
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-left: 0.95rem;
  padding-top: 0.35rem;
}
.rff-dd__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(28, 26, 73, 0.12);
  background: var(--rff-dd-surface-bg, #ffffff);
  color: rgba(28, 26, 73, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rff-dd__h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0;
  line-height: 1.15;
}
.rff-dd__p {
  margin: 0.75rem 0 0;
  color: rgba(28, 26, 73, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  line-height: 1.55;
}

.rff-dd__build {
  margin-top: 1.25rem;
}
.rff-dd__build-title {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(28, 26, 73, 0.75);
  text-transform: none;
}
.rff-dd__build-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.rff-dd__build-list li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(28, 26, 73, 0.88);
  font-size: 0.95rem;
  line-height: 1.35;
}
.rff-dd__build-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  background: var(--rff-dd-accent, var(--rff-base));
  border: 1px solid rgba(28, 26, 73, 0.08);
}
.rff-dd__build-list li::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.36rem;
  width: 0.46rem;
  height: 0.26rem;
  border-left: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.95);
  transform: rotate(-45deg);
}

.rff-dd__surface--lilac { --rff-dd-surface-bg: var(--rff-pastel-lilac); background: var(--rff-dd-surface-bg); --rff-dd-accent: var(--rff-base); }
.rff-dd__surface--sky { --rff-dd-surface-bg: var(--rff-pastel-sky); background: var(--rff-dd-surface-bg); --rff-dd-accent: var(--rff-btn); }
.rff-dd__surface--mint { --rff-dd-surface-bg: var(--rff-pastel-mint); background: var(--rff-dd-surface-bg); --rff-dd-accent: var(--rff-green); }
.rff-dd__surface--peach { --rff-dd-surface-bg: var(--rff-pastel-peach); background: var(--rff-dd-surface-bg); --rff-dd-accent: var(--rff-red); }
.rff-dd__surface--butter { --rff-dd-surface-bg: var(--rff-yellow-25); background: var(--rff-dd-surface-bg); --rff-dd-accent: var(--rff-yellow-600); }
.rff-dd__quote {
  margin-top: auto;
  padding-top: 1rem;
  max-width: 24rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 26, 73, 0.12);
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  position: relative;
  overflow: hidden;
}
.rff-dd__quote::before {
  content: "“";
  position: absolute;
  right: 0.55rem;
  top: -0.35rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(28, 26, 73, 0.09);
  font-weight: 800;
  pointer-events: none;
}
.rff-dd__quote-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(28, 26, 73, 0.9);
  position: relative;
}
.rff-dd__quote-by {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(28, 26, 73, 0.65);
}
.rff-dd__media {
  width: 100%;
  display: flex;
  justify-content: center;
}
.rff-dd__media img {
  width: 100%;
  height: auto;
  max-width: 34rem;
  border-radius: 18px;
  object-fit: cover;
}
/* surfaces defined above with --rff-dd-accent */

/* Footer */
.rff-footer {
  background: var(--rff-base);
  color: var(--rff-text-on-dark);
}
.rff-footer a {
  color: var(--rff-text-muted-dark);
  text-decoration: none;
  font-size: 0.875rem;
}
.rff-footer a:hover {
  color: #fff;
}

/* Form */
.rff-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(28, 26, 73, 0.15);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
}
.rff-input:focus {
  outline: 2px solid var(--rff-btn);
  outline-offset: 0;
  border-color: transparent;
}

/* Pastel surface utilities (use with Tailwind CDN — no purge) */
.bg-rff-pastel-page {
  background-color: var(--rff-pastel-page);
}
.bg-rff-pastel-lilac {
  background-color: var(--rff-pastel-lilac);
}
.bg-rff-pastel-sky {
  background-color: var(--rff-pastel-sky);
}
.bg-rff-pastel-mint {
  background-color: var(--rff-pastel-mint);
}
.bg-rff-pastel-rose {
  background-color: var(--rff-pastel-rose);
}
.bg-rff-pastel-peach {
  background-color: var(--rff-pastel-peach);
}
.bg-rff-pastel-butter {
  background-color: var(--rff-pastel-butter);
}
.bg-rff-pastel-sand {
  background-color: var(--rff-pastel-sand);
}
.bg-rff-pastel-indigo {
  background-color: var(--rff-pastel-indigo);
}

/* Headspace-style soft chips */
.rff-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid rgba(28, 26, 73, 0.1);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(28, 26, 73, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.rff-pill:hover,
.rff-pill:focus-visible {
  border-color: rgba(1, 142, 248, 0.45);
  background: var(--rff-pastel-sky);
  color: var(--rff-base);
}

/* Page hero (inner pages) — flat pastel, readable type */
.rff-page-hero {
  background: var(--rff-pastel-lilac);
  color: var(--rff-base);
  padding: clamp(3.5rem, 11vw, 6rem) 0;
  border-bottom: 1px solid rgba(28, 26, 73, 0.06);
}

/* About page — cover hero with overlaid text */
.rff-about-cover-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(35rem, 97vh, 56rem);
  padding: clamp(6rem, 12vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
  background: url("../assets/aboutus cover.webp") center top / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.rff-about-cover-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 26, 73, 0.06) 0%,
    rgba(28, 26, 73, 0.14) 42%,
    rgba(28, 26, 73, 0.38) 100%
  );
}

.rff-about-cover-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
}

.rff-about-cover-hero__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.rff-about-cover-hero__title {
  margin: 1rem 0 0;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.rff-about-cover-hero__lead {
  margin: 1.75rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

/* Fluid section title / copy (optional — pairs with CSS variables above) */
.rff-fluid-h2 {
  font-size: var(--rff-fluid-h2);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rff-base);
}

.rff-fluid-body {
  font-size: var(--rff-fluid-body);
  line-height: 1.65;
  max-width: var(--rff-fluid-max-copy);
}

/* Tabbed “deeper dive” block (RFF-branded; behaviour in main.js) */
.rff-tabbed {
  padding: var(--rff-fluid-section-y) var(--rff-fluid-section-x);
  background: var(--rff-pastel-butter);
  border-top: 1px solid rgba(28, 26, 73, 0.06);
  border-bottom: 1px solid rgba(28, 26, 73, 0.06);
}

.rff-tabbed__inner {
  max-width: var(--rff-max);
  margin-inline: auto;
}

.rff-tabbed__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.rff-tabbed__title {
  margin: 0;
  font-size: var(--rff-fluid-h2);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--rff-base);
}

.rff-tabbed__intro {
  margin: clamp(0.65rem, 2vw, 1rem) auto 0;
  max-width: 40rem;
  font-size: var(--rff-fluid-body);
  line-height: 1.65;
  color: #475569;
}

.rff-tabbed__tablist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: clamp(1.35rem, 3.5vw, 2rem);
}

.rff-tabbed__tab {
  cursor: pointer;
  border: 2px solid rgba(28, 26, 73, 0.12);
  background: #fff;
  color: var(--rff-base);
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  padding: var(--rff-fluid-tab-pad-y) var(--rff-fluid-tab-pad-x);
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rff-tabbed__tab:hover {
  border-color: rgba(1, 142, 248, 0.45);
}

.rff-tabbed__tab:focus-visible {
  outline: 2px solid var(--rff-btn);
  outline-offset: 2px;
}

.rff-tabbed__tab.is-active {
  background: var(--rff-base);
  color: #fff;
  border-color: var(--rff-base);
  box-shadow: 0 2px 8px rgba(28, 26, 73, 0.15);
}

.rff-tabbed__panel {
  display: none;
  margin: 0;
}

.rff-tabbed__panel.is-active {
  display: block;
}

.rff-tabbed__panel-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--rff-fluid-gap);
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(28, 26, 73, 0.08);
}

@media (min-width: 48rem) {
  .rff-tabbed__panel-inner {
    flex-wrap: nowrap;
    align-items: stretch;
  }
}

.rff-tabbed__copy {
  flex: 1 1 min(100%, 18rem);
  min-width: min(100%, 280px);
  max-width: var(--rff-fluid-max-copy);
  color: #334155;
}

.rff-tabbed__copy h3 {
  margin: 0 0 0.65rem;
  font-size: var(--rff-fluid-h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--rff-base);
}

.rff-tabbed__copy p {
  margin: 0 0 1.15rem;
  font-size: var(--rff-fluid-body);
  line-height: 1.65;
}

.rff-tabbed__cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--rff-btn);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.rff-tabbed__cta:hover {
  background: #0178d4;
}

.rff-tabbed__cta:focus-visible {
  outline: 2px solid var(--rff-base);
  outline-offset: 2px;
}

.rff-tabbed__media {
  flex: 1 1 min(100%, 280px);
  min-width: min(100%, 280px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.rff-tabbed__media img {
  width: 100%;
  max-width: min(100%, 380px);
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Pastel surfaces per panel (optional classes on .rff-tabbed__panel-inner) */
.rff-tabbed__surface--sky {
  background: var(--rff-pastel-sky);
}
.rff-tabbed__surface--mint {
  background: var(--rff-pastel-mint);
}
.rff-tabbed__surface--lilac {
  background: var(--rff-pastel-lilac);
}

/* Trust band + FAQ (homepage) */
.rff-trust-band { background-color: transparent; border-top: 1px solid rgba(28, 26, 73, 0.06); border-bottom: 1px solid rgba(28, 26, 73, 0.06); }
.rff-faq { border-top: 1px solid rgba(28, 26, 73, 0.08); border-bottom: 1px solid rgba(28, 26, 73, 0.08); }
.rff-faq details { border-radius: 1rem; border: 1px solid rgba(28, 26, 73, 0.1); background: #fff; margin-bottom: 0.75rem; overflow: hidden; }
.rff-faq summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 600; color: var(--rff-base); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rff-faq summary::-webkit-details-marker { display: none; }
.rff-faq summary::after { content: "+"; font-weight: 700; color: var(--rff-btn); flex-shrink: 0; }
.rff-faq details[open] summary::after { content: "-"; }
.rff-faq__body { padding: 0 1.25rem 1.15rem; font-size: 1rem; line-height: 1.65; color: #475569; }

/* Partner logo strip — simple infinite scroll (duplicate row + CSS keyframes) */
.rff-partners-marquee__viewport {
  overflow: hidden;
  width: 100%;
}
.rff-partners-marquee__track {
  display: flex;
  width: max-content;
  animation: rff-partners-marquee 40s linear infinite;
}
.rff-partners-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding-inline: 1rem;
}
.rff-partners-marquee__logo {
  height: 2rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  opacity: 0.9;
}
@media (min-width: 640px) {
  .rff-partners-marquee__logo {
    height: 2.25rem;
    max-width: 11rem;
  }
}
@keyframes rff-partners-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rff-partners-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
  }
  .rff-partners-marquee__group--dup {
    display: none;
  }
}

/* Scroll reveal (contact page) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal--delay-1 { transition-delay: 0.08s; }
.scroll-reveal--delay-2 { transition-delay: 0.16s; }
.scroll-reveal--delay-3 { transition-delay: 0.24s; }
.scroll-reveal--delay-4 { transition-delay: 0.32s; }

/* Contact page */
.contact-hero {
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 35%, #eef2ff 70%, #e0e7ff 100%);
}
.contact-hero--bg-image {
  background: linear-gradient(to bottom, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 100%), url('../assets/contact-us-bg.webp') center top / cover no-repeat;
}
@media (max-width: 639px) {
  .contact-hero--bg-image {
    background:
      linear-gradient(to bottom, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 100%) 0 0 / 100% 360px no-repeat,
      url('../assets/msite-contact-us-bg.png') center top / 100% 360px no-repeat,
      #ffffff;
  }
  .contact-hero .relative.z-10 {
    padding-bottom: 2rem;
  }
}
.contact-hero__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: white;
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.contact-map-iframe {
  filter: saturate(0.88) contrast(1.03);
}
.contact-form-box {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-timing-item .text-2xl {
  transition: color 0.2s ease;
}
.contact-topic-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
.contact-phone-country {
  min-width: 4.5rem;
  max-width: 5.5rem;
}
.impact-scroll-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.impact-scroll-wrap::-webkit-scrollbar {
  display: none;
}
@media (max-width: 1023px) {
  .impact-scroll-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: none;
    padding-bottom: 0.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.main-no-top-gap {
  padding-top: 0;
  margin-top: 0;
}
