/* Remindoo Pricing Calculator — Frontend Styles */

.rpc-page-header,
#rpc-title,
#rpc-subtitle,
.calc-card,
.pkg-selector-wrap,
.card-body,
.slider-section,
.price-section,
.cta-section,
.features-section,
.modal-overlay,
.modal,
.modal-header,
.modal-body,
.compare-table {
  box-sizing: border-box;
}

:root {
  --primary: #0001ff;
  --primary-hover: #0000cc;
  --primary-tint: #eaeaff;
  --primary-tint-2: #f4f4ff;
  --accent: #44d452;
  --foreground: #111827;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --bg: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --success: #16a34a;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── PAGE HEADER ─────────────────────────────────── */
.rpc-page-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  font-family: var(--font);
}
#rpc-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #111827;
}
#rpc-subtitle {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── THEME RESET ─────────────────────────────────── */
/*
 * Astra (and most WP themes) target generic element/attribute selectors
 * like input[type="range"] (specificity 0,1,1).  We beat them by scoping
 * under .calc-card (adds 0,1,0) so our compound selectors win without
 * needing to scatter !important everywhere.
 * For the few cases where themes also use a class or ID wrapper we add
 * !important only on the properties that would break the visual.
 */

/* Broad isolation — prevent theme/plugin styles leaking into the widget */
.calc-card *,
.modal-overlay * {
  box-sizing: border-box !important;
}
.calc-card div,
.calc-card span,
.calc-card p,
.modal-overlay div,
.modal-overlay span,
.modal-overlay p {
  float: none !important;
  clear: none !important;
}

/* Base font / text reset for all interactive elements in the card */
.calc-card button,
.calc-card input,
.calc-card select,
.calc-card textarea,
.modal-overlay button {
  font-family: var(--font) !important;
  text-shadow: none !important;
  letter-spacing: normal;
}

/* ── SLIDER (range input) ──────────────────────────
   Astra: input[type="range"] { border:1px solid var(--ast-border-color);
                                 box-shadow: var(--ast-shadow-style-guide); }
   Our selector .calc-card input[type="range"] has specificity 0,2,1 vs
   Astra's 0,1,1 — we win, plus !important as a belt-and-suspenders.       */
.calc-card input[type="range"],
.calc-card input[type="range"]:focus,
.calc-card input[type="range"]:hover,
.calc-card input[type="range"]:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 6px !important;
  border-radius: 99px !important;
  cursor: pointer !important;
}

/* Chrome/Safari internal track pseudo-element */
.calc-card input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: 6px;
  border-radius: 99px;
}

/* Chrome/Safari internal container */
.calc-card input[type="range"]::-webkit-slider-container {
  -webkit-appearance: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Firefox track */
.calc-card input[type="range"]::-moz-range-track {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: 6px;
  border-radius: 99px;
}

/* ── DIV-BASED INTERACTIVE ELEMENTS ─────────────────── */
/* Replace button tags to avoid theme CSS overrides — use div + role=button */
.calc-card .expand-all-btn,
.calc-card .compare-link,
.calc-card .pkg-card,
.calc-card .cta-btn,
.calc-card .category-header,
.calc-card .vat-switch,
.modal-overlay .modal-close {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  user-select: none;
}

/* Expand-all: no background, border, or theme gradient */
.calc-card .expand-all-btn {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
}

/* Modal close: theme padding/line-height breaks grid centering */
.modal-overlay .modal-close {
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
}

/* ── MAIN CARD ───────────────────────────────────── */
.calc-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 75%;
  margin: 0 auto;
  overflow: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--foreground);
  line-height: 1.6;
}

