/* AI Purchase Agreement Review Feature Page Stylesheet */
/* Emerald / Forest Slate Palette: #064e3b, #059669, #10b981, #0f172a, #34d399 */

.aipa-hero-section {
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
              linear-gradient(135deg, #022c22 0%, #064e3b 45%, #0f172a 100%);
  color: #ffffff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.aipa-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.aipa-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #a7f3d0;
  margin-bottom: 1.5rem;
}

.aipa-breadcrumb a {
  color: #6ee7b7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.aipa-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: none;
}

.aipa-breadcrumb .sep {
  color: #047857;
}

.aipa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.aipa-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.aipa-hero-title span {
  background: linear-gradient(135deg, #34d399 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aipa-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #d1fae5;
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto 2.25rem;
}

.aipa-hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.aipa-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.aipa-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.aipa-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.aipa-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Main Container */
.aipa-main-container {
  max-width: 1120px;
  margin: -2.5rem auto 4rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

/* Cards & Sections */
.aipa-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.aipa-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.aipa-section-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.aipa-badge-emerald {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.aipa-badge-teal {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* 4-Pillars Grid */
.aipa-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.aipa-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aipa-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
  border-color: #a7f3d0;
}

.aipa-pillar-icon {
  width: 44px;
  height: 44px;
  background: #ecfdf5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.aipa-pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.aipa-pillar-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Workflow Compare */
.aipa-workflow-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.aipa-workflow-card {
  border-radius: 12px;
  padding: 1.75rem;
}

.aipa-workflow-card.old-way {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.aipa-workflow-card.old-way h4 {
  color: #9f1239;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.aipa-workflow-card.new-way {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.aipa-workflow-card.new-way h4 {
  color: #065f46;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Visual Redline Example Box */
.aipa-example-box {
  background: #0f172a;
  border-radius: 12px;
  padding: 1.75rem;
  color: #e2e8f0;
  margin-top: 1.5rem;
  border: 1px solid #334155;
}

.aipa-example-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 8px;
}

.aipa-tag-warning {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.aipa-clause-block {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.aipa-clause-block.original {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
}

.aipa-clause-block.suggested {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10b981;
  color: #6ee7b7;
  margin-bottom: 0;
}

/* 4-Step Timeline */
.aipa-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.aipa-step-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.aipa-step-num {
  width: 32px;
  height: 32px;
  background: #059669;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.aipa-step-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.aipa-step-box p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* 9-Grid Checklist */
.aipa-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.aipa-check-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
}

.aipa-check-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.aipa-check-item p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Pricing Grid */
.aipa-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.aipa-pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aipa-pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.aipa-pricing-card.highlight {
  border: 2px solid #059669;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  position: relative;
}

.aipa-pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.aipa-pricing-card .price {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 1rem;
}

.aipa-pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.8;
}

.aipa-pricing-card ul li::before {
  content: "✓ ";
  color: #059669;
  font-weight: 800;
}

/* API Banner */
.aipa-api-box {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.aipa-api-box h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #a7f3d0;
}

.aipa-api-box p {
  font-size: 0.95rem;
  color: #d1fae5;
  margin: 0;
  max-width: 650px;
  line-height: 1.6;
}

/* FAQ Accordion */
.aipa-faq-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.aipa-faq-header {
  padding: 1.2rem 1.5rem;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #0f172a;
  user-select: none;
  font-size: 1rem;
}

.aipa-faq-header:hover {
  background: #f1f5f9;
}

.aipa-faq-body {
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}

/* Cluster Grid */
.aipa-cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.aipa-cluster-link-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.aipa-cluster-link-card:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  transform: translateY(-2px);
}

/* Bottom CTA Box */
.aipa-cta-box {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  margin-top: 2.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.aipa-cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.aipa-cta-box p {
  font-size: 1.1rem;
  color: #a7f3d0;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Legal Disclaimer */
.aipa-disclaimer-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .aipa-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aipa-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .aipa-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .aipa-cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .aipa-workflow-compare {
    grid-template-columns: 1fr;
  }
  .aipa-check-grid {
    grid-template-columns: 1fr;
  }
  .aipa-pricing-grid {
    grid-template-columns: 1fr;
  }
  .aipa-timeline {
    grid-template-columns: 1fr;
  }
  .aipa-pillars-grid {
    grid-template-columns: 1fr;
  }
  .aipa-cluster-grid {
    grid-template-columns: 1fr;
  }
  .aipa-card {
    padding: 1.75rem 1.25rem;
  }
}
