:root {
  --tool-black: #070807;
  --tool-panel: rgba(255, 255, 255, 0.075);
  --tool-line: rgba(184, 255, 44, 0.22);
  --tool-lime: #b8ff2c;
  --tool-blue: #7dd3fc;
  --tool-white: #f7f7f2;
  --tool-muted: rgba(255, 255, 255, 0.68);
}

body.tool-page {
  background:
    radial-gradient(circle at 15% 12%, rgba(184, 255, 44, 0.24), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(125, 211, 252, 0.18), transparent 25rem),
    linear-gradient(180deg, #070807 0%, #10120f 100%);
  color: var(--tool-white);
  overflow-x: hidden;
}

.tool-page-shell {
  min-height: 100vh;
  position: relative;
}

.tool-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  opacity: 0.7;
}

.tool-page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 7, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.tool-page-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tool-page-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.tool-page-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tool-lime);
  color: #0f0f10;
  display: grid;
  place-items: center;
}

.tool-page-nav-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.tool-page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tool-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--tool-line);
  border-radius: 999px;
  background: rgba(184, 255, 44, 0.08);
  color: var(--tool-lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tool-page-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tool-lime);
  box-shadow: 0 0 0 0 rgba(184, 255, 44, 0.7);
  animation: toolPulse 1.7s infinite;
}

@keyframes toolPulse {
  70% { box-shadow: 0 0 0 11px rgba(184, 255, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 255, 44, 0); }
}

.tool-page-hero h1 {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 1.4rem;
}

.tool-page-hero h1 span {
  color: var(--tool-lime);
  text-shadow: 0 0 28px rgba(184, 255, 44, 0.2);
}

.tool-page-lead {
  color: var(--tool-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.tool-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-page-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.tool-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(7, 8, 7, 0.82);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(184, 255, 44, 0.04), rgba(184, 255, 44, 0.65), rgba(125, 211, 252, 0.35), rgba(184, 255, 44, 0.04));
  opacity: 0.42;
  filter: blur(22px);
  z-index: -1;
}

.tool-card-head {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.16);
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tool-chip {
  color: #0f0f10;
  background: var(--tool-lime);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
}

.tool-card-body {
  padding: 1.35rem;
}

.tool-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.tool-progress span {
  display: block;
  height: 100%;
  width: 24%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tool-lime), var(--tool-blue));
  transition: width 0.35s ease;
}

.tool-question {
  display: none;
  animation: toolRise 0.32s ease both;
}

.tool-question.active {
  display: block;
}