/* ── PACKAGE SELECTOR ────────────────────────────── */
.pkg-selector-wrap {
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  padding: 20px 20px 22px;
}
.pkg-selector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pkg-selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}
.pkg-cards-scroll {
  display: flex !important;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.pkg-cards-scroll::-webkit-scrollbar { display: none; }
.pkg-card {
  display: flex !important;
  flex-direction: column !important;
  /* Grow equally when few packages; stay at min-width and scroll when many */
  flex: 1 1 140px;
  min-width: 140px;
  scroll-snap-align: start;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  outline: none;
  margin-top: 4px;
}
.pkg-card:hover {
  border-color: var(--primary);
  background: var(--primary-tint-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,1,255,0.1);
}
.pkg-card.active {
  border-color: var(--primary);
  background: var(--primary-tint-2);
  box-shadow: 0 0 0 3px rgba(0,1,255,0.1), 0 4px 16px rgba(0,1,255,0.12);
}
/* Top row: name left, badge right — badge never overlaps check */
.pkg-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px;
  margin-bottom: 4px;
}
.pkg-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  min-width: 0;
}
.pkg-card.active .pkg-card-name { color: var(--primary); }
.pkg-card-badge {
  flex-shrink: 0;
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pkg-card-hint {
  display: block !important;
  font-size: 0.75rem !important;
  color: var(--subtle);
  line-height: 1.3;
  margin-bottom: 10px;
}
/* Bottom row: price left, check right — in normal flow, never overlaps badge */
.pkg-card-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px;
}
.pkg-card-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pkg-card-price .from {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--subtle);
  margin-right: 2px;
}
/* Check lives in the price row — no absolute positioning, no overlap risk */
.pkg-card-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
}
.pkg-card.active .pkg-card-check { display: flex; }
.pkg-scroll-hint {
  font-size: 0.72rem;
  color: var(--subtle);
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 4px;
}
.pkg-scroll-hint.visible { display: flex; }

/* ── CARD BODY ───────────────────────────────────── */
.card-body { padding: 28px 28px 0; }
@media (min-width: 480px) { .card-body { padding: 32px 36px 0; } }

/* ── SLIDER SECTION ──────────────────────────────── */
.slider-section { margin-bottom: 28px; }
.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap:wrap;
}



.pkg-card-header {
  display: flex !important;
  gap: 6px;
  margin-bottom: 4px;
  flex-direction: column-reverse;
  align-items: flex-start !important;
}
.slider-label-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}
.client-count-input {
  width: 90px;
  padding: 7px 12px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.client-count-input::-webkit-inner-spin-button,
.client-count-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.client-count-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,1,255,0.08);
}
.slider-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.calc-card .range-input,
.range-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 6px !important;
  border-radius: 99px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
  cursor: pointer;
  outline: none !important;
}
.calc-card .range-input::-webkit-slider-thumb,
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 1px 6px rgba(0,1,255,0.35) !important;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: -8px;
}
.calc-card .range-input::-webkit-slider-thumb:hover,
.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(0,1,255,0.45) !important;
}
.calc-card .range-input::-moz-range-thumb,
.range-input::-moz-range-thumb {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 1px 6px rgba(0,1,255,0.35) !important;
  cursor: pointer;
}
.range-bg {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  pointer-events: none;
}
.range-fill {
  position: absolute;
  left: 0;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary) 0%, #4444ff 100%);
  pointer-events: none;
  transition: width 0.1s;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--subtle);
  font-weight: 500;
}

/* ── PRICE DISPLAY ───────────────────────────────── */
.price-section {
  background: linear-gradient(135deg, var(--primary-tint-2) 0%, var(--primary-tint) 100%);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  margin-bottom: 24px;
  border: 1px solid rgba(0,1,255,0.1);
}
.vat-toggle-wrap {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.vat-label.active { color: var(--primary); }
.vat-switch {
  position: relative;
  width: 34px;
  height: 18px;
}
.vat-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.vat-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 34px;
  cursor: pointer;
  transition: background 0.2s;
}
.vat-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.vat-switch input:checked + .vat-slider { background: var(--primary); }
.vat-switch input:checked + .vat-slider::before { transform: translateX(16px); }
.price-label-text {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.price-amount {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s;
}
.price-amount.updating { opacity: 0.5; }
.price-per { font-size: 0.9375rem; color: var(--muted); }
.price-per strong { color: var(--foreground); font-weight: 600; }
.price-vat-note {
  font-size: 0.8125rem;
  color: var(--subtle);
  margin-top: 6px;
  min-height: 18px;
}
.price-per-client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 14px;
  background: rgba(0,1,255,0.08);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}
