/* ============================================================
   Stur Africa — Pricing page styles
   Extends colors_and_type.css + site.css
   ============================================================ */

body { background: var(--paper); }

/* ---- Pricing hero ---- */
.pricing-hero {
  text-align: center;
  padding: 190px 24px 0;
}
.pricing-hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: var(--tr-display);
  color: var(--ink);
  margin: 0 0 17px;
}
.pricing-hero-title .grad {
  background-image: var(--grad-text-d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pricing-hero-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  line-height: 24px;
  letter-spacing: var(--tr-body);
  color: var(--ink);
  margin: 0;
}

/* Override .pricing top padding — hero handles the top space */
.pricing { padding-top: 40px; padding-bottom: 20px; }

/* ---- Enterprise banner overrides ---- */
.enterprise-banner .eb-ai-group {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.enterprise-banner .eb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  line-height: 24px;
  letter-spacing: var(--tr-body);
  color: var(--grey-900);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- Compare sticky header ---- */
#compare-section {
  background: var(--paper);
  padding-bottom: 80px;
}
#compare-top-sentinel { height: 0; overflow: hidden; }

#compare-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--paper);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 20px 0;
  box-sizing: border-box;
}
#compare-header.is-animating {
  animation: ch-enter 0.3s ease both;
}
@keyframes ch-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.compare-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compare-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 29px;
  letter-spacing: var(--tr-h2);
  color: var(--ink);
}
.compare-cols {
  display: flex;
  align-items: center;
  gap: 2px;
}
.compare-col {
  width: 220px;
  display: flex;
  justify-content: center;
}

