/* ================================================================
   FORMULARYAI LANDING PAGE - Page-Specific Styles
   Inherits base styles from styles.css
   ================================================================ */

/* ----------------------------------------------------------------
   HERO OVERRIDES
   ---------------------------------------------------------------- */
.fai-hero .hero-title {
  font-size: 52px;
}

.fai-hero .hero-title-accent {
  font-size: 32px;
  display: block;
  margin-top: 8px;
}

/* ----------------------------------------------------------------
   THE PROBLEM
   ---------------------------------------------------------------- */
.fai-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fai-problem-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.fai-problem-card:hover {
  border-color: #ef4444;
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.08);
  transform: translateY(-2px);
}

.fai-problem-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.04));
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: #ef4444;
}

.fai-problem-icon svg {
  width: 28px;
  height: 28px;
}

.fai-problem-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.fai-problem-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy-500);
}

/* ----------------------------------------------------------------
   THE SOLUTION / FEATURES
   ---------------------------------------------------------------- */
.fai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fai-feature-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.fai-feature-card:hover {
  border-color: rgba(13, 148, 136, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.fai-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--teal-400);
}

.fai-feature-icon svg {
  width: 26px;
  height: 26px;
}

.fai-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.fai-feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy-400);
}

/* Stagger animations */
.fai-problems-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.fai-problems-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }

.fai-features-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.fai-features-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.fai-features-grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.fai-features-grid .animate-in:nth-child(5) { transition-delay: 0.32s; }
.fai-features-grid .animate-in:nth-child(6) { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
   HOW IT WORKS / STEPS
   ---------------------------------------------------------------- */
.fai-steps {
  max-width: 720px;
  margin: 0 auto;
}

.fai-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.fai-step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  background: var(--teal-600);
  border-radius: 50%;
}

.fai-step-content {
  padding-bottom: 8px;
}

.fai-step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.fai-step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy-500);
}

.fai-step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--teal-500), var(--teal-300));
  margin-left: 27px;
  border-radius: 2px;
}

.fai-steps .animate-in:nth-child(2) { transition-delay: 0.05s; }
.fai-steps .animate-in:nth-child(3) { transition-delay: 0.1s; }
.fai-steps .animate-in:nth-child(4) { transition-delay: 0.15s; }
.fai-steps .animate-in:nth-child(5) { transition-delay: 0.2s; }
.fai-steps .animate-in:nth-child(6) { transition-delay: 0.25s; }
.fai-steps .animate-in:nth-child(7) { transition-delay: 0.3s; }

/* ----------------------------------------------------------------
   COMPARISON TABLE
   ---------------------------------------------------------------- */
.fai-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fai-compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}

.fai-compare-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--navy-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.fai-compare-table th:first-child {
  text-align: left;
  min-width: 260px;
}

.fai-compare-table th.fai-table-highlight {
  color: var(--teal-400);
  background: rgba(13, 148, 136, 0.1);
}

.fai-compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--navy-400);
  vertical-align: middle;
}

.fai-compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--navy-300);
}

.fai-compare-table td.fai-table-highlight {
  background: rgba(13, 148, 136, 0.05);
}

.fai-compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fai-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.fai-check {
  width: 22px;
  height: 22px;
  color: var(--teal-400);
  display: inline-block;
  vertical-align: middle;
}

.fai-x {
  width: 22px;
  height: 22px;
  color: var(--navy-600);
  display: inline-block;
  vertical-align: middle;
}

.fai-partial {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-500);
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   ROI PREVIEW
   ---------------------------------------------------------------- */
.fai-roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fai-roi-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.fai-roi-card:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.fai-roi-card--primary {
  border-color: var(--teal-600);
  background: linear-gradient(160deg, var(--white), rgba(13, 148, 136, 0.04));
}

.fai-roi-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--teal-600);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.fai-roi-sublabel {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-500);
  margin-bottom: 4px;
}

.fai-roi-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 12px;
}

.fai-roi-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-500);
}

.fai-roi-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.fai-roi-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }

/* ----------------------------------------------------------------
   CONTACT / CTA SECTION
   ---------------------------------------------------------------- */
.fai-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.fai-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fai-contact-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.fai-contact-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(13, 148, 136, 0.3);
}

.fai-contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-sm);
  color: var(--teal-400);
  flex-shrink: 0;
}

.fai-contact-icon svg {
  width: 20px;
  height: 20px;
}

.fai-contact-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.fai-contact-detail {
  font-size: 14px;
  color: var(--navy-400);
  line-height: 1.5;
}

.fai-contact-detail a {
  color: var(--teal-400);
}

.fai-contact-detail a:hover {
  color: var(--teal-300);
}

.fai-contact-info .animate-in:nth-child(2) { transition-delay: 0.1s; }
.fai-contact-info .animate-in:nth-child(3) { transition-delay: 0.2s; }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fai-hero .hero-title {
    font-size: 42px;
  }

  .fai-hero .hero-title-accent {
    font-size: 26px;
  }

  .fai-problems-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fai-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fai-roi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fai-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fai-hero .hero-title {
    font-size: 32px;
  }

  .fai-hero .hero-title-accent {
    font-size: 20px;
  }

  .fai-problems-grid {
    grid-template-columns: 1fr;
  }

  .fai-features-grid {
    grid-template-columns: 1fr;
  }

  .fai-feature-card {
    padding: 24px;
  }

  .fai-step {
    gap: 20px;
  }

  .fai-step-number {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .fai-step-connector {
    margin-left: 21px;
    height: 24px;
  }

  .fai-roi-grid {
    grid-template-columns: 1fr;
  }

  .fai-roi-card {
    padding: 28px 20px;
  }

  .fai-roi-value {
    font-size: 36px;
  }

  .fai-compare-table th,
  .fai-compare-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .fai-hero .hero-title {
    font-size: 26px;
  }

  .fai-hero .hero-title-accent {
    font-size: 18px;
  }

  .fai-problem-card {
    padding: 24px;
  }
}

/* ----------------------------------------------------------------
   PRINT
   ---------------------------------------------------------------- */
@media print {
  .fai-compare-table {
    min-width: auto;
  }

  .fai-check {
    color: #000;
  }

  .fai-x {
    color: #999;
  }
}
