/* Tools hub — page-specific only */

.tools-shell {
  width: min(1050px,calc(100% - 32px));
  margin-inline: auto;
}

.reading-shell {
  width: min(900px,calc(100% - 32px));
  margin-inline: auto;
}

.tools-hero {
  padding: 58px 0 70px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(3rem,7vw,5.4rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.hero-lead {
  max-width: 670px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.hero-proof strong {
  color: var(--text);
  font-size: 12px;
}

.hero-workflow {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.workflow-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.workflow-head span {
  font-size: 12px;
  font-weight: 850;
}

.workflow-head small {
  color: var(--muted);
  font-size: 12px;
}

.hero-workflow>a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  margin-top: 7px;
}

.hero-workflow>a>b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
}

.hero-workflow>a span strong,.hero-workflow>a span small {
  display: block;
}

.hero-workflow>a span strong {
  font-size: 12px;
}

.hero-workflow>a span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.hero-workflow>a em {
  color: var(--primary);
  font-style: normal;
}

.tools-section {
  padding: 26px 0 84px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem,4vw,3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.section-heading>p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.hub-toolbar {
  position: sticky;
  top: var(--header-height,72px);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb,var(--surface) 96%,transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hub-search {
  position: relative;
}

.hub-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 62px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.hub-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.hub-filters {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
}

.hub-filters button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.hub-filters button.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

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

.tool-card {
  min-width: 0;
}

.tool-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: .16s;
}

.tool-link:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb,var(--primary) 33%,var(--line));
  box-shadow: var(--shadow-sm);
}

.tool-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tool-icon {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.tool-badge {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tool-tag {
  margin-top: 13px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tool-link h3 {
  margin: 5px 0 7px;
  font-size: 18px;
}

.tool-link p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tool-examples {
  display: grid;
  gap: 5px;
  margin-top: 13px;
}

.tool-examples span {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tool-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-state>span {
  font-size: 30px;
  color: var(--primary);
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
}

.choose-section {
  padding: 76px 0;
  background: var(--surface-3);
  border-block: 1px solid var(--line);
}

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

.choose-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.choose-icon {
  min-width: 42px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.choose-grid h3 {
  margin: 11px 0 6px;
  font-size: 15px;
}

.choose-grid p {
  min-height: 45px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.choose-grid a {
  display: inline-block;
  margin-top: 11px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
}

.workflow-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem,4vw,3rem);
}

.steps {
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.steps li>span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.steps strong {
  font-size: 12px;
}

.steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workflow-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.workflow-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.workflow-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workflow-card a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.related-section {
  background: var(--surface-3);
  border-block: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}

.related-tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.related-tool-card strong,.related-tool-card small {
  display: block;
}

.related-tool-card small {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width:900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-workflow {
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
    transform: none;
  }
  .tool-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .hub-toolbar {
    grid-template-columns: 1fr;
  }
  .hub-filters {
    padding-bottom: 1px;
  }
  .choose-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:700px) {
  .tools-shell,.reading-shell {
    width: min(100% - 20px,1050px);
  }
  .tools-hero {
    padding: 42px 0 50px;
  }
  .hero-copy h1 {
    font-size: clamp(2.7rem,15vw,4rem);
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .section-heading>p {
    text-align: left;
  }
  .tool-grid,.choose-grid,.workflow-grid,.related-grid {
    grid-template-columns: 1fr;
  }
}
