.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;
}

.tools-page {
  background: #f7f9fc;
  color: #142033;
  overflow: visible;
}

.tools-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 86% 12%, rgba(52, 126, 238, .18), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 56%, #f1f7f3 100%);
}

.tools-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(20, 115, 230, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(20, 115, 230, .035), 0 0 0 108px rgba(20, 115, 230, .025);
}

.tools-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr);
  gap: 70px;
  align-items: center;
}

.tools-hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.tools-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #53647c;
  font-size: 18px;
  line-height: 1.8;
}

.tools-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 690px;
  margin-top: 30px;
  padding: 0 16px 0 52px;
  background: #fff;
  border: 1px solid rgba(43, 69, 105, .12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(31, 66, 114, .1);
}

.tools-search-icon {
  position: absolute;
  left: 21px;
  width: 18px;
  height: 18px;
  border: 2px solid #51677f;
  border-radius: 50%;
}

.tools-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: #51677f;
  transform: rotate(45deg);
  border-radius: 2px;
}

.tools-search-wrap input {
  flex: 1;
  min-width: 0;
  height: 62px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17263b;
  font: inherit;
  font-size: 16px;
}

.tools-search-wrap input::placeholder { color: #8b98a9; }

.tools-search-wrap button {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #61758e;
  cursor: pointer;
}

.tools-search-wrap.has-value button { display: block; }

.tools-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  color: #6b7b90;
  font-size: 14px;
}

.tools-hero-meta strong { color: #1473e6; }

.tools-hero-note {
  padding: 30px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(31, 66, 114, .1);
  backdrop-filter: blur(12px);
}

.tools-note-badge,
.tools-service-label {
  display: inline-flex;
  padding: 6px 10px;
  color: #1465c0;
  background: #e8f2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tools-hero-note h2 {
  margin: 16px 0;
  font-size: 25px;
  line-height: 1.35;
}

.tools-hero-note ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #53647c;
}

.tools-hero-note li { display: flex; align-items: center; gap: 10px; }
.tools-hero-note li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: #19a974;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.tools-filter-bar {
  display: none;
  position: sticky;
  z-index: 19;
  top: 76px;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #e5ebf2;
  box-shadow: 0 10px 28px rgba(20, 42, 76, .05);
  backdrop-filter: blur(12px);
}

.tools-mobile-controls {
  display: flex;
  min-width: 0;
  align-items: center;
}

