/* ============================================================
   RAINBOW BLOOM — Preview Design v2
   Standalone stylesheet. Does not conflict with golden-hour.css.
   ============================================================ */

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes rb-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes rb-float-slow {
  0%, 100% { transform: translateY(-16px) rotate(0deg); }
  50%       { transform: translateY(-28px) rotate(2deg); }
}
@keyframes rb-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes rb-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes rb-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes rb-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes rb-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.08); }
  66%       { transform: translate(-25px, 20px) scale(0.94); }
}
@keyframes rb-spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes rb-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rb-status-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --rb-purple:      #845ec2;
  --rb-purple-deep: #6b4a9e;
  --rb-pink:        #ff6b9d;
  --rb-orange:      #ff8c42;
  --rb-teal:        #4cc9f0;
  --rb-mint:        #06d6a0;
  --rb-blue:        #4a7fd4;
  --rb-yellow:      #ffd166;

  --rb-therapist: #ff8c42;
  --rb-clinic:    #845ec2;
  --rb-events:    #4a7fd4;

  --rb-bg:      #fffef9;
  --rb-surface: #ffffff;
  --rb-cream:   #fdf6ff;
  --rb-dark:    #120a24;
  --rb-text:    #2a1f3d;
  --rb-muted:   #6b6480;
  --rb-border:  #ede8f5;

  --rb-gradient-main:     linear-gradient(135deg, #845ec2, #ff6b9d, #ff8c42);
  --rb-gradient-animated: linear-gradient(270deg, #845ec2, #ff6b9d, #ff8c42, #4cc9f0, #06d6a0);
  --rb-gradient-rainbow:  linear-gradient(90deg, #845ec2, #ff6b9d, #ff8c42, #ffd166, #4cc9f0, #06d6a0);
  --rb-gradient-hero-bg:  linear-gradient(160deg, #fdf6ff 0%, #fffef9 60%, #f0fffe 100%);
  --rb-gradient-child:    linear-gradient(135deg, #f0e6ff 0%, #ffe6f5 50%, #e6fff9 100%);

  --rb-radius:     20px;
  --rb-radius-sm:  12px;
  --rb-radius-pill: 100px;
  --rb-shadow:     0 4px 24px rgba(42, 31, 61, 0.08);
  --rb-shadow-lg:  0 12px 48px rgba(42, 31, 61, 0.14);
  --rb-shadow-xl:  0 24px 80px rgba(42, 31, 61, 0.2);

  /* ── Depth system v2 — tinted/ambient shadows + colored glows, replacing
     flat black box-shadows on hover/elevated states ── */
  --rb-shadow-ambient: 0 2px 3px rgba(42,31,61,.04), 0 16px 40px -8px rgba(42,31,61,.12);
  --rb-inset-highlight: inset 0 1px 0 rgba(255,255,255,.5);
  --rb-shadow-glow-purple: 0 18px 44px -12px rgba(132,94,194,.45);
  --rb-shadow-glow-pink:   0 18px 44px -12px rgba(255,107,157,.42);
  --rb-shadow-glow-orange: 0 18px 44px -12px rgba(255,140,66,.4);
  --rb-shadow-glow-teal:   0 18px 44px -12px rgba(76,201,240,.4);
  --rb-shadow-glow-mint:   0 18px 44px -12px rgba(6,214,160,.4);
  --rb-shadow-glow-blue:   0 18px 44px -12px rgba(74,127,212,.4);

  --font-display: 'Varela Round', sans-serif;
  --font-body:    'Heebo', sans-serif;

  --ease-out-soft: cubic-bezier(.16,1,.3,1);
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 5rem; }

.homepage-rb.rb-page {
  font-family: var(--font-body);
  background: var(--rb-bg);
  color: var(--rb-text);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.rb-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SCROLL REVEAL — for below-the-fold content only (JS/IntersectionObserver
   gated). Never use on above-the-fold content — use .rb-entrance instead,
   which is a plain CSS on-load animation with no observer dependency (a
   mobile-viewport IntersectionObserver timing bug once left hero text
   permanently invisible; .rb-entrance can't have that failure mode). ── */
.rb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1),
              transform 0.65s cubic-bezier(.22,1,.36,1);
}
.rb-reveal.is-visible { opacity: 1; transform: none; }
.rb-reveal-d1 { transition-delay: 0.1s; }
.rb-reveal-d2 { transition-delay: 0.2s; }
.rb-reveal-d3 { transition-delay: 0.3s; }

/* Directional variants — swap the translate axis so pages don't move
   identically everywhere; still gated the same way via .is-visible. */
.rb-reveal--side-r { transform: translateX(36px); }
.rb-reveal--side-r.is-visible { transform: none; }
.rb-reveal--side-l { transform: translateX(-36px); }
.rb-reveal--side-l.is-visible { transform: none; }
.rb-reveal--scale { transform: scale(.94); }
.rb-reveal--scale.is-visible { transform: none; }

/* ── ENTRANCE — above-the-fold only. Pure CSS, runs on load, no JS/observer
   dependency. Use for hero copy and anything else visible without scrolling. ── */
@keyframes rb-entrance-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rb-entrance {
  animation: rb-entrance-up .8s var(--ease-out-soft) both;
}
.rb-entrance-d1 { animation-delay: .12s; }
.rb-entrance-d2 { animation-delay: .24s; }
.rb-entrance-d3 { animation-delay: .36s; }
.rb-entrance-d4 { animation-delay: .48s; }

/* ── TILT — subtle cursor-following card tilt. JS (mousemove) sets
   --tilt-x/--tilt-y (degrees, small range) on the element; CSS does the
   rendering. No library — a few lines of vanilla JS per page. ── */
.rb-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .35s var(--ease-out-soft);
  will-change: transform;
}

/* ── GRAIN — static (not animated), pointer-events-none, very low opacity.
   Scoped to the section it's placed in (position: absolute — the section is
   already position:relative/overflow:hidden) rather than a page-wide fixed
   overlay, since it's used to add tactile warmth to specific dark sections,
   not the whole viewport. No animation on it, so no scroll repaint cost. ── */
.rb-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .rb-entrance, .rb-entrance-d1, .rb-entrance-d2, .rb-entrance-d3, .rb-entrance-d4 {
    animation: none; opacity: 1; transform: none;
  }
  .rb-tilt { transition: none; transform: none !important; }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.rb-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--rb-text);
  margin-bottom: 1rem;
}
.rb-section-title--light { color: rgba(255,255,255,0.95); }

/* Editorial statement — a large asymmetric pull-quote moment, used once per
   major page (not centered, tighter leading than a section title). */
.rb-statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--rb-text);
  margin-bottom: 1rem;
}

