/* ===== Pricing Hero ===== */
.pricing-hero {
  padding: calc(var(--nav) + 60px) 0 40px;
  background: var(--bg);
  position: relative;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(34, 197, 94, .04), transparent 60%);
  pointer-events: none;
}

.pricing-hero-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pricing-title {
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.047em;
  margin-bottom: 16px;
  color: var(--text);
}

.pricing-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text3);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ===== GMV Selector ===== */
.gmv-selector-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.gmv-selector {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: all .2s cubic-bezier(.27, 0, .51, 1);
  min-width: 300px;
  justify-content: space-between;
}

.gmv-selector:hover {
  border-color: var(--text4);
}

.gmv-selector svg {
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(.27, 0, .51, 1);
}

.gmv-selector.open svg {
  transform: rotate(180deg);
}

.gmv-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateY(-4px) translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 10;
  display: block;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.27, 0, .51, 1), transform .2s cubic-bezier(.27, 0, .51, 1);
}

.gmv-dropdown.open {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
  pointer-events: auto;
}

.gmv-option {
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}

.gmv-option:hover {
  background: var(--bg);
}

.gmv-option.active {
  background: var(--bg);
  font-weight: 500;
}

.gmv-dropdown::-webkit-scrollbar {
  width: 4px;
}

.gmv-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ===== Billing Toggle - Segmented Control ===== */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.toggle-container {
  display: flex;
  align-items: center;
  position: relative;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  border: none;
}

.toggle-option {
  position: relative;
  z-index: 2;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text3);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color .2s cubic-bezier(.27, 0, .51, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0;
  user-select: none;
}

.toggle-option.active {
  color: var(--text);
  font-weight: 600;
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  transition: transform .3s cubic-bezier(.27, 0, .51, 1), width .3s cubic-bezier(.27, 0, .51, 1);
  z-index: 1;
  pointer-events: none;
}

.toggle-save-badge {
  font-size: 12px;
  font-weight: 500;
  color: #ca8a04;
  background: rgba(234, 179, 8, .08);
  border: 1px solid rgba(234, 179, 8, .15);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ===== Pricing Cards ===== */
.pricing-cards-section {
  padding: 0 0 80px;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s cubic-bezier(.27, 0, .51, 1), transform .3s cubic-bezier(.27, 0, .51, 1), border-color .3s cubic-bezier(.27, 0, .51, 1);
}

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

.pricing-card.popular {
  border-color: rgba(234, 179, 8, .4);
  border-width: 2px;
  box-shadow: 0 8px 40px rgba(234, 179, 8, .08);
}

.pricing-card.popular:hover {
  box-shadow: 0 12px 48px rgba(234, 179, 8, .12);
}

/* Fix #7: Popular Badge - Gold/Amber color */
.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(234, 179, 8, .08);
  color: #ca8a04;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(234, 179, 8, .2);
}

.card-header {
  padding: 32px 28px 24px;
}

.plan-name {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.plan-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text3);
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  display: flex;
  align-items: baseline;
}

.price-currency {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.price-value {
  font-family: var(--font);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.02em;
  transition: opacity .15s, transform .15s;
}

.price-value.changing {
  opacity: 0;
  transform: translateY(-4px);
}

.price-value.contact-sales {
  font-size: 36px;
}

.price-period {
  font-size: 15px;
  color: var(--text4);
  font-weight: 500;
}

.price-period-label {
  font-size: 14px;
  color: var(--text4);
  margin-bottom: 4px;
}

.price-subtext {
  font-size: 13px;
  color: var(--text4);
  margin-bottom: 0;
}

/* Fix #1: CTA at bottom of card */
.card-cta {
  padding: 0 28px 28px;
  margin-top: auto;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--dark);
  color: var(--white);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all .2s cubic-bezier(.27, 0, .51, 1);
}

.btn-plan:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.btn-arrow {
  font-size: 18px;
  margin-left: 4px;
  font-weight: 400;
}

.card-features {
  padding: 0 28px 24px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 24px;
  flex: 1;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding-top: 8px;
  letter-spacing: .01em;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text2);
}

.feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature-check svg {
  display: block;
}

/* ===== Comparison Table ===== */
.comparison-section {
  padding: 60px 0 80px;
  background: var(--bg);
}

.comparison-title {
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.047em;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

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

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
  padding: 18px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.comparison-table thead th.feature-col {
  text-align: left;
  width: 40%;
}

.comparison-table thead th.highlight-col {
  background: rgba(234, 179, 8, .03);
}

.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text2);
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

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

.comparison-table tbody td:nth-child(3) {
  background: rgba(234, 179, 8, .02);
}

.category-row td {
  background: var(--bg) !important;
  font-family: var(--font);
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text3) !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ===== Logo Strip - Fix #3: Real logos ===== */
.logo-strip-section {
  padding: 60px 0 40px;
  background: var(--bg);
  overflow: hidden;
}

.logo-strip-heading {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text4);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.logo-strip-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-strip-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  align-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-strip-inner {
    animation: logoScroll 30s linear infinite;
  }
}

