/* ==========================================================================
   BHN Software — Retail & Local Businesses Design System
   Scoped exclusively under .bhn-rl-page
   ========================================================================== */

:root {
  --rl-navy: #061E47;
  --rl-navy-deep: #04122E;
  --rl-blue: #0066FF;
  --rl-orange: #FF8C00;
  --rl-orange-dk: #FF6B00;
  --rl-font: 'Poppins', sans-serif;
}

.bhn-rl-page {
  font-family: var(--rl-font);
  color: var(--rl-navy);
  background: #ffffff;
  overflow-x: clip;
  line-height: 1.65;
}

.bhn-rl-page *,
.bhn-rl-page *::before,
.bhn-rl-page *::after {
  box-sizing: border-box;
}

.bhn-rl-page h1,
.bhn-rl-page h2,
.bhn-rl-page h3 {
  font-family: var(--rl-font);
  letter-spacing: -0.025em;
}

.bhn-rl-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.rl-grad {
  background: linear-gradient(120deg, #ffffff 0%, #38bdf8 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rl-grad-dark {
  background: linear-gradient(120deg, #061E47 0%, #0066FF 55%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bhn-rl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(255, 140, 0, 0.44);
  color: #ffb84d;
  margin-bottom: 18px;
}

.bhn-rl-eyebrow--light {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.24);
  color: #0052CC;
}

.bhn-rl-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.bhn-rl-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bhn-rl-head h2 {
  font-size: clamp(1.88rem, 3.2vw, 2.72rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.bhn-rl-head p {
  font-size: 1.02rem;
  color: #475569;
  margin: 0;
}

.bhn-rl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: #ffffff !important;
  font-family: var(--rl-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 184, 77, 0.45);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.34);
  text-decoration: none !important;
  cursor: pointer;
}

.bhn-rl-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: #ffffff;
  color: #061E47 !important;
  font-family: var(--rl-font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  text-decoration: none !important;
}

.bhn-rl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-family: var(--rl-font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  text-decoration: none !important;
}

/* 1. HERO */
.rl-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 140, 0, 0.1) 0%, transparent 44%),
    linear-gradient(180deg, #fffdf9 0%, #f1f5f9 100%);
  padding: 36px 0 68px;
}

.rl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.rl-breadcrumb a { color: #334155; text-decoration: none; }

.rl-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.rl-hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.32rem);
  font-weight: 700;
  line-height: 1.1;
  color: #061E47;
  margin-bottom: 18px;
}

.rl-hero-lead {
  font-size: 1.03rem;
  color: #475569;
  max-width: 580px;
  margin-bottom: 26px;
}

.rl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.rl-hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid #cbd5e1;
}

.rl-hero-kpis strong {
  display: block;
  font-size: 1.35rem;
  color: #061E47;
  line-height: 1.15;
}

.rl-hero-kpis span {
  font-size: 0.76rem;
  color: #64748b;
}

