/* ═══════════════════════════════════════════════════════════════
   HOME-HERO-V2.CSS — Premium white hero, Trustpilot-level quality
   Mobile-first. Glass-morphism search. Score circle previews.
   Radical whitespace. Section rhythm: High/xl.
   ═══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────── */
.rl-home-hero {
  position: relative;
  background: var(--rl-paper);
  padding: var(--rl-section-xl) var(--rl-space-md);
  overflow: hidden;
}

.rl-home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.22 0.08 255 / 0.03) 0%,
    oklch(0.22 0.08 255 / 0.01) 30%,
    transparent 60%
  );
  pointer-events: none;
}

.rl-home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--rl-container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rl-space-lg);
}

/* ── Eyebrow ──────────────────────────────────────────── */
.rl-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: var(--rl-fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rl-score-green);
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.1s forwards;
}

.rl-home-hero__eyebrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ── Title ────────────────────────────────────────────── */
.rl-home-hero__title {
  font-family: var(--rl-font-display);
  font-size: var(--rl-heading-display);
  font-weight: 700;
  line-height: var(--rl-lh-tight);
  letter-spacing: -0.02em;
  color: var(--rl-ink);
  max-width: 14ch;
  margin: 0;
  text-align: center;
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.18s forwards;
}

/* ── Subtitle ─────────────────────────────────────────── */
.rl-home-hero__sub {
  font-size: var(--rl-text-lg);
  font-weight: var(--rl-fw-regular);
  color: var(--rl-ink-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: var(--rl-lh-normal);
  text-align: center;
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.26s forwards;
}

/* ── Search bar (glass morphism) ──────────────────────── */
.rl-home-hero__search {
  display: flex;
  width: min(560px, calc(100vw - var(--rl-space-xl)));
  max-width: 100%;
  margin: var(--rl-space-xs) 0 0;
  background: var(--rl-glass-bg);
  backdrop-filter: blur(var(--rl-glass-blur));
  -webkit-backdrop-filter: blur(var(--rl-glass-blur));
  border: var(--rl-glass-border);
  border-radius: var(--rl-radius-lg);
  box-shadow: var(--rl-glass-shadow);
  overflow: hidden;
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.34s forwards;
  transition: border-color var(--rl-dur-fast), box-shadow var(--rl-dur-fast);
}

.rl-home-hero__search:focus-within {
  border-color: var(--rl-primary);
  box-shadow: var(--rl-shadow-glow), var(--rl-glass-shadow);
}

.rl-home-hero__search > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--rl-ink-muted);
  stroke-width: 2;
  margin: auto 0 auto var(--rl-space-md);
  flex-shrink: 0;
}

.rl-home-hero__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--rl-text-base);
  font-family: var(--rl-font-body);
  font-weight: var(--rl-fw-regular);
  padding: 16px var(--rl-space-sm);
  color: var(--rl-ink);
  background: transparent;
  min-width: 0;
}

.rl-home-hero__input::placeholder {
  color: var(--rl-ink-muted);
}

.rl-home-hero__search-btn {
  padding: 0 var(--rl-space-xl);
  background: var(--rl-primary);
  color: var(--rl-primary-contrast);
  font-size: var(--rl-text-sm);
  font-weight: var(--rl-fw-semibold);
  font-family: var(--rl-font-body);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 52px;
  border-radius: 0 var(--rl-radius-lg) var(--rl-radius-lg) 0;
  transition: background var(--rl-dur-fast);
}

.rl-home-hero__search-btn:hover {
  background: var(--rl-primary-hover);
}

/* ── Score circle previews ────────────────────────────── */
.rl-home-hero__scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rl-space-lg);
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.42s forwards;
}

.rl-home-hero__score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rl-space-2xs);
}

.rl-home-hero__score-label {
  font-size: var(--rl-text-xs);
  font-weight: var(--rl-fw-medium);
  color: var(--rl-ink-muted);
  text-align: center;
}

/* ── Category chips ────────────────────────────────────── */
.rl-home-hero__chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rl-space-xs);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--rl-space-md);
  max-width: 100%;
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.50s forwards;
}

.rl-home-hero__chips::-webkit-scrollbar { display: none; }

.rl-home-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--rl-text-xs);
  font-family: var(--rl-font-body);
  font-weight: var(--rl-fw-medium);
  color: var(--rl-ink);
  background: var(--rl-primary-soft);
  padding: 10px 16px;
  border-radius: var(--rl-radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: all var(--rl-dur-fast);
}

.rl-home-hero__chip:hover,
.rl-home-hero__chip:focus-visible {
  border-color: var(--rl-primary);
  color: var(--rl-primary);
  background: var(--rl-paper);
}

.rl-home-hero__chip svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* ── Trust badges (text-only with mid-dots) ──────────── */
.rl-home-hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rl-space-sm) var(--rl-space-lg);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--rl-text-xs);
  font-weight: var(--rl-fw-medium);
  color: var(--rl-ink-muted);
  opacity: 0;
  animation: rl-hero-fade-up 0.6s var(--rl-ease-out) 0.58s forwards;
}

.rl-home-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rl-home-hero__trust li + li::before {
  content: '\00B7';
  margin-right: var(--rl-space-sm);
  color: var(--rl-border-strong);
}

.rl-home-hero__trust svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: var(--rl-score-green);
}

/* ── Keyframe ──────────────────────────────────────────── */
@keyframes rl-hero-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: Mobile (<600px) ────────────────────── */
@media (max-width: 599px) {
  .rl-home-hero {
    padding: var(--rl-section-md) var(--rl-space-md);
  }

  .rl-home-hero__inner {
    gap: var(--rl-space-md);
  }

  .rl-home-hero__title {
    font-size: var(--rl-text-2xl);
  }

  .rl-home-hero__sub {
    font-size: var(--rl-text-sm);
  }

  .rl-home-hero__search {
    width: calc(100vw - var(--rl-space-xl));
  }

  .rl-home-hero__input {
    padding: 12px var(--rl-space-sm);
    font-size: var(--rl-text-sm);
  }

  .rl-home-hero__search > svg {
    left: var(--rl-space-sm);
    width: 18px;
    height: 18px;
  }

  .rl-home-hero__search-btn {
    min-height: 44px;
    padding: 0 var(--rl-space-md);
    font-size: var(--rl-text-xs);
  }

  .rl-home-hero__scores {
    gap: var(--rl-space-md);
  }

  .rl-home-hero__chips {
    gap: 6px;
  }

  .rl-home-hero__chip {
    padding: 6px 10px;
    font-size: 0.6875rem;
    min-height: 36px;
  }

  .rl-home-hero__trust {
    flex-direction: column;
    align-items: center;
    gap: var(--rl-space-xs);
  }

  .rl-home-hero__trust li + li::before {
    content: none;
  }
}

/* ── Responsive: Desktop (>=1024px) ─────────────────── */
@media (min-width: 1024px) {
  .rl-home-hero {
    padding: calc(var(--rl-section-xl) + var(--rl-header-h)) var(--rl-space-xl) var(--rl-section-xl);
  }

  .rl-home-hero__title {
    font-size: var(--rl-heading-display);
  }

  .rl-home-hero__sub {
    font-size: var(--rl-text-xl);
  }
}

/* ── Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rl-home-hero__eyebrow,
  .rl-home-hero__title,
  .rl-home-hero__sub,
  .rl-home-hero__search,
  .rl-home-hero__scores,
  .rl-home-hero__chips,
  .rl-home-hero__trust {
    animation: none;
    opacity: 1;
  }

  .rl-home-hero__search-btn,
  .rl-home-hero__chip {
    transition: none;
  }
}
