/* ============================================================
   Remedy Loans — site.css
   Syne (display) + Manrope (body) · Royal blue #2563eb
   ============================================================ */

html { scroll-behavior: smooth; }

:root {
  --aim-teal-500: var(--color-primary);
  --aim-teal-700: var(--color-secondary);
  --aim-teal-600: var(--color-accent);
  --aim-focus: 0 0 0 4px rgba(var(--color-primary-rgb), 0.22), 0 0 0 7px rgba(147, 197, 253, 0.28);
}

/* ============================================================
   Hero: dark-navy left / light-gray right
   ============================================================ */
.rl-hero {
  display: grid;
  grid-template-columns: 1fr;
}

/* ── Left panel ── */
.rl-hero-left {
  background: var(--rl-dark, #06101f);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  order: 2;
}

/* Radial blue glow — decorative depth */
.rl-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 15% 55%, rgba(37, 99, 235, 0.38) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(29, 78, 216, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid lines — adds depth without stock photos */
.rl-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.rl-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Eyebrow with leading dash */
.rl-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #60a5fa;
  margin: 0 0 1.25rem;
}

.rl-eyebrow::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 2px;
  background: #2563eb;
  flex-shrink: 0;
  border-radius: 1px;
}

/* Headline — Syne, large, italic accent */
.rl-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 0 1.5rem;
}

.rl-headline em {
  font-style: italic;
  color: #60a5fa;
  font-weight: 700;
}

.rl-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 40ch;
}

/* Trust checklist */
.rl-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rl-trust li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.rl-trust li::before {
  content: '';
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.7);
  background:
    rgba(37, 99, 235, 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 1.8 4-4' stroke='%2393c5fd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
    no-repeat center / 7px;
}

/* ── Right panel ── */
.rl-hero-right {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  order: 1;
}

/* Form card */
.rl-form-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 8px 32px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  min-height: 400px;
}

#offer-container { width: 100%; }

/* Hero entry animations */
@keyframes rl-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rl-eyebrow  { animation: rl-rise 0.5s ease both; animation-delay: 0.05s; }
.rl-headline { animation: rl-rise 0.55s ease both; animation-delay: 0.15s; }
.rl-lead     { animation: rl-rise 0.5s ease both; animation-delay: 0.25s; }
.rl-trust    { animation: rl-rise 0.5s ease both; animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .rl-eyebrow, .rl-headline, .rl-lead, .rl-trust { animation: none; }
}

/* Mobile: center content, condense */
@media (max-width: 767.98px) {
  .rl-headline { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .rl-lead { display: none; }
  .rl-hero-copy { text-align: center; }
  .rl-eyebrow { justify-content: center; }
  .rl-trust { align-items: center; }
}

/* Desktop: side-by-side split, reset order */
@media (min-width: 768px) {
  .rl-hero {
    grid-template-columns: 54% 46%;
    min-height: 680px;
  }

  .rl-hero-left {
    padding: 5rem 2.5rem 5rem 2rem;
    justify-content: flex-end;
    order: 1;
  }

  .rl-hero-copy {
    margin: 0;
    max-width: 460px;
  }

  .rl-hero-right {
    padding: 4rem 2rem 4rem 2.5rem;
    justify-content: flex-start;
    order: 2;
  }

  .rl-lead { display: block; }
  .rl-form-card { margin-right: auto; }
}

@media (min-width: 1200px) {
  .rl-hero-left  { padding-right: 4rem; }
  .rl-hero-right { padding-left: 4rem; }
}

/* ============================================================
   Steps section
   ============================================================ */
#hero-steps {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

/* Section title + subtitle injected by config-manager */
#hero-steps h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 0.6rem;
  text-align: center;
  grid-column: 1 / -1;
}

#hero-steps h1 {
  grid-column: 1 / -1;
  text-align: center;
}

/* Subtitle paragraph */
#hero-steps > div:not(.loading-container) > p {
  font-size: 1rem;
  color: #475569;
  text-align: center;
  max-width: 58ch;
  margin: 0 auto 2.75rem;
  grid-column: 1 / -1;
  line-height: 1.65;
}

/* Step card grid */
#hero-steps > div:not(.loading-container) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: rl-step;
}

#hero-steps > div:not(.loading-container) > *:not(h1):not(h2):not(h3):not(p) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
}

@media (min-width: 1024px) {
  #hero-steps > div:not(.loading-container) {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Individual step card */
.step {
  counter-increment: rl-step;
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.step:hover {
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.11);
  transform: translateY(-3px);
}

/* No top-right badge — number lives in the icon tile instead */
.step::before { content: none; }

/* Icon tile — !important overrides config-manager's injected styles */
.step-icon,
.step-icon--fa {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem;
  position: relative;
}

/* Step number centered in tile — targets both base class and --fa variant */
.step-icon::before,
.step-icon--fa::before {
  content: "0" counter(rl-step);
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Hide any icon glyph — number is the visual */
.step-icon i,
.step-icon--fa i,
.step-icon svg { display: none !important; }

.step-icon--img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: #eff6ff;
}

.step-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-body { flex: 1; min-width: 0; }

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.0rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.step-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Loading state */
.loading-container {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.loading-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #e0e7ff;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: rl-spin 0.75s linear infinite;
  margin: 0 auto 0.875rem;
}

@keyframes rl-spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 0.875rem; margin: 0; }

