/* =========================================================================
   LIBRIKA HOMEPAGE REDESIGN (Desktop, Tablet & Mobile)
   Scoped to body.home-redesign so shared pages remain 100% untouched.
   ========================================================================= */

body.home-redesign {
  background: #F8FAFF !important;
  color: #0F172A;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: clip !important;
}

body.home-redesign .cr-libra-float-btn {
  display: none !important;
}

.hr-container {
  width: 100%;
  max-width: min(94vw, 1560px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 2.5vw, 2.75rem);
  box-sizing: border-box;
}

/* 1. TOP NAVBAR */
body.home-redesign .cr-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
}

body.home-redesign .cr-nav-container {
  width: 100%;
  max-width: min(94vw, 1560px);
  margin: 0 auto;
  padding: 0.65rem clamp(1.25rem, 2.5vw, 2.75rem);
  height: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.hr-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hr-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hr-mobile-menu-btn .hr-ico-close {
  display: none;
}
.hr-mobile-menu-btn.active {
  background: #EFF6FF;
  border-color: #0056D2;
  color: #0056D2;
}
.hr-mobile-menu-btn.active .hr-ico-menu {
  display: none;
}
.hr-mobile-menu-btn.active .hr-ico-close {
  display: block;
}

body.home-redesign .cr-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

body.home-redesign .cr-brand img.hr-brand-wordmark {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

body.home-redesign .cr-brand img.hr-brand-wordmark-footer {
  height: 36px;
}

.hr-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.hr-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.hr-brand-tagline {
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.hr-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hr-nav-item {
  position: relative;
}

.hr-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.45rem 0.72rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hr-nav-trigger:hover {
  background: #EFF6FF;
  color: #0056D2;
}

.hr-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  z-index: 120;
}

.hr-nav-item:hover .hr-nav-dropdown,
.hr-nav-item:focus-within .hr-nav-dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hr-nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1E293B;
  text-decoration: none;
}

.hr-nav-dropdown a:hover {
  background: #EFF6FF;
  color: #0056D2;
}

.hr-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hr-search-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hr-search-icon-btn:hover {
  background: #F1F5F9;
  color: #0056D2;
}

.hr-btn-login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1.05rem;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hr-btn-login-pill:hover {
  border-color: #0056D2;
  color: #0056D2;
}

.hr-btn-join-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.52rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1D4ED8 0%, #0056D2 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hr-btn-join-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

/* Search Bar Popover */
.hr-search-drawer {
  display: none;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
  padding: 0.75rem 1.5rem;
}

.hr-search-drawer.open {
  display: block;
}

.hr-search-drawer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Mobile Slide Drawer (Compact Half-Space Overlay so Background Remains Visible) */
.hr-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(2px);
  z-index: 140;
}

.hr-mobile-backdrop.open {
  display: block;
}

.hr-mobile-drawer {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 60px;
  width: min(64vw, 255px);
  z-index: 150;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  border-radius: 0 18px 18px 0;
  padding: 0.75rem 0.65rem 0.65rem;
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.18);
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.hr-mobile-drawer.open {
  display: flex;
}

.hr-drawer-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.hr-drawer-section-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  padding: 0.15rem 0.25rem 0;
}

.hr-drawer-footer-pin {
  padding-top: 0.55rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hr-drawer-foot-note {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748B;
}

.hr-drawer-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.hr-drawer-quick-ai,
.hr-drawer-quick-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}

