.tool-page {
  background: #FFF8F3;
  color: #262626;
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.tool-shell {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.tool-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 2vw, 24px) 0 clamp(20px, 3vw, 28px);
  color: #8A817A;
  font-size: 14px;
  font-weight: 600;
}

.tool-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.tool-breadcrumbs a:hover {
  color: #D9541C;
  text-decoration: underline;
}

.tool-breadcrumbs a:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 3px;
  border-radius: 2px;
}

.tool-breadcrumbs [aria-current='page'] {
  color: #262626;
  font-weight: 700;
}

.nav-link-active {
  color: #FF6B35;
  font-weight: 800;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.85fr);
  align-items: start;
  gap: clamp(28px, 4.5vw, 56px);
}

.tool-hero__intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.tool-hero__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6F6760;
  font-size: 15px;
  font-weight: 700;
}

.tool-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.tool-hero__description {
  max-width: 580px;
  color: #5F5A55;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

.tool-hero__short-verdict {
  max-width: 580px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}

.tool-hero__short-verdict strong {
  color: #D9541C;
  font-weight: 800;
}

.tool-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 4px;
}

.tool-button {
  display: inline-flex;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.tool-button:focus-visible,
.tool-card:focus-visible,
.tool-article-card:focus-visible,
.tool-toc a:focus-visible,
.tool-related-link:focus-visible,
.tool-official-link:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 3px;
}

.tool-button--primary {
  background: #FF6B35;
  color: #fff;
  padding: 16px 28px;
}

.tool-button--primary:hover {
  background: #F25A22;
}

.tool-button--secondary {
  border: 1.5px solid #EADFD5;
  background: #fff;
  color: #262626;
}

.tool-button--secondary:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

.tool-official-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #5F5A55;
  font-size: 15px;
  font-weight: 700;
  text-decoration-color: #D8CCC1;
  text-underline-offset: 4px;
}

.tool-official-link:hover {
  color: #262626;
}

.tool-specs,
.tool-info-panel {
  min-width: 0;
  border: 1.5px solid #EFE4DA;
  border-radius: 24px;
  background: #fff;
}

.tool-specs {
  padding: 8px clamp(18px, 2.4vw, 26px) 10px;
}

.tool-specs h2 {
  padding: 14px 0 12px;
  color: #8A817A;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.tool-specs dl {
  margin: 0;
}

.tool-specs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1.5px dashed #EADFD5;
  padding: 14px 0;
}

.tool-specs__row dt {
  color: #6F6760;
  font-size: 14px;
  font-weight: 700;
}

.tool-specs__row dd {
  margin: 0;
  color: #262626;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.tool-fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin-top: clamp(20px, 2.5vw, 32px);
}

.tool-fit-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 28px);
}

.tool-fit-panel h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.tool-fit-panel ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.tool-fit-panel li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #262626;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.tool-fit-panel li::before {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  content: '+';
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.tool-fit-panel--positive {
  background: #E8F5EE;
}

.tool-fit-panel--positive h2 {
  color: #1E6B47;
}

.tool-fit-panel--positive li::before {
  background: #2E9E6A;
  color: #fff;
}

.tool-fit-panel--caution {
  background: #FFF1E8;
}

.tool-fit-panel--caution h2 {
  color: #B8441A;
}

.tool-fit-panel--caution li::before {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border: 1.5px solid #F0A27E;
  color: #D9541C;
  content: '−';
}

.tool-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  margin-top: clamp(40px, 6vw, 72px);
}

.tool-toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-toc__title {
  padding: 0 0 10px;
  color: #8A817A;
  font-size: 13px;
  font-weight: 800;
}

.tool-toc nav {
  display: flex;
  flex-direction: column;
}

.tool-toc a {
  border-top: 1.5px dashed #EADFD5;
  padding: 8px 0;
  color: #4A433E;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease;
}

.tool-toc a:hover {
  color: #FF6B35;
}

.tool-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: clamp(56px, 7vw, 88px);
}

.tool-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  scroll-margin-top: 104px;
}

.tool-section h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.tool-section__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.tool-count {
  color: #8A817A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
}

.tool-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.tool-article-card {
  display: flex;
  min-height: 100%;
  box-sizing: border-box;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid #EFE4DA;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  color: #262626;
  text-decoration: none;
  transition: border-color 150ms ease;
}

.tool-article-card:hover {
  border-color: #FF6B35;
}

.tool-article-card__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.tool-article-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: pretty;
}

.tool-article-card__description {
  color: #6F6760;
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.tool-card__arrow {
  flex: 0 0 auto;
  color: #FF6B35;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.tool-scenarios {
  display: flex;
  flex-direction: column;
  border-bottom: 1.5px dashed #EADFD5;
}

.tool-scenario {
  display: flex;
  align-items: baseline;
  gap: 8px 24px;
  border-top: 1.5px dashed #EADFD5;
  padding: 18px 0;
}

.tool-scenario__copy,
.tool-prompt {
  min-width: 0;
  flex: 1 1 280px;
}

.tool-scenario__copy h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.tool-scenario__copy p {
  color: #5F5A55;
  font-size: 15px;
  line-height: 1.5;
}

.tool-prompt {
  border: 1.5px solid #F1E8E0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #4A433E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tool-prompt span {
  color: #FF6B35;
  font-weight: 600;
}

.tool-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.tool-info-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
}

