/* =============================================================================
   RESOLABS.IO — LANDING PAGE
   =============================================================================
   §2 Hero · §3 Values (5 rows) · §4 Approach · §5 Products · §6 CTA Banner
   ========================================================================== */

/* ═══════════════ §2 Hero ═══════════════ */

.rl_hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--rl-navy-dark);
  background-image: url("../public/images/resolabs/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  /* Top padding clears the fixed navbar; content stays vertically centered */
  padding: 110px 0 70px;
  overflow: hidden;
}

/* Dark overlay on top of the hero image */
.rl_hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 15, 30, 0.88) 0%,
    rgba(26, 24, 48, 0.82) 45%,
    rgba(26, 24, 48, 0.94) 100%
  );
}

.rl_hero_inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rl_hero_badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 24px;
  border-radius: var(--rl-radius-pill);
  background: rgba(240, 112, 80, 0.1);
  border: 1px solid rgba(240, 112, 80, 0.35);
  color: rgba(240, 112, 80, 0.9);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 32px;
}

.rl_hero_headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(36px, 6.4vw, 68px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.rl_hero_headline_white {
  color: var(--rl-white);
}

.rl_hero_headline_coral {
  color: var(--rl-coral);
}

.rl_hero_sub {
  max-width: 640px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.7;
  color: var(--rl-navy-light);
  margin-bottom: 34px;
}

.rl_hero_ctas {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.rl_hero_divider {
  width: min(560px, 80%);
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.rl_hero_stats {
  display: flex;
  gap: clamp(24px, 5vw, 40px);
}

.rl_hero_stat {
  display: flex;
  flex-direction: column-reverse; /* value above label, semantic dt/dd order kept */
  width: clamp(100px, 16vw, 160px);
  text-align: center;
}

.rl_hero_stat_value {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  color: var(--rl-coral);
  line-height: 1.4;
}

.rl_hero_stat_label {
  font-size: 13px;
  color: var(--rl-navy-light);
}

/* ═══════════════ §3 Values ═══════════════ */

.rl_values_header {
  background: var(--rl-navy-ghost);
  padding: 72px 0 110px;
  text-align: center;
}

.rl_values_header .rl_heading {
  margin-top: 14px;
}

.rl_values_header_sub {
  margin-top: 8px;
}

/* ── Shared value row ── */

.rl_value {
  padding: clamp(72px, 10vw, 130px) 0;
}

.rl_value--dark {
  background: var(--rl-navy-dark);
}

.rl_value--light {
  background: var(--rl-navy-ghost);
}

.rl_value--navy {
  background: var(--rl-navy);
}

.rl_value_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 98px);
}

.rl_value_copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Ghost number behind the copy */
.rl_value_number {
  position: absolute;
  top: -46px;
  left: -8px;
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: rgba(240, 112, 80, 0.16);
  pointer-events: none;
  user-select: none;
}

.rl_value_number--on-light {
  color: rgba(26, 24, 48, 0.08);
}

.rl_value_title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -1px;
}

.rl_eyebrow--purple {
  color: var(--rl-purple-light);
}

/* Check rows — one per line */
.rl_value_checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.rl_value_checks--coral          { color: rgba(240, 112, 80, 0.9); }
.rl_value_checks--purple         { color: rgba(168, 114, 228, 0.9); }
.rl_value_checks--coral-on-light { color: var(--rl-coral-deeper); }

/* Tag pills (Value 02) */
.rl_value_tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rl_value_tags li {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--rl-cyan-deeper);
  background: rgba(78, 201, 206, 0.12);
  border: 1px solid rgba(78, 201, 206, 0.35);
}

