/* ==========================================================================
   AI Automation Planner Styles
   ========================================================================== */

:root {
  --cyan-glow: rgba(111, 224, 255, 0.15);
  --cyan-solid: #6FE0FF;
  --purple-glow: rgba(124, 106, 255, 0.22);
  --purple-solid: #7C6AFF;
}

/* ── Hero ── */
.tool-hero {
  padding: 140px 24px 64px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top center, rgba(124,106,255,0.08) 0%, rgba(10,10,15,0) 60%);
}
.tool-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FAF9F6;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.tool-hero__title .sc-grad {
  background: linear-gradient(135deg, var(--purple-solid), var(--cyan-solid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tool-hero__sub {
  font-size: 1.15rem;
  color: rgba(184, 181, 230, 0.75);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.tool-hero__badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tool-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: rgba(184, 181, 230, 0.8);
}
.tool-hero__badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--cyan-solid);
  stroke-width: 2;
}

/* ── Section & Grid ── */
.calc-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Left Column: Inputs ── */
.calc-inputs {
  display: grid;
  gap: 24px;
}
.calc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.calc-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.preset-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.preset-wrapper label {
  font-size: 0.78rem;
  color: rgba(184, 181, 230, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calc-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.calc-select:focus {
  border-color: var(--purple-solid);
}
.calc-select option {
  background: #14101e;
  color: #faf9f6;
}
.calc-select option:checked,
.calc-select option:hover {
  background: #2a1f47;
  color: #faf9f6;
}

/* Task Card Style */
.task-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 20px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.task-card:hover {
  border-color: rgba(124, 106, 255, 0.25);
  box-shadow: 0 8px 32px rgba(10, 10, 15, 0.5);
}
.task-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.task-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(250, 249, 246, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-card__num {
  background: var(--purple-glow);
  color: var(--purple-solid);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.task-card__remove-btn {
  background: none;
  border: none;
  color: rgba(239, 68, 68, 0.55);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.task-card__remove-btn:hover {
  color: rgba(239, 68, 68, 0.95);
}
.task-card__remove-btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Inner Fields */
.calc-field-group {
  display: grid;
  gap: 8px;
}
.calc-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-label-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(184, 181, 230, 0.85);
}
.calc-label-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan-solid);
}
.calc-input-text {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.calc-input-text:focus {
  border-color: var(--purple-solid);
}

/* Custom Range */
.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  margin: 10px 0;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-solid);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
  box-shadow: 0 0 10px rgba(124, 106, 255, 0.5);
}
.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--cyan-solid);
}

/* Button Option Groups */
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-option {
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: rgba(184, 181, 230, 0.75);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.btn-option--active {
  background: var(--purple-glow);
  border-color: var(--purple-solid);
  color: var(--text);
  box-shadow: 0 0 12px rgba(124, 106, 255, 0.15);
}

/* Add Task Action */
.calc-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.calc-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 106, 255, 0.06);
  border: 1px solid rgba(124, 106, 255, 0.22);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-btn-secondary:hover {
  background: rgba(124, 106, 255, 0.12);
  border-color: rgba(124, 106, 255, 0.35);
  transform: translateY(-1px);
}
.calc-btn-secondary svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── Right Column: Results ── */
.calc-results {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
}
.calc-summary-card {
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.08), rgba(108, 92, 231, 0.03));
  border: 1px solid rgba(124, 106, 255, 0.22);
  border-radius: 20px;
  padding: 28px;
}
.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(184, 181, 230, 0.55);
  margin-bottom: 6px;
}
.calc-compare__value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.calc-compare__value--ai {
  color: var(--cyan-solid);
}
.calc-compare__value span {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(184, 181, 230, 0.5);
  margin-left: 2px;
}
.calc-compare__bar {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  margin: 20px 0 10px;
}
.calc-compare__bar-current {
  background: linear-gradient(90deg, var(--purple-solid), var(--cyan-solid));
  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(184, 181, 230, 0.65);
  text-align: center;
}
.calc-compare__caption strong {
  color: var(--cyan-solid);
}

