*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #33c6f4;
  --teal-dk: #50ebb3;
  --dark: #252525;
  --bg: #f5f7fa;
  --white: #ffffff;
  --muted: #3f4a5d;
  --border: #d1d9e0;
  --red: #e53e3e;
  --yellow: #ffe400;
  --green: #50ebb3;
  --slate: #4a5568;
}

body {
  font-family: "Figtree", sans-serif !important;
  background: var(--white);
  color: var(--muted);
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid #eef0f3;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* ── SECTION TOGGLE ── */
.section {
  display: none;
}
.section.active {
  display: block;
}

/* ══════════════════════════════════════
   SCREEN 1 — INTRO *———————
══════════════════════════════════════ */
/* 1. Pulling the section up closer to the navigation */
#sec-landing.active {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Locking height to prevent scroll and allow crop */
  height: 661px;
  background: #ffffff;
  overflow: hidden; /* Essential for the bleed effect */
  position: relative;
}

/* ══════════════════════════════════════
   SCREEN 1 — LAYOUT OVERHAUL
══════════════════════════════════════ */
.intro-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 80px;
  /* CHANGED: Removed grid to let text expand horizontally */
  display: block;
  position: relative;
  width: 100%;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Tighter gap to match the design */
  /* CHANGED: Increased max-width significantly */
  max-width: 800px;
  /* Center the text vertically within the 661px container */
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.intro-h1 {
  /* CHANGED: Matches the bold, horizontal layout */
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #252525;
  margin: 0;
}

.intro-accent {
  display: block; /* Forces "Rank higher." to its own line */
  color: var(--teal);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.intro-body {
  font-size: clamp(1.1rem, 1.2vw, 1.3rem);
  font-weight: 300;
  color: #3f4a5d;
  line-height: 1.55;
  margin-top: 20px;
  /* Allows the text to be wide but not hit the people */
  max-width: 460px;
  margin-bottom: 20px;
}

.intro-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0px;
}

.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  background: transparent;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

/* CHANGED: Micro change on hover */
.btn-outline-teal:hover {
  background-color: rgba(26, 173, 218, 0.12);
  border-color: #1aadda;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  border: none;
  padding: 13px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s,
    background-color 0.15s;
}

/* CHANGED: Micro change on hover */
.btn-dark:hover {
  background-color: #1aadda;
  opacity: 0.88;
  transform: translateY(-1px);
}

/* --- IMAGE POSITIONING (PROTECTING HERO IMAGE) --- */

.hero-right {
  /* CHANGED: Positioned absolutely so it doesn't push the text */
  position: absolute;
  top: 13%;
  right: 0;
  height: 100%;
  width: 60%; /* Takes up the right side without squeezing the text container */
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none; /* Allows you to click buttons "under" the image area */
}

.hero-phone-img {
  position: relative;
  z-index: 2;
  /* Zooming in by making it taller than the container */
  height: 200%;
  width: auto;
  object-fit: cover;
  /* This creates the right-side bleed and bottom crop */
  margin-right: -30%;
  margin-bottom: -70%;
}

.hero-bg-pattern {
  position: absolute;
  /* Positioning relative to the hero-right container */
  top: -30%;
  right: 7%;
  width: 70%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

/* ══════════════════════════════════════
   SCREEN 2 — FORM
══════════════════════════════════════ */

/* Layout & Spacing */
.form-layout {
  display: flex;
  gap: 80px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px;
}

.form-left,
.form-right {
  flex: 1;
  max-width: 480px;
}

.form-right {
  padding-top: 8px; /* Slight optical alignment with left column */
  position: relative;
  z-index: 1;
}

/* Background Gradient Circles */
.form-right::before,
.form-right::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

/* Yellow Circle */
.form-right::before {
  width: 350px;
  height: 350px;
  top: 0%;
  left: 10%;
  background: radial-gradient(
    55.48% 45.18% at 50% 50%,
    rgba(240, 188, 16, 0.1) 0%,
    rgba(240, 188, 16, 0) 100%
  );
}

/* Green Circle */
.form-right::after {
  width: 500px;
  height: 500px;
  bottom: -70px;
  right: -80px;
  background: radial-gradient(
    50.48% 43.27% at 50% 50%,
    rgba(80, 235, 179, 0.12) 0%,
    rgba(80, 235, 179, 0) 100%
  );
}

/* Left Column: Typography */
.form-h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.form-subtext {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 48px;
  line-height: 1.5;
}

/* Form Fields */
.field-group {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.field-opt {
  font-weight: 500;
  color: #6b7280;
  margin-left: 4px;
}

.field-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: #9ca3af;
}

.field-input:focus {
  border-color: #567876;
  box-shadow: 0 0 0 1px #567876;
}

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.field-input.invalid {
  border-color: #ef4444;
}

.field-hint {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.5;
}

.field-error {
  font-size: 13px;
  color: #ef4444;
  margin-top: 5px;
  font-weight: 500;
  display: none;
}

.field-error.visible {
  display: block;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--teal);
  border: none;
  padding: 16px;
  border-radius: 100px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s;
  margin-top: 8px;
}
/* Submit Button going darker over hover */
.btn-submit:hover:not(:disabled) {
  background-color: #1aadda;
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-trust {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 24px;
  line-height: 1.6;
}

/* Right column */
.cover-h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.cover-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;

  /* New Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);

  /* Border base */
  border-width: 1px;
  border-style: solid;
}

