/* ==========================================================================
   Halo AI — Sales Tools section
   Matches the site's dark navy + electric cyan system. Self-contained: it
   does not alter any existing page or component.
   ========================================================================== */

:root {
  --t-navy:   #00050a;
  --t-panel:  #04121f;
  --t-panel2: #061a2c;
  --t-line:   rgba(74, 207, 255, 0.28);
  --t-cyan:   #3ec6ff;
  --t-cyan-b: #8ee6ff;
  --t-text:   #e8f7ff;
  --t-dim:    #9fc2d4;
  --t-red:    #d97a7a;      /* muted red — "Without Halo" */
  --t-red-bg: rgba(150, 60, 60, 0.13);
  --t-good:   #4fe0b0;      /* cyan-green — "With Halo" */
  --t-good-bg:rgba(30, 150, 130, 0.13);
  --t-gold:   #ffc65c;
  --t-gap:    12px;         /* never less than 12px between controls */
}

.tools-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;       /* no sideways scrolling, even at 320px */
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(0, 92, 160, 0.20), transparent 62%),
    var(--t-navy);
  color: var(--t-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.tools-body * { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--t-cyan);
  color: #00121f;
  font-weight: 700;
  text-decoration: none;
  transition: top 140ms ease;
}
.skip-link:focus { top: 0; }

/* visible keyboard focus everywhere */
.tools-body :focus-visible {
  outline: 3px solid var(--t-cyan-b);
  outline-offset: 2px;
}

/* ---------------- header ---------------- */

.tools-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--t-gap);
  padding: 12px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid rgba(74, 207, 255, 0.2);
  background: rgba(0, 5, 10, 0.92);
  backdrop-filter: blur(8px);
}

.tools-home,
.tools-trial {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--t-line);
  border-radius: 999px;
  color: var(--t-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.tools-trial {
  border-color: rgba(120, 226, 255, 0.85);
  background: linear-gradient(180deg, rgba(0, 108, 185, 0.55), rgba(0, 50, 95, 0.6));
  box-shadow: 0 0 18px rgba(0, 174, 255, 0.35);
}

.tools-home:hover, .tools-trial:hover { border-color: var(--t-cyan-b); }

.tools-mascot {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(0, 174, 255, 0.5);
}

/* ---------------- layout ---------------- */

.tools-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px) clamp(14px, 4vw, 40px) 60px;
}

.tools-intro { margin-bottom: clamp(26px, 5vw, 44px); }

.tools-intro .eyebrow {
  margin: 0 0 10px;
  color: var(--t-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tools-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 5.2vw, 50px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.tools-lede {
  max-width: 70ch;
  margin: 0 0 14px;
  color: #cfe6f2;
  font-size: clamp(14px, 1.6vw, 17px);
}

.tools-steps {
  display: inline-block;
  margin: 0;
  padding: 10px 16px;
  border-left: 3px solid var(--t-cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 90, 155, 0.16);
  color: var(--t-cyan-b);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
}

/* ---------------- tool cards ---------------- */

.tool-cards {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--t-line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--t-panel2), var(--t-panel));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tool-card:hover {
  border-color: rgba(120, 226, 255, 0.8);
  box-shadow: 0 0 26px rgba(0, 165, 255, 0.28);
  transform: translateY(-2px);
}

/* images are never cropped */
.tool-card-figure {
  margin: 0;
  padding: 14px 14px 0;
  background: #020c16;
}

.tool-card-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;
  border-radius: 10px;
  background: #01080f;
  object-fit: contain;
}

.tool-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--t-gap);
  padding: 16px 18px 18px;
}

.tool-card h3 {
  margin: 0;
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 700;
}

.tool-card p {
  flex: 1;
  margin: 0;
  color: var(--t-dim);
  font-size: 13.5px;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  min-height: 44px;              /* touch target */
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--t-line);
  border-radius: 10px;
  background: rgba(2, 20, 36, 0.9);
  color: var(--t-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover:not([disabled]) {
  border-color: rgba(120, 226, 255, 0.9);
  background: rgba(0, 96, 165, 0.5);
}

.btn-primary {
  border-color: rgba(120, 226, 255, 0.9);
  background: linear-gradient(180deg, rgba(0, 122, 205, 0.85), rgba(0, 62, 115, 0.9));
  box-shadow: 0 0 18px rgba(0, 174, 255, 0.32);
}

.btn-trial {
  border-color: rgba(255, 198, 92, 0.85);
  background: linear-gradient(180deg, rgba(190, 132, 30, 0.55), rgba(110, 72, 10, 0.6));
  color: #fff6e2;
}
.btn-trial:hover { background: rgba(210, 150, 40, 0.7); }

.btn-ghost { background: transparent; }

.btn[disabled],
.btn[aria-disabled="true"] {
  border-color: rgba(140, 170, 190, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #7f9aab;
  cursor: not-allowed;
  box-shadow: none;
}

/* button rows always keep 12px+ apart and never touch */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--t-gap);
  margin-top: 18px;
}
.btn-row .btn { flex: 0 1 auto; }