/* Disclaimer */
.disclaimer .disclaimer-content {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

/* ============================================================
   Footer (Concept 3 · Dark floating-card)
   ============================================================ */
.footer-floating-card {
  background: #10131A;
  color: #E8EAF0;
  font-family: 'Manrope', system-ui, sans-serif;
  padding-bottom: 24px;
  box-sizing: border-box;
}
.footer-floating-card *,
.footer-floating-card *::before,
.footer-floating-card *::after { box-sizing: border-box; }

.footer-floating-card .accent-card {
  margin: 0 16px;
  border-radius: 16px;
  padding: 22px 18px 20px;
  transform: translateY(-22px);
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.footer-floating-card .accent-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.7;
}
.footer-floating-card .accent-headline {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.footer-floating-card .accent-sub {
  font-size: 13px;
  margin: 0 0 16px;
  opacity: 0.82;
  line-height: 1.5;
}

.footer-floating-card .ca-row { display: grid; gap: 10px; }
.footer-floating-card .ca {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 38px 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.footer-floating-card .ca::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .15s ease;
}
.footer-floating-card .ca:hover,
.footer-floating-card .ca:focus-visible { transform: translateY(-1px); outline: none; }
.footer-floating-card .ca:hover::after,
.footer-floating-card .ca:focus-visible::after { right: 12px; }
.footer-floating-card .ca:active { transform: translateY(0); }
.footer-floating-card .ca .ca-sub { font-size: 12px; font-weight: 500; opacity: 0.9; }

.footer-floating-card .ca.primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.footer-floating-card .ca.primary:hover,
.footer-floating-card .ca.primary:focus-visible { background: #f0f4ff; }

.footer-floating-card .ca.secondary {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, .85);
}
.footer-floating-card .ca.secondary:hover,
.footer-floating-card .ca.secondary:focus-visible { background: rgba(255, 255, 255, .18); }

.footer-floating-card .links {
  padding: 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }

@media (min-width: 600px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

.footer-floating-card .col-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  color: #6B7280;
}
.footer-floating-card .col-link {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  text-decoration: none;
  color: #B7C0D4;
  transition: color .15s ease;
  cursor: pointer;
}
.footer-floating-card .col-link:hover,
.footer-floating-card .col-link:focus-visible { color: #ffffff; outline: none; }

.footer-floating-card .meta {
  padding: 0 22px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #6B7589;
  text-align: center;
}
.footer-floating-card .meta-divider { height: 1px; margin: 0 0 16px; background: #1E232E; }
.footer-floating-card .meta-name { display: block; font-size: 13px; font-weight: 600; color: #C8CCD8; margin-bottom: 2px; }
.footer-floating-card .meta-address { display: block; font-size: 12px; opacity: 0.7; }
.footer-floating-card .meta-copy { margin-top: 8px; display: block; }

@media (min-width: 768px) {
  .footer-floating-card { padding: 56px 0 28px; }

  .footer-floating-card .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 56px;
    align-items: start;
  }

  .footer-floating-card .accent-card {
    margin: 0;
    transform: none;
    border-radius: 18px;
    padding: 28px 28px 26px;
  }
  .footer-floating-card .accent-kicker { font-size: 11px; margin-bottom: 12px; }
  .footer-floating-card .accent-headline { font-size: 26px; margin-bottom: 8px; }
  .footer-floating-card .accent-sub { font-size: 14px; margin-bottom: 20px; }
  .footer-floating-card .ca { padding: 15px 42px 15px 18px; }
  .footer-floating-card .ca::after { right: 18px; width: 8px; height: 8px; }
  .footer-floating-card .ca:hover::after,
  .footer-floating-card .ca:focus-visible::after { right: 14px; }

  .footer-floating-card .links {
    padding: 0;
    gap: 0 40px;
    grid-template-columns: 1fr 1fr;
  }
  .footer-floating-card .links .col-full { grid-column: 1 / -1; margin-top: 28px; }
  .footer-floating-card .col-title { font-size: 11px; margin-bottom: 14px; }
  .footer-floating-card .col-link { font-size: 14px; padding: 6px 0; }

  .footer-floating-card .meta {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 22px 40px 0;
    font-size: 13px;
    border-top: 1px solid #1E232E;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .footer-floating-card .meta-divider { display: none; }
  .footer-floating-card .meta-left { display: flex; flex-direction: column; gap: 2px; }
  .footer-floating-card .meta-name { font-size: 13px; color: #E8EAF0; margin: 0; }
  .footer-floating-card .meta-copy { margin: 0; white-space: nowrap; }
}

@media (min-width: 1100px) {
  .footer-floating-card .links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-floating-card .links .col-full { grid-column: auto; margin-top: 0; }
}

/* ============================================================
   Benefits section
   ============================================================ */
.rl-benefits {
  background: #ffffff;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.rl-benefits-inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

.rl-benefits-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rl-benefits-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.rl-benefits-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.6;
}

.rl-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .rl-benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .rl-benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.rl-benefit {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.rl-benefit:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.rl-benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.rl-benefit-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.rl-benefit-body {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.65;
}

.rl-benefits-cta {
  text-align: center;
  margin-top: 2.75rem;
}

.rl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.9rem 2.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.35);
}
.rl-cta-btn::after {
  content: '→';
  font-size: 1.1em;
  transition: transform 0.15s ease;
}
.rl-cta-btn:hover,
.rl-cta-btn:focus-visible {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
  outline: none;
}
.rl-cta-btn:hover::after,
.rl-cta-btn:focus-visible::after {
  transform: translateX(3px);
}
.rl-cta-btn:active { transform: translateY(0); }