.hr-drawer-quick-ai {
  background: linear-gradient(135deg, #1D4ED8 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: none;
}

.hr-drawer-quick-demo {
  background: #E6FAEA;
  border: 1px solid #86EFAC;
  color: #15803D;
}

.hr-drawer-qicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-drawer-quick-ai strong,
.hr-drawer-quick-demo strong {
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.hr-drawer-list {
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

.hr-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  text-decoration: none;
  color: #0F172A;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
}

.hr-drawer-link:last-child {
  border-bottom: none;
}

.hr-drawer-link:hover {
  background: #EFF6FF;
}

.hr-drawer-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-drawer-text {
  flex: 1;
  min-width: 0;
}

.hr-drawer-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hr-drawer-chev {
  color: #94A3B8;
  flex-shrink: 0;
}

.hr-drawer-auth-row {
  display: flex;
  gap: 0.45rem;
}

/* 2. HERO SECTION */
.hr-hero {
  background: radial-gradient(circle at 82% 28%, rgba(219, 234, 254, 0.65) 0%, rgba(248, 250, 255, 0) 55%),
              linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  padding: 2.25rem 0 2.5rem;
}

.hr-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.hr-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.34rem 0.85rem;
  border-radius: 9999px;
  background: #E6FAEA;
  border: 1px solid #86EFAC;
  color: #15803D;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hr-hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.25rem, 3.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #0F172A;
}

.hr-hero-title .highlight {
  color: #0056D2;
}

.hr-hero-subtitle {
  margin: 0 0 1.4rem;
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  line-height: 1.6;
  color: #475569;
  max-width: 620px;
}

.hr-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.85rem;
}

.hr-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.82rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1D4ED8 0%, #0056D2 100%);
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hr-hero-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.36);
}

.hr-hero-cta-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.8rem 1.45rem;
  border-radius: 12px;
  background: #E6FAEA;
  border: 1.5px solid #86EFAC;
  color: #15803D;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.hr-hero-cta-demo:hover {
  background: #DCFCE7;
  border-color: #22C55E;
  color: #166534;
}

/* Inline Trust Stats Strip */
.hr-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid #E2E8F0;
}

.hr-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hr-stat-chip:hover {
  background: #EFF6FF;
}

.hr-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #0056D2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-stat-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
}

.hr-stat-text span {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

/* Hero Visual & Floating Glass Badges */
.hr-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hr-hero-img-frame {
  position: relative;
  width: 100%;
  max-width: clamp(440px, 36vw, 620px);
  aspect-ratio: 10 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
}

.hr-hero-img-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 28px;
  mask-image: radial-gradient(ellipse 88% 88% at 50% 48%, #000 64%, transparent 98%);
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 48%, #000 64%, transparent 98%);
}

.hr-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  z-index: 3;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hr-float-badge:hover {
  transform: translateY(-2px);
  border-color: #93C5FD;
  box-shadow: 0 14px 30px rgba(0, 86, 210, 0.14);
}

.hr-float-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-float-badge strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
}

.hr-float-badge span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0056D2;
}

.hr-float-courses { top: 8%; left: -4%; }
.hr-float-ebooks  { top: 42%; left: -7%; }
.hr-float-ai      { top: 14%; right: -3%; }
.hr-float-exams   { top: 48%; right: -5%; }

/* 3. LIBRA AI GRADIENT BANNER */
.hr-libra-section {
  padding: 0.5rem 0 2.25rem;
}

.hr-libra-card {
  background: linear-gradient(125deg, #1E3A8A 0%, #2563EB 48%, #4F46E5 100%);
  border-radius: 24px;
  padding: clamp(1.75rem, 2.8vw, 2.75rem) clamp(1.75rem, 3.2vw, 3.25rem);
  color: #FFFFFF;
  box-shadow: 0 20px 44px rgba(30, 58, 138, 0.22);
  position: relative;
  overflow: hidden;
}

.hr-libra-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.75fr;
  align-items: center;
  gap: 1.5rem;
}

.hr-libra-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.78rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hr-libra-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  color: #FFFFFF;
}

.hr-libra-desc {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.92);
}

.hr-libra-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #1E3A8A;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease;
}

.hr-libra-cta:hover {
  transform: translateY(-1px);
}

.hr-libra-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hr-libra-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hr-libra-box:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hr-libra-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-libra-box strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.hr-libra-box small {
  display: block;
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.9);
}

.hr-libra-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hr-libra-mascot img {
  height: clamp(210px, 18vw, 275px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.35));
}

/* 4. EXPLORE CATEGORIES */
.hr-catalog-section {
  padding: 0.5rem 0 2rem;
}

.hr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.hr-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #0F172A;
}

.hr-section-head p {
  margin: 0;
  font-size: 0.92rem;
  color: #64748B;
}

