/* ── PRICING PAGE ───────────────────────────────────────── */

/* ── HERO ─────────────────────────────────── */
.pricing-hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-light);
  border: 1px solid rgba(232,136,10,0.3);
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 5px 14px;
  border-radius: 100px;
}

.ph-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.ph-title em { font-style: italic; color: var(--amber); }

.ph-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 520px;
}

/* Billing toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.bt-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bt-label.active-billing { color: var(--ink); font-weight: 600; }

.bt-save {
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  font-family: var(--font-mono);
}

.toggle-label { display:flex; align-items:center; gap:10px; cursor:pointer; }
.toggle-input { display:none; }
.toggle-track { width:44px; height:24px; background:var(--border); border-radius:100px; position:relative; transition:background 0.2s; flex-shrink:0; }
.toggle-track::after { content:''; position:absolute; width:18px; height:18px; background:white; border-radius:50%; top:3px; left:3px; transition:transform 0.2s; box-shadow:var(--shadow-sm); }
.toggle-input:checked + .toggle-track { background:var(--amber); }
.toggle-input:checked + .toggle-track::after { transform:translateX(20px); }

/* ── PLANS GRID ───────────────────────────── */
.pricing-plans { padding: 0 24px 80px; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.plan-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(232,136,10,0.10), var(--shadow-lg);
  transform: scale(1.03);
  z-index: 1;
}

.plan-card.featured:hover { transform: scale(1.03) translateY(-3px); }

.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-icon { font-size: 32px; }
.plan-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); }
.plan-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-top: -8px; }

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -2px;
}

.price-currency {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.price-period {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.price-yearly-note {
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-top: -12px;
  min-height: 18px;
}

.plan-features { display: flex; flex-direction: column; gap: 10px; }

.pf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-mid);
}

.pf-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pf-check.yes  { background: var(--green-light); color: var(--green); }
.pf-check.no   { background: var(--cream-dark); color: var(--ink-muted); }
.pf-check.star { background: var(--amber-light); color: var(--amber-dark); }

.pf-item.grayed { opacity: 0.45; }

.plan-btn { margin-top: auto; }

/* ── COMPARE TABLE ────────────────────────── */
.pricing-compare { padding: 0 24px 80px; }

.compare-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 32px;
}

.compare-table {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
}

.ct-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--cream);
  border-bottom: 2px solid var(--border);
}

.ct-col {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  text-align: center;
}

.ct-col:first-child { text-align: left; color: var(--ink-soft); font-family: var(--font-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.ct-col.featured-col { color: var(--amber); }

.ct-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--cream); }

.ct-row.ct-section {
  background: var(--cream-dark);
  grid-template-columns: 1fr;
}

.ct-section-label {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.ct-cell {
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
}

.ct-cell:not(:first-child) { justify-content: center; }
.ct-check-yes  { color: var(--green); font-size: 16px; }
.ct-check-no   { color: var(--ink-muted); font-size: 20px; line-height: 1; }
.ct-check-star { color: var(--amber); font-size: 14px; font-weight: 700; }
.ct-val        { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }

/* ── FAQ ──────────────────────────────────── */
.pricing-faq { padding: 0 24px 80px; }

.faq-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 32px;
}

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s;
  gap: 12px;
}

.faq-q:hover { background: var(--cream); }

.faq-chevron {
  font-size: 12px;
  color: var(--ink-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

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

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-item.open .faq-a { display: block; }

/* ── CTA ──────────────────────────────────── */
.pricing-cta { padding: 0 24px 100px; }

.pcta-inner {
  background: var(--ink);
  border-radius: 32px;
  padding: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.pcta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
}

.pcta-sub { font-size: 16px; color: rgba(255,255,255,0.55); }

.btn-white { background: white; color: var(--ink); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

/* ── UPGRADE MODAL ────────────────────────── */
.modal-overlay { position:fixed; inset:0; background:rgba(26,24,20,0.55); display:none; align-items:center; justify-content:center; z-index:200; backdrop-filter:blur(4px); padding:20px; }
.modal-overlay.open { display:flex; }
.modal { background:var(--white); border-radius:var(--radius-xl); width:100%; max-width:480px; box-shadow:var(--shadow-lg); animation:modalIn 0.25s ease; }
@keyframes modalIn { from{opacity:0;transform:scale(0.96) translateY(12px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal__header { display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid var(--border); }
.modal__header h3 { font-family:var(--font-display); font-size:18px; font-weight:700; }
.modal__close { background:none; border:none; font-size:16px; color:var(--ink-muted); cursor:pointer; padding:4px 8px; border-radius:var(--radius); transition:all 0.15s; }
.modal__close:hover { background:var(--cream-dark); color:var(--ink); }
.modal__body { padding:24px; display:flex; flex-direction:column; gap:16px; }
.modal__actions { display:flex; justify-content:flex-end; gap:10px; padding-top:4px; }

.upgrade-plan-preview {
  background: var(--amber-light);
  border: 1px solid rgba(232,136,10,0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upp-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.upp-price { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--amber); }

.upgrade-guarantee {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-muted);
  background: var(--cream); padding: 10px; border-radius: var(--radius);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 400px; }
  .plan-card.featured { transform: none; }
  .ct-header, .ct-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .pcta-inner { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .compare-table { overflow-x: auto; }
  .ct-header, .ct-row { min-width: 500px; }
}