.logo-strip-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  filter: grayscale(100%);
  opacity: .5;
  transition: opacity .3s cubic-bezier(.27, 0, .51, 1), filter .3s cubic-bezier(.27, 0, .51, 1);
}

.logo-strip-item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-strip-item img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Testimonial - Fix #4: Large centered quote ===== */
.testimonial-section {
  padding: 60px 0 60px;
  background: var(--bg);
}

.testimonial-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-quote {
  margin-bottom: 24px;
  opacity: .6;
}

.testimonial-text {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text3);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text4);
  text-align: left;
}

/* ===== Book a Demo ===== */
.demo-section {
  padding: 80px 0;
  background: var(--bg);
}

.demo-header {
  text-align: center;
  margin-bottom: 32px;
}

.demo-title {
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.047em;
  color: var(--text);
  margin-bottom: 12px;
}

.demo-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text3);
  max-width: 560px;
  margin: 0 auto;
}

.demo-calendly-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.demo-calendly-wrap .calendly-inline-widget {
  height: 900px;
}

/* ===== FAQ Section - Fix #6: Line separators ===== */
.faq-section {
  padding: 60px 0 80px;
  background: var(--bg);
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-title {
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.047em;
  margin-bottom: 8px;
}

.faq-subtitle {
  font-size: 15px;
  color: var(--text3);
  margin-bottom: 20px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  transition: none;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item:hover {
  box-shadow: none;
}

.faq-item.open {
  box-shadow: none;
  border-color: var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  line-height: 1.5;
  gap: 16px;
}

.faq-question:hover {
  color: var(--text2);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s cubic-bezier(.27, 0, .51, 1);
  color: var(--text3);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 0 20px;
}

.faq-answer-inner p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text3);
}

.faq-answer-inner a {
  color: var(--blue);
  text-decoration: underline;
}

/* ===== CTA Title Override ===== */
.aurora-cta-title {
  font-family: var(--font);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.047em;
}

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

  .pricing-grid .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .demo-calendly-wrap .calendly-inline-widget {
    height: 800px;
  }
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: calc(var(--nav) + 40px) 0 24px;
  }

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

  .pricing-grid .pricing-card:last-child {
    max-width: none;
  }

  .gmv-selector {
    min-width: 260px;
    font-size: 13px;
    padding: 10px 16px;
  }

  .gmv-dropdown {
    min-width: 260px;
  }

  .billing-toggle {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .toggle-option {
    padding: 8px 16px;
    font-size: 13px;
  }

  .toggle-save-badge {
    font-size: 10px;
    padding: 3px 10px;
  }

  .comparison-title,
  .faq-title {
    font-size: 24px;
  }

  .comparison-section {
    padding: 40px 0 60px;
  }

  .faq-section {
    padding: 40px 0 60px;
  }

  .faq-question {
    padding: 16px 0;
    font-size: 15px;
  }

  .faq-answer-inner {
    padding: 0 0 16px;
  }

  .testimonial-text {
    font-size: 17px;
  }

  .demo-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .pricing-title {
    font-size: 30px;
  }

  .price-value {
    font-size: 40px;
  }

  .card-header {
    padding: 24px 20px 20px;
  }

  .card-features {
    padding: 0 20px 24px;
    padding-top: 20px;
  }

  .card-cta {
    padding: 0 20px 24px;
  }

  .logo-strip-inner {
    gap: 32px;
  }

  .logo-strip-item {
    padding: 4px 8px;
  }

  .logo-strip-item img {
    height: 24px;
  }

  .demo-calendly-wrap .calendly-inline-widget {
    height: 750px;
  }
}

/* ===== Pricing Card Polish ===== */
@media (prefers-reduced-motion: no-preference) {
  .pricing-card {
    transition: all .35s cubic-bezier(.27, 0, .51, 1);
  }
  .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
  }

  /* Popular card glow */
  .pricing-card.popular {
    position: relative;
  }
  .pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(234,179,8,.2), rgba(234,179,8,.05), rgba(234,179,8,.2));
    z-index: -1;
    opacity: 0;
    transition: opacity .4s;
  }
  .pricing-card.popular:hover::before {
    opacity: 1;
  }

  /* CTA button shine effect */
  .card-cta a, .hp-price-cta {
    position: relative;
    overflow: hidden;
  }
  .card-cta a::after, .hp-price-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transform: skewX(-25deg);
    transition: left .6s;
  }
  .card-cta a:hover::after, .hp-price-cta:hover::after {
    left: 150%;
  }

  /* Toggle smooth transition */
  .toggle-slider {
    transition: transform .3s cubic-bezier(.27, 0, .51, 1), width .3s cubic-bezier(.27, 0, .51, 1);
  }

  /* Feature list check animation */
  .card-features li svg,
  .hp-price-features li svg {
    transition: transform .2s;
  }
  .card-features li:hover svg,
  .hp-price-features li:hover svg {
    transform: scale(1.2);
  }

  /* FAQ item smooth transition */
  .faq-item {
    transition: background .2s;
  }

  /* Comparison table row hover */
  .comparison-table tbody tr {
    transition: background .15s;
  }
  .comparison-table tbody tr:hover {
    background: rgba(0, 0, 0, .015);
  }
}