/* Quote (Value 05) */
.rl_value_quote {
  border-left: 3px solid var(--rl-coral);
  padding-left: 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.rl_value_visual {
  display: flex;
  justify-content: center;
}

/* ── Visual: Honest Receipt (Value 01) ── */

.rl_receipt {
  width: min(400px, 100%);
  background: #fdfcf7;
  border-radius: 6px 6px 14px 14px;
  padding: 30px 28px 26px;
  box-shadow: var(--rl-shadow-deep);
  font-family: var(--rl-font-mono);
  color: var(--rl-navy-dark);
  /* Torn receipt top edge */
  clip-path: polygon(
    0 8px, 4% 0, 8% 8px, 12% 0, 16% 8px, 20% 0, 24% 8px, 28% 0, 32% 8px,
    36% 0, 40% 8px, 44% 0, 48% 8px, 52% 0, 56% 8px, 60% 0, 64% 8px, 68% 0,
    72% 8px, 76% 0, 80% 8px, 84% 0, 88% 8px, 92% 0, 96% 8px, 100% 0,
    100% 100%, 0 100%
  );
  transform: rotate(-1.5deg);
}

.rl_receipt_header {
  text-align: center;
  border-bottom: 1.5px dashed rgba(26, 24, 48, 0.25);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.rl_receipt_title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 5px;
}

.rl_receipt_sub {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: rgba(26, 24, 48, 0.55);
}

.rl_receipt_rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  border-bottom: 1.5px dashed rgba(26, 24, 48, 0.25);
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.rl_receipt_row {
  display: flex;
  justify-content: space-between;
  color: rgba(26, 24, 48, 0.75);
}

.rl_receipt_val--good {
  color: var(--rl-success);
  font-weight: 700;
}

.rl_receipt_val--never {
  color: var(--rl-coral-dark);
  font-weight: 700;
}

.rl_receipt_total {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.rl_receipt_footnote {
  text-align: center;
  font-size: 10px;
  color: rgba(26, 24, 48, 0.4);
}

/* ── Visual: Code Editor (Value 02) ── */

.rl_editor {
  width: min(540px, 100%);
  background: var(--rl-navy-deepest);
  border: 1px solid rgba(45, 43, 80, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--rl-shadow-deep);
}

.rl_editor_titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--rl-navy);
  position: relative;
}

