/* ============================================================
   ClinicFlow — Pricing Page Styles (Light Mode)
   ============================================================ */

/* ---- PRICING HERO ---- */
.pricing-hero {
  position: relative;
  padding: 130px 0 72px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}
.pricing-hero-title {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
}
.pricing-hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 300;
}

/* ---- PRICING SECTION ---- */
.pricing-section { padding: 48px 0 80px; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
}
.plan-featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}
.plan-pricing { margin-bottom: 16px; }
.plan-setup-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.plan-waive {
  color: var(--blue);
  font-style: italic;
}
.plan-amount-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-amount {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.plan-per {
  font-size: 15px;
  color: var(--text-muted);
}
.plan-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0 16px;
}
.plan-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
  margin-top: 16px;
}
.plan-section-label:first-of-type { margin-top: 0; }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.plan-features + .plan-section-label { margin-top: 20px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
}
.plan-features li span {
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
  font-weight: 600;
  width: 14px;
}
.plan-features li.included { color: var(--text-2); }
.plan-features li.included span { color: var(--blue); }
.plan-features li.included.green { color: var(--text-2); }
.plan-features li.included.green span { color: var(--green-dark); }
.plan-features li.excluded { color: var(--text-light); }
.plan-features li.excluded span { color: var(--border-dark); }
.plan-features em { font-style: italic; color: var(--blue); }
.plan-card .btn { margin-top: 24px; }
.pricing-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- ROI CALCULATOR ---- */
.roi-section { padding: 100px 0; background: var(--bg-alt); }
.roi-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.roi-inputs, .roi-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.roi-inputs h3, .roi-results h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}
.roi-field { margin-bottom: 22px; }
.roi-field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.roi-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.roi-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  min-width: 56px;
  text-align: right;
}
.roi-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--bg-alt);
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 2.5px solid var(--bg-card);
  box-shadow: 0 0 0 1.5px var(--blue);
  transition: transform var(--transition);
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-slider::-moz-range-thumb {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid var(--bg-card);
  cursor: pointer;
}
.roi-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.roi-range-labels span { font-size: 11px; color: var(--text-light); }

/* Plan picker */
.roi-plan-picker {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.roi-plan-picker label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.roi-plan-btns { display: flex; gap: 8px; }
.roi-plan-btn {
  flex: 1;
  padding: 9px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.roi-plan-btn:hover { border-color: var(--blue-mid); color: var(--blue); }
.roi-plan-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Results */
.roi-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.roi-line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.roi-item-icon { font-size: 18px; flex-shrink: 0; }
.roi-item-info { flex: 1; }
.roi-item-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.roi-item-sub { font-size: 11px; color: var(--text-light); margin-top: 1px; }
.roi-item-val {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--green-dark);
  white-space: nowrap;
}
.roi-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.roi-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.roi-gain { color: var(--green-dark); font-weight: 600; font-size: 15px; }
.roi-summary-row.muted { font-size: 12px; color: var(--text-light); }
.roi-summary-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.roi-summary-row.large {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.roi-summary-row.large span:last-child {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--blue);
}
.roi-multiple {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green-dark);
}
.roi-disclaimer {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ---- FAQ ---- */
.faq-section { padding: 100px 0; background: var(--bg-card); }
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s, color 0.2s;
  line-height: 1;
}
.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--blue);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a.open { max-height: 300px; }
.faq-a p {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .roi-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .roi-plan-btns { flex-direction: column; }
}

/* ── High-Ticket Copy Improvements ──────────────────────── */

/* Risk reversal bar */
.risk-reversal {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
  padding: 40px 0;
}
.rr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.rr-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rr-icon {
  font-size: 1.5rem;
}
.rr-title {
  font-weight: 600;
  font-size: 0.93rem;
  color: #0f172a;
}
.rr-item p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .rr-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Qualifier / "This is for you if" section */
.qualifier-section {
  padding: 48px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.qualifier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.qualifier-yes,
.qualifier-no {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.qualifier-header {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.93rem;
  color: white;
}
.qualifier-yes .qualifier-header {
  background: #0071bc;
}
.qualifier-no .qualifier-header {
  background: #c0392b;
}
.qualifier-yes ul,
.qualifier-no ul {
  padding: 16px 20px;
  list-style: none;
  background: white;
}
.qualifier-yes li,
.qualifier-no li {
  font-size: 0.88rem;
  color: #334155;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.5;
}
.qualifier-yes li:last-child,
.qualifier-no li:last-child {
  border-bottom: none;
}
.qualifier-yes li::before {
  content: "✓ ";
  color: #87c71f;
  font-weight: 700;
}
.qualifier-no li::before {
  content: "✕ ";
  color: #c0392b;
  font-weight: 700;
}
@media (max-width: 640px) {
  .qualifier-grid {
    grid-template-columns: 1fr;
  }
}

/* Plan card — no-price conversation prompt */
.plan-price-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7a8d;
  font-style: italic;
  padding: 10px 0 4px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 4px 0 8px;
  letter-spacing: 0.01em;
}
.plan-featured .plan-price-cta {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}