/* ── PRICE METRICS LAYOUT ────────────────────────── */
.price-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.price-metric-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,1,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.price-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.price-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.price-metric-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 400px) {
  .price-metrics-row { grid-template-columns: 1fr; }
}

.custom-quote {
  display: none;
  background: #fff;
  border: 1.5px solid rgba(0,1,255,0.15);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 16px;
  text-align: center;
}
.custom-quote-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.custom-quote h4 { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.custom-quote p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin: 0; }
.custom-quote a { color: var(--primary); font-weight: 600; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section { padding: 0 0 28px; text-align: center; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 15px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,1,255,0.25);
}
.cta-btn--disabled {
  opacity: 0.45 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
.cta-note { font-size: 0.8125rem; color: var(--subtle); }
.compare-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 9px 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.compare-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint-2);
}

/* ── DIVIDER ─────────────────────────────────────── */
.section-divider { height: 1px; background: var(--border); margin: 0 -36px 28px; }
@media (max-width: 479px) { .section-divider { margin: 0 -28px 24px; } }

/* ── FEATURES SECTION ────────────────────────────── */
.features-section { padding: 0 28px 28px; }
@media (min-width: 480px) { .features-section { padding: 0 36px 36px; } }
.features-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.features-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 8px;
}
.features-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--subtle);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.expand-all-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0 !important;
  line-height: 1.5;
  text-shadow: none;
}
.expand-all-btn:hover { text-decoration: underline; }