.rb-gradient-text {
  background: var(--rb-gradient-animated);
  background-size: 300% 300%;
  animation: rb-gradient-shift 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rb-body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--rb-muted);
  max-width: 56ch;
}

/* ── SECTION LABEL (eyebrow — used max 2× across page) ──── */
.rb-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-purple);
  background: rgba(132,94,194,0.1);
  padding: 0.28rem 0.85rem;
  border-radius: var(--rb-radius-pill);
  margin-bottom: 0.85rem;
}
.rb-section-label--light {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.65rem;
  border-radius: var(--rb-radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.22s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.rb-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}
.rb-btn:hover::after { background: rgba(255,255,255,0.1); }
.rb-btn:hover  { transform: translateY(-3px) scale(1.02); }
.rb-btn:active { transform: scale(0.98); }

.rb-btn--primary {
  background: var(--rb-gradient-main);
  background-size: 200% 200%;
  animation: rb-gradient-shift 5s ease infinite;
  color: #fff;
  box-shadow: 0 4px 24px rgba(132,94,194,0.38);
}
.rb-btn--primary:hover { box-shadow: 0 8px 36px rgba(132,94,194,0.55); }

.rb-btn--ghost {
  background: transparent;
  color: var(--rb-purple);
  border: 2px solid var(--rb-purple);
}
.rb-btn--ghost:hover {
  background: rgba(132,94,194,0.07);
  border-color: var(--rb-pink);
  color: var(--rb-pink);
}

.rb-btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ── PREVIEW BANNER ──────────────────────────────────────── */
.rb-preview-banner {
  background: var(--rb-gradient-animated);
  background-size: 300% 300%;
  animation: rb-gradient-shift 5s ease infinite;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem;
  letter-spacing: 0.07em;
}

/* ── HEADER ──────────────────────────────────────────────────────────────
   The homepage now renders the shared <PublicHeader/> (components/public/
   PublicHeader.js, its own scoped ph-* styles) instead of a bespoke rb-header
   — see RainbowBloomClient.js. No .rb-header* rules remain to keep; the hero
   top padding below no longer needs to reserve space for a fixed overlay,
   since PublicHeader is sticky and sits in normal document flow. */

/* ── HERO ────────────────────────────────────────────────── */
.rb-hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 90% 20%, rgba(132,94,194,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 70%, rgba(76,201,240,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 50% 90%, rgba(255,107,157,0.07) 0%, transparent 65%),
    var(--rb-bg);
}

.rb-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: rb-orb-drift 14s ease-in-out infinite;
}
.rb-hero__orb--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(132,94,194,0.18), transparent 70%);
  top: -120px; right: -80px;
}
.rb-hero__orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,107,157,0.15), transparent 70%);
  bottom: -60px; left: -60px;
  animation-delay: -7s;
}
.rb-hero__orb--3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(76,201,240,0.12), transparent 70%);
  top: 40%; left: 35%;
  animation-delay: -3.5s;
}

.rb-hero__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.rb-hero__copy { flex: 1; min-width: 0; }