.hr-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0056D2;
  text-decoration: none;
  white-space: nowrap;
}

.hr-view-all-link:hover {
  text-decoration: underline;
}

.hr-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.hr-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.05rem;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hr-cat-card:hover {
  transform: translateY(-2px);
  border-color: #93C5FD;
  box-shadow: 0 10px 24px rgba(0, 86, 210, 0.08);
}

.hr-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hr-cat-card strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: #0F172A;
}

.hr-cat-card small {
  display: block;
  font-size: 0.78rem;
  color: #64748B;
}

/* 5. WHY MILLIONS OF LEARNERS CHOOSE LIBRIKA (Unified Horizontal Banner) */
.hr-why-section {
  padding: 0 0 2rem;
}

.hr-why-banner {
  background: linear-gradient(135deg, #F1F5FF 0%, #FFFFFF 100%);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.hr-why-lead {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.hr-why-lead img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
}

.hr-why-lead h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}

.hr-why-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  flex: 1;
}

.hr-why-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-left: 1px solid #E2E8F0;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  transition: background 0.15s ease;
}

.hr-why-item:hover {
  background: rgba(239, 246, 255, 0.85);
}

.hr-why-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
}

.hr-why-item small {
  display: block;
  font-size: 0.76rem;
  color: #64748B;
}

.hr-why-mobile-arrow {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0056D2;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

/* 6. TRANSPARENT & ACCESSIBLE PRICING */
.hr-pricing-section {
  padding: 0.25rem 0 2rem;
}

.hr-pricing-toggle {
  display: inline-flex;
  padding: 4px;
  background: #E2E8F0;
  border-radius: 9999px;
  gap: 4px;
}

.hr-toggle-btn {
  padding: 0.42rem 1.05rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hr-toggle-btn.active {
  background: #0056D2;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 86, 210, 0.25);
}

.hr-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.hr-plan-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hr-plan-card.popular {
  border-color: #2563EB;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.hr-plan-card.is-highlighted {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.hr-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.24rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.hr-plan-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hr-plan-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
}

.hr-plan-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

.hr-plan-price span {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748B;
}

.hr-plan-features {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.hr-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #334155;
}

.hr-plan-features li span {
  color: #16A34A;
  font-weight: 800;
}

.hr-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  box-sizing: border-box;
  cursor: pointer;
}

.hr-plan-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
}

/* 7. TRUST BAR & CLEAN FOOTER */
.hr-trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hr-trust-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-size: 0.78rem;
  color: #334155;
}

.hr-trust-card strong {
  display: block;
  color: #0F172A;
  font-weight: 800;
}

body.home-redesign footer.cr-footer {
  background: #FFFFFF !important;
  border-top: 1px solid #E2E8F0;
  padding: 1.5rem 0 4.5rem !important;
  margin-top: 0 !important;
}

.hr-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
  font-size: 0.82rem;
  color: #64748B;
}

.hr-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hr-footer-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
}

.hr-footer-links a:hover {
  color: #0056D2;
}

.hr-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hr-social-links a {
  color: #475569;
  display: inline-flex;
  padding: 4px;
}

/* =========================================================================
   TABLET (<= 1024px)
   ========================================================================= */
