/* ==================== PRICING PAGE STYLES ==================== */

/* Hero Section */
.pricing-hero {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(232, 68, 58, 0.05) 0%, rgba(26, 26, 26, 0.02) 100%);
}

.pricing-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.pricing-hero .subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 40px 20px;
  }

  .pricing-hero h1 {
    font-size: 32px;
  }

  .pricing-hero .subtitle {
    font-size: 16px;
  }
}

/* Toggle Section */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  padding: 0 20px;
}

.toggle-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background-color: #e8e8ea;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  padding: 0;
}

.toggle-switch.active {
  background-color: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s ease;
}

.toggle-switch.active::after {
  left: 31px;
}

.toggle-discount {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  min-width: 120px;
}

/* Pricing Cards Container */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .pricing-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .pricing-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Pricing Card */
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1);
  border-color: #d8d8da;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(232, 68, 58, 0.15);
}

.pricing-card.featured:hover {
  box-shadow: 0 16px 40px rgba(232, 68, 58, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-header {
  margin-bottom: 24px;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.card-price {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.card-price-free {
  font-size: 24px;
  color: var(--accent);
}

.card-currency {
  font-size: 20px;
  vertical-align: super;
}

.card-period {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  display: block;
}

.card-savings {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--accent);
  margin-top: 8px;
  font-weight: 500;
}

.card-savings.hidden {
  display: none;
}

/* Features List */
.card-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-icon.check::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

.feature-icon.cross::before {
  content: '—';
  color: var(--muted);
  font-weight: bold;
  font-size: 16px;
}

/* CTA Button */
.card-cta {
  font-family: 'Inter', sans-serif;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-cta-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.pricing-card:not(.featured) .card-cta {
  background-color: var(--border);
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-card:not(.featured) .card-cta:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pricing-card.featured .card-cta {
  background-color: var(--accent);
  color: white;
}

.pricing-card.featured .card-cta:hover {
  background-color: #d63a30;
  box-shadow: 0 4px 12px rgba(232, 68, 58, 0.3);
}

/* Invoice request modal */
.pricing-form-notice {
  max-width: 760px;
  margin: 24px auto 36px;
  padding: 16px 20px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
  background: #f0fdf4;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.pricing-form-notice.is-error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pricing-modal.is-open { display: flex; }
.pricing-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .68); backdrop-filter: blur(4px); }
.pricing-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.pricing-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.pricing-modal-kicker { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pricing-modal-head h2 { margin: 8px 48px 6px 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
.pricing-modal-head p { margin: 0; color: var(--muted); font-size: 16px; }
.pricing-request-form { display: grid; gap: 18px; margin-top: 26px; }
.pricing-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pricing-field { display: grid; gap: 7px; }
.pricing-field label { color: var(--primary); font-size: 14px; font-weight: 650; }
.pricing-field input,
.pricing-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cfd4dc;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  line-height: 1.45;
}
.pricing-field input:focus,
.pricing-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 68, 58, .12); }
.pricing-field textarea { resize: vertical; }
.pricing-consent { display: flex; align-items: flex-start; gap: 10px; color: #4b5563; font-size: 13px; line-height: 1.5; }
.pricing-consent input { flex: 0 0 auto; margin-top: 3px; }
.pricing-consent a { color: #c92724; font-weight: 600; }
.pricing-submit { min-height: 52px; padding: 0 24px; border: 0; border-radius: 10px; color: #fff; background: var(--accent); font-size: 16px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.pricing-submit:hover { background: #c92724; transform: translateY(-1px); }
.pricing-form-hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.pricing-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.pricing-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .pricing-modal { align-items: flex-end; padding: 0; }
  .pricing-modal-dialog { width: 100%; max-height: 92dvh; padding: 26px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .pricing-modal-head h2 { font-size: 28px; }
  .pricing-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .pricing-field input,
  .pricing-field textarea { font-size: 16px; }
  .pricing-form-notice { margin: 18px 16px 28px; }
}

/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  background-color: #f9f9fa;
}

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

.faq-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #d8d8da;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}

.faq-question {
  font-family: 'Inter', sans-serif;
  width: 100%;
  padding: 20px;
  background-color: white;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9fa;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.faq-answer.active {
  padding: 0 20px 20px 20px;
  max-height: 500px;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 40px 20px;
  }

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

/* CTA Block */
.cta-block {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(232, 68, 58, 0.08) 0%, rgba(26, 26, 26, 0.03) 100%);
}

.cta-block h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.cta-block p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  font-family: 'Inter', sans-serif;
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #d63a30;
  box-shadow: 0 6px 16px rgba(232, 68, 58, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-block {
    padding: 40px 20px;
  }

  .cta-block h2 {
    font-size: 24px;
  }

  .cta-block p {
    font-size: 14px;
  }
}

/* Utility: Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Pricing toggle hidden state for yearly */
.price-monthly {
  display: inline;
}

.price-yearly {
  display: none;
}

.toggle-switch.active ~ .pricing-container .price-monthly {
  display: none;
}

.toggle-switch.active ~ .pricing-container .price-yearly {
  display: inline;
}

/* Responsive refinements */
@media (max-width: 480px) {
  .pricing-hero h1 {
    font-size: 24px;
  }

  .pricing-toggle {
    flex-direction: column;
    gap: 12px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-price {
    font-size: 28px;
  }

  .faq-title {
    font-size: 20px;
  }

  .cta-block h2 {
    font-size: 20px;
  }
}