.rl_editor_dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.rl_editor_dot--red   { background: #ea4d44; }
.rl_editor_dot--amber { background: #e2851e; }
.rl_editor_dot--green { background: #1d9e75; }

.rl_editor_filename {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(147, 149, 196, 0.45);
  white-space: nowrap;
}

.rl_editor_body {
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  counter-reset: codeline;
}

.rl_editor_line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rl_editor_line::before {
  counter-increment: codeline;
  content: counter(codeline);
  width: 16px;
  flex-shrink: 0;
  font-size: 11px;
  text-align: right;
  color: rgba(147, 149, 196, 0.2);
}

.rl_editor_line i {
  display: block;
  height: 10px;
  border-radius: 3px;
}

.rl_editor_line--in1 { padding-left: 20px; }
.rl_editor_line--in2 { padding-left: 40px; }

/* ── Visual: Clean Phone (Value 03) ── */

.rl_phone {
  width: min(280px, 80%);
  background: var(--rl-navy-deepest);
  border: 1px solid rgba(147, 149, 196, 0.25);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--rl-shadow-deep);
  position: relative;
}

.rl_phone_notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--rl-navy-deepest);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.rl_phone_screen {
  background: var(--rl-navy-ghost);
  border-radius: 26px;
  padding: 48px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rl_phone_greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.rl_phone_hello {
  font-size: 12px;
  color: var(--rl-navy-medium);
}

.rl_phone_question {
  font-size: 16px;
  font-weight: 700;
  color: var(--rl-navy-dark);
  letter-spacing: -0.2px;
}

.rl_phone_action {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rl-white);
  border: 1px solid var(--rl-neutral-light);
  font-size: 13px;
  font-weight: 500;
  color: var(--rl-navy-dark);
}

.rl_phone_action--primary {
  background: var(--rl-gradient-brand);
  border: none;
  color: var(--rl-white);
}

.rl_phone_footer {
  margin-top: 10px;
  text-align: center;
  font-size: 10.5px;
  color: var(--rl-navy-light);
  font-style: italic;
}

/* ── Visual: Cluttered vs Clean (Value 04) ── */

.rl_compare {
  display: flex;
  gap: 20px;
  width: min(560px, 100%);
}

.rl_compare_panel {
  flex: 1;
  border-radius: 14px;
  padding: 18px 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.rl_compare_panel--bad {
  background: var(--rl-white);
  border: 1px solid var(--rl-neutral-light);
  overflow: hidden;
  transform: rotate(-1deg);
}

.rl_compare_panel--good {
  background: var(--rl-white);
  border: 1px solid rgba(29, 158, 117, 0.4);
  box-shadow: 0 16px 40px -16px rgba(29, 158, 117, 0.25);
  transform: rotate(1deg);
}

.rl_compare_label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rl_compare_label--bad  { color: var(--rl-error); }
.rl_compare_label--good { color: var(--rl-success); }

.rl_compare_bad_popup {
  background: var(--rl-warning);
  color: var(--rl-white);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(2deg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rl_compare_bad_popup span {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}

.rl_compare_bad_banner {
  background: var(--rl-purple-light);
  color: var(--rl-white);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 10.5px;
  transform: rotate(-1.5deg);
}

.rl_compare_bad_bar {
  height: 8px;
  border-radius: 3px;
  background: var(--rl-neutral-light);
}

.rl_compare_bad_bar--short {
  width: 60%;
}

.rl_compare_bad_cookie {
  margin-top: auto;
  background: var(--rl-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 10px;
  transform: rotate(1deg);
}

.rl_compare_good_content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.rl_compare_good_title {
  height: 14px;
  width: 55%;
  border-radius: 4px;
  background: var(--rl-navy-dark);
}

.rl_compare_good_bar {
  height: 8px;
  border-radius: 3px;
  background: var(--rl-neutral-light);
}

.rl_compare_good_bar--short {
  width: 70%;
}

.rl_compare_good_button {
  margin-top: 14px;
  align-self: flex-start;
  background: var(--rl-gradient-brand);
  color: var(--rl-white);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Visual: Quality Checklist (Value 05) ── */

.rl_checklist_stack {
  position: relative;
  width: min(540px, 100%);
}

/* Offset back-card */
.rl_checklist_stack::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--rl-navy-dark);
  border: 1px solid rgba(147, 149, 196, 0.1);
  border-radius: 16px;
  z-index: 0;
}

.rl_checklist {
  position: relative;
  z-index: 1;
  background: var(--rl-navy-deepest);
  border: 1px solid rgba(240, 112, 80, 0.3);
  border-radius: 16px;
  overflow: hidden;
}

.rl_checklist_header {
  padding: 14px 20px;
  background: rgba(240, 112, 80, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 112, 80, 0.9);
}

.rl_checklist_items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
}

.rl_checklist_items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.rl_checklist_check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(29, 158, 117, 0.8);
  color: var(--rl-white);
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════ §4 Our Approach ═══════════════ */

.rl_approach {
  background: var(--rl-navy-dark);
  padding: clamp(80px, 11vw, 150px) 0;
}

.rl_approach_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.rl_approach_copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.rl_approach_pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

.rl_approach_pillar {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.rl_approach_pillar_icon {
  font-size: 24px;
  line-height: 1.2;
}

.rl_approach_pillar_title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rl-white);
  margin-bottom: 6px;
}

.rl_approach_pillar_desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(147, 149, 196, 0.65);
}

/* ═══════════════ §5 Products & Solutions ═══════════════ */

.rl_products {
  background: var(--rl-navy-ghost);
  padding: clamp(72px, 9vw, 100px) 0;
}

.rl_products_header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(90px, 11vw, 130px);
}

.rl_products_header_sub {
  max-width: 580px;
}