.tool-info-panel h2 {
  color: #8A817A;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: normal;
}

.tool-difficulty-word {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tool-difficulty-word--easy {
  color: #1E6B47;
}

.tool-difficulty-word--medium {
  color: #7A5200;
}

.tool-difficulty-word--hard {
  color: #B8441A;
}

.tool-info-panel__description {
  color: #5F5A55;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.tool-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.tool-price strong {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tool-price span {
  color: #6F6760;
  font-size: 18px;
  font-weight: 700;
}

.tool-related-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  color: #FF6B35;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.tool-related-link:hover {
  color: #D9541C;
}

.tool-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  list-style: none;
}

.tool-step {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid #EFE4DA;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.tool-step__number {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: #FF6B35;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.tool-alternative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
  gap: 12px;
}

.tool-card {
  box-sizing: border-box;
  color: #262626;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.tool-card:hover {
  border-color: #FF6B35;
}

.tool-card--full {
  display: flex;
  height: 100%;
  min-height: 220px;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid #EFE4DA;
  border-radius: 22px;
  padding: 20px 22px;
  background: #fff;
}

.tool-card--full:hover {
  box-shadow: 0 6px 0 #FFE2D2;
}

.tool-card--full:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 3px;
}

.tool-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-card__identity,
.tool-card__compact-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.tool-card__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.tool-card__type {
  color: #8A817A;
  font-size: 13px;
  font-weight: 700;
}

.tool-card__choose {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tool-card__eyebrow {
  color: #D9541C;
  font-size: 13px;
  font-weight: 800;
}

.tool-card__choose-text {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-wrap: pretty;
}

.tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1.5px dashed #EADFD5;
  padding-top: 14px;
}

.tool-difficulty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.tool-difficulty--easy {
  background: #E8F5EE;
  color: #1E6B47;
}

.tool-difficulty--medium {
  background: #FFF3D9;
  color: #7A5200;
}

.tool-difficulty--hard {
  background: #FFE7DA;
  color: #B8441A;
}

.tool-card__more {
  color: #FF6B35;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.tool-card--compact {
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #EFE4DA;
  border-radius: 20px;
  padding: 16px 18px;
  background: #fff;
}

.tool-card__compact-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.tool-card__reason {
  color: #5F5A55;
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.tool-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
  border: 2px solid #FF7A45;
  border-radius: 28px;
  padding: clamp(22px, 3.5vw, 36px);
  background: #FFFCF9;
}

.tool-verdict__fox {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.tool-verdict__body {
  display: flex;
  min-width: 0;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 20px;
}

.tool-verdict__text {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.55;
  text-wrap: pretty;
}

.tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}

.tool-chip-row > span:first-child {
  margin-right: 4px;
}

.tool-chip {
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 800;
}

.tool-chip--positive {
  background: #E8F5EE;
  color: #1E6B47;
}

.tool-chip--caution {
  background: #FFE7DA;
  color: #B8441A;
}

.tool-logo {
  position: relative;
  display: inline-grid;
  width: var(--tool-logo-size, 44px);
  height: var(--tool-logo-size, 44px);
  flex: 0 0 var(--tool-logo-size, 44px);
  place-items: center;
  overflow: hidden;
  border: 1.5px solid #EFE4DA;
  border-radius: 29%;
  background: #fff;
}

.tool-logo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 22%;
  background: #fff;
  object-fit: contain;
}

.tool-logo__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--tool-logo-fallback, #E8DED5);
  color: #262626;
  font-size: calc(var(--tool-logo-size, 44px) * 0.34);
  font-weight: 900;
  line-height: 1;
}

.tool-logo__fallback[hidden] {
  display: none;
}

.tool-site-footer {
  padding: 0 clamp(20px, 4vw, 40px) clamp(24px, 4vw, 48px);
  background: #FFF8F3;
}

.tool-footer-cta {
  max-width: 1120px;
  margin: 0 auto;
}

.tool-page section {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 959px) {
  .tool-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-specs {
    width: 100%;
    box-sizing: border-box;
  }

  .tool-layout {
    display: block;
  }

  .tool-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .tool-breadcrumbs {
    padding-top: 16px;
  }

  .tool-hero__identity {
    gap: 10px;
    font-size: 14px;
  }

  .tool-hero__actions {
    width: 100%;
    align-items: stretch;
  }

  .tool-button--primary {
    width: 100%;
  }

  .tool-official-link {
    justify-content: center;
  }

  .tool-fit-grid,
  .tool-info-grid,
  .tool-article-grid,
  .tool-steps,
  .tool-alternative-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-scenario {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-scenario__copy,
  .tool-prompt {
    flex: 0 1 auto;
  }

  .tool-prompt {
    width: 100%;
    box-sizing: border-box;
  }

  .tool-card--full {
    min-height: 0;
  }

  .tool-footer-cta {
    padding: 32px 20px;
  }
}