/* ---------------- open tool workspace ---------------- */

.tool-stage {
  margin-top: clamp(26px, 5vw, 44px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--t-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 26, 44, 0.92), rgba(3, 16, 27, 0.95));
  scroll-margin-top: 80px;
}

.stage-bar { margin-bottom: 16px; }

.tool-stage h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  scroll-margin-top: 80px;
}

.tool-stage .tool-desc {
  max-width: 70ch;
  margin: 0 0 18px;
  color: var(--t-dim);
  font-size: 14px;
}

.script-box {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--t-cyan);
  border-radius: 0 10px 10px 0;
  background: rgba(0, 90, 155, 0.14);
  color: #d9eefa;
  font-size: 14px;
  font-style: italic;
}

/* gold pulse on selection, back to blue afterwards */
.gold-pulse {
  border-color: rgba(255, 198, 92, 0.95) !important;
  box-shadow: 0 0 24px rgba(255, 190, 80, 0.65) !important;
  transition: box-shadow 260ms ease, border-color 260ms ease;
}

/* ---------------- discovery wizard ---------------- */

.wiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--t-gap);
  margin-bottom: 10px;
  color: var(--t-cyan-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.progress {
  height: 8px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(74, 207, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e8fd0, var(--t-cyan-b));
  transition: width 280ms ease;
}

.wiz-question {
  margin: 0 0 18px;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}

.answer-grid {
  display: grid;
  gap: var(--t-gap);
  grid-template-columns: repeat(2, 1fr);
}

.answer {
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--t-line);
  border-radius: 12px;
  background: rgba(2, 20, 36, 0.9);
  color: var(--t-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.answer:hover { border-color: rgba(120, 226, 255, 0.85); background: rgba(0, 90, 155, 0.4); }

.answer[aria-pressed="true"] {
  border-color: var(--t-cyan-b);
  background: rgba(0, 118, 196, 0.6);
  box-shadow: inset 0 0 22px rgba(0, 170, 255, 0.25);
}

.coach-response {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 224, 176, 0.4);
  border-radius: 12px;
  background: rgba(30, 150, 130, 0.12);
  font-size: 14px;
}

.coach-response strong { color: var(--t-good); }

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.feature-chips li {
  padding: 5px 12px;
  border: 1px solid var(--t-line);
  border-radius: 999px;
  background: rgba(0, 90, 155, 0.24);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------------- results ---------------- */

.result-grid {
  display: grid;
  gap: var(--t-gap);
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 6px;
}

.result-item {
  padding: 14px 16px;
  border: 1px solid var(--t-line);
  border-radius: 12px;
  background: rgba(2, 20, 36, 0.72);
}

.result-item dt {
  margin-bottom: 6px;
  color: var(--t-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result-item dd { margin: 0; font-size: 15px; font-weight: 600; }

.closing-q {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 198, 92, 0.45);
  border-radius: 12px;
  background: rgba(150, 110, 20, 0.14);
  font-size: clamp(15px, 1.9vw, 18px);
  font-weight: 600;
}

/* ---------------- objections ---------------- */

.obj-search {
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--t-line);
  border-radius: 10px;
  background: rgba(2, 16, 28, 0.9);
  color: var(--t-text);
  font-family: inherit;
  font-size: 15px;
}

.obj-search::placeholder { color: #6f8ea1; }

.obj-list {
  display: grid;
  gap: var(--t-gap);
  grid-template-columns: repeat(2, 1fr);
}

.obj-btn {
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--t-line);
  border-radius: 12px;
  background: rgba(2, 20, 36, 0.9);
  color: var(--t-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
}

.obj-btn:hover { border-color: rgba(120, 226, 255, 0.85); background: rgba(0, 90, 155, 0.4); }

.obj-btn[aria-pressed="true"] {
  border-color: var(--t-cyan-b);
  background: rgba(0, 118, 196, 0.6);
}

.obj-empty { margin: 10px 0; color: var(--t-dim); font-size: 14px; }

.obj-answer { margin-top: 22px; }

.block {
  margin-bottom: var(--t-gap);
  padding: 15px 17px;
  border: 1px solid var(--t-line);
  border-radius: 12px;
  background: rgba(2, 20, 36, 0.72);
}

.block h4 {
  margin: 0 0 8px;
  color: var(--t-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.block p { margin: 0; font-size: 15px; }

.block-response { border-color: rgba(120, 226, 255, 0.55); background: rgba(0, 90, 155, 0.18); }
.block-response p { font-size: 16px; font-weight: 600; }

/* ---------------- comparison ---------------- */

.cmp-head {
  display: grid;
  gap: var(--t-gap);
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--t-gap);
}

.cmp-head h3 {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.cmp-head .h-without { border: 1px solid rgba(217, 122, 122, 0.5); background: var(--t-red-bg); color: var(--t-red); }
.cmp-head .h-with    { border: 1px solid rgba(79, 224, 176, 0.5);  background: var(--t-good-bg); color: var(--t-good); }

.cmp-row {
  display: grid;
  gap: var(--t-gap);
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--t-gap);
}

.cmp-cell {
  padding: 15px 17px;
  border: 1px solid var(--t-line);
  border-radius: 12px;
}

.cmp-cell h4 { margin: 0 0 7px; font-size: 15px; font-weight: 700; }
.cmp-cell p  { margin: 0; color: #cfe6f2; font-size: 14px; }

.cmp-without { border-color: rgba(217, 122, 122, 0.42); background: var(--t-red-bg); }
.cmp-without h4 { color: var(--t-red); }

.cmp-with { border-color: rgba(79, 224, 176, 0.42); background: var(--t-good-bg); }
.cmp-with h4 { color: var(--t-good); }

.cmp-tag {
  display: none;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cmp-bottom {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px solid rgba(120, 226, 255, 0.5);
  border-radius: 14px;
  background: rgba(0, 90, 155, 0.18);
  text-align: center;
}

.cmp-bottom h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
}

.cmp-bottom p { margin: 0 0 6px; color: #d9eefa; font-size: 15px; }

/* ---------------- footer + toast ---------------- */

.tools-footer {
  padding: 26px clamp(14px, 4vw, 40px) 40px;
  border-top: 1px solid rgba(74, 207, 255, 0.16);
  color: #6d8b9d;
  font-size: 12px;
  text-align: center;
}

.tools-footer p { margin: 0 0 8px; }
.tools-note { max-width: 62ch; margin: 0 auto; font-size: 11.5px; line-height: 1.6; }

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 60;
  padding: 12px 22px;
  border: 1px solid rgba(120, 226, 255, 0.8);
  border-radius: 999px;
  background: rgba(0, 30, 55, 0.97);
  color: var(--t-text);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  .tool-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .tool-cards,
  .answer-grid,
  .obj-list,
  .result-grid { grid-template-columns: 1fr; }

  /* stack each problem directly above its matching Halo capability */
  .cmp-head { display: none; }
  .cmp-row  { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
  .cmp-tag  { display: block; }
  .cmp-without .cmp-tag { color: var(--t-red); }
  .cmp-with .cmp-tag    { color: var(--t-good); }

  .btn-row .btn { flex: 1 1 100%; }
  .tools-mascot { width: 36px; height: 36px; }
  .tools-home, .tools-trial { padding: 0 12px; font-size: 12px; }
}

@media (max-width: 360px) {
  .tools-main { padding-left: 12px; padding-right: 12px; }
  .tools-header { padding-left: 12px; padding-right: 12px; }
  .btn { font-size: 13.5px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tools-body *,
  .tools-body *::before,
  .tools-body *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .progress-fill { transition: none; }
}

/* ================= PRICING PLAN COACH ================= */

.card-label {
  margin: 0 0 2px !important;
  color: var(--t-gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plan-grid {
  display: grid;
  gap: var(--t-gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 18px 0 6px;
}

.plan-card {
  padding: 20px;
  border: 1px solid var(--t-line);
  border-radius: 14px;
  background: rgba(2, 20, 36, 0.8);
}

.plan-primary {
  border-color: rgba(120, 226, 255, 0.9);
  background: linear-gradient(180deg, rgba(0, 88, 150, 0.34), rgba(2, 20, 36, 0.9));
  box-shadow: 0 0 26px rgba(0, 174, 255, 0.3);
}

.plan-growth {
  border-color: rgba(255, 198, 92, 0.6);
  background: linear-gradient(180deg, rgba(120, 88, 20, 0.24), rgba(2, 20, 36, 0.9));
}

.plan-kind {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.plan-primary .plan-kind { color: var(--t-cyan-b); }
.plan-growth  .plan-kind { color: var(--t-gold); }

.plan-name  { margin: 0 0 4px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 700; }
.plan-price { margin: 0 0 14px; font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.plan-primary .plan-price { color: var(--t-cyan-b); }
.plan-growth  .plan-price { color: var(--t-gold); }

.plan-specs {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(120, 190, 220, 0.22);
  list-style: none;
}
.plan-specs li { color: var(--t-text); font-size: 14px; font-weight: 600; }

.plan-features { margin: 0; padding-left: 18px; }
.plan-features li { margin-bottom: 5px; color: #cfe6f2; font-size: 13.5px; }

.plan-disclaimer {
  max-width: 78ch;
  margin: 20px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(140, 175, 195, 0.28);
  border-radius: 10px;
  color: #9fc2d4;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .plan-grid { grid-template-columns: 1fr; }
}