.rb-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.rb-hero__tagline {
  font-size: 1.2rem;
  color: var(--rb-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 44ch;
}

.rb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.rb-hero__audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rb-audience-pill {
  padding: 0.3rem 0.85rem;
  border-radius: var(--rb-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
  transition: transform 0.18s ease;
}
.rb-audience-pill:hover { transform: translateY(-2px); }
.rb-audience-pill--parents    { background: rgba(132,94,194,0.1); color: var(--rb-purple); }
.rb-audience-pill--children   { background: rgba(255,107,157,0.1); color: var(--rb-pink); }
.rb-audience-pill--therapists { background: rgba(255,140,66,0.1);  color: var(--rb-orange); }
.rb-audience-pill--clinics    { background: rgba(74,127,212,0.1);  color: var(--rb-blue); }

/* ── PHONE MOCKUPS ───────────────────────────────────────── */
.rb-phones {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
  padding-bottom: 1rem;
}

.rb-phone {
  flex: 1;
  max-width: 150px;
  background: var(--rb-surface);
  border-radius: 28px;
  border: 2px solid var(--rb-border);
  box-shadow: var(--rb-shadow-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  animation: rb-float 5s ease-in-out infinite;
}
.rb-phone:nth-child(1) { animation-delay: 0s; }
.rb-phone:nth-child(3) { animation-delay: -2.5s; }

.rb-phone--center {
  max-width: 172px;
  border-color: var(--rb-purple);
  border-width: 2.5px;
  box-shadow: 0 20px 64px rgba(132,94,194,0.32), 0 6px 20px rgba(132,94,194,0.15);
  animation: rb-float-slow 6s ease-in-out infinite;
  z-index: 2;
}
.rb-phone--center::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 7px;
  background: #1a1a2e;
  border-radius: 0 0 7px 7px;
  z-index: 10;
}

.rb-phone__screen { flex: 1; overflow: hidden; position: relative; }
.rb-phone__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

.rb-phone__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.75rem;
}
.rb-phone__placeholder--parent {
  background: linear-gradient(170deg, #e8deff 0%, #dce8ff 100%);
}
.rb-phone__placeholder--child {
  background: var(--rb-gradient-child);
  background-size: 200% 200%;
  animation: rb-gradient-shift 6s ease infinite;
}

/* Phone UI wireframe elements */
.rb-phone__ui {
  width: 100%;
  flex: 1;
  padding: 0.65rem 0.5rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rb-phone__ui-header {
  height: 1.6rem;
  background: rgba(132,94,194,0.2);
  border-radius: 6px;
}
.rb-phone__ui-card {
  height: 2.8rem;
  background: rgba(255,255,255,0.65);
  border-radius: 6px;
  border: 1px solid rgba(132,94,194,0.12);
}
.rb-phone__ui-card--sm { height: 2rem; }
.rb-phone__ui-row { display: flex; gap: 0.3rem; margin-top: 0.2rem; }
.rb-phone__ui-dot {
  flex: 1; height: 2rem;
  border-radius: 6px;
}
.rb-phone__ui-dot--1 { background: rgba(132,94,194,0.22); }
.rb-phone__ui-dot--2 { background: rgba(255,107,157,0.22); }
.rb-phone__ui-dot--3 { background: rgba(76,201,240,0.22); }

.rb-phone__ui-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rb-pink), var(--rb-purple));
  margin: 0 auto 0.4rem;
  flex-shrink: 0;
}
.rb-phone__ui-stars {
  color: var(--rb-yellow);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}
.rb-phone__ui-bar {
  height: 0.45rem;
  background: linear-gradient(90deg, var(--rb-pink), var(--rb-purple));
  border-radius: 99px;
}
.rb-phone__ui-bar--sm {
  width: 60%;
  margin-top: 0.3rem;
  background: rgba(132,94,194,0.2);
}

.rb-phone__placeholder-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--rb-purple);
  text-align: center;
  padding: 0 0.4rem;
  line-height: 1.4;
}

.rb-phone__label {
  background: var(--rb-gradient-main);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  padding: 0.3rem;
  letter-spacing: 0.04em;
}
.rb-phone__label--gradient {
  background: var(--rb-gradient-animated);
  background-size: 300% 300%;
  animation: rb-gradient-shift 5s ease infinite;
}
.rb-phone__label--rainbow {
  background: var(--rb-gradient-rainbow);
  background-size: 200% 100%;
  animation: rb-shimmer 3s linear infinite;
}

/* ── TICKER ──────────────────────────────────────────────── */
.rb-ticker-wrap {
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rb-border);
  border-bottom: 1px solid var(--rb-border);
  background: var(--rb-surface);
  position: relative;
}
.rb-ticker-wrap::before,
.rb-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.rb-ticker-wrap::before { right: 0; background: linear-gradient(to right, transparent, var(--rb-surface)); }
.rb-ticker-wrap::after  { left:  0; background: linear-gradient(to left,  transparent, var(--rb-surface)); }

.rb-ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: rb-ticker 30s linear infinite;
  white-space: nowrap;
}
.rb-ticker-track:hover { animation-play-state: paused; }