/* Recommended Service */
.calc-recommend {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(124, 106, 255, 0.05);
  border: 1px solid rgba(124, 106, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.calc-recommend:hover {
  border-color: rgba(124, 106, 255, 0.35);
  background: rgba(124, 106, 255, 0.08);
}
.calc-recommend__label {
  font-size: 0.72rem;
  color: rgba(184, 181, 230, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.calc-recommend__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.calc-recommend__arrow {
  color: var(--purple-solid);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.calc-recommend:hover .calc-recommend__arrow {
  transform: translateX(4px);
}

/* Pipeline Ranking */
.calc-ranking-wrapper {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.ranking-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(250, 249, 246, 0.85);
  margin-bottom: 16px;
}
.ranking-list {
  display: grid;
  gap: 12px;
}
.ranking-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ranking-item__left {
  display: grid;
  gap: 4px;
}
.ranking-item__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.ranking-item__meta {
  font-size: 0.74rem;
  color: rgba(184, 181, 230, 0.55);
}
.ranking-item__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ranking-item__score-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}
.ranking-item__score-badge--high {
  background: rgba(111, 224, 255, 0.12);
  color: var(--cyan-solid);
}
.ranking-item__score-badge--med {
  background: rgba(124, 106, 255, 0.12);
  color: var(--purple-solid);
}
.ranking-item__score-badge--low {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(184, 181, 230, 0.6);
}
.ranking-item__savings {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

/* Share Button */
.calc-share {
  display: flex;
  justify-content: center;
}
.calc-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(124, 106, 255, 0.18);
  background: rgba(124, 106, 255, 0.06);
  color: rgba(184, 181, 230, 0.7);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.calc-share__btn:hover {
  border-color: rgba(124, 106, 255, 0.4);
  color: #ece9ff;
}
.calc-share__btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.calc-share__btn--copied {
  border-color: var(--cyan-solid);
  color: var(--cyan-solid);
}

/* ── CTA Banner ── */
.calc-cta {
  max-width: 1200px;
  margin: 48px auto 0;
}
.calc-cta__card {
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.08), rgba(108, 92, 231, 0.04));
  border: 1px solid rgba(124, 106, 255, 0.18);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.calc-cta__text {
  max-width: 620px;
}
.calc-cta__text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.calc-cta__text p {
  color: rgba(184, 181, 230, 0.75);
  font-size: 0.92rem;
  line-height: 1.5;
}
.calc-cta__btn,
.calc-cta__btn:link,
.calc-cta__btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #6B3FA0, #7C6AFF);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(124, 106, 255, 0.3);
}
.calc-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 106, 255, 0.45);
}

/* Disclaimer */
.calc-disclaimer {
  max-width: 1200px;
  margin: 24px auto 0;
  font-size: 0.74rem;
  color: rgba(184, 181, 230, 0.45);
  line-height: 1.5;
  text-align: center;
}

/* ── Content Sections: 4-Card scoring grid ── */
/* ── Numbered content section (shared layout) ── */
.cs-section {
  padding: 80px 0;
  border-top: 1px solid rgba(124,106,255,0.07);
}
.cs-section--alt { background: #080816; }
.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: #7C6AFF;
  margin-bottom: 10px;
}
.cs-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: #FAF9F6;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.cs-section__title em {
  font-style: normal;
  background: linear-gradient(135deg, #7C6AFF, #6FE0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cs-section__sub {
  font-size: 0.98rem;
  color: rgba(184,181,230,0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Inspiration: commonly automated processes grid ── */
.proc-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .proc-grid { grid-template-columns: 1fr; }
}
.proc-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,106,255,0.12);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.proc-card:hover {
  border-color: rgba(124,106,255,0.3);
  transform: translateY(-2px);
}
.proc-card__title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7C6AFF, #6FE0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.proc-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid rgba(124,106,255,0.07);
  font-size: 0.86rem;
}
.proc-card__row:first-of-type { border-top: none; padding-top: 0; }
.proc-card__label { color: rgba(184,181,230,0.6); }
.proc-card__val {
  font-weight: 700;
  color: #FAF9F6;
  font-family: var(--font-heading);
}
.proc-card__val--accent {
  background: linear-gradient(135deg, #7C6AFF, #6FE0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 4-column scoring grid + cards ── */
.cs-grid-5 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .cs-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cs-grid-5 { grid-template-columns: 1fr; }
}
.cs-cost-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(124,106,255,0.12);
  border-radius: 18px;
  padding: 28px 24px;
  transition: border-color 0.3s ease;
}
.cs-cost-card:hover { border-color: rgba(124,106,255,0.25); }
.cs-cost-card__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #7C6AFF, #6FE0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.cs-cost-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FAF9F6;
  margin: 0 0 8px;
}
.cs-cost-card__desc {
  font-size: 0.88rem;
  color: rgba(184,181,230,0.65);
  line-height: 1.6;
  margin: 0;
}

/* ── Content Sections: Roadmap ── */
.roadmap-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}
.faq-accordion {
  padding: 0 24px;
}
.roadmap-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s ease;
}
.roadmap-card:hover {
  border-color: rgba(124, 106, 255, 0.22);
}
.roadmap-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--purple-glow);
  color: var(--purple-solid);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.roadmap-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.roadmap-card__desc {
  font-size: 0.88rem;
  color: rgba(184, 181, 230, 0.7);
  line-height: 1.6;
}

/* Accordion FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-icon {
  font-size: 1.2rem;
  color: var(--purple-solid);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  color: rgba(184, 181, 230, 0.75);
  font-size: 0.88rem;
  line-height: 1.6;
}
.faq-item--active .faq-icon {
  transform: rotate(45deg);
}
.faq-item--active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .calc-results {
    position: static;
  }
  .cs-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .calc-cta__card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .calc-cta__btn {
    justify-content: center;
  }
  .cs-grid-5 {
    grid-template-columns: 1fr;
  }
  .calc-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .preset-wrapper {
    width: 100%;
    justify-content: space-between;
  }
}
