*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #FDF6EE;
  --sage:       #6FA878;
  --sage-dark:  #5A8F63;
  --apricot:    #F5A97A;
  --gold:       #C9A97A;
  --espresso:   #2C2018;
  --muted:      #5c4f45;
  --border:     #e8ddd4;
  --free-bg:    #f7f2ed;
  --free-border:#ddd3c8;
  --unavailable:#c0392b;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.6;
}

/* ── AGENCY BANNER ── */
.agency-banner {
  background: var(--espresso);
  color: var(--apricot);
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.agency-banner strong { color: white; }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
}
.logo img { display: block; width: 150px; height: auto; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  color: var(--espresso);
  margin-bottom: 18px;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
}
.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 13px;
  color: var(--muted);
}
.guarantee-icon { font-size: 18px; }
.guarantee-wrap { text-align: center; margin-top: 32px; }

/* ── PRICING TABLE ── */
.pricing-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Free card */
.card-free {
  background: var(--free-bg);
  border: 1.5px solid var(--free-border);
  border-radius: 16px;
  padding: 32px 20px;
  opacity: 0.9;
  min-width: 0;
}
.card-free .plan-price {
  font-size: 32px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 4px;
}
.card-free .plan-note {
  font-size: 13px;
  color: var(--muted);
}

/* Pro card */
.card-pro {
  background: white;
  border: 1.5px solid var(--sage);
  border-radius: 16px;
  padding: 32px 20px;
  position: relative;
  box-shadow: 0 8px 32px rgba(111,168,120,0.12);
  min-width: 0;
}
.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.card-pro .plan-price {
  font-size: 36px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 2px;
}
.card-pro .plan-price .price-original {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 8px;
}
.card-pro .plan-note {
  font-size: 13px;
  color: var(--muted);
}

.plan-header { min-height: 84px; margin-bottom: 24px; }
.plan-price, .feature-list { font-family: system-ui, -apple-system, sans-serif; }

/* Feature list */
.feature-list {
  list-style: none;
  margin-bottom: 28px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 15px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--espresso);
}
.feature-list li:last-child { border-bottom: none; }
.fi { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.fi-check { color: #5a8a5a; }
.fi-x     { color: var(--unavailable); }
.fi-label { flex: 1 1 auto; min-width: 0; }

/* CTA buttons */
.btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.btn-free {
  background: transparent;
  border: 1.5px solid var(--free-border);
  color: var(--muted);
}
.btn-free:hover { border-color: var(--muted); color: var(--espresso); }
.btn-pro {
  background: var(--sage);
  color: white;
  box-shadow: 0 4px 14px rgba(111,168,120,0.3);
}
.btn-pro:hover { background: var(--sage-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(111,168,120,0.35); }

.btn-sub {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

/* ── FAQ ── */
.faq-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.faq-title {
  text-align: center;
  font-size: 22px;
  color: var(--espresso);
  margin-bottom: 32px;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--espresso);
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.faq-icon { color: var(--sage); font-size: 20px; flex-shrink: 0; transition: transform 0.2s; }
.faq-a {
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 18px;
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── FOOTER CTA ── */
.footer-cta {
  background: var(--cream);
  text-align: center;
  padding: 48px 24px;
}
.footer-cta h2 { color: var(--espresso); font-size: 24px; margin-bottom: 12px; }
.footer-cta p { color: var(--muted); font-size: 15px; margin-bottom: 28px; font-style: italic; }
.btn-footer {
  display: inline-block;
  background: var(--sage);
  color: white;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: all 0.15s;
}
.btn-footer:hover { background: var(--sage-dark); transform: translateY(-1px); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,32,24,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 22px; color: var(--muted);
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--espresso); }
.modal-plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.modal-plan-badge.pro  { background: var(--sage); color: white; }
.modal-plan-badge.free { background: var(--free-border); color: var(--muted); }
.modal h2 { font-size: 22px; margin-bottom: 6px; color: var(--espresso); }
.modal-sub { font-size: 15px; color: var(--muted); font-style: italic; margin-bottom: 28px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: var(--espresso);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--sage); }
.form-group input.error { border-color: var(--unavailable); }

.agency-toggle {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.agency-toggle:hover { color: var(--sage); }
.agency-field { display: none; }
.agency-field.visible { display: block; }
.agency-code-info { font-size: 13px; margin-top: 5px; min-height: 16px; }
.agency-code-info.ok  { color: #5a8a5a; }
.agency-code-info.err { color: #c0392b; }

.modal-price-summary {
  background: #f5ede4;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--espresso);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-price-summary .price-val { font-size: 18px; font-weight: 600; color: var(--sage); }

.btn-modal {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: white;
  transition: all 0.15s;
  text-align: center;
}
.btn-modal:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn-modal.pro  { background: var(--sage); box-shadow: 0 4px 14px rgba(111,168,120,0.3); }
.btn-modal.pro:hover:not(:disabled)  { background: var(--sage-dark); }
.btn-modal.free { background: var(--espresso); }
.btn-modal.free:hover:not(:disabled) { background: #3d2d22; }
.btn-modal.stripe { background: #635BFF; margin-bottom: 10px; }
.btn-modal.stripe:hover:not(:disabled) { background: #4f47e0; }
.btn-modal.btc {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
  margin-bottom: 10px;
}
.btn-modal.btc:hover:not(:disabled) { background: var(--sage); color: white; }
.btn-modal.secondary {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  margin-top: 4px;
}
.btn-modal.secondary:hover:not(:disabled) { border-color: var(--muted); color: var(--espresso); }

.modal-pending-warning {
  background: #fff8f0;
  border: 1px solid #f5c6a0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7a4a1e;
  margin-bottom: 18px;
}
.modal-loading {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
  margin-top: 10px;
}
.modal-error {
  font-size: 13px;
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid #f5c6bb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.modal-success-icon { font-size: 40px; text-align: center; margin-bottom: 16px; }

.modal-gdpr {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.modal-gdpr a { color: var(--sage); }

@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .card-pro { order: -1; }
  .modal { padding: 32px 24px; }
}
