/* ============================================
   ClosedLoans Landing Page
   Inspired by GoHighLevel's clean, conversion-focused design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Bar --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.logo span {
  color: #2563eb;
}

.nav-cta {
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  padding: 100px 0 60px;
  background: linear-gradient(170deg, #eff6ff 0%, #fff 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "text calendly"
    "features calendly";
  gap: 32px 48px;
  align-items: center;
}

.hero-text {
  grid-area: text;
  text-align: left;
  align-self: end;
}

.hero-features {
  grid-area: features;
  align-self: start;
}

.hero-calendly {
  grid-area: calendly;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.calendly-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  padding: 20px 0 0;
  margin: 0;
}

.hero-calendly .calendly-inline-widget {
  min-height: 660px;
}

/* --- Hero Features --- */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hero-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.hero-feature p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #2563eb;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-split .hero-headline {
  max-width: 440px;
}

.hero-headline .highlight {
  color: #2563eb;
  position: relative;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}


/* --- CTA Buttons --- */
.cta-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.cta-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: #0f172a;
  color: #fff;
}

.section-dark .section-heading {
  color: #fff;
}

.section-light {
  background: #fff;
}

.section-accent {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 16px;
}

.section-heading.text-left {
  text-align: left;
}

.section-subheading {
  font-size: 18px;
  color: #64748b;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.text-center {
  text-align: center;
}

/* --- Problems Grid --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.problem-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
}

.problem-icon {
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.problem-card p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Split Section --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-content p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.7;
}

.split-content p strong {
  color: #0f172a;
}

.check-list {
  list-style: none;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 14px;
}

/* --- Speed Comparison --- */
.speed-comparison {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 32px;
}

.speed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
}

.speed-bar.you {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  width: 40%;
  min-width: fit-content;
}

.speed-bar.avg {
  background: #fee2e2;
  color: #991b1b;
  width: 100%;
}

.speed-bar-label {
  white-space: nowrap;
}

.speed-bar-time {
  white-space: nowrap;
  margin-left: 16px;
}

.speed-caption {
  margin-top: 16px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
  font-style: italic;
}

/* --- Guarantee --- */
.guarantee-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 48px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 24px;
  background: rgba(245, 158, 11, 0.05);
}

.guarantee-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.guarantee-headline {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
}

.guarantee-text {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.faq-item summary {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: #94a3b8;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  color: #2563eb;
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
}

/* --- Book Call --- */
.section-book {
  background: linear-gradient(170deg, #eff6ff 0%, #fff 60%);
  padding: 80px 0 60px;
}

.section-book .section-subheading {
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: #0f172a;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 14px;
  color: #64748b;
}

.footer-link {
  color: #94a3b8;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer .logo {
  color: #fff;
}

/* --- Welcome Page --- */
.welcome-header {
  max-width: 720px;
  margin: 0 auto 48px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-main {
  max-width: 900px;
  margin: 0 auto 48px;
}

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

.video-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 12px;
  text-align: center;
}

/* --- Privacy Policy --- */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
}

.privacy-content p {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.privacy-content ul {
  margin: 0 0 12px 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-content li {
  margin-bottom: 8px;
}

.privacy-content a {
  color: #2563eb;
  text-decoration: underline;
}

.privacy-date {
  font-style: italic;
  color: #94a3b8 !important;
  margin-bottom: 24px !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "calendly"
      "features";
    gap: 32px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-calendly {
    max-width: 600px;
    margin: 0 auto;
  }

  .problems-grid,
  .steps-grid,
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-heading.text-left {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 90px 0 40px;
  }

  .hero-headline {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .section {
    padding: 56px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .guarantee-box {
    padding: 36px 24px;
  }

  .nav-cta {
    font-size: 13px;
    padding: 8px 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-btn {
    font-size: 15px;
    padding: 14px 28px;
  }

  .speed-bar.you {
    width: 60%;
  }
}