@media (max-width: 1024px) {
  .hr-nav-menu {
    display: none;
  }
  .hr-mobile-menu-btn {
    display: inline-flex;
  }
  .hr-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hr-float-badge {
    display: none;
  }
  .hr-libra-grid {
    grid-template-columns: 1fr;
  }
  .hr-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hr-why-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .hr-why-items {
    grid-template-columns: 1fr;
  }
  .hr-why-item {
    border-left: none;
    border-top: 1px solid #E2E8F0;
  }
  .hr-pricing-grid {
    grid-template-columns: 1fr;
  }
  .hr-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================================
   MOBILE (<= 768px) — Matches Mobile Reference Image
   ========================================================================= */
@media (max-width: 768px) {
  .hr-container {
    padding: 0 0.9rem;
  }
  body.home-redesign .cr-nav-container {
    padding: 0.5rem 0.75rem;
    min-height: 56px;
    gap: 0.4rem;
  }
  .hr-brand-wrap {
    gap: 0.4rem;
    min-width: 0;
  }
  .hr-mobile-menu-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  body.home-redesign .cr-brand img.hr-brand-wordmark {
    height: 36px;
    width: auto;
    max-width: 140px;
  }
  .hr-brand-name {
    font-size: 1.05rem;
  }
  .hr-brand-tagline {
    font-size: 0.52rem;
    white-space: nowrap;
  }
  .hr-nav-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .hr-search-icon-btn {
    width: 32px;
    height: 32px;
  }
  .hr-btn-login-pill,
  .hr-btn-join-pill {
    padding: 0.38rem 0.58rem;
    font-size: 0.74rem;
  }
  .hr-hero {
    padding: 0.85rem 0 1.15rem;
  }
  .hr-hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 0.65rem 0.55rem;
  }
  .hr-hero-copy {
    display: contents;
  }
  .hr-hero-pill {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    margin-bottom: 0.1rem;
    font-size: 0.72rem;
    padding: 0.28rem 0.72rem;
  }
  .hr-hero-text-block {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .hr-hero-title {
    font-size: 1.42rem;
    line-height: 1.14;
    margin-bottom: 0.4rem;
  }
  .hr-hero-subtitle {
    font-size: 0.78rem;
    line-height: 1.42;
    margin-bottom: 0;
  }
  .hr-hero-visual {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    display: flex;
    justify-content: flex-end;
  }
  .hr-hero-img-frame {
    width: 100%;
    max-width: 190px;
    aspect-ratio: 10 / 9;
    margin: 0;
  }
  .hr-hero-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 0.35rem 0 0.35rem;
  }
  .hr-hero-cta-primary,
  .hr-hero-cta-demo {
    padding: 0.7rem 0.6rem;
    font-size: 0.86rem;
    width: 100%;
    box-sizing: border-box;
  }
  .hr-hero-stats {
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 0.45rem 0.35rem;
  }
  .hr-stat-chip {
    flex-direction: row;
    padding: 0.25rem;
    gap: 0.3rem;
  }
  .hr-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .hr-stat-icon svg {
    width: 13px;
    height: 13px;
  }
  .hr-stat-text strong {
    font-size: 0.82rem;
  }
  .hr-stat-text span {
    font-size: 0.58rem;
    line-height: 1.1;
  }
  .hr-libra-card {
    padding: 1.1rem 0.95rem;
    border-radius: 20px;
  }
  .hr-libra-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 0.85rem 0.5rem;
  }
  .hr-libra-copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .hr-libra-title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }
  .hr-libra-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  .hr-libra-cta {
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
  }
  .hr-libra-mascot {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
  }
  .hr-libra-mascot img {
    height: 175px;
    width: auto;
    max-width: 100%;
  }
  .hr-libra-boxes {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0.55rem;
  }
  .hr-libra-box {
    padding: 0.65rem 0.65rem;
  }
  .hr-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .hr-cat-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .hr-why-banner {
    flex-direction: row;
    align-items: center;
    padding: 0.85rem 0.95rem;
    gap: 0.75rem;
  }
  .hr-why-lead {
    flex: 1;
    min-width: 0;
    gap: 0.75rem;
  }
  .hr-why-lead img {
    width: 54px;
    height: 54px;
  }
  .hr-why-lead h2 {
    font-size: 1rem;
  }
  .hr-why-items {
    display: none;
  }
  .hr-why-mobile-arrow {
    display: inline-flex;
  }
  .hr-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .hr-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .hr-plan-card {
    padding: 0.75rem 0.55rem;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
  }
  .hr-plan-head {
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
  }
  .hr-plan-title {
    font-size: 0.78rem;
  }
  .hr-plan-price {
    font-size: 0.85rem;
  }
  .hr-plan-price span {
    display: block;
    font-size: 0.66rem;
  }
  .hr-plan-features,
  .hr-plan-btn,
  .hr-plan-badge {
    display: none;
  }
  .hr-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  body.home-redesign footer.cr-footer {
    padding: 1rem 0 5.5rem !important;
  }
}