.rb-ticker-item {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rb-text);
}
.rb-ticker-sep {
  font-size: 0.6rem;
  align-self: center;
  background: var(--rb-gradient-rainbow);
  background-size: 200% 100%;
  animation: rb-shimmer 5s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── STATS — dark section ────────────────────────────────── */
.rb-stats {
  background: var(--rb-dark);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.rb-stats__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(132,94,194,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255,107,157,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(76,201,240,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.rb-stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.rb-stat-item {
  flex: 1;
  text-align: center;
  padding: 1.5rem 2rem;
}

.rb-stats__divider {
  width: 1px;
  height: 90px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.rb-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 700;
  background: var(--rb-gradient-animated);
  background-size: 300% 300%;
  animation: rb-gradient-shift 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.rb-stat-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.rb-stat-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  display: block;
}

/* ── MISSION — split layout ──────────────────────────────── */
.rb-mission {
  padding: 6.5rem 0;
  background: var(--rb-cream);
  position: relative;
  overflow: hidden;
}
.rb-mission__infinity {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  font-size: 32vw;
  font-weight: 900;
  line-height: 1;
  background: var(--rb-gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  animation: rb-spin-slow 60s linear infinite;
}

.rb-mission__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.rb-mission__blockquote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.18;
  font-style: normal;
  margin-top: 1rem;
}

.rb-mission__body p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--rb-muted);
  margin-bottom: 0.9rem;
}
.rb-mission__body p:last-child { margin-bottom: 0; }
.rb-mission__body strong {
  color: var(--rb-text);
  font-weight: 700;
}

.rb-mission__closing {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rb-text);
  font-weight: 600;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--rb-border);
}

/* ── PARENTS / BENTO GRID ────────────────────────────────── */
.rb-parents {
  padding: 6.5rem 0;
  background: var(--rb-surface);
}
.rb-parents__intro {
  margin-bottom: 2.5rem;
}

.rb-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 210px;
  gap: 1rem;
}

/* In RTL: col 1 = rightmost */
.rb-bento-cell--community  { grid-column: 1; grid-row: 1; }
.rb-bento-cell--familylink { grid-column: 1; grid-row: 2; }
.rb-bento-cell--therapists { grid-column: 2; grid-row: 1; }
.rb-bento-cell--events     { grid-column: 3; grid-row: 1; }
.rb-bento-cell--knowledge  { grid-column: 2; grid-row: 2; }
.rb-bento-cell--childworld { grid-column: 3; grid-row: 2; }

.rb-bento-cell {
  border-radius: var(--rb-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.3s ease;
  border: 1.5px solid transparent;
}
.rb-bento-cell:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--rb-shadow-xl);
}

/* Cell backgrounds — real visual variation per taste-skill */
.rb-bento-cell--community {
  background: linear-gradient(160deg, #ede0ff 0%, #ffe0f5 55%, #e0f0ff 100%);
  border-color: rgba(132,94,194,0.18);
}
.rb-bento-cell--therapists {
  background: linear-gradient(140deg, #fff3e6, #fff8ee);
  border-color: rgba(255,140,66,0.18);
}
.rb-bento-cell--events {
  background: linear-gradient(140deg, #e8f2ff, #eefaff);
  border-color: rgba(74,127,212,0.18);
}
.rb-bento-cell--knowledge {
  background: linear-gradient(140deg, #e0faf5, #eaf8ff);
  border-color: rgba(76,201,240,0.2);
}
.rb-bento-cell--childworld {
  background: linear-gradient(140deg, #ffedf5, #f5eeff);
  border-color: rgba(255,107,157,0.18);
}
.rb-bento-cell--familylink {
  background: linear-gradient(140deg, #fff8e6, #fff0f8);
  border-color: rgba(255,209,102,0.25);
}

/* Decorative top gradient line per cell */
.rb-bento-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--rb-radius) var(--rb-radius) 0 0;
}
.rb-bento-cell--community::before  { background: linear-gradient(90deg, var(--rb-purple), var(--rb-pink)); }
.rb-bento-cell--therapists::before { background: var(--rb-orange); }
.rb-bento-cell--events::before     { background: var(--rb-blue); }
.rb-bento-cell--knowledge::before  { background: var(--rb-teal); }
.rb-bento-cell--childworld::before { background: linear-gradient(90deg, var(--rb-pink), var(--rb-purple)); }
.rb-bento-cell--familylink::before { background: linear-gradient(90deg, var(--rb-yellow), var(--rb-orange)); }

.rb-bento-cell__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}
.rb-bento-cell--community  .rb-bento-cell__icon { background: rgba(132,94,194,0.14); color: var(--rb-purple); }
.rb-bento-cell--therapists .rb-bento-cell__icon { background: rgba(255,140,66,0.14); color: var(--rb-orange); }
.rb-bento-cell--events     .rb-bento-cell__icon { background: rgba(74,127,212,0.14); color: var(--rb-blue); }
.rb-bento-cell--knowledge  .rb-bento-cell__icon { background: rgba(76,201,240,0.14); color: var(--rb-teal); }
.rb-bento-cell--childworld .rb-bento-cell__icon { background: rgba(255,107,157,0.14); color: var(--rb-pink); }
.rb-bento-cell--familylink .rb-bento-cell__icon { background: rgba(255,209,102,0.2);  color: #c47d00; }

.rb-bento-cell__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rb-text);
  line-height: 1.3;
}
.rb-bento-cell--community .rb-bento-cell__title { font-size: 1.2rem; }

.rb-bento-cell__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--rb-muted);
  flex: 1;
}

