/* ============================================================
   Tool Pages — Data Drain Calculator & Four-Gate Questionnaire
   Uses Definian design tokens from all.css
   ============================================================ */

/* ── Tool Gate (Email Capture) ───────────────────────────── */
.tool-gate {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.tool-gate_heading {
  font-family: Titillium Web, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.tool-gate_description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.tool-gate_form-wrapper {
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  backdrop-filter: blur(5px);
  background-color: rgba(2, 7, 45, 0.8);
  border-radius: 8px;
  padding: 2rem;
  text-align: left;
}

.tool-gate_fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-gate_field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media screen and (max-width: 479px) {
  .tool-gate_heading {
    font-size: 1.75rem;
  }
  .tool-gate_field-row {
    grid-template-columns: 1fr;
  }
}

/* ── Tool Hero ───────────────────────────────────────────── */
.tool-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tool-hero_content {
  /* Text side — no explicit styles needed, just a wrapper */
}

.tool-hero_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 175, 104, 0.15);
  border: 1px solid rgba(0, 175, 104, 0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-green, #00af68);
  margin-bottom: 1.25rem;
}

.tool-hero_heading {
  font-family: Titillium Web, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.tool-hero_heading em {
  font-style: italic;
  color: var(--brand-green, #00af68);
}

.tool-hero_subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-weight: 300;
}

.tool-hero_stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tool-hero_stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.tool-hero_stat-num {
  font-family: Titillium Web, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green, #00af68);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.tool-hero_stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

@media screen and (max-width: 991px) {
  .tool-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media screen and (max-width: 479px) {
  .tool-hero_heading {
    font-size: 2rem;
  }
  .tool-hero_stats {
    grid-template-columns: 1fr;
  }
}

/* Override main-wrapper overflow:hidden on pages with sticky bar */
.main-wrapper:has(.tool-sticky-bar) {
  overflow: visible;
}

/* ── Sticky Total Bar ────────────────────────────────────── */
.tool-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 40, 85, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.tool-sticky-bar_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.tool-sticky-bar_label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.tool-sticky-bar_amount {
  font-family: Titillium Web, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.tool-sticky-bar_amount.has-value {
  color: var(--brand-green, #00af68);
}

/* ── Educational Cards ───────────────────────────────────── */
.tool-edu-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tool-edu-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  border-radius: 8px;
  padding: 1.5rem;
}

.tool-edu-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-green, #00af68);
  margin-bottom: 0.75rem;
}

.tool-edu-title {
  font-family: Titillium Web, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tool-edu-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .tool-edu-section {
    grid-template-columns: 1fr;
  }
}

/* ── Section Divider ─────────────────────────────────────── */
.tool-section-divider {
  border-top: 1px solid var(--stroke-lighter-blue, #3c405b);
  padding-top: 2.5rem;
  margin-bottom: 2rem;
}

.tool-section-divider_heading {
  font-family: Titillium Web, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.tool-section-divider_sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ── Drain Cards ─────────────────────────────────────────── */
.tool-drain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media screen and (max-width: 991px) {
  .tool-drain-cards {
    grid-template-columns: 1fr;
  }
}

.tool-drain-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
  cursor: default;
}

.tool-drain-card.active {
  border-color: var(--brand-green, #00af68);
}

.tool-drain-card_header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tool-drain-card_icon {
  font-size: 1.75rem;
  line-height: 1;
}

.tool-drain-card_number {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-green, #00af68);
  margin-bottom: 0.15rem;
}

.tool-drain-card_title {
  font-family: Titillium Web, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.tool-drain-card_tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 2px 8px;
}

.tool-drain-card_desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.tool-drain-card_desc strong {
  color: rgba(255, 255, 255, 0.8);
}

.tool-drain-card_inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* ── Input Groups ────────────────────────────────────────── */
.tool-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tool-input-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-input-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  background: var(--brand-green, #00af68);
  color: var(--dark-blue, #02072d);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tool-input-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.tool-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.tool-input-wrap:focus-within {
  border-color: var(--brand-green, #00af68);
}

.tool-input-prefix {
  padding: 0 0 0 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.tool-input-suffix {
  padding: 0 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.tool-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: Titillium Web, sans-serif;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  -moz-appearance: textfield;
}

.tool-input.no-prefix {
  padding-left: 0.75rem;
}

.tool-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.tool-input::-webkit-outer-spin-button,
.tool-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Formula Row ─────────────────────────────────────────── */
.tool-formula {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.tool-formula.calculated {
  border-color: rgba(0, 175, 104, 0.25);
  background: rgba(0, 175, 104, 0.06);
}

.tool-formula_text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
}

.tool-formula_result {
  font-family: Titillium Web, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

.tool-formula_result.has-value {
  color: var(--brand-green, #00af68);
}

/* ── Total Card ──────────────────────────────────────────── */
.tool-total-card {
  background: var(--dark-blue, #02072d);
  border: 2px solid var(--brand-green, #00af68);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.tool-total-card_label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.tool-total-card_amount {
  font-family: Titillium Web, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.tool-total-card_amount.has-value {
  color: var(--brand-green, #00af68);
}

.tool-total-card_sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.tool-total-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.tool-total-breakdown_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tool-total-breakdown_name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
}

.tool-total-breakdown_amount {
  font-family: Titillium Web, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

.tool-total-breakdown_amount.has-value {
  color: #fff;
}

@media screen and (max-width: 479px) {
  .tool-total-card_amount {
    font-size: 2rem;
  }
  .tool-total-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Interpretation Cards ────────────────────────────────── */
.tool-interp-section {
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.tool-interp-title {
  grid-column: 1 / -1;
}

@media screen and (max-width: 991px) {
  .tool-interp-section {
    grid-template-columns: 1fr;
  }
}

.tool-interp-title {
  font-family: Titillium Web, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.tool-interp-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 0;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.tool-interp-card.warn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(224, 123, 57, 0.25);
}

.tool-interp-card.alert {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(192, 57, 43, 0.25);
}

.tool-interp-card.critical {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(192, 57, 43, 0.25);
}

.tool-interp-card.warn.active {
  background: rgba(224, 123, 57, 0.1);
  border-color: rgba(224, 123, 57, 0.3);
  border-left: 3px solid #e07b39;
}

.tool-interp-card.alert.active {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.3);
  border-left: 3px solid #c0392b;
}

.tool-interp-card.critical.active {
  background: rgba(192, 57, 43, 0.12);
  border-color: rgba(192, 57, 43, 0.4);
  border-left: 3px solid #c0392b;
}

.tool-interp-badge {
  display: none;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

.tool-interp-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

.tool-interp-badge.is-active {
  display: none;
}

.tool-interp-badge.is-inactive {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

.tool-interp-card.active .tool-interp-badge.is-active {
  display: inline-block;
}

.tool-interp-card.active .tool-interp-badge.is-inactive {
  display: none;
}

.tool-interp-card.warn .tool-interp-badge.is-active {
  background: rgba(224, 123, 57, 0.2);
  color: #f0a060;
}

.tool-interp-card.alert .tool-interp-badge.is-active,
.tool-interp-card.critical .tool-interp-badge.is-active {
  background: rgba(192, 57, 43, 0.2);
  color: #e06055;
}

.tool-interp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.tool-interp-card.warn .tool-interp-dot {
  background: #e07b39;
}

.tool-interp-card.alert .tool-interp-dot {
  background: #c0392b;
}

.tool-interp-card.critical .tool-interp-dot {
  background: #c0392b;
}

.tool-interp-threshold {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.tool-interp-card.active .tool-interp-threshold {
  color: #fff;
}

.tool-interp-text {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.55;
  transition: color 0.3s ease;
}

.tool-interp-card.active .tool-interp-text {
  color: rgba(255, 255, 255, 0.65);
}

/* ── CTA Card ────────────────────────────────────────────── */
.tool-cta-card {
  background: rgba(0, 175, 104, 0.08);
  border: 1px solid rgba(0, 175, 104, 0.25);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}

.tool-cta-heading {
  font-family: Titillium Web, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tool-cta-body {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.tool-cta-buttons {
  display: flex;
  justify-content: center;
}

.tool-cta-card .button,
.tool-cta-person .button {
  justify-content: center !important;
  align-self: center !important;
}

.tool-cta-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.tool-cta-person_detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.tool-cta-person_photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 175, 104, 0.3);
}

.tool-cta-person_name {
  font-family: Titillium Web, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.tool-cta-person_title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Four-Gate Questionnaire ─────────────────────────────── */
.tool-gates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media screen and (max-width: 991px) {
  .tool-gates {
    grid-template-columns: 1fr;
  }
}

.tool-gate {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.tool-gate.complete {
  border-color: var(--brand-green, #00af68);
}

.tool-gate_top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tool-gate_num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dark-blue, #02072d);
  background: var(--brand-green, #00af68);
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.tool-gate_title {
  font-family: Titillium Web, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.tool-gate_checks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.tool-gate_check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  text-align: left;
}

.tool-gate_check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.tool-gate_check input[type="checkbox"]:checked {
  background: var(--brand-green, #00af68);
  border-color: var(--brand-green, #00af68);
}

.tool-gate_check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid var(--dark-blue, #02072d);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tool-gate_check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand-green, #00af68);
  outline-offset: 2px;
}

.tool-gate_verdict {
  margin-top: 0.5rem;
}

.tool-gate_verdict-inner {
  font-size: 0.825rem;
  line-height: 1.55;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.tool-gate_verdict-inner.warn {
  background: rgba(224, 123, 57, 0.1);
  border: 1px solid rgba(224, 123, 57, 0.2);
  color: #f0a060;
}

.tool-gate_verdict-inner.info {
  background: rgba(45, 98, 255, 0.08);
  border: 1px solid rgba(45, 98, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

/* ── Gate Scorecard ───────────────────────────────────────── */
.tool-scorecard {
  margin-bottom: 1.5rem;
}

.tool-scorecard_heading {
  font-family: Titillium Web, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.tool-scorecard_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tool-scorecard_item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.tool-scorecard_item.pass {
  border-color: rgba(0, 175, 104, 0.35);
}

.tool-scorecard_item.caution {
  border-color: rgba(224, 123, 57, 0.35);
}

.tool-scorecard_item.stop {
  border-color: rgba(192, 57, 43, 0.35);
}

.tool-scorecard_item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tool-scorecard_gate-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tool-scorecard_badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

.tool-scorecard_badge.pass {
  background: rgba(0, 175, 104, 0.15);
  color: var(--brand-green, #00af68);
}

.tool-scorecard_badge.caution {
  background: rgba(224, 123, 57, 0.15);
  color: #f0a060;
}

.tool-scorecard_badge.stop {
  background: rgba(192, 57, 43, 0.15);
  color: #e06055;
}

.tool-scorecard_badge.not-evaluated {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

.tool-scorecard_gate-title {
  font-family: Titillium Web, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.tool-scorecard_summary {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

@media screen and (max-width: 767px) {
  .tool-scorecard_grid {
    grid-template-columns: 1fr;
  }
}

/* ── Recommendation Card ─────────────────────────────────── */
.tool-recommendation {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.tool-recommendation.pass {
  background: rgba(0, 175, 104, 0.08);
  border: 1px solid rgba(0, 175, 104, 0.25);
}

.tool-recommendation.caution {
  background: rgba(224, 123, 57, 0.08);
  border: 1px solid rgba(224, 123, 57, 0.25);
}

.tool-recommendation.stop {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.tool-recommendation_icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tool-recommendation_headline {
  font-family: Titillium Web, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tool-recommendation_body {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ── Calendly Modal ──────────────────────────────────────── */
.calendly-modal_backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.calendly-modal_container {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 80vh;
  max-height: 750px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.calendly-modal_close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 10;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #666;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.calendly-modal_close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.calendly-modal_iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 479px) {
  .calendly-modal_backdrop {
    padding: 0;
  }
  .calendly-modal_container {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ── Gate Progress Summary ───────────────────────────────── */
.tool-gate-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.tool-gate-summary_label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.tool-gate-summary_count {
  font-family: Titillium Web, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green, #00af68);
  margin-bottom: 0.75rem;
}

.tool-gate-summary_bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  max-width: 16rem;
  margin: 0 auto;
}

.tool-gate-summary_fill {
  height: 100%;
  background: var(--brand-green, #00af68);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ── Tool Chooser Page ───────────────────────────────────── */
.tool-chooser_topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.tool-topbar_left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tool-topbar_back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none !important;
  transition: color 0.15s ease;
  border: none;
}

.tool-topbar_back:hover {
  color: var(--brand-green, #00af68);
}

.tool-breadcrumb {
  margin-bottom: 1.5rem;
}

.section_hero:has(.tool-chooser_topbar) {
  padding-top: 0 !important;
  margin-top: -4rem;
}

@media screen and (max-width: 991px) {
  .section_hero:has(.tool-chooser_topbar) {
    margin-top: -4rem;
  }
}

@media screen and (max-width: 767px) {
  .section_hero:has(.tool-chooser_topbar) {
    margin-top: -5rem;
  }
}

.tool-chooser_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tool-chooser_card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-lighter-blue, #3c405b);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tool-chooser_card:hover {
  border-color: var(--brand-green, #00af68);
  background: rgba(0, 175, 104, 0.04);
}

.tool-chooser_icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.tool-chooser_title {
  font-family: Titillium Web, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tool-chooser_desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.tool-chooser_details {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--brand-green, #00af68);
  margin-bottom: 1.25rem;
}

.tool-chooser_arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green, #00af68);
  transition: gap 0.2s ease;
}

.tool-chooser_card:hover .tool-chooser_arrow {
  gap: 0.75rem;
}

@media screen and (max-width: 767px) {
  .tool-chooser_grid {
    grid-template-columns: 1fr;
  }
}