.rl-stage {
  background: linear-gradient(155deg, #061E47 0%, #04122E 100%);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 22px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 30px 65px rgba(6, 30, 71, 0.28);
}

.rl-stage-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rl-stage-head > span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.rl-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rl-rtab {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-family: var(--rl-font);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.rl-rtab.is-active {
  background: #FF8C00;
  border-color: #FF8C00;
  color: #ffffff;
}

.rl-stage-img {
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  margin-bottom: 14px;
}

.rl-stage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rl-stage h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.rl-stage > p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.rl-stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rl-stage-chips span {
  font-size: 0.74rem;
  color: #dbeafe;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.26);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rl-stage-chips i { color: #FF8C00; }

/* 2. FEATURES */
.rl-features {
  background: linear-gradient(180deg, #061E47 0%, #04122E 100%);
  color: #ffffff;
  padding: 84px 0;
}

.rl-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rl-feat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
  padding: 24px;
}

.rl-feat-card i {
  font-size: 1.45rem;
  color: #FF8C00;
  margin-bottom: 12px;
  display: block;
}

.rl-feat-card h3 {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.rl-feat-card p {
  font-size: 0.87rem;
  color: #cbd5e1;
  margin: 0;
}

/* 3. ROI & NICHES */
.rl-roi-sec {
  background: #ffffff;
  padding: 84px 0;
}

.rl-roi-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 44px;
  align-items: center;
}

.rl-calc-card {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 28px;
}

.rl-calc-card h3 {
  font-size: 1.42rem;
  color: #061E47;
  margin-bottom: 6px;
}

.rl-calc-card > p {
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 20px;
}

.rl-sliders {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.rl-slbl {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.rl-slbl strong { color: #0066FF; }

.rl-sgrp input[type="range"] {
  width: 100%;
  accent-color: #FF8C00;
  cursor: pointer;
}

.rl-calc-out {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #061E47;
  color: #ffffff;
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.rl-calc-out span {
  display: block;
  font-size: 0.74rem;
  color: #93c5fd;
}

.rl-calc-out strong {
  font-size: 1.35rem;
  color: #FF8C00;
}

.rl-niche-box h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  color: #061E47;
  margin-bottom: 18px;
}

.rl-niche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rl-niche-grid div {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px;
}

.rl-niche-grid strong {
  display: block;
  font-size: 0.94rem;
  color: #061E47;
  margin-bottom: 4px;
}

.rl-niche-grid span {
  font-size: 0.82rem;
  color: #475569;
}

/* 4. PORTFOLIO & TECH */
.rl-pf-sec {
  background: #f8fafc;
  padding: 84px 0;
}

.rl-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}

.rl-pf-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  overflow: hidden;
}

.rl-pf-card img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.rl-pf-card > div {
  padding: 20px;
}

.rl-pf-card h3 {
  font-size: 1.08rem;
  color: #061E47;
  margin-bottom: 6px;
}

.rl-pf-card p {
  font-size: 0.86rem;
  color: #475569;
  margin: 0;
}

.rl-tech-box {
  background: linear-gradient(135deg, #061E47 0%, #04122E 100%);
  border-radius: 24px;
  padding: 44px 32px;
  color: #ffffff;
}

/* 5. FAQ & CTA */
.rl-faq-cta {
  background: #ffffff;
  padding: 84px 0;
}

.rl-faq-wrap {
  max-width: 860px;
  margin: 0 auto 64px;
}

.rl-faq-list {
  display: grid;
  gap: 12px;
}

.rl-faq-item {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.rl-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: var(--rl-font);
  font-size: 1rem;
  font-weight: 700;
  color: #061E47;
  cursor: pointer;
}

.rl-faq-q i {
  color: #FF8C00;
  transition: transform 0.2s ease;
}

.rl-faq-item.is-open .rl-faq-q i { transform: rotate(45deg); }

.rl-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.25s ease;
}

.rl-faq-item.is-open .rl-faq-a {
  max-height: 220px;
  padding-bottom: 18px;
}

.rl-faq-a p {
  color: #475569;
  font-size: 0.92rem;
  margin: 0;
}

.rl-final-box {
  background: linear-gradient(135deg, #061E47 0%, #0052CC 100%);
  border: 1px solid rgba(255, 140, 0, 0.38);
  border-radius: 24px;
  padding: 44px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rl-final-box h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: #ffffff;
  margin-bottom: 8px;
  max-width: 620px;
}

.rl-final-box p {
  color: #dbeafe;
  margin: 0;
}

.rl-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .rl-hero-grid,
  .rl-roi-grid {
    grid-template-columns: 1fr;
  }

  .rl-feat-grid,
  .rl-pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .bhn-rl-container { padding: 0 16px; }
  .rl-hero { padding: 28px 0 52px; }
  .rl-hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .rl-feat-grid,
  .rl-calc-out,
  .rl-niche-grid,
  .rl-pf-grid {
    grid-template-columns: 1fr;
  }
  .rl-calc-card,
  .rl-tech-box,
  .rl-final-box { padding: 24px 18px; }
}