.rl_products_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rl_card {
  background: var(--rl-white);
  border: 1px solid rgba(147, 149, 196, 0.25);
  border-radius: var(--rl-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.rl_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -18px rgba(16, 15, 30, 0.25);
}

.rl_card_accent {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}

.rl_card_image {
  height: 160px;
  width: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.rl_card_image--prompto {
  background:
    radial-gradient(ellipse 80% 55% at 65% 20%, rgba(45, 43, 80, 0.85), transparent 70%),
    linear-gradient(180deg, #100f1e 0%, #14122a 55%, #100f1e 100%);
}

.rl_card_image--teleport {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(45, 43, 80, 0.55), transparent 60%),
    linear-gradient(180deg, #100f1e 0%, #1a1830 55%, #100f1e 100%);
}

.rl_card_image--teleport::before,
.rl_card_image--teleport::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.rl_card_image--teleport::before {
  width: 55%;
  height: 120%;
  left: -10%;
  top: -20%;
  background: radial-gradient(circle, rgba(240, 112, 80, 0.45) 0%, transparent 65%);
}

.rl_card_image--teleport::after {
  width: 50%;
  height: 110%;
  right: -8%;
  top: 10%;
  background: radial-gradient(circle, rgba(78, 201, 206, 0.3) 0%, transparent 65%);
}

.rl_card_image--nurture {
  position: relative;
  overflow: hidden;
  background: #FAF8FF;
}

.rl_card_image--nurture::before,
.rl_card_image--nurture::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.rl_card_image--nurture::before {
  width: 220px;
  height: 220px;
  top: -80px;
  left: -60px;
  background: #A872E4;
  opacity: 0.45;
}

.rl_card_image--nurture::after {
  width: 180px;
  height: 180px;
  top: 20px;
  right: -60px;
  background: #F07050;
  opacity: 0.3;
}

.rl_card_body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  flex: 1;
}

.rl_card_header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rl_card_status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.rl_card_title {
  font-size: 22px;
  font-weight: 700;
  color: var(--rl-navy-dark);
}

.rl_card_desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rl-text-on-light);
}

.rl_card_link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 160ms ease;
}

.rl_card_link:hover {
  opacity: 0.7;
}

.rl_products_more {
  margin-top: 44px;
  text-align: center;
  font-size: 15px;
  color: var(--rl-navy-medium);
}

/* ═══════════════ §6 CTA Banner ═══════════════ */

.rl_cta_banner {
  background: linear-gradient(90deg, var(--rl-coral) 0%, var(--rl-coral-dark) 100%);
  padding: clamp(64px, 8vw, 84px) 0;
  text-align: center;
}

.rl_cta_banner_title {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  color: var(--rl-white);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.rl_cta_banner_sub {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.rl_cta_banner_actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.rl_cta_banner_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 16px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.rl_cta_banner_btn--solid {
  background: var(--rl-white);
  color: var(--rl-coral);
  font-weight: 600;
}

.rl_cta_banner_btn--solid:hover {
  transform: translateY(-2px);
}

.rl_cta_banner_btn--outline {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.rl_cta_banner_btn--outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ═══════════════ Responsive ═══════════════ */

@media (max-width: 1024px) {
  .rl_products_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .rl_value_inner,
  .rl_approach_inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Keep copy above visual on mobile, even in flipped rows */
  .rl_value_inner--flip .rl_value_visual {
    order: 2;
  }
  .rl_value_inner--flip .rl_value_copy {
    order: 1;
  }

  .rl_value_number {
    top: -34px;
    font-size: 72px;
  }
}

@media (min-width: 921px) {
  /* Flipped rows: visual left, copy right */
  .rl_value_inner--flip .rl_value_copy {
    order: 2;
  }
  .rl_value_inner--flip .rl_value_visual {
    order: 1;
  }
}

@media (max-width: 640px) {
  .rl_hero {
    padding: 100px 0 60px;
  }

  .rl_hero_stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .rl_products_grid {
    grid-template-columns: 1fr;
  }

  .rl_compare {
    flex-direction: column;
  }

  .rl_checklist_stack::after {
    display: none;
  }
}