/* Category accordion */
.feature-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
  gap: 10px;
  transition: background 0.15s;
}
.category-header:hover { background: #f3f4f6; }
.category-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.category-emoji { font-size: 1rem; flex-shrink: 0; }
.category-name {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--primary-tint);
  color: var(--primary);
}
.category-badge.dimmed { background: #f3f4f6; color: var(--subtle); }
.chevron {
  width: 16px;
  height: 16px;
  color: var(--subtle);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.category-header.open .chevron { transform: rotate(90deg); }
.category-body { display: none; background: var(--card); }
.category-body.open { display: block; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 4px 0;
}
@media (min-width: 480px) { .features-grid { grid-template-columns: 1fr 1fr; } }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.features-grid .feature-item:nth-last-child(-n+2):not(:nth-child(odd)),
.features-grid .feature-item:last-child { border-bottom: none; }
@media (max-width: 479px) { .feature-item:last-child { border-bottom: none; } }
.feature-item:hover { background: #f9fafb; }
.feature-item.unavailable { opacity: 0.45; }
.feat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.feat-icon.check { background: #dcfce7; }
.feat-icon.cross { background: #fee2e2; }
.feat-icon svg { display: block; }
.feature-text { font-size: 0.8125rem; color: var(--foreground); line-height: 1.4; }

/* ── COMPARE MODAL ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 999999;
  padding: 24px 16px;
  overflow: hidden;
  align-items: flex-start;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 86vh;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-close {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--card) !important;
  color: #50575e !important;
  cursor: pointer !important;
  flex-shrink: 0;
  font-size: 1rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.modal-close:hover { background: var(--bg) !important; color: var(--foreground); }
.modal-body { overflow-y: auto; overflow-x: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
  padding: 16px 14px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.compare-table th.col-feature { text-align: left; min-width: 240px; }
.compare-table th .pkg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  background: #f3f4f6;
  color: var(--foreground);
}
.compare-table th .pkg-pill.active-pill { background: var(--primary-tint); color: var(--primary); }
.compare-cat-row td {
  padding: 10px 14px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground);
  background: #f9fafb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.compare-feat-row td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; font-size: 0.875rem; }
.compare-feat-row td.feat-val { text-align: center; }
.check-ic { color: var(--success); }
.cross-ic { color: #fd0000; }
.compare-feat-row:hover td { background: #f9fafb; }
.compare-feat-hidden { display: none; }

/* ── COMPARE MODAL ACCORDION ─────────────────────── */
.compare-cat-row { cursor: pointer; user-select: none; }
.compare-cat-row:hover td { background: #f3f4f6; }
.compare-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.compare-chevron {
  width: 16px;
  height: 16px;
  color: var(--subtle);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.compare-cat-row.open .compare-chevron { transform: rotate(90deg); }
.compare-cat-emoji { font-size: 1rem; flex-shrink: 0; }
.compare-cat-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compare-cat-badge-cell {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--subtle);
  white-space: nowrap;
  vertical-align: middle;
  padding: 10px 14px 6px;
  background: #f9fafb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── MODAL HEADER ACTIONS ────────────────────────── */
.modal-expand-all-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
  line-height: 1.5;
  user-select: none;
  flex-shrink: 0;
}
.modal-expand-all-btn:hover { text-decoration: underline; }

/* ── MODAL HEADER — MOBILE ───────────────────────── */
@media (max-width: 560px) {
  .modal-header { padding: 14px 18px 0; }
  /* Row 1: title (grows) + close button */
  .modal-title {
    order: 1;
    font-size: 0.9375rem;
    padding-bottom: 12px;
  }
  .modal-close { order: 2; align-self: flex-start; margin-top: 2px; }
  /* Row 2: expand-all full width, visually separated */
  .modal-expand-all-btn {
    order: 3;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 2px;
  }
}

@media (max-width: 640px) {
  .rpc-page-header { margin-bottom: 24px; }
  .price-section { padding: 24px 16px 20px; }
  .vat-toggle-wrap { position: static; justify-content: flex-end; margin-bottom: 12px; }
  .pkg-selector-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .compare-link { justify-content: center; width: 100%; padding: 9px 16px; }
  .features-header { flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .features-title { width: 100%; }
  .expand-all-btn { margin-left: auto; }
}

/* ── MODERN TWO-COLUMN LAYOUT ────────────────────────── */
.calc-card-modern {
  max-width: 980px;
}

.calc-two-col {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: start;
}

.calc-col-left {
  padding: 28px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.calc-col-right {
  padding: 24px 28px;
  min-width: 0;
}

/* Override price-section for modern: clean, no gradient box */
.calc-card-modern .price-section {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  margin-bottom: 8px;
  position: static;
}

.calc-card-modern .price-amount {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 6px;
}

.calc-card-modern .price-per-client {
  display: inline-flex;
  margin-top: 8px;
}

/* VAT toggle inline (below price, above CTA) */
.vat-toggle-wrap--inline {
  position: static !important;
  justify-content: flex-start;
  margin-bottom: 20px;
  margin-top: 4px;
}

/* CTA section in modern: full-width button, left-aligned */
.calc-card-modern .cta-section {
  padding: 0;
  text-align: left;
}

.calc-card-modern .cta-btn {
  max-width: none;
  width: 100%;
}

/* Features panel in modern */
.features-section--modern {
  padding: 0;
  height: 100%;
}

/* Custom quote in modern: full width, not offset */
.calc-card-modern .custom-quote {
  text-align: left;
  margin-top: 12px;
}

/* Responsive: stack on narrow viewports */
@media (max-width: 719px) {
  .calc-card-modern { max-width: 640px; }

  .calc-two-col {
    display: block;
  }

  .calc-col-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }

  .calc-col-right {
    padding-top: 24px;
  }

  .calc-card-modern .cta-btn { max-width: 320px; }
}

/* ── FEATURE LINKS & VIDEO ───────────────────────── */
.feat-link {
  font-size: 0.8125rem;
  color: var(--foreground);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.feat-link:hover { color: var(--primary); text-decoration: none; }
.feature-item.unavailable .feat-link { color: inherit; }

.feat-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--subtle);
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  transition: color 0.15s, background 0.15s;
}
.feat-video-btn:hover { color: var(--primary); background: var(--primary-tint); }

/* ── VIDEO MODAL ─────────────────────────────────── */
.rpc-video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 1000000;
  padding: 24px 16px;
  align-items: center;
  justify-content: center;
}
.rpc-video-overlay.open { display: flex; }
.rpc-video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rpc-video-player { width: 100%; height: 100%; }
.rpc-video-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s;
}
.rpc-video-close:hover { background: rgba(0,0,0,0.9); }