.rb-bento-cell__badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: var(--rb-radius-pill);
  background: rgba(132,94,194,0.12);
  color: var(--rb-purple);
  width: fit-content;
}

.rb-parents__cta { text-align: center; margin-top: 2.5rem; }
.rb-parents__note {
  font-size: 0.82rem;
  color: var(--rb-muted);
  margin-top: 0.75rem;
}

/* ── SPOTLIGHT — one large featured panel + a supporting index list.
   Alternative to a uniform N-cell bento for content where one item
   genuinely deserves more weight than the rest (real hierarchy, not six
   equal boxes pretending everything matters the same amount). ── */
.rb-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.rb-spotlight__feature {
  border-radius: var(--rb-radius);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--rb-cream);
  box-shadow: var(--rb-shadow-ambient);
}

/* ── Carousel — auto-rotating photo set inside the spotlight feature panel.
   Slides are stacked (position:absolute) and crossfade via opacity; a slow
   scale-in on the active slide gives the fade a bit of life without being
   a full Ken Burns pan. Controlled by the .rb-spotlight__item buttons and
   an autoplay timer set up in RainbowBloomClient.js. ── */
.rb-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1s var(--ease-out-soft), transform 1.6s var(--ease-out-soft);
  pointer-events: none;
}
.rb-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  pointer-events: auto;
}
.rb-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.rb-carousel-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.85rem 1.85rem 1.5rem;
  background: linear-gradient(0deg, rgba(18,10,36,.8) 0%, rgba(18,10,36,.45) 58%, transparent 100%);
  text-align: right;
}
.rb-carousel-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #fff;
  margin-bottom: .3rem;
  letter-spacing: -0.01em;
}
.rb-carousel-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.9);
  line-height: 1.55;
  max-width: 38ch;
  margin-inline-start: auto;
}

.rb-spotlight__list {
  display: flex;
  flex-direction: column;
}
.rb-spotlight__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border: none;
  border-bottom: 1px solid var(--rb-border);
  background: none;
  font: inherit;
  text-align: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  transition: transform .25s var(--ease-out-soft);
}
.rb-spotlight__item:last-child { border-bottom: none; }
.rb-spotlight__item:hover, .rb-spotlight__item:focus-visible { transform: translateX(-6px); }
.rb-spotlight__item:focus-visible { outline: none; }
.rb-spotlight__item:focus-visible .rb-spotlight__item-icon {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--item-color, var(--rb-purple)) 35%, transparent);
}
.rb-spotlight__item-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--item-color, var(--rb-purple)) 13%, transparent);
  color: var(--item-color, var(--rb-purple));
  transition: background .3s ease, color .3s ease;
}
.rb-spotlight__item.is-active .rb-spotlight__item-icon {
  background: var(--item-color, var(--rb-purple));
  color: #fff;
}
.rb-spotlight__item-body { flex: 1; min-width: 0; }
.rb-spotlight__item h4 {
  font-size: .98rem; font-weight: 800; color: var(--rb-text); margin-bottom: .25rem;
  transition: color .3s ease;
}
.rb-spotlight__item.is-active h4 { color: var(--item-color, var(--rb-purple)); }
.rb-spotlight__item p {
  font-size: .82rem; color: var(--rb-muted); line-height: 1.55; margin: 0;
}

@media (max-width: 900px) {
  .rb-spotlight { grid-template-columns: 1fr; gap: 1.5rem; }
  .rb-spotlight__feature { min-height: 300px; }
  .rb-carousel-overlay { padding: 1.4rem 1.4rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-carousel-slide { transition: none !important; transform: none !important; }
  .rb-spotlight__item { transition: none; }
  .rb-spotlight__item:hover, .rb-spotlight__item:focus-visible { transform: none; }
  .rb-spotlight__item-icon, .rb-spotlight__item h4 { transition: none; }
}

/* ── CHILD WORLD ─────────────────────────────────────────── */
.rb-child-world {
  padding: 6.5rem 0;
  background: var(--rb-gradient-child);
  background-size: 200% 200%;
  animation: rb-gradient-shift 10s ease infinite;
  position: relative;
  overflow: hidden;
}

.rb-child-world__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.rb-child-world__copy { flex: 1; }

.rb-child-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.rb-child-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--rb-surface);
  border-radius: var(--rb-radius-sm);
  padding: 0.9rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--rb-border);
  border-inline-end: 3px solid var(--rb-pink);
  transition: transform 0.2s var(--ease-out-soft), box-shadow 0.2s ease;
}
.rb-child-feature:hover { transform: translateX(-5px); box-shadow: var(--rb-shadow-ambient); }

.rb-child-feature__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rb-gradient-main);
  flex-shrink: 0;
}

.rb-child-world__visual { flex: 0 0 200px; }

