.tool-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 90, 58, 0.08), transparent 28rem),
    var(--bg);
}

.tool-page .site-header {
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.tool-page .nav-links > a.active {
  color: var(--text);
}

.tool-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 92px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 90, 58, 0.18), transparent 27rem),
    linear-gradient(180deg, rgba(23, 25, 31, 0.82), rgba(14, 15, 18, 0.28));
}

.tool-hero::after {
  position: absolute;
  right: 10%;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(110, 155, 255, 0.1);
  content: "";
  filter: blur(70px);
  pointer-events: none;
}

.tool-hero-glow {
  position: absolute;
  top: 90px;
  right: 15%;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 90, 58, 0.025),
    0 0 0 140px rgba(255, 90, 58, 0.018);
}

.tool-hero-inner {
  position: relative;
  z-index: 1;
}

.tool-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 70px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 800;
}

.tool-back-link:hover {
  color: var(--text);
}

.tool-hero h1 {
  max-width: 800px;
  margin: 22px 0 26px;
  font-size: clamp(58px, 8.4vw, 116px);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.tool-hero h1 em {
  color: var(--orange);
  font-style: italic;
}

.tool-lede {
  max-width: 660px;
  margin: 0;
  color: var(--muted-light);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.tool-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.tool-proof span {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-workspace {
  padding: 76px 0 124px;
}

.tool-boundary {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 15px 18px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 90, 58, 0.075);
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.55;
}

.planner-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
}

.planner-form,
.planner-result {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 33, 40, 0.92), rgba(23, 25, 31, 0.78));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading h2 {
  max-width: 500px;
  margin: 16px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.form-heading > p:not(.section-index) {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.field,
.range-field {
  margin-top: 24px;
}

.field label,
.range-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 800;
}

.field label span,
.range-field label span {
  color: var(--muted-light);
}

.field label > span {
  color: #737981;
  font-size: 10px;
  font-weight: 700;
}

.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: rgba(8, 9, 11, 0.74);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field select {
  min-height: 52px;
  padding: 0 14px;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.5;
}

.field select:focus,
.field textarea:focus {
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(125, 183, 255, 0.12);
}

.field small {
  display: block;
  margin-top: 8px;
  color: #737981;
  font-size: 11px;
  line-height: 1.45;
}

.range-field label output {
  min-width: 31px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 90, 58, 0.11);
  color: var(--orange-soft);
  font-size: 12px;
  text-align: center;
}

.range-field input {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #666c74;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.planner-submit {
  width: 100%;
  margin-top: 32px;
}

.planner-submit svg,
.result-actions svg,
.tool-cta svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.planner-privacy {
  margin: 13px 0 0;
  color: #737981;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.planner-result[hidden] {
  display: none;
}

.planner-result {
  position: sticky;
  top: 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 58, 0.15), transparent 21rem),
    linear-gradient(145deg, rgba(35, 38, 47, 0.96), rgba(23, 25, 31, 0.82));
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.result-sport {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.result-lead {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  margin: 52px 0 36px;
}

.result-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 90, 58, 0.3);
  border-radius: 20px;
  background: rgba(255, 90, 58, 0.1);
  color: var(--orange);
  font-size: 27px;
  font-weight: 700;
}

.result-lead h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.result-lead p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.55;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 9, 11, 0.36);
}

.signal i {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 90, 58, 0.46);
}

.signal strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
}

.signal span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.prompt-block {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.prompt-block h3 {
  margin: 14px 0 20px;
  color: var(--text);
  font-size: 26px;
  letter-spacing: -0.045em;
}

.prompt-block ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: prompts;
}

.prompt-block li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.5;
  counter-increment: prompts;
}

.prompt-block li::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange-soft);
  content: counter(prompts, decimal-leading-zero);
  font-size: 10px;
  font-weight: 900;
}

.notes-preview {
  margin-top: 28px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(110, 155, 255, 0.08);
}

.notes-preview p:last-child {
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-light);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.result-actions .button {
  min-height: 50px;
  padding-inline: 17px;
  font-size: 13px;
}

.tool-how {
  padding: 108px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.tool-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 90px;
  align-items: end;
}

.tool-how h2,
.tool-faq h2,
.tool-cta h2 {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-transform: uppercase;
}

.tool-how h2 em,
.tool-faq h2 em,
.tool-cta h2 em {
  color: var(--orange);
  font-style: italic;
}

.tool-how-copy p {
  margin: 0 0 24px;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.6;
}

.tool-faq {
  padding: 108px 0 124px;
  border-top: 1px solid var(--line);
}

.tool-faq .section-heading {
  margin-bottom: 54px;
}

.tool-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-faq details {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 25, 31, 0.7);
}

.tool-faq summary {
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.tool-faq details p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tool-cta {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 90, 58, 0.16), transparent 32rem),
    var(--bg);
  text-align: center;
}

.tool-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.tool-cta h2 {
  margin: 20px 0 24px;
}

.tool-cta p:not(.section-index) {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 900px) {
  .planner-grid,
  .tool-how-grid {
    grid-template-columns: 1fr;
  }

  .planner-result {
    position: static;
  }

  .tool-how-grid {
    gap: 34px;
  }

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

  .tool-faq details {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .tool-hero {
    padding: 118px 0 72px;
  }

  .tool-back-link {
    margin-bottom: 54px;
  }

  .tool-hero h1 {
    font-size: clamp(54px, 16vw, 80px);
  }

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

  .tool-workspace,
  .tool-faq {
    padding: 72px 0 86px;
  }

  .planner-form,
  .planner-result {
    padding: 24px;
    border-radius: 24px;
  }

  .result-lead {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    margin-top: 40px;
  }

  .result-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 22px;
  }

  .result-lead h2 {
    font-size: 31px;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .tool-how {
    padding: 78px 0;
  }

  .tool-how h2,
  .tool-faq h2,
  .tool-cta h2 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .tool-cta {
    padding: 100px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-page *,
  .tool-page *::before,
  .tool-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
