/* ============ PREMIUM page styles ============ */

.pricing-hero { padding: 80px 0 24px; text-align: center; }
.pricing-hero .eyebrow { justify-content: center; }
.pricing-hero .lede { margin-left: auto; margin-right: auto; }

.billing-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.billing-toggle button {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.billing-toggle button.active {
  background: var(--ink);
  color: #fff;
}
.save-chip {
  font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(31,111,74,0.15);
  color: var(--good);
}
.billing-toggle button.active .save-chip {
  background: rgba(255,255,255,0.15);
  color: #B8E6C7;
}

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

/* What you get grid */
.what-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.what-card {
  background: var(--card);
  padding: 32px;
  min-height: 200px;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(14,15,12,0.3);
  transform: translateY(-8px);
}
.plan-card.featured .muted { color: rgba(250,248,243,0.55); }
.plan-card.featured .hr { background: rgba(250,248,243,0.12); }
.plan-card.featured .feat-check { background: rgba(232,92,74,0.18); color: var(--accent); }
.plan-card.featured li.not-included { color: rgba(250,248,243,0.35); }
.plan-card.featured li.not-included .feat-check { background: rgba(250,248,243,0.08); color: rgba(250,248,243,0.4); }

.plan-badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.plan-head { margin-bottom: 24px; }
.plan-price { min-height: 90px; }
.plan-cta { width: 100%; }
.plan-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
  flex: 1;
}
.plan-features li {
  display: flex; align-items: center; gap: 12px;
}
.plan-features li.not-included { color: var(--muted-2); }
.feat-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--good-soft); color: var(--good);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
li.not-included .feat-check { background: var(--bg-2); color: var(--muted-2); }

/* compare table */
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.compare {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare th {
  font-weight: 600;
  font-size: 13px;
  padding-top: 24px; padding-bottom: 20px;
}
.compare thead th span { display: inline-block; }
.compare thead th .featured-th {
  color: var(--accent);
}
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 20%; }
.compare .row-label { color: var(--ink-2); }
.compare .section-row td {
  background: var(--bg-2);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 24px;
}
.compare .col-featured { background: rgba(232,92,74,0.04); font-weight: 500; }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ROI */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.roi-card {
  max-width: 520px;
  border: 1px solid var(--accent-soft) !important;
  border-top: 3px solid var(--accent) !important;
  box-shadow: 0 12px 32px -16px rgba(232,92,74,0.18), 0 2px 6px rgba(14,15,12,.04) !important;
  position: relative;
}
.roi-card::before {
  content: "";
  position: absolute; top: -1px; left: 24px; right: 24px;
  height: 3px; background: var(--accent);
  border-radius: 0 0 4px 4px;
  display: none; /* keep gradient subtle, just the top border for now */
}
.roi-input {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.roi-input span {
  font-size: 20px; color: var(--muted);
}
.roi-input input[type="range"] {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line); border-radius: 999px;
  outline: none;
}
.roi-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 6px rgba(232,92,74,0.35);
}
.roi-input input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 6px rgba(232,92,74,0.35);
}
.roi-result { display: flex; justify-content: space-between; align-items: flex-end; }
.roi-payback {
  margin-top: 24px; padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--accent-ink); font-size: 14px;
}
.roi-payback strong { color: var(--accent-ink); font-size: 17px; font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 500;
  font-family: var(--font-sans);
}
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); background: var(--ink); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  margin: 0 0 24px;
  max-width: 620px;
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .plans-grid, .plans-grid-2, .what-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .roi-grid { grid-template-columns: 1fr; gap: 40px; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 12px; }
}

/* ---------- Mobile <=640px ---------- */
@media (max-width: 640px) {
  .pricing-hero { padding: 56px 0 32px !important; }

  .plan-card { padding: 28px 22px !important; }
  .plan-price { padding: 20px 0 !important; }

  .roi-card { padding: 28px 22px !important; }
  .roi-result div[class="serif"] { font-size: 38px !important; }

  .faq-q { padding: 16px 0 !important; font-size: 15px !important; }
  .faq-a { padding-bottom: 16px !important; }

  .what-card { padding: 24px !important; }
}