.tools-filter-scroll {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  padding: 15px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tools-filter-scroll::-webkit-scrollbar { display: none; }

.tools-mobile-search { display: none; }

.tool-filter {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #dfe6ef;
  border-radius: 999px;
  background: #fff;
  color: #53647c;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.tool-filter:hover { color: #1473e6; border-color: #91bdf1; }
.tool-filter.is-active { color: #fff; background: #1473e6; border-color: #1473e6; box-shadow: 0 7px 18px rgba(20, 115, 230, .22); }

.tools-section { padding: 74px 0; }
.tools-featured-section { background: #fff; }
.tools-all-section { padding-top: 46px; background: #f7f9fc; }
#allTools { scroll-margin-top: 90px; }

.tools-directory-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.tools-directory-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.tools-sidebar-sticky {
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(24, 47, 79, .055);
}

.tools-sidebar-title {
  margin: 0 0 12px;
  padding: 0 8px 12px;
  color: #26364b;
  border-bottom: 1px solid #edf1f5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.tools-sidebar-nav {
  display: grid;
  gap: 4px;
}

.tools-sidebar-link {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  color: #5b6b80;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.tools-sidebar-link:first-child { grid-template-columns: minmax(0, 1fr) auto; }

.tools-sidebar-link i {
  width: 7px;
  height: 7px;
  background: var(--tool-accent, #1473e6);
  border-radius: 50%;
}

.tools-sidebar-link span { font-size: 14px; font-weight: 600; }
.tools-sidebar-link em { color: #9aa6b5; font-size: 11px; font-style: normal; }
.tools-sidebar-link:hover { color: #1473e6; background: #f3f7fc; }
.tools-sidebar-link.is-active { color: #146acb; background: #eaf3ff; }
.tools-sidebar-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #1473e6;
  border-radius: 0 3px 3px 0;
}

.tools-sidebar-tip {
  margin: 14px 6px 0;
  padding-top: 13px;
  color: #96a2b1;
  border-top: 1px solid #edf1f5;
  font-size: 11px;
  line-height: 1.6;
}

.tools-directory-content { min-width: 0; }

.tools-directory-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

.tools-directory-toolbar .tools-search-wrap {
  width: min(100%, 330px);
  max-width: 330px;
  margin-top: 0;
  background: rgba(255, 255, 255, .72);
  border-color: #e4e9ef;
  border-radius: 9px;
  box-shadow: none;
  opacity: .78;
  transition: opacity .18s ease, border-color .18s ease;
}

.tools-directory-toolbar .tools-search-wrap:focus-within { opacity: 1; border-color: #b8cce3; }
.tools-directory-toolbar .tools-search-wrap input { height: 42px; font-size: 13px; }

.tool-category-section {
  scroll-margin-top: 100px;
  padding: 0;
  margin-bottom: 34px;
}

.tool-category-section:last-child { margin-bottom: 0; }
.tool-category-section[hidden] { display: none; }

.tool-category-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e9f0;
}

.tool-category-title-line { display: flex; min-width: 0; align-items: center; gap: 9px; }
.tool-category-title-line h2 { flex: 0 0 auto; margin: 0; color: #17263b; font-size: 18px; letter-spacing: -.01em; }
.tool-category-title-line span { padding: 3px 7px; color: #718096; background: #edf2f7; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.tool-category-head p { min-width: 0; margin: 0; overflow: hidden; color: #8995a5; font-size: 12px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }

.tools-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tools-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.tools-section-head h2 { margin: 7px 0 0; font-size: 34px; letter-spacing: -.025em; }
.tools-section-head > p { max-width: 500px; margin: 0; color: #718096; line-height: 1.7; text-align: right; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 0;
  padding: 16px;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(24, 47, 79, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #bfd4ee;
  box-shadow: 0 16px 38px rgba(24, 47, 79, .1);
}

.tool-card[hidden] { display: none; }
.tool-card-top { display: flex; gap: 10px; align-items: center; }

.tool-icon {
  position: relative;
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--tool-accent, #1473e6);
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.tool-icon-fallback { line-height: 1; }

.tool-icon img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  background: #fff;
}

.tool-card-heading { min-width: 0; }
.tool-name-line { display: flex; align-items: center; gap: 7px; }
.tool-name-line h3 { overflow: hidden; margin: 0; color: #152238; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.tool-category-label { display: block; margin-top: 3px; color: #8b98a9; font-size: 11px; }
.tool-sponsored { padding: 2px 5px; color: #946200; background: #fff4d8; border-radius: 4px; font-size: 10px; }
.tool-recommended { padding: 2px 5px; color: #146acb; background: #e8f2ff; border-radius: 4px; font-size: 10px; }

.tool-summary {
  display: -webkit-box;
  min-height: 0;
  margin: 11px 0 10px;
  overflow: hidden;
  color: #5b6b80;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tool-card-footer { display: flex; align-items: stretch; gap: 8px; margin-top: auto; flex-direction: column; }
.tool-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; margin-bottom: 0; }
.tool-tag { padding: 4px 7px; color: #718096; background: #f2f5f8; border-radius: 5px; font-size: 11px; }
.tool-tag-pricing { color: #167551; background: #e9f7f1; }

.tool-visit {
  display: inline-flex;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding: 10px 2px 0;
  color: #5d7898;
  background: transparent;
  border: 0;
  border-top: 1px solid #edf1f5;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.tool-visit:hover { color: #146acb; background: transparent; }
.tool-visit-icon { font-size: 14px; line-height: 1; transition: transform .2s ease; }
.tool-visit:hover .tool-visit-icon { transform: translate(2px, -2px); }

.tools-result-head { align-items: center; }
.tools-result-head > p { padding: 7px 12px; background: #edf3fa; border-radius: 999px; font-size: 13px; }

.tools-empty { padding: 60px 20px; text-align: center; }
.tools-empty > span { display: block; color: #8ea0b5; font-size: 48px; }
.tools-empty h3 { margin: 12px 0 6px; }
.tools-empty p { margin: 0 0 20px; color: #718096; }
.tools-empty button { padding: 10px 17px; color: #fff; background: #1473e6; border: 0; border-radius: 8px; cursor: pointer; }

.tools-service-slot { padding: 0 0 74px; background: #f7f9fc; }
.tools-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 40px;
  color: #fff;
  background: linear-gradient(125deg, #102b4f, #164f8d 72%, #167a72);
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(16, 43, 79, .18);
}
.tools-service-label { color: #d9ebff; background: rgba(255, 255, 255, .12); }
.tools-service-card h2 { margin: 13px 0 8px; font-size: 25px; }
.tools-service-card p { max-width: 720px; margin: 0; color: #d1deed; line-height: 1.7; }
.tools-service-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.tools-service-actions a { padding: 12px 16px; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; }
.tools-service-primary { color: #164b83; background: #fff; }
.tools-service-secondary { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }

.tools-category-guide { padding: 74px 0; background: #fff; }
.tools-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tools-guide-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 13px;
  padding: 20px;
  text-align: left;
  background: #fff;
  border: 1px solid #e3e9f0;
  border-radius: 14px;
  cursor: pointer;
}
.tools-guide-card > span { grid-row: 1 / 3; display: grid; width: 46px; height: 46px; place-items: center; color: var(--tool-accent); background: color-mix(in srgb, var(--tool-accent) 10%, white); border-radius: 12px; font-weight: 800; }
.tools-guide-card strong { align-self: end; font-size: 16px; }
.tools-guide-card small { align-self: start; color: #718096; line-height: 1.5; }
.tools-guide-card:hover { border-color: var(--tool-accent); }

@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-service-card { align-items: flex-start; flex-direction: column; }
  .tools-directory-toolbar { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 820px) {
  .tools-hero { padding: 58px 0 48px; }
  .tools-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .tools-hero-note { display: none; }
  .tools-filter-bar { display: block; top: 56px; padding: 0; }
  .tools-mobile-filter .container { width: 100%; max-width: none; overflow: hidden; }
  .tools-mobile-controls { gap: 8px; overflow: hidden; padding: 8px 12px; }
  .tools-filter-scroll {
    gap: 7px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .tool-filter { padding: 8px 13px; font-size: 13px; }
  .tools-mobile-search {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    overflow: hidden;
    background: #f3f6fa;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    transition: flex-basis .2s ease, width .2s ease, background .2s ease;
  }
  .tools-mobile-search.is-open { flex: 1 1 auto; width: auto; background: #fff; border-color: #bfd0e4; }
  .tools-mobile-controls.search-open .tools-filter-scroll { display: none; }
  .tools-mobile-search-toggle,
  .tools-mobile-search-close {
    position: relative;
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: #60758d;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .tools-mobile-search-toggle .tools-search-icon { left: auto; width: 15px; height: 15px; border-width: 2px; }
  .tools-mobile-search-toggle .tools-search-icon::after { right: -5px; bottom: -3px; width: 6px; }
  .tools-mobile-search input {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 4px;
    color: #17263b;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 14px;
  }
  .tools-mobile-search.is-open input,
  .tools-mobile-search.is-open .tools-mobile-search-close { display: block; }
  .tools-mobile-search-close { display: none; font-size: 22px; font-weight: 300; line-height: 1; }
  .tools-directory-toolbar { display: none; }
  .tools-directory-layout { grid-template-columns: 1fr; }
  .tools-directory-sidebar { display: none; }
  .tools-section.tools-all-section { padding-top: 22px; }
  .tool-category-section { scroll-margin-top: 124px; margin-bottom: 24px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .tools-section-head > p { text-align: left; }
  .tools-service-actions { width: 100%; }
}

@media (max-width: 560px) {
  .tools-hero-copy h1 { font-size: 38px; }
  .tools-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .tools-search-wrap { margin-top: 24px; padding-left: 45px; border-radius: 13px; }
  .tools-directory-toolbar .tools-search-wrap { margin-top: 0; }
  .tools-directory-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tools-directory-heading h1 { font-size: 27px; }
  .tools-search-wrap input { height: 56px; font-size: 14px; }
  .tools-search-icon { left: 18px; }
  .tools-hero-meta { gap: 8px 14px; }
  .tools-filter-scroll { margin-right: 0; padding-right: 0; }
  .tools-section { padding: 52px 0; }
  .tools-section-head { margin-bottom: 22px; }
  .tools-section-head h2 { font-size: 28px; }
  .tools-grid { grid-template-columns: 1fr; gap: 13px; }
  .tools-category-grid { grid-template-columns: 1fr; }
  .tool-category-title-line h2 { font-size: 17px; }
  .tool-card { min-height: 0; }
  .tools-guide-grid { grid-template-columns: 1fr; }
  .tools-service-card { padding: 27px 22px; }
  .tools-service-actions { flex-direction: column; }
  .tools-service-actions a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card, .tool-visit span { transition: none; }
}