.rb-child-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rb-child-deco {
  position: absolute;
  font-size: 1.8rem;
  animation: rb-float 3.5s ease-in-out infinite;
  pointer-events: none;
}
.rb-child-deco--1 { top: -1rem;  right: -1rem;  animation-delay: 0s; }
.rb-child-deco--2 { bottom: 2rem; left: -1.5rem; animation-delay: -1.1s; }
.rb-child-deco--3 { top: 38%;    left: -2rem;   animation-delay: -2.2s; }

/* ── PORTALS — dark background + glassmorphism ───────────── */
.rb-portals {
  padding: 6.5rem 0;
  background: var(--rb-dark);
  position: relative;
  overflow: hidden;
}

.rb-portals__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rb-portals__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: rb-orb-drift 18s ease-in-out infinite;
}
.rb-portals__orb--orange {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,140,66,0.35), transparent 65%);
  top: -80px; right: -60px;
}
.rb-portals__orb--purple {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(132,94,194,0.3), transparent 65%);
  top: 30%; left: 30%;
  animation-delay: -6s;
}
.rb-portals__orb--blue {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(74,127,212,0.32), transparent 65%);
  bottom: -60px; left: -40px;
  animation-delay: -12s;
}

.rb-portals__intro {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.rb-portals__sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 52ch;
  margin: 0 auto;
}
.rb-portals__note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.rb-portals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Glassmorphism portal cards */
.rb-glass-card {
  border-radius: var(--rb-radius);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.rb-glass-card:hover { transform: translateY(-10px); }

.rb-glass-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.rb-glass-card:hover .rb-glass-card__glow { opacity: 1; }

.rb-glass-card--therapist {
  background: linear-gradient(150deg, rgba(255,140,66,0.22), rgba(255,107,157,0.1));
  border-color: rgba(255,140,66,0.28);
}
.rb-glass-card--therapist:hover { box-shadow: 0 24px 72px rgba(255,140,66,0.28); }
.rb-glass-card--therapist .rb-glass-card__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,140,66,0.18), transparent 65%);
}

.rb-glass-card--clinic {
  background: linear-gradient(150deg, rgba(132,94,194,0.24), rgba(255,107,157,0.08));
  border-color: rgba(132,94,194,0.32);
}
.rb-glass-card--clinic:hover { box-shadow: 0 24px 72px rgba(132,94,194,0.3); }
.rb-glass-card--clinic .rb-glass-card__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(132,94,194,0.2), transparent 65%);
}

.rb-glass-card--events {
  background: linear-gradient(150deg, rgba(74,127,212,0.22), rgba(76,201,240,0.1));
  border-color: rgba(74,127,212,0.28);
}
.rb-glass-card--events:hover { box-shadow: 0 24px 72px rgba(74,127,212,0.28); }
.rb-glass-card--events .rb-glass-card__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(74,127,212,0.18), transparent 65%);
}

/* Inner shine line */
.rb-glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}

.rb-glass-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.75rem 1.75rem 1.25rem;
}

.rb-glass-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rb-glass-card--therapist .rb-glass-card__icon {
  background: linear-gradient(135deg, var(--rb-therapist), rgba(255,107,157,0.85));
  box-shadow: 0 4px 16px rgba(255,140,66,0.4);
}
.rb-glass-card--clinic .rb-glass-card__icon {
  background: linear-gradient(135deg, var(--rb-clinic), rgba(132,94,194,0.75));
  box-shadow: 0 4px 16px rgba(132,94,194,0.4);
}
.rb-glass-card--events .rb-glass-card__icon {
  background: linear-gradient(135deg, var(--rb-events), rgba(76,201,240,0.85));
  box-shadow: 0 4px 16px rgba(74,127,212,0.4);
}

.rb-glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
}

.rb-glass-card__list {
  list-style: none;
  margin: 0;
  padding: 0 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.rb-glass-card__list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  padding-right: 1.1rem;
  position: relative;
  line-height: 1.4;
}
.rb-glass-card__list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.46em;
  width: 5px; height: 5px;
  border-radius: 50%;
}
.rb-glass-card--therapist .rb-glass-card__list li::before { background: var(--rb-therapist); }
.rb-glass-card--clinic    .rb-glass-card__list li::before { background: var(--rb-clinic); }
.rb-glass-card--events    .rb-glass-card__list li::before { background: var(--rb-events); }

.rb-glass-card__actions {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.75rem 1.75rem;
}

.rb-glass-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--rb-radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
}
.rb-glass-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.95);
}
.rb-glass-btn--solid {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
}
.rb-glass-btn--solid:hover {
  background: rgba(255,255,255,0.3);
}
.rb-glass-btn--full { flex: none; width: 100%; }

/* ── FEATURES — card grid (light section, after dark portals) */
.rb-features {
  padding: 6.5rem 0;
  background: var(--rb-bg);
}
.rb-features .rb-body-text { margin-top: 0.25rem; }

