/* ============================================
   AVELLE — Customer Support Cost Calculator
   Tool-specific styles
   ============================================ */

/* ── Hero ── */
.tool-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.tool-hero: :before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(82,78,240,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.tool-hero .section-label { margin-bottom: 12px; }
.tool-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1C1629;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.tool-hero__title .sc-grad {
  background: linear-gradient(100deg, #524EF0 0%, #524EF0 45%, #2B18A6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tool-hero__sub {
  font-size: 1.05rem;
  color: rgba(28,22,41,0.75);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
.tool-hero__badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(82,78,240,0.08);
  border: 1px solid rgba(82,78,240,0.18);
  color: rgba(28,22,41,0.85);
}
.tool-badge svg { width: 14px; height: 14px; stroke: #524EF0; fill: none; stroke-width: 2; }

/* ── Calculator Layout ── */
.calc-section {
  background: #FFFFFF;
  padding: 0 0 80px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ── Input Panel ── */
.calc-inputs {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.12);
  border-radius: 20px;
  padding: 32px 28px;
  align-self: start;
}
.calc-inputs__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C1629;
  margin: 0 0 24px;
}

/* Industry select */
.calc-select-wrap { margin-bottom: 28px; }
.calc-select-wrap label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(28,22,41,0.75);
  margin-bottom: 8px;
}
.calc-select {
  width: 100%;
  padding: 10px 14px;
  background-color: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.18);
  border-radius: 10px;
  color: #1C1629;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpolyline points='2,4 6,8 10,4' fill='none' stroke='%23524EF0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.calc-select:focus { outline: none; border-color: rgba(82,78,240,0.5); }

/* Slider group */
.calc-slider-group { margin-bottom: 22px; }
.calc-slider-group:last-child { margin-bottom: 0; }
.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.calc-slider-label__text {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(28,22,41,0.75);
}
.calc-slider-label__value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #524EF0;
  min-width: 60px;
  text-align: right;
}
.calc-slider-label__value span {
  font-weight: 400;
  color: rgba(28,22,41,0.6);
  font-size: .8rem;
}

/* Range slider styling */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(82,78,240,0.12);
  outline: none;
  cursor: pointer;
}
.calc-range: :-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #524EF0;
  border: 3px solid rgba(82,78,240,.18);
  box-shadow: 0 0 0 2px rgba(82,78,240,0.35), 0 2px 8px rgba(82,78,240,0.3);
  cursor: grab;
  transition: box-shadow 0.2s ease;
}
.calc-range: :-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 3px rgba(82,78,240,0.5), 0 4px 16px rgba(82,78,240,0.4);
}
.calc-range: :-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #524EF0;
  border: 3px solid rgba(82,78,240,.18);
  box-shadow: 0 0 0 2px rgba(82,78,240,0.35);
  cursor: grab;
}

