.pricing-hero {
  position: relative;
  background: linear-gradient(180deg, #F8F7FF 0%, #fff 100%);
  padding: 158px 0 60px;
  overflow: hidden;
  text-align: center;
}
.pricing-hero .pricing-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-hero h1 {
  margin: 16px 0 18px;
}
.pricing-hero .sub {
  margin: 0 auto;
}

.pricing-hero .pricing-hero-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(7, 16, 31, 0.055) 0, rgba(7, 16, 31, 0.055) 1px, transparent 1px, transparent 38px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 15%, black 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 15%, black 28%, transparent 78%);
}

.pricing-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5B6472;
}
.pricing-trust .pricing-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pricing-trust .pricing-trust-item svg {
  color: #0F8A5F;
  flex-shrink: 0;
}

.billing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-top: 32px;
}

.toggle-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5B6472;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.toggle-btn.active {
  background: #07101F;
  color: #fff;
}

.save-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #059669;
  background: rgba(15, 138, 95, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.toggle-btn.active .save-badge {
  color: #34D399;
  background: rgba(52, 211, 153, 0.16);
}

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

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 12px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 1px 2px rgba(7, 16, 31, 0.03);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(7, 16, 31, 0.05), 0 16px 36px rgba(7, 16, 31, 0.06);
}
.price-card--popular {
  border: 1.5px solid #7C5CFC;
  box-shadow: 0 0 0 1px rgba(124, 92, 252, 0.14), 0 12px 40px rgba(124, 92, 252, 0.14);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #7C5CFC;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.35);
}

.price-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #07101F;
  letter-spacing: -0.01em;
}

.price-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #5B6472;
  line-height: 1.5;
}

.price-amount-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.price-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #07101F;
  transition: all 0.2s;
  font-variant-numeric: tabular-nums;
}

.price-period {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: #5B6472;
}

.price-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #059669;
  min-height: 1.2em;
}

.price-divider {
  height: 1px;
  background: rgba(7, 16, 31, 0.09);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #07101F;
  line-height: 1.5;
}
.price-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #0F8A5F;
}
.price-feature--muted {
  color: #97A1AC;
}
.price-feature--muted svg {
  color: #CBD5E1;
}

.price-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, border-color 0.15s, color 0.15s;
}
.price-cta--outline {
  color: #07101F;
  border: 1.5px solid rgba(7, 16, 31, 0.09);
  background: transparent;
}
.price-cta--outline:hover {
  border-color: #7C5CFC;
  color: #6D4FE0;
  background: rgba(124, 92, 252, 0.04);
}
.price-cta--fill {
  color: #fff;
  background: #07101F;
  box-shadow: 0 1px 2px rgba(7, 16, 31, 0.06);
}
.price-cta--fill:hover {
  background: #14233C;
  transform: translateY(-1px);
}

.pricing-footnote {
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #97A1AC;
  margin-top: 28px;
}

.compare-table {
  margin-top: 8px;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.compare-head-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: #F8F7FF;
  border-bottom: 1px solid rgba(7, 16, 31, 0.09);
}

.compare-head-cell {
  padding: 16px 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #07101F;
  text-align: center;
}
.compare-head-cell:first-child {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: #5B6472;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.compare-head-cell--popular {
  color: #6D4FE0;
}

.compare-section-row {
  background: rgba(124, 92, 252, 0.04);
  padding: 10px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6D4FE0;
  border-bottom: 1px solid rgba(7, 16, 31, 0.09);
  border-top: 1px solid rgba(7, 16, 31, 0.09);
}

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(7, 16, 31, 0.06);
  transition: background 0.15s;
}
.compare-row:last-child {
  border-bottom: none;
}
.compare-row:hover {
  background: rgba(124, 92, 252, 0.02);
}

.compare-feat {
  padding: 14px 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #07101F;
}

.compare-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.compare-mark svg {
  color: #0F8A5F;
}
.compare-mark--no svg {
  color: #CBD5E1;
}

.compare-value {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5B6472;
  text-align: center;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 31, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.checkout-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(7, 16, 31, 0.25);
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s ease;
}
.checkout-overlay.open .checkout-modal {
  transform: none;
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F8F7FF;
  border: 1px solid rgba(7, 16, 31, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B6472;
  cursor: pointer;
  transition: background 0.15s;
}
.checkout-close:hover {
  background: #F1EEFC;
}

.checkout-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6D4FE0;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.checkout-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #07101F;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.checkout-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #5B6472;
  margin-bottom: 24px;
}

.checkout-field {
  margin-bottom: 16px;
}

.checkout-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #07101F;
  margin-bottom: 6px;
}

.checkout-input {
  width: 100%;
  padding: 11px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: #07101F;
  background: #fff;
  border: 1.5px solid rgba(7, 16, 31, 0.09);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.checkout-input:focus {
  border-color: #7C5CFC;
}

.checkout-submit {
  width: 100%;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: #07101F;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.checkout-submit:hover {
  background: #14233C;
  transform: translateY(-1px);
}

.checkout-terms {
  margin-top: 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #97A1AC;
  text-align: center;
  line-height: 1.5;
}
.checkout-terms a {
  color: #6D4FE0;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .compare-head-row, .compare-row {
    grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr;
  }
  .compare-feat, .compare-head-cell {
    font-size: 0.8rem;
  }
}
@media (max-width: 600px) {
  .pricing-hero {
    padding: 118px 0 44px;
  }
  .price-card {
    padding: 28px 22px 24px;
  }
  .pricing-trust {
    gap: 16px 22px;
  }
}
