/* ===== Tekvora — Shared Product/Service Page Styles ===== */
/* Reusable blocks on top of /style.css shared by product pages (Connect, Business Ecosystem)
   and service pages (IT/automation, Marketing): page hero, feature cards, tabs, FAQ
   accordion, integration chips, lead-form modals. Page-specific CSS files hold only
   what's unique to that page. */

.hidden { display: none !important; }
.w-full { width: 100%; }

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

/* --- Section Heading & Subtitle Styles matching Main Page --- */
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.15;
}

.section .text-center.mb-8 p.text-secondary {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  line-height: 1.6;
}

/* --- Card & Pricing Harmonization --- */
.card {
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #131319;
  transform: translateY(-2px);
}

.pricing-card {
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 32px);
  transition: all var(--transition-base);
}

.pricing-card.popular {
  border-color: #ffffff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* --- Page hero (product/service landing header) --- */
.page-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-4));
  padding-bottom: var(--space-12);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.page-hero .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero .hero-description {
  max-width: 640px;
  margin: var(--space-4) auto 0;
  text-align: center;
}

.page-hero .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  width: 100%;
}

/* --- Feature / step icon tile --- */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.check-list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* --- Integration / logo chips --- */
.integration-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.integration-chip:hover {
  border-color: var(--border-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* --- Process steps (numbered) --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.process-step {
  position: relative;
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
}

.process-step h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.process-step p {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-xs);
  margin-bottom: var(--space-3);
}

/* --- Tabs --- */
.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: var(--space-2);
}

.tab-trigger {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-trigger:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.tab-trigger.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.tab-panel {
  padding-top: var(--space-8);
}

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.tab-panel-grid > * {
  min-width: 0;
}

.tab-panel-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mock-dot {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
}

.mock-bar {
  flex: 1 1 auto;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
}

.mock-bar.w-40 { max-width: 40%; }
.mock-bar.w-45 { max-width: 45%; }
.mock-bar.w-50 { max-width: 50%; }
.mock-bar.w-55 { max-width: 55%; }
.mock-bar.w-60 { max-width: 60%; }
.mock-bar.w-65 { max-width: 65%; }
.mock-bar.w-70 { max-width: 70%; }
.mock-bar.w-75 { max-width: 75%; }
.mock-bar.w-80 { max-width: 80%; }
.mock-bar.w-85 { max-width: 85%; }
.mock-bar.w-90 { max-width: 90%; }

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-secondary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-question[aria-expanded="true"] .faq-icon::before {
  background: var(--accent);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- Lead form (modal) --- */
.lead-form .form-status {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
}

.lead-form .form-status.success {
  color: var(--success);
  background: var(--success-subtle);
}

.lead-form .form-status.error {
  color: var(--danger);
  background: var(--danger-subtle);
}

/* --- Navbar CTA: full label on desktop, short label on mobile --- */
.btn-label-short {
  display: none;
}

/* --- Responsive (mobile-first overrides for larger screens) --- */
@media (min-width: 768px) {
  .tab-panel-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 770px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .process-step {
    padding: var(--space-4);
  }
}

@media (max-width: 640px) {
  .page-hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-4));
    padding-bottom: var(--space-6);
  }

  .page-hero .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .page-hero .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  #navbar-auth .btn-secondary {
    display: none;
  }

  #navbar-auth .btn-primary {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }

  .btn-label-full {
    display: none;
  }

  .btn-label-short {
    display: inline;
  }

  .tabs-list {
    gap: var(--space-1);
  }

  .tab-trigger {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  .faq-question {
    padding: var(--space-4);
    font-size: var(--text-sm);
  }

  .faq-answer {
    padding: 0 var(--space-4) var(--space-4);
  }
}

@media (max-width: 380px) {
  #navbar-auth {
    gap: 6px;
  }

  #navbar-auth .btn {
    padding: 4px 8px;
    font-size: 0.725rem;
    line-height: 1.25;
    border-radius: var(--radius-sm);
  }

  .card:has(.feature-icon),
  .channels-grid .card,
  .features-grid .card,
  .ecosystem-product-card,
  .service-card {
    text-align: center;
  }

  .feature-icon {
    display: flex;
    margin: 0 auto var(--space-4);
  }

  .ecosystem-product-card .badge {
    align-self: center;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .process-step {
    padding: var(--space-3);
    text-align: center;
  }

  .process-step h4 {
    font-size: var(--text-sm);
  }

  .process-step p {
    font-size: 0.75rem;
  }

  .process-step-number {
    margin: 0 auto var(--space-2);
  }
}