/* ── Results Panel ── */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cost comparison header card */
.calc-compare {
  background: linear-gradient(135deg, rgba(82,78,240,0.08), rgba(108,92,231,0.03));
  border: 1px solid rgba(82,78,240,0.22);
  border-radius: 18px;
  padding: 24px 24px 22px;
}
.calc-compare__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.calc-compare__col { flex: 1; }
.calc-compare__col--ai { text-align: right; }
.calc-compare__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(28,22,41,0.6);
  margin-bottom: 6px;
}
.calc-compare__value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.calc-compare__value--current { color: rgba(28,22,41,0.85); }
.calc-compare__value--ai { color: #2B18A6; }
.calc-compare__value span {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(28,22,41,0.55);
  margin-left: 2px;
}
.calc-compare__bar {
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  overflow: hidden;
  display: flex;
  margin: 18px 0 8px;
}
.calc-compare__bar-current {
  background: linear-gradient(90deg, #6366F1, #524EF0);
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.calc-compare__caption {
  font-size: 0.78rem;
  color: rgba(28,22,41,0.65);
  text-align: center;
}
.calc-compare__caption strong { color: #2B18A6; }

.calc-result-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.12);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.calc-result-card:hover {
  border-color: rgba(82,78,240,0.3);
  box-shadow: 0 4px 20px rgba(82,78,240,0.08);
}
.calc-result-card--highlight {
  border-color: rgba(43,24,166,0.35);
  background: linear-gradient(135deg, rgba(43,24,166,0.06), rgba(82,78,240,0.02));
}
.calc-result__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.calc-result__icon--savings { background: rgba(43,24,166,0.12); }
.calc-result__icon--savings svg { stroke: #2B18A6; }
.calc-result__icon--deflect { background: rgba(82,78,240,0.12); }
.calc-result__icon--deflect svg { stroke: #524EF0; }
.calc-result__icon--speed { background: rgba(99,102,241,0.15); }
.calc-result__icon--speed svg { stroke: #524EF0; }
.calc-result__icon--afterhours { background: rgba(251,191,36,0.12); }
.calc-result__icon--afterhours svg { stroke: #FBBF24; }
.calc-result__icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc-result__body { flex: 1; min-width: 0; }
.calc-result__label {
  font-size: 0.78rem;
  color: rgba(28,22,41,0.65);
  margin-bottom: 4px;
}
.calc-result__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1C1629;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.calc-result__value span {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(28,22,41,0.6);
  margin-left: 2px;
}

/* Recommended Service */
.calc-recommend {
  margin-top: 4px;
  padding: 16px 18px;
  background: rgba(82,78,240,0.05);
  border: 1px solid rgba(82,78,240,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.calc-recommend:hover { border-color: rgba(82,78,240,0.35); }
.calc-recommend__label {
  font-size: 0.72rem;
  color: rgba(28,22,41,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc-recommend__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1C1629;
}
.calc-recommend__arrow {
  margin-left: auto;
  color: #524EF0;
  font-size: 1.1rem;
}

/* ── Share link ── */
.calc-share {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.calc-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(82,78,240,0.18);
  background: rgba(82,78,240,0.06);
  color: rgba(28,22,41,0.75);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.calc-share__btn:hover { border-color: rgba(82,78,240,0.4); color: #1C1629; }
.calc-share__btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.calc-share__btn--copied { border-color: #2B18A6; color: #2B18A6; }

/* ── CTA Banner ── */
.calc-cta {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.calc-cta__card {
  background: linear-gradient(135deg, rgba(82,78,240,0.08), rgba(108,92,231,0.04));
  border: 1px solid rgba(82,78,240,0.18);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.calc-cta__text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #1C1629;
  margin: 0 0 6px;
}
.calc-cta__text p {
  font-size: 0.9rem;
  color: rgba(28,22,41,0.65);
  margin: 0;
}
.calc-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 38px;
  background: linear-gradient(135deg, #524EF0, #2B18A6);
  ;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(43,24,166,0.35), 0 0 40px rgba(82,78,240,0.2);
}
.calc-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(43,24,166,0.5), 0 0 50px rgba(82,78,240,0.3);
}

/* ── Disclaimer ── */
.calc-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 0.75rem;
  color: rgba(28,22,41,0.45);
  line-height: 1.5;
  text-align: center;
}

/* ── Generic numbered content section ── */
.cs-section {
  padding: 80px 0;
  border-top: 1px solid rgba(82,78,240,0.07);
}
.cs-section--alt { background: #F4F5FB; }
.cs-section__head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: center;
}
.cs-section__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #524EF0;
  margin-bottom: 10px;
}
.cs-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: #1C1629;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.cs-section__title em {
  font-style: normal;
  background: linear-gradient(135deg, #524EF0, #2B18A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cs-section__sub {
  font-size: 0.98rem;
  color: rgba(28,22,41,0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── The Split (AI vs Human) ── */
.cs-split {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .cs-split { grid-template-columns: 1fr; } }
.cs-split__col {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.14);
  border-radius: 18px;
  padding: 28px 26px;
}
.cs-split__col--human { border-color: rgba(82,78,240,0.16); }
.cs-split__col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cs-split__chip {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cs-split__col--ai .cs-split__chip { background: rgba(82,78,240,0.14); }
.cs-split__col--human .cs-split__chip { background: rgba(82,78,240,0.14); }
.cs-split__chip svg { width: 20px; height: 20px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cs-split__col--ai .cs-split__chip svg { stroke: #524EF0; }
.cs-split__col--human .cs-split__chip svg { stroke: #524EF0; }
.cs-split__col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1C1629;
}
.cs-split__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.cs-split__list li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(28,22,41,0.83);
  line-height: 1.45;
}
.cs-split__list li: :before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.cs-split__col--ai .cs-split__list li: :before { background: #524EF0; }
.cs-split__col--human .cs-split__list li: :before { background: #524EF0; }

/* ── Channel coverage ── */
.cs-channels {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .cs-channels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cs-channels { grid-template-columns: 1fr; } }
.cs-channel {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.12);
  border-radius: 16px;
  padding: 26px 22px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.cs-channel:hover { border-color: rgba(82,78,240,0.32); transform: translateY(-2px); }
.cs-channel__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(82,78,240,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cs-channel__icon svg { width: 21px; height: 21px; stroke: #524EF0; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-channel__name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: #1C1629;
  margin-bottom: 7px;
}
.cs-channel__desc {
  font-size: 0.83rem;
  color: rgba(28,22,41,0.65);
  line-height: 1.55;
  margin: 0;
}

/* ── Benchmark numbers ── */
.cs-stats {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .cs-stats { grid-template-columns: repeat(2, 1fr); } }
.cs-stat {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.14);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.cs-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #524EF0, #2B18A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat__label {
  font-size: 0.82rem;
  color: rgba(28,22,41,0.7);
  line-height: 1.45;
}

/* ── Industry benchmark grid ── */
.cs-benchmarks-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .cs-benchmarks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cs-benchmarks-grid { grid-template-columns: 1fr; }
}
.cs-benchmark-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.12);
  border-radius: 18px;
  padding: 26px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.cs-benchmark-card:hover {
  border-color: rgba(82,78,240,0.32);
  transform: translateY(-2px);
}
.cs-benchmark-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1C1629;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-benchmark-card__title svg {
  width: 18px;
  height: 18px;
  stroke: #524EF0;
  fill: none;
  stroke-width: 2;
}
.cs-benchmark-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-benchmark-card__metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.cs-benchmark-card__label {
  color: rgba(28,22,41,0.65);
}
.cs-benchmark-card__value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #1C1629;
}
.cs-benchmark-card__value--highlight {
  color: #524EF0;
  font-weight: 700;
}

/* ── AI Cost Guide ── */
.cs-cost-guide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-cost-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.12);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.3s ease;
}
@media (max-width: 650px) {
  .cs-cost-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
}
.cs-cost-card:hover {
  border-color: rgba(82,78,240,0.25);
}
.cs-cost-card__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #524EF0, #2B18A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 44px;
}
.cs-cost-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(82,78,240,0.08);
  border: 1px solid rgba(82,78,240,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-cost-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: #524EF0;
  fill: none;
  stroke-width: 1.8;
}
.cs-cost-card__content {
  flex: 1;
}
.cs-cost-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1C1629;
  margin: 0 0 8px;
}
.cs-cost-card__desc {
  font-size: 0.9rem;
  color: rgba(28,22,41,0.7);
  line-height: 1.6;
  margin: 0;
}


/* ── FAQ ── */
.cs-faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-faq__item {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(82,78,240,0.12);
  border-radius: 14px;
  overflow: hidden;
}
.cs-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1C1629;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cs-faq__icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: relative;
  transition: transform 0.3s ease;
}
.cs-faq__icon: :before, .cs-faq__icon::after {
  content: '';
  position: absolute;
  background: #524EF0;
  border-radius: 2px;
}
.cs-faq__icon: :before { top: 8px; left: 0; width: 18px; height: 2px; }
.cs-faq__icon: :after { top: 0; left: 8px; width: 2px; height: 18px; transition: opacity 0.3s ease; }
.cs-faq__item--open .cs-faq__icon: :after { opacity: 0; }
.cs-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.cs-faq__a-inner {
  padding: 0 22px 20px;
  font-size: 0.88rem;
  color: rgba(28,22,41,0.75);
  line-height: 1.6;
}

/* ── Mobile: keep the CTA card + button inside the viewport ──
   On very narrow screens the pill button's generous horizontal padding
   plus white-space:nowrap made it wider than the card's content box,
   pushing the page past the viewport. Trim padding and let it flex full-width. */
@media (max-width: 480px) {
  .calc-cta__card {
    padding: 28px 20px;
  }
  .calc-cta__btn {
    padding: 15px 24px;
    width: 100%;
    justify-content: center;
  }
}
