/* TelegramBlaster site, part 4: the tool pages (/telegram-group-finder and the rest) and the 404 page.
   Same tokens, grid and buttons as the rest of the site (styles.css); only the blocks these pages add live here. */

/* breadcrumb: Home › Tools › Group Finder */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font: 500 .86rem var(--display); color: var(--mute); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--line-2); font-size: 1.05rem; }
.crumbs a { color: var(--mute); text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; transition: color .2s, background-color .2s; }
.crumbs a:hover { color: var(--ink); background: var(--wash); }
.crumbs [aria-current] { color: var(--ink); }

/* hero: the tool's own heading beside its pitch, its screenshot underneath */
.tool-hero .hero-head h1 { font-size: clamp(2.2rem, 1rem + 4.2vw, 3.9rem); }
.tool-shot { margin-top: clamp(26px, 3.6vw, 48px); }
.tool-shot .window { box-shadow: 0 0 0 1px var(--line-2), var(--sh-lg); }
.tool-shot .shot { margin: 0; }
.tool-shot .shot img { display: block; width: 100%; height: auto; }
.tool-shot .win-bar img { flex: none; } .tool-shot .win-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* what it does: the explanation beside the bullet list */
.tool-what { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.tool-what-copy p { font-size: 1.08rem; color: var(--mute); max-width: 58ch; }
.tool-what-copy .tline { margin-bottom: 12px; font: 700 clamp(1.35rem, 1.1rem + .9vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.tool-what .ticks { display: grid; gap: 12px; margin: 0; padding: clamp(18px, 2.4vw, 28px); list-style: none; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.tool-what .ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.tool-what .ticks .ic { margin-top: 3px; color: var(--teal); }

/* how it works: four numbered steps in a row */
.tool-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.tool-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px 14px; align-content: start; padding: 22px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.tool-steps li > p { grid-column: 1 / -1; margin: 0; color: var(--mute); font-size: .96rem; }
.tool-steps h3 { margin: 0; font-size: 1.08rem; }
.tool-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sun); color: var(--ink); font: 700 1rem var(--display); }

/* works with: the related tools, each linking to its page */
.tool-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tool-related a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.tool-related a:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.tool-related a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.tool-related b { font: 700 1.2rem var(--display); letter-spacing: -0.025em; }
.tool-stage { padding: 3px 10px; border-radius: 8px; background: var(--peach); color: var(--coral-d); font: 500 .75rem var(--mono); }
.tool-line { color: var(--mute); font-size: .96rem; }
.tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font: 600 .92rem var(--display); color: var(--coral-d); }
.tool-go .ic { transition: transform .3s var(--ease); }
.tool-related a:hover .tool-go .ic { transform: translateX(4px); }

/* home page: each tool in the suite links to its own page */
.xp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 600 .95rem var(--display); color: var(--sun); text-decoration: none; }
.xp-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.xp-more .ic { transition: transform .3s var(--ease); } .xp-more:hover .ic { transform: translateX(4px); }

/* 404 */
.nf { max-width: 720px; padding: clamp(20px, 6vw, 80px) 0; }
.nf .lede { margin: 16px 0 22px; }
.nf-h { margin: 40px 0 12px; font-size: 1.2rem; }
.nf-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nf-list a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .92rem var(--display); }
.nf-list a:hover { border-color: var(--ink); }

@media (max-width: 1000px) {
  .tool-what { grid-template-columns: minmax(0, 1fr); }
  .tool-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .tool-steps { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tool-related a, .tool-go .ic, .xp-more .ic { transition: none; } }