/* Compare CTA buttons */
.ch-btn {
  height: 50px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  line-height: 24px;
  letter-spacing: var(--tr-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  box-sizing: border-box;
}
.ch-btn.secondary {
  background: var(--paper);
  color: var(--grey-900);
  border: 1px solid var(--border-strong);
}
.ch-btn.primary {
  background: var(--ink);
  color: var(--paper);
  width: 135px;
  box-shadow: var(--shadow-btn);
}
.ch-btn.neutral {
  background: var(--grey-100);
  color: var(--grey-900);
  width: 135px;
}

/* Navbar fades when compare sticky header is active */
.navbar,
.mobile-nav {
  transition: opacity 0.3s ease;
}
.nav-compare-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Comparison table ---- */
#compare-table {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.ct-group { display: flex; flex-direction: column; gap: 1px; }
.ct-group + .ct-group { margin-top: 1px; }
.ct-row {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 50px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.ct-row.is-visible {
  opacity: 1;
  transform: none;
}
.ct-label {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  line-height: 24px;
  letter-spacing: var(--tr-body);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-cell {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  line-height: 24px;
  letter-spacing: var(--tr-body);
  color: var(--ink);
  text-align: center;
}
.ct-yes,
.ct-no {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.ct-yes {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10.5l4 4 8-8' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ct-no {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 6 L14 14 M14 6 L6 14' stroke='%23DF1B41' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Scroll wrapper — transparent on desktop, scrollable on mobile */
#compare-scroll-wrap { display: block; }
#ct-mobile { display: none; }

/* ---- Tablet ---- */
@media (max-width: 900px) {
  .pricing-hero { padding-top: 130px; }
  .pricing-hero-title { font-size: 68px; line-height: 1; letter-spacing: -3px; }
  #compare-header { display: none; }
  #compare-section { display: none; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .pricing-hero {
    padding: 150px 20px 0;
  }
  .pricing-hero-title {
    font-size: 61px;
    line-height: 53px;
    letter-spacing: -3.44px;
    margin-bottom: 11px;
  }
  .pricing-hero-title br { display: none; }
  .pricing-hero-sub {
    font-size: var(--fs-body);
    line-height: 21px;
    max-width: 258px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing {
    padding: 25px 16px 0;
  }
  /* Billing toggle */
  .billing-toggle {
    width: auto;
    max-width: none;
    height: 45px;
    display: inline-flex;
    margin-bottom: 25px;
  }
  .billing-toggle > button {
    height: 100%;
    flex: none;
    padding: 0 16px;
    font-size: var(--fs-body);
    white-space: nowrap;
  }
  /* Plan cards */
  .plans { margin: 0 auto; gap: 20px; }
  .plan { padding: 20px; border-radius: 20px; gap: 20px; }
  .plan-header { gap: 16px; }
  .plan .title-block { gap: 1px; }
  .plan .name { font-size: 17px; line-height: 23px; letter-spacing: -0.2px; }
  .plan .sub { font-size: var(--fs-xs); line-height: 17px; }
  .plan .price-block { gap: 8px; }
  .plan .price { font-size: 30px; line-height: 34px; letter-spacing: -0.6px; }
  .plan .price .per { font-size: var(--fs-xs); line-height: 15px; letter-spacing: 0.13px; }
  .plan .billed { font-size: var(--fs-xs); line-height: 17px; }
  .plan .btn { height: 42px; padding: 0 13px; font-size: var(--fs-sm); line-height: 17px; display: flex; align-items: center; justify-content: center; }
  .plan .feats { gap: 2px; }
  .plan .feat { min-height: 30px; font-size: var(--fs-sm); line-height: 20px; }
  /* Enterprise banner */
  .enterprise { padding: 25px 16px; }
  .enterprise-banner {
    padding: 20px;
    border-radius: 20px;
    gap: 35px;
    background: linear-gradient(73.21deg, rgb(221,42,123) 3.24%, rgb(49,22,100) 112.19%);
  }
  .enterprise-banner .eb-inner { height: auto; gap: 15px; justify-content: flex-start; }
  .enterprise-banner .eb-title-group { gap: 2px; }
  .enterprise-banner .eb-plan { font-size: 20px; line-height: 28px; letter-spacing: 0; }
  .enterprise-banner .eb-desc { color: rgba(255,255,255,0.6); }
  .enterprise-banner .eb-body { max-width: 100%; font-size: var(--fs-body); line-height: 20px; letter-spacing: 0; }
  .enterprise-banner .eb-bottom { flex-direction: column; align-items: stretch; gap: 13px; }
  .enterprise-banner .eb-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    border: none;
  }
  .enterprise-banner .eb-badge { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 0; }
  .enterprise-banner .eb-badge .pb { color: rgba(255,255,255,0.5); font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.2px; }
  .enterprise-banner .eb-ai-group { gap: 7px; }
  .enterprise-banner .eb-badge .ai { font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.2px; }

  /* Compare section — mobile scrollable table */
  #compare-section { display: block; padding: 0 0 60px; }
  #compare-header {
    display: block;
    top: 0;
    padding: 0;
    border-top: none;
    border-bottom: none;
    z-index: var(--z-nav);
  }
  .compare-header-inner {
    max-width: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .compare-title {
    height: 48px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 35px;
    font-size: var(--fs-body-lg);
    line-height: 24px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .compare-cols {
    width: 100%;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--divider);
    box-sizing: border-box;
  }
  .compare-col {
    flex: 1;
    width: auto;
    padding: 10px 15px 15px;
    box-sizing: border-box;
  }
  .ch-btn {
    height: 35px;
    padding: 8px 12px;
    font-size: var(--fs-body);
    line-height: 21px;
    letter-spacing: var(--tr-body);
    width: 100%;
  }
  .ch-btn.primary,
  .ch-btn.neutral { width: 100%; }

  /* Mobile compare table */
  #compare-scroll-wrap { display: none; }
  #ct-mobile {
    display: block;
    margin: 0 20px;
    border-left: 1px solid var(--divider);
    border-right: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
  }
  .ctm-item { display: block; }
  .ctm-feature {
    height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 20px;
    letter-spacing: 0;
    color: var(--ink);
    box-sizing: border-box;
  }
  .ctm-values {
    display: flex;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
  }
  .ctm-val {
    flex: 1;
    height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 20px;
    letter-spacing: 0;
    color: var(--ink);
    border-right: 1px solid var(--divider);
    box-sizing: border-box;
  }
  .ctm-val:last-child { border-right: none; }

  /* Desktop compare table tweaks for mobile scroll */
  #compare-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #compare-scroll-wrap::-webkit-scrollbar { display: none; }
  #compare-table {
    max-width: none;
    margin: 0;
    min-width: 537px;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .ct-row { height: auto; min-height: 46px; padding: 5px 0; box-sizing: border-box; }
  .ct-label {
    position: sticky;
    left: 20px;
    z-index: var(--z-compare);
    background: var(--paper);
    flex: none;
    width: 155px;
    min-width: 155px;
    font-size: var(--fs-sm);
    line-height: 18px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding-right: 8px;
    box-sizing: border-box;
  }
  .ct-cell { width: 112px; min-width: 112px; flex-shrink: 0; font-size: var(--fs-xs); }
}
