/* =============================================
   AIploy — Homepage Sections
   ============================================= */

/* ── Social Proof Stats ──────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 1.5rem 2rem;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}
.stat-item-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }

.stat-item:last-child {
  border-right: none;
}

.stat-item-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-item-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── How It Works Section (Homepage) ─────────────────────── */
.how-it-works-home {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.hiw-home-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hiw-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.hiw-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hiw-step:last-child {
  border-right: none;
}

.hiw-step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hiw-step-num::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.hiw-step:last-child .hiw-step-num::after {
  display: none;
}

.hiw-step-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hiw-step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.hiw-step-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.feature-card {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-3);
}

.feature-card:nth-child(3n) {
  border-right: none;
}

.feature-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.feature-icon {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}

.features-cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.feature-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.testimonial-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card:last-child {
  border-right: none;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg);
  flex: 1;
}

.testimonial-quote::before {
  content: '"';
  font-size: 1.5rem;
  color: var(--accent);
  font-family: var(--font-display);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Pricing Preview (Homepage) ───────────────────────────── */
.pricing-preview {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.pricing-preview-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.pricing-preview-card {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}

.pricing-preview-card:hover {
  background: var(--bg-3);
}

.pricing-preview-card:last-child {
  border-right: none;
}

.pricing-preview-card--featured {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  position: relative;
}

.prc-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
}

.prc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}

.prc-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.prc-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.prc-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
}

.prc-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-section-home {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.faq-home-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  transition: background 0.15s;
  gap: 1rem;
}

.faq-question:hover {
  background: var(--bg-2);
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item--open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
  line-height: 1.7;
}

.faq-item--open .faq-answer {
  display: block;
}

/* ── Footer CTA ───────────────────────────────────────────── */
.footer-cta-section {
  padding: 6rem 2rem 5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.footer-cta-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.footer-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.875rem 2.5rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.footer-cta-btn:hover {
  background: var(--accent-2);
}

/* ── Page Hero (How It Works, etc) ─────────────────────────── */
.page-hero {
  padding: 7rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.page-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.page-hero-sub {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Timeline Section ─────────────────────────────────────── */
.timeline-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.timeline-inner {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--border);
}

.timeline-step:last-child {
  border-bottom: none;
}

.timeline-step-num {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.timeline-num-badge {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-step-content {
  padding: 2rem 2rem 2rem 1.75rem;
}

.timeline-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.timeline-step-desc {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── Onboarding Info ──────────────────────────────────────── */
.onboarding-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.onboarding-inner {
  max-width: 900px;
  margin: 0 auto;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.onboarding-col {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
}

.onboarding-col:last-child {
  border-right: none;
}

.onboarding-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.onboarding-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.onboarding-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
  padding-left: 1.25rem;
  position: relative;
}

.onboarding-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.onboarding-check {
  color: var(--success) !important;
}

.onboarding-check::before {
  content: '✓' !important;
}

/* ── Setup Timeline ───────────────────────────────────────── */
.setup-timeline {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.setup-timeline-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.setup-timeline-badge {
  display: inline-block;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.setup-timeline-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.setup-timeline-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.setup-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.setup-step {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.setup-step:last-child {
  border-right: none;
}

.setup-step-time {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.setup-step-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.setup-step-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ── Signup Page ──────────────────────────────────────────── */
.signup-page {
  min-height: 100vh;
  padding: 8rem 2rem 5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.signup-page-inner {
  width: 100%;
  max-width: 480px;
}

.signup-page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

.signup-page-title span {
  color: var(--accent);
}

.signup-page-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.signup-form-page {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.signup-form-page label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signup-form-page input,
.signup-form-page select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}

.signup-form-page input:focus,
.signup-form-page select:focus {
  border-color: var(--accent);
}

.signup-form-page select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.signup-form-page input::placeholder {
  color: var(--fg-2);
  opacity: 0.5;
}

.signup-form-page .btn-submit {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.signup-form-page .btn-submit:hover {
  background: var(--accent-2);
}

.signup-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-2);
  margin: 0.5rem 0;
  position: relative;
}

.signup-divider::before,
.signup-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.signup-divider::before { left: 0; }
.signup-divider::after { right: 0; }

.signup-try-link {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-2);
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.signup-try-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.signup-terms {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  opacity: 0.6;
  text-align: center;
  line-height: 1.6;
  margin-top: 1rem;
}

.signup-terms a {
  color: var(--fg-2);
}

/* ── Demo Page Enhancement ────────────────────────────────── */
.demo-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.demo-intro-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.demo-intro-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── How It Works Image ───────────────────────────────────── */
.hiw-image-section {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hiw-image-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hiw-image-inner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hiw-steps-grid,
  .features-grid,
  .testimonials-grid,
  .pricing-preview-cards {
    grid-template-columns: 1fr;
  }

  .hiw-step,
  .feature-card,
  .testimonial-card,
  .pricing-preview-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hiw-step:last-child,
  .feature-card:last-child,
  .testimonial-card:last-child,
  .pricing-preview-card:last-child {
    border-bottom: none;
  }

  /* Mobile: hide 3rd column features bottom border logic */
  .feature-card:nth-child(3n) {
    border-right: none;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .onboarding-col:last-child {
    border-bottom: none;
  }

  .setup-steps-row {
    grid-template-columns: 1fr;
  }

  .setup-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .setup-step:last-child {
    border-bottom: none;
  }

  .stat-item {
    border-right: none;
    padding: 0.5rem 1rem;
  }

  .trusted-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .stats-bar-inner {
    gap: 1rem;
  }

  .stat-item-val {
    font-size: 1.4rem;
  }

  .page-hero {
    padding: 6rem 1rem 3rem;
  }

  .timeline-step {
    grid-template-columns: 60px 1fr;
  }

  .timeline-step-content {
    padding: 1.5rem 1rem 1.5rem 1rem;
  }

  .signup-page {
    padding: 6rem 1rem 4rem;
  }
}

/* ── Trusted By Strip ──────────────────────────────────────── */
.trusted-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 1.25rem 2rem;
}

.trusted-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trusted-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.trusted-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-2);
  opacity: 0.6;
  padding: 0 1.25rem;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.trusted-logo:hover { opacity: 1; }

.trusted-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Pricing Preview Enhancements ─────────────────────────── */
.prc-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fg-2);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.prc-badge--bundle {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 700;
}

.pricing-preview-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

/* ── Hero Trust Badges ─────────────────────────────────────── */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.04em;
}