/* ═══════════════════════════════════════════════════
   Advanced Feature-Based Price Calculator
   Accordion steps, tier buttons, presets, comparison
   ═══════════════════════════════════════════════════ */

/* ── Calculator Layout ────────────────────────── */
.calculator-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.06) 0%, transparent 60%);
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ── Presets Bar ──────────────────────────────── */
.calc-presets-bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.presets-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  white-space: nowrap;
}

.presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex: 1;
}

.preset-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  white-space: nowrap;
}

.preset-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.preset-btn.active {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.preset-btn i {
  color: var(--primary-light);
  width: 14px;
  height: 14px;
}

.preset-btn strong {
  font-family: var(--font-heading);
  color: var(--primary-light);
  margin-left: 4px;
}

/* ── Calculator Steps (Accordion) ─────────────── */
.calc-step {
  margin-bottom: var(--space-sm);
  padding: 0;
  overflow: hidden;
}

.calc-step-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: background var(--transition-fast);
}

.calc-step-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.calc-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.calc-step-info {
  flex: 1;
  min-width: 0;
}

.calc-step-info h3 {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.calc-step-info h3 i {
  color: var(--primary-light);
}

.calc-step-selection {
  font-size: var(--fs-xs);
  color: var(--primary-light);
  font-weight: var(--fw-medium);
}

.calc-step-chevron {
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.calc-step.open .calc-step-chevron {
  transform: rotate(180deg);
}

/* Step Body (collapsible) */
.calc-step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 var(--space-xl);
}

.calc-step.open .calc-step-body {
  /* Addons + scopes can have 30-50+ items so 800px clips them. Bump
     to 4000px which covers every realistic content size while keeping
     a finite value (so the max-height transition still animates). */
  max-height: 4000px;
  padding: 0 var(--space-xl) var(--space-xl);
}

/* Belt-and-braces: the addons step specifically has the most items.
   Override to "none" so it never clips. */
.calc-step[data-step="addons"].open .calc-step-body {
  max-height: none;
}

.calc-step-desc {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

/* ── Tier Option Buttons ─────────────────────── */
.calc-tier-grid {
  display: grid;
  gap: var(--space-sm);
}

.calc-tier-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.calc-tier-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.calc-tier-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: var(--space-md) var(--space-sm);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  font: inherit;
  min-height: 90px;
}

.calc-tier-btn:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.calc-tier-btn.active {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.calc-tier-btn strong {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.calc-tier-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calc-tier-price {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: auto;
}

.calc-tier-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  padding: 1px 8px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Preview-media badge — tiny icon in the corner that hints "hover for preview" */
.calc-tier-preview-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
}
.calc-tier-preview-badge svg {
  width: 10px;
  height: 10px;
}
.calc-tier-btn:hover .calc-tier-preview-badge {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* ── Game Pricing Single Card Grid ───────────── */
.pricing-grid-single {
  max-width: 500px;
  margin: 0 auto;
}

.pricing-grid-single .pricing-card {
  width: 100%;
}

.game-card .pricing-tier {
  background: linear-gradient(135deg, #10b981, #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-card .pricing-tier {
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.streaming-card .pricing-tier {
  background: linear-gradient(135deg, #e84393, #fd79a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overlays-card .pricing-tier {
  background: linear-gradient(135deg, #f39c12, #e17055);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.threed-card .pricing-tier {
  background: linear-gradient(135deg, #00b894, #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ SERVICE NAVIGATION GRID ═══════════════════════ */
.service-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.service-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--text-secondary);
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.service-nav-item i {
  color: var(--primary-light);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.service-nav-item div {
  min-width: 0;
}

.service-nav-item strong {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  line-height: 1.3;
}

.service-nav-item span {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.service-nav-item:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.service-nav-item.active {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.1);
}

.service-nav-item.active i {
  color: var(--primary);
}

@media (max-width: 1200px) {
  .service-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .service-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .service-nav-item {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .service-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Add-on Category Sections ────────────────── */
.calc-addon-category {
  margin-bottom: var(--space-lg);
}

.calc-addon-category:last-child {
  margin-bottom: 0;
}

.calc-addon-category-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin: 0 0 var(--space-sm);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-addon-category-title .calc-addon-count {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: var(--fw-regular);
}

/* ── Add-ons Grid ─────────────────────────────── */
.calc-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.calc-addon-item {
  display: block;
  cursor: pointer;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.calc-addon-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card);
}

.calc-addon-item.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.06);
}

.calc-addon-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.calc-addon-content i {
  color: var(--primary-light);
  flex-shrink: 0;
}

.calc-addon-content div {
  flex: 1;
  min-width: 0;
}

.calc-addon-content strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Addon description — kept short, full text on hover via title attr */
.calc-addon-desc {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.3;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tooltip: tier buttons + addon items have `title="..."` in JS so the
   browser's native tooltip surfaces full text on hover (clean, predictable,
   positions itself near cursor). No custom overlay — the previous `::after`
   tooltip was getting cropped at the top of buttons. */

.calc-addon-price {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--primary-light) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Checkbox visual indicator */
.calc-addon-item::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.calc-addon-item.selected::before {
  background: var(--gradient-primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ── Summary Panel (Sticky) ───────────────────── */
.calc-summary-wrap {
  position: sticky;
  top: calc(var(--navbar-height) + var(--banner-height) + var(--space-xl));
}

.calc-summary {
  padding: var(--space-2xl);
}

.calc-summary-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xl);
}

/* ── Price Gauge ──────────────────────────────── */
.calc-gauge {
  margin-bottom: var(--space-xl);
}

.gauge-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.gauge-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: var(--gauge-percent, 10%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.gauge-tier {
  font-weight: var(--fw-semibold);
  color: var(--primary-light);
}

/* ── Breakdown Rows ───────────────────────────── */
.calc-breakdown {
  margin-bottom: var(--space-xl);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.calc-row.rush-row {
  color: var(--warning);
}

/* Scope baseAdjust row — neutral muted by default; turns red-ish when
   it's a discount (negative). The label is built dynamically with the
   active scope name so the user always knows where the delta comes from. */
.calc-row.scope-adjust-row {
  color: var(--text-muted, var(--text-secondary));
  font-size: 12px;
  font-style: italic;
  opacity: 0.85;
}

.calc-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-md) 0;
}

.calc-row.total-row {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  padding: var(--space-md) 0;
}

.calc-total-price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Delivery Estimate ────────────────────────── */
.calc-delivery {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.calc-delivery i {
  color: var(--primary-light);
}

/* ── Summary Items List ───────────────────────── */
.calc-summary-list {
  margin-bottom: var(--space-xl);
  max-height: 280px;
  overflow-y: auto;
}

/* Summary group (collapsible feature breakdown) */
.summary-group {
  margin-bottom: var(--space-xs);
}

.summary-group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

.summary-group-toggle span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.summary-group-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: var(--space-lg);
}

.summary-group-detail.open {
  max-height: 500px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.summary-item span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.summary-item.addon-item {
  color: var(--text-tertiary);
}

.summary-item.rush-item {
  color: var(--warning);
}

/* ── Actions ──────────────────────────────────── */
.calc-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.calc-trust {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.calc-trust span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.calc-trust i {
  color: var(--success);
}

/* ═══ COMPARISON TABLE ════════════════════════════ */
.comparison-table-wrap {
  overflow-x: auto;
  padding: var(--space-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: var(--fs-sm);
}

.comparison-table thead th {
  padding: var(--space-xl) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  border-bottom: 2px solid var(--border-color);
  vertical-align: bottom;
}

.comparison-table thead th small {
  display: block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: var(--space-xs);
}

.comparison-table th.feature-col {
  text-align: left;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.comparison-table tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.comparison-table .highlighted {
  background: rgba(108, 92, 231, 0.05);
  position: relative;
}

.comparison-table thead .highlighted::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
}

.comparison-table .total-row-compare td {
  font-family: var(--font-heading);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  padding: var(--space-lg) var(--space-lg);
  background: rgba(108, 92, 231, 0.03);
}

.comparison-table .total-row-compare td strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--fs-base);
}

.comparison-table .cta-row td {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: none;
}

.text-success {
  color: var(--success) !important;
}

.text-muted {
  color: var(--text-tertiary) !important;
  opacity: 0.4;
}

.btn-sm {
  padding: 6px 16px;
  font-size: var(--fs-xs);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1200px) {
  .calc-tier-grid.cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calc-summary-wrap {
    position: static;
  }

  .calc-tier-grid.cols-4,
  .calc-tier-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-presets-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .calc-tier-grid.cols-4,
  .calc-tier-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-addons-grid {
    grid-template-columns: 1fr;
  }

  .presets-grid {
    flex-wrap: wrap;
  }

  .preset-btn {
    font-size: 11px;
    padding: 6px 12px;
  }

  .comparison-table {
    font-size: var(--fs-xs);
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .calc-tier-grid.cols-4,
  .calc-tier-grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .calc-step-toggle {
    padding: var(--space-md);
  }

  .calc-step.open .calc-step-body {
    padding: 0 var(--space-md) var(--space-md);
  }
}

/* ─── Per-sub-service scope picker ────────────────── */
.calc-scope-picker {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.20);
  border-radius: var(--radius-lg);
}

.calc-scope-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.calc-scope-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  flex: 1;
}

.calc-scope-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 140px;
}

.calc-scope-btn i {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.calc-scope-btn .calc-scope-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.calc-scope-btn .calc-scope-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: var(--fw-regular);
}

.calc-scope-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.calc-scope-btn.active {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(236, 72, 153, 0.10));
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.18);
}

.calc-scope-btn.active .calc-scope-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scope summary chip — surfaces "you're on Drawing Only, 1 of 12
   sections shown" right below the scope picker so the client never
   wonders why the accordion has fewer steps than they expected. */
.calc-scope-summary {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 14px;
  margin: -6px 0 var(--space-lg);
  background: rgba(108, 92, 231, 0.04);
  border: 1px dashed rgba(108, 92, 231, 0.30);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.calc-scope-summary i {
  color: var(--primary-light);
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

.calc-scope-summary strong {
  color: var(--primary-light);
  font-weight: var(--fw-semibold);
}

/* "None / Skip" tier buttons — visually distinct from regular $0
   ("Free") options so clients understand they're opting out of the
   feature, not getting it for free. Slight desaturation + dashed
   border + muted price style. */
.calc-tier-btn.is-none {
  border-style: dashed;
  opacity: 0.78;
}

.calc-tier-btn.is-none .calc-tier-price {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--text-tertiary);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.calc-tier-btn.is-none.active {
  opacity: 1;
  border-style: solid;
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .calc-scope-picker { flex-direction: column; align-items: stretch; }
  .calc-scope-buttons { width: 100%; flex-direction: column; }
  .calc-scope-btn { flex: 1; min-width: 0; width: 100%; }
  .calc-scope-summary { font-size: 11px; padding: 6px 10px; }
}