.rb-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.rb-feat-card {
  border-radius: var(--rb-radius);
  padding: 1.5rem;
  background: var(--rb-surface);
  border: 1.5px solid var(--rb-border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
}
.rb-feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rb-shadow-lg);
}
.rb-feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--rb-radius) var(--rb-radius) 0 0;
}
/* Rainbow palette — one hue per card, cycling the spectrum */
.rb-feat-card--r1::before { background: var(--rb-purple); }
.rb-feat-card--r2::before { background: var(--rb-pink); }
.rb-feat-card--r3::before { background: var(--rb-orange); }
.rb-feat-card--r4::before { background: var(--rb-teal); }
.rb-feat-card--r5::before { background: var(--rb-mint); }
.rb-feat-card--r6::before { background: var(--rb-blue); }

.rb-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: var(--rb-radius-pill);
  margin-bottom: 0.75rem;
}
.rb-feat-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}
.rb-feat-badge__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: rb-pulse-ring 2s ease-out infinite;
}

/* Rainbow badge variants matching card palette */
.rb-feat-badge--r1 { background: rgba(132,94,194,0.1);  color: var(--rb-purple); }
.rb-feat-badge--r2 { background: rgba(255,107,157,0.1); color: var(--rb-pink); }
.rb-feat-badge--r3 { background: rgba(255,140,66,0.12); color: var(--rb-orange); }
.rb-feat-badge--r4 { background: rgba(76,201,240,0.12); color: #0284c7; }
.rb-feat-badge--r5 { background: rgba(6,214,160,0.1);   color: #059669; }
.rb-feat-badge--r6 { background: rgba(74,127,212,0.1);  color: var(--rb-blue); }

.rb-feat-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--rb-text);
}

.rb-feat-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--rb-muted);
}

/* ── SCROLL ROW — horizontal scroll-snap card row. Used where a flat grid
   would just repeat the bento rhythm already used earlier on the page. ── */
.rb-scrollrow {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: .5rem .25rem 1.75rem;
  margin: 0 -.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rb-border) transparent;
}
.rb-scrollrow::-webkit-scrollbar { height: 6px; }
.rb-scrollrow::-webkit-scrollbar-thumb { background: var(--rb-border); border-radius: 99px; }
.rb-scrollrow__card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  background: var(--rb-surface);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  padding: 1.6rem;
  transition: transform .3s var(--ease-out-soft), box-shadow .3s ease;
}
.rb-scrollrow__card:hover { transform: translateY(-6px); box-shadow: var(--rb-shadow-ambient); }
@media (max-width: 640px) { .rb-scrollrow__card { flex-basis: 78vw; } }

/* ── VISION — split layout (different from all above) ────── */
.rb-vision {
  padding: 6.5rem 0;
  background: var(--rb-cream);
  position: relative;
}

.rb-vision__split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
}

.rb-vision__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.rb-vision__phases {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rb-vision-phase {
  border-radius: var(--rb-radius-sm);
  padding: 1.2rem 1.5rem;
  background: var(--rb-surface);
  border: 1.5px solid var(--rb-border);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
}
.rb-vision-phase:hover {
  transform: translateX(-5px);
  box-shadow: var(--rb-shadow);
}

.rb-vision-phase__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.rb-vision-phase__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rb-vision-phase__tag {
  margin-inline-start: auto;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}
.rb-vision-phase__tag--now    { background: rgba(6, 214, 160, 0.12);  color: #047857; }
.rb-vision-phase__tag--soon   { background: rgba(255, 140, 66, 0.14); color: #C2410C; }
.rb-vision-phase__tag--future { background: rgba(132, 94, 194, 0.12); color: var(--rb-purple); }
.rb-vision-phase__note {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  color: var(--rb-muted);
}
.rb-vision-phase__dot--now    { background: var(--rb-mint); box-shadow: 0 0 0 3px rgba(6,214,160,0.2); }
.rb-vision-phase__dot--soon   { background: var(--rb-orange); box-shadow: 0 0 0 3px rgba(255,140,66,0.2); }
.rb-vision-phase__dot--future { background: var(--rb-purple); box-shadow: 0 0 0 3px rgba(132,94,194,0.2); }

.rb-vision-phase__label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-text);
}

.rb-vision-phase ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.rb-vision-phase li {
  font-size: 0.875rem;
  color: var(--rb-muted);
  padding-right: 1rem;
  position: relative;
}
.rb-vision-phase li::before {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--rb-muted);
  font-weight: 700;
}

/* ── FOOTER — now the shared PublicFooter (components/public/PublicFooter.js),
   rendered globally via components/SiteFooter.js. No .rb-footer* rules
   remain to keep. ── */

