/* Tool hub + per-tool landing pages.
   Rides on the tokens declared in styles.css (--bg, --brand, --radius …) so
   these pages look native to the site without duplicating the design system. */

.crumbs {
  padding: 22px 0 0;
  font-size: 0.86rem;
  color: var(--faint);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-3); }

/* ── hero ─────────────────────────────────────────────────────────── */
.tool-hero {
  position: relative;
  padding: 46px 0 26px;
  text-align: center;
  overflow: hidden;
}
.tool-hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto 20%;
  height: 340px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.20), transparent);
  filter: blur(10px);
  pointer-events: none;
}
.tool-hero > .container { position: relative; }
.tool-hero--hub { padding-top: 64px; }

.tool-hero-ico {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  font-size: 28px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}
.tool-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tool-lede {
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}
.tool-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.tool-trust {
  margin: 18px 0 0;
  font-size: 0.84rem;
  color: var(--faint);
}

/* ── the tool grid (the "home page of tools") ─────────────────────── */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tool-cards--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.tool-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-items: center;
  padding: 16px 16px 15px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease,
              background 0.16s ease, box-shadow 0.16s ease;
}
.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: var(--border-2);
  box-shadow: var(--shadow-glow);
  outline: none;
}
.tool-ico {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 21px;
  border-radius: 13px;
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(125, 211, 252, 0.16);
}
.tool-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tool-blurb {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── body copy ────────────────────────────────────────────────────── */
.tool-grid2 { gap: 34px; align-items: start; }
.tool-grid2 h2 { font-size: 1.32rem; margin: 0 0 14px; letter-spacing: -0.01em; }

.tool-steps { margin: 0; padding-left: 1.15em; color: var(--muted); }
.tool-steps li { margin-bottom: 11px; line-height: 1.6; }

.tool-feats { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.tool-feats li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  line-height: 1.6;
}
.tool-feats li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-blue);
}
.tool-feats b { color: var(--text); }
.tool-feats code,
.tool-steps code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tool-priv {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.01rem;
}
.tool-all {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--faint);
  line-height: 2;
}
.tool-all a { color: var(--muted); text-decoration: none; margin-right: 12px; }
.tool-all a:hover { color: var(--brand-3); }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 16px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--brand-3);
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .tool-card { grid-template-columns: 38px 1fr; column-gap: 10px; padding: 13px; }
  .tool-ico { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
  .tool-name { font-size: 0.95rem; }
  .tool-blurb { display: none; }
}
@media (max-width: 420px) {
  .tool-cards { grid-template-columns: 1fr; }
  .tool-blurb { display: block; }
}