@keyframes toolRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-question small {
  color: var(--tool-lime);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.tool-question h2 {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 0.55rem 0 1.25rem;
}

.tool-answers {
  display: grid;
  gap: 0.8rem;
}

.tool-answer {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tool-answer:hover,
.tool-answer.selected {
  border-color: rgba(184, 255, 44, 0.75);
  background: rgba(184, 255, 44, 0.11);
  transform: translateY(-1px);
}

.tool-answer strong {
  display: block;
  font-family: "Sora", sans-serif;
  margin-bottom: 0.2rem;
}

.tool-answer span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.tool-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.tool-control-btn {
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 900;
  cursor: pointer;
}

.tool-back-btn {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.tool-next-btn {
  color: #0f0f10;
  background: var(--tool-lime);
  border: 1px solid var(--tool-lime);
}

.tool-next-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-result {
  display: none;
  animation: toolRise 0.4s ease both;
}

.tool-result.active {
  display: block;
}

.tool-result-score {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tool-score-orb {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff, var(--tool-lime) 28%, #0f0f10 72%);
  box-shadow: 0 0 44px rgba(184, 255, 44, 0.35);
  color: #0f0f10;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.tool-result h2 {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.tool-result p {
  color: rgba(255, 255, 255, 0.72);
}

.tool-priority-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.tool-priority-item {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.055);
}

.tool-priority-item b {
  display: block;
  color: #fff;
  font-family: "Sora", sans-serif;
  margin-bottom: 0.25rem;
}

.tool-lead-box {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(184, 255, 44, 0.09);
  border: 1px solid rgba(184, 255, 44, 0.22);
}

.tool-lead-box label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

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

.tool-lead-box input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 0.85rem 0.9rem;
  font: inherit;
}

.tool-lead-box button,
.tool-result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
}

.tool-lead-box button {
  width: 100%;
  border: 0;
  color: #0f0f10;
  background: var(--tool-lime);
  margin-top: 0.65rem;
  cursor: pointer;
}

.tool-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.tool-result-actions a:first-child {
  color: #0f0f10;
  background: var(--tool-lime);
}

.tool-result-actions a:last-child {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.tool-proof {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.tool-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-proof-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  padding: 1.2rem;
}

.tool-proof-card b {
  display: block;
  color: #fff;
  font-family: "Sora", sans-serif;
  margin-bottom: 0.35rem;
}

.tool-proof-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.service-tool-callout {
  padding: 2rem 0 0;
}

.service-tool-callout-box {
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: linear-gradient(135deg, rgba(184, 255, 44, 0.12), rgba(125, 211, 252, 0.08) 55%, rgba(15, 15, 16, 0.02));
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.service-tool-callout-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f0f10;
  margin-bottom: 0.55rem;
}

.service-tool-callout-copy h3 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.service-tool-callout-copy p {
  color: #4b4b4b;
  margin: 0;
}

.service-tool-callout-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-radius: 999px;
  background: #0f0f10;
  color: var(--tool-lime);
  padding: 0.95rem 1.3rem;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

@media (max-width: 880px) {
  .tool-page-hero,
  .tool-proof-grid,
  .tool-lead-grid,
  .service-tool-callout-box {
    grid-template-columns: 1fr;
  }

  .tool-page-hero {
    padding-top: 3rem;
  }

  .tool-result-score {
    grid-template-columns: 1fr;
  }

  .service-tool-callout-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-tool-callout-box a {
    width: 100%;
  }
}

/* Compatibility layer for generated vertical tools */
.tool-step-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tool-control-btn {
  border: 1px solid transparent;
  font: inherit;
}

.tool-control-back {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.tool-control-next {
  color: #0f0f10;
  background: var(--tool-lime);
  border-color: var(--tool-lime);
}

.tool-control-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-result-panel {
  display: none;
  animation: toolRise 0.4s ease both;
}

.tool-result-panel.active {
  display: block;
}

.tool-result-panel h2,
.tool-result-panel p {
  color: inherit;
}

.tool-result-panel h2 {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.tool-result-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.tool-result-eyebrow {
  color: var(--tool-lime);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.tool-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.tool-form-grid-single {
  grid-template-columns: 1fr;
}

.tool-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 0.85rem 0.9rem;
  font: inherit;
  box-sizing: border-box;
}

.tool-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.tool-input:focus {
  outline: none;
  border-color: rgba(184, 255, 44, 0.72);
  box-shadow: 0 0 0 3px rgba(184, 255, 44, 0.12);
}

.tool-textarea {
  min-height: 120px;
  resize: vertical;
}

.tool-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  margin-top: 0.8rem;
  color: #0f0f10;
  background: var(--tool-lime);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tool-restart-link {
  margin-top: 0.85rem;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.tool-proof-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.tool-proof-card strong {
  display: block;
  color: #fff;
  font-family: "Sora", sans-serif;
  margin-bottom: 0.35rem;
}

.tool-proof-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.service-tool-callout-wrap {
  padding: 2rem 0 0;
}

.service-tool-callout {
  border: 1px solid rgba(15, 15, 16, 0.08);
  background: linear-gradient(135deg, rgba(184, 255, 44, 0.12), rgba(125, 211, 252, 0.08) 55%, rgba(15, 15, 16, 0.02));
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.service-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f0f10;
  border: 1px solid rgba(15, 15, 16, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 1rem;
}

.service-tool-callout h2 {
  color: #0f0f10;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.08;
  margin-bottom: 0.55rem;
}

.service-tool-callout p {
  color: #4b4b4b;
  margin: 0;
  max-width: 48rem;
}

.service-tool-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  border-radius: 999px;
  background: #0f0f10;
  color: var(--tool-lime);
  padding: 0.95rem 1.3rem;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .tool-proof-strip,
  .tool-form-grid {
    grid-template-columns: 1fr;
  }

  .service-tool-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-tool-cta {
    width: 100%;
  }
}