/* ── STICKY CTA ──────────────────────────────────────────── */
.rb-sticky-cta {
  position: fixed;
  bottom: 1.1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: none;
  animation: rb-fade-up 0.5s ease 1s both;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Desktop nav */
@media (min-width: 768px) {
  .rb-header__nav { display: flex; }
  .rb-header__cta { display: inline-flex; }
  .rb-menu-btn    { display: none; }
}

/* ── TABLET (768–1023px) ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .rb-container { padding: 0 1.25rem; }

  /* Reduced section padding */
  .rb-stats         { padding: 4rem 0; }
  .rb-mission       { padding: 5rem 0; }
  .rb-parents       { padding: 5rem 0; }
  .rb-child-world   { padding: 5rem 0; }
  .rb-portals       { padding: 5rem 0; }
  .rb-features      { padding: 5rem 0; }
  .rb-vision        { padding: 5rem 0; }

  /* Hero: keep 2-col but show only center phone */
  .rb-hero { padding: 3.5rem 0 4rem; }
  .rb-hero__inner { gap: 2rem; }
  .rb-hero__title { font-size: clamp(2.6rem, 5.5vw, 3.8rem); }
  .rb-hero__tagline { font-size: 1.05rem; max-width: 38ch; }
  .rb-phones { flex: 0 0 200px; justify-content: center; gap: 0; }
  .rb-phone:not(.rb-phone--center) { display: none; }
  .rb-phone--center { max-width: 168px; }

  /* Bento: 2×3 */
  .rb-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0.85rem; }
  .rb-bento-cell--community,
  .rb-bento-cell--familylink,
  .rb-bento-cell--therapists,
  .rb-bento-cell--events,
  .rb-bento-cell--knowledge,
  .rb-bento-cell--childworld { grid-column: auto; grid-row: auto; }

  /* Child world: keep row but tighter */
  .rb-child-world__inner { gap: 2.5rem; }
  .rb-child-world__visual { max-width: 260px; flex-shrink: 0; }

  /* Portals: 1-col stacked on tablet */
  .rb-portals__grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Features: 3-col on tablet */
  .rb-feat-grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}

/* ── MOBILE (≤ 767px) ──────────────────────────────────── */
@media (max-width: 767px) {
  .rb-container { padding: 0 1rem; }

  /* Section padding reduction */
  .rb-stats         { padding: 3rem 0; }
  .rb-mission       { padding: 3.5rem 0; }
  .rb-parents       { padding: 3.5rem 0; }
  .rb-child-world   { padding: 3.5rem 0; }
  .rb-portals       { padding: 3.5rem 0; }
  .rb-features      { padding: 3.5rem 0; }
  .rb-vision        { padding: 3.5rem 0; }

  /* Section title */
  .rb-section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  /* Hero */
  .rb-hero { padding: 2.5rem 0 3rem; }
  .rb-hero__inner { flex-direction: column; gap: 0; }
  .rb-hero__title { font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
  .rb-hero__tagline { max-width: 100%; font-size: 1rem; margin-bottom: 1.5rem; }
  .rb-hero__actions { flex-direction: column; gap: 0.65rem; }
  .rb-hero__actions .rb-btn { width: 100%; }
  .rb-phones { display: none; }

  /* Stats */
  .rb-stats__inner  { gap: 0; flex-direction: column; }
  .rb-stats__divider { width: 60px; height: 1px; margin: 0 auto; }
  .rb-stat-item     { padding: 1.25rem 1rem; }
  .rb-stat-num      { font-size: 2.6rem; }

  /* Mission */
  .rb-mission__inner    { grid-template-columns: 1fr; gap: 2rem; }
  .rb-mission__infinity { display: none; }

  /* Bento */
  .rb-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0.65rem; }
  .rb-bento-cell--community,
  .rb-bento-cell--familylink,
  .rb-bento-cell--therapists,
  .rb-bento-cell--events,
  .rb-bento-cell--knowledge,
  .rb-bento-cell--childworld { grid-column: auto; grid-row: auto; }
  .rb-bento-cell { padding: 1.1rem; gap: 0.3rem; }
  .rb-bento-cell__icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 0; }
  .rb-bento-cell__title { font-size: 0.9rem; }
  .rb-bento-cell__desc  { font-size: 0.78rem; line-height: 1.5; }

  /* Child world */
  .rb-child-world__inner { flex-direction: column; gap: 2rem; }
  .rb-child-world__visual { display: none; }
  .rb-child-feature { padding: 0.9rem 0; }

  /* Portals */
  .rb-portals__grid { grid-template-columns: 1fr; }
  .rb-portal-card   { padding: 1.5rem; }
  .rb-portal-card__actions { flex-direction: column; gap: 0.5rem; }
  .rb-portal-card__actions .rb-btn { width: 100%; }

  /* Features */
  .rb-feat-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .rb-feat-card { padding: 1.1rem; }

  /* Vision */
  .rb-vision__split { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Sticky CTA */
  .rb-sticky-cta { display: block; }
}

/* ── VERY SMALL (≤ 479px) ──────────────────────────────── */
@media (max-width: 479px) {
  .rb-bento     { grid-template-columns: 1fr; gap: 0.6rem; }
  .rb-feat-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .rb-hero__title { font-size: 2.1rem; }
  .rb-section-title { font-size: 1.65rem; }
  .rb-ticker-item { font-size: 0.78rem; }
}

/* ── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rb-gradient-text,
  .rb-btn--primary,
  .rb-ticker-track,
  .rb-ticker-item,
  .rb-stat-num,
  .rb-hero__orb,
  .rb-portals__orb,
  .rb-phone,
  .rb-phone--center,
  .rb-child-world,
  .rb-phone__placeholder--child,
  .rb-mission__infinity,
  .rb-child-deco {
    animation: none !important;
  }
  .rb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