/* Colored borders for glass cards */
.cover-card:nth-child(1) {
  border-color: #e0f2fe;
}
.cover-card:nth-child(2) {
  border-color: #dcfce7;
}
.cover-card:nth-child(3) {
  border-color: #fef3c7;
}
.cover-card:nth-child(4) {
  border-color: #dcfce7;
}

/* Icons */
.cover-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cover-icon--teal {
  background-color: #33c6f4;
}
.cover-icon--blue {
  background-color: #50ebb3;
}
.cover-icon--yellow {
  background-color: #ffe400;
}
.cover-icon--navy {
  background-color: #50ebb3;
}

/* Card Typography */
.cover-card-title {
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.4;
}

.cover-card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Privacy Footer */
.cover-privacy {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 968px) {
  .form-layout {
    flex-direction: column;
    gap: 64px;
  }

  .form-left,
  .form-right {
    max-width: 100%;
  }

  .form-h1 {
    font-size: 36px;
  }
}

/* ══════════════════════════════════════
   SCREEN 3 — CALENDLY
══════════════════════════════════════ */
.calendly-section {
  padding: 32px 24px 40px;
  background: var(--bg); /* Calendly section background color */
}

.calendly-header {
  text-align: center;
  margin-bottom: 28px;
}

.calendly-check-icon {
  /* Removed the 56px width/height, background, and border*/
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0px;
}

.calendly-h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #1f2937; /* Updated to match the dark text */
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.calendly-sub {
  color: #6b7280; /* Updated to match muted text */
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

.calendly-wrap {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

/* ══════════════════════════════════════
   SCREEN 4 — SUCCESS SCREEN
══════════════════════════════════════ */
#sec-success {
  border-top: 1px solid #f3f4f6;
  background-color: #ffffff;
  padding-bottom: 120px;
}

.success-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 0;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Success Background Gradients */
.success-wrap::before,
.success-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.success-wrap::before {
  width: 500px;
  height: 500px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(56, 189, 248, 0.12) 0%,
    rgba(56, 189, 248, 0) 100%
  );
}

.success-wrap::after {
  width: 450px;
  height: 450px;
  top: 50%;
  left: -180px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(250, 204, 21, 0.08) 0%,
    rgba(250, 204, 21, 0) 100%
  );
}

.success-icon-wrap {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.success-h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.success-sub {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.success-next-h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  text-align: center;
}

.success-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
}

/* Glassmorphism matched to cover-cards */
.success-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  border-width: 1px;
  border-style: solid;
}

.success-card:nth-child(1) {
  border-color: #e0f2fe;
}
.success-card:nth-child(2) {
  border-color: #fef3c7;
}

.success-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-card-icon--teal {
  background: #38bdf8;
}
.success-card-icon--yellow {
  background: #facc15;
}

.success-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.success-card-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  background: transparent;
  padding: 12px 24px;
  border: 1.5px solid #9ca3af;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-dark:hover {
  background: #f3f4f6;
  border-color: #6b7280;
}

.success-privacy {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 48px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
  .form-layout {
    flex-direction: column;
    gap: 64px;
  }

  .form-left,
  .form-right {
    max-width: 100%;
  }

  .form-h1 {
    font-size: 36px;
  }
}

/* ══════════════════════════════════════
   MODAL — DUPLICATE REQUEST
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.modal-icon-wrap {
  margin-bottom: 16px;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.modal-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.modal-close {
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  border: none;
  padding: 13px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.modal-close:hover {
  opacity: 0.85;
}

/* ── FINAL MOBILE OVERLAP FIX ── */
@media (max-width: 1200px) {
  #sec-landing.active {
    height: auto !important; /* Allow the page to grow with content */
    min-height: 100vh;
    display: block !important;
    overflow: visible !important;
    padding-top: 40px;
  }

  .intro-inner {
    display: flex !important;
    flex-direction: column !important; /* Forces text to stay ABOVE image */
    height: auto !important;
    padding: 0 24px !important;
  }

  .intro-text {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    z-index: 10;
  }

  .intro-h1,
  .intro-accent {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    line-height: 1.1 !important;
  }

  /* --- RESETTING THE IMAGE TO SIT BELOW --- */
  .hero-right {
    position: relative !important; /* Stops it from floating over text */
    width: 100% !important;
    height: auto !important;
    top: -40px !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 100px !important;
    pointer-events: auto !important;
  }

  .hero-phone-img {
    position: relative !important;
    height: auto !important;
    width: 100% !important; /* Makes image fit phone width */
    max-width: 650px; /* Prevents it from getting too huge */
    margin: 0px;
    margin-left: 0% !important;
    display: block !important;
  }

  .hero-bg-pattern {
    width: 100%;
    top: -5% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 490px) {
  .hero-phone-img {
    position: relative !important;
    height: auto !important;
    width: 200% !important; /* Makes image fit phone width */
    max-width: 650px; /* Prevents it from getting too huge */
    margin: 0px;
    margin-left: 50%;
    display: block !important;
  }

  .hero-bg-pattern {
    width: 210% !important;
    max-width: none !important;
    height: auto !important;
    top: -10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
  }

  .nav {
    padding: 16px 20px;
  }

  .intro-inner {
    padding: 0 24px;
  }

  .intro-h1,
  .intro-accent {
    font-size: 2rem; /* Compact for phones */
    line-height: 1.1;
  }

  .intro-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-outline-teal,
  .btn-dark {
    width: 100%; /* Full width buttons for easier tapping */
    justify-content: center;
  }
}
