/* ==========================================================================
   ToolSuite Pro — directory design system
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --text: #111114;
  --text-2: #3F3F46;
  --muted: #71717A;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-2: #7C3AED;
  --accent-soft: rgba(79, 70, 229, .08);
  --accent-ink: #4338CA;
  --green: #059669;
  --star: #D97706;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .04), 0 1px 3px rgba(16, 16, 20, .06);
  --shadow-md: 0 10px 30px -12px rgba(16, 16, 20, .18), 0 2px 6px rgba(16, 16, 20, .05);
  --header-bg: rgba(250, 250, 249, .82);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: max(16px, calc((100% - 1200px) / 2));
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0B0F;
  --surface: #14141A;
  --surface-2: #1C1C24;
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --border: #26262F;
  --border-strong: #34343F;
  --accent: #818CF8;
  --accent-hover: #A5B4FC;
  --accent-2: #A78BFA;
  --accent-soft: rgba(129, 140, 248, .12);
  --accent-ink: #C7D2FE;
  --green: #34D399;
  --star: #FBBF24;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  --header-bg: rgba(11, 11, 15, .8);
  color-scheme: dark;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.section .container, .page-hero .container, .hero .container { padding-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -8px rgba(79, 70, 229, .55); }
[data-theme="dark"] .btn-primary:hover { color: #0B0B0F; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost:disabled { opacity: .45; cursor: default; }
.btn-ghost:disabled:hover { border-color: var(--border); }
.btn-white { background: #fff; color: #111114; }
.btn-white:hover { background: #EEF2FF; transform: translateY(-1px); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); transition: border-color .18s, transform .18s;
}
.icon-btn:hover { border-color: var(--text); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--text-2); }
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand-text b { font-weight: 800; color: var(--accent); margin-left: 2px; }
.main-nav { display: flex; gap: .25rem; margin-left: .5rem; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem;
  padding: .45rem .8rem; border-radius: 999px; transition: color .15s, background-color .15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); background: var(--surface-2); }
.nav-submit-mobile { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 2px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: .75rem 16px 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: .8rem 1rem; font-size: 1rem; border-radius: 12px; }
  .nav-submit-mobile { display: block; margin-top: .5rem; background: var(--text); color: var(--bg) !important; text-align: center; font-weight: 600 !important; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem var(--gutter); }
.section-tight { padding-top: 1.5rem; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; line-height: 1.2; font-weight: 800; }
.eyebrow, .section-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem; font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem var(--gutter) 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 55% at 30% 40%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(35% 50% at 72% 30%, rgba(168, 85, 247, .13), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(60% 70% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000 20%, transparent 75%);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .9rem .38rem .7rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: .82rem; font-weight: 500; color: var(--text-2); text-decoration: none; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.hero-pill:hover { border-color: var(--accent); }
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(5, 150, 105, .18); }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; margin-bottom: 1.1rem; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, #DB2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 620px; margin: 0 auto 2rem; }
.search-box {
  display: flex; align-items: center; gap: .7rem; max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: .35rem .5rem .35rem 1.2rem; box-shadow: var(--shadow-md); color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .7rem 0; font-size: 1rem; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
kbd {
  font-family: var(--mono); font-size: .75rem; border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 6px; padding: .15rem .5rem; background: var(--surface-2); color: var(--muted); margin-right: .4rem;
}
.hero-cats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: 1.4rem; font-size: .86rem; color: var(--muted); }
.hero-cats a { text-decoration: none; color: var(--text-2); padding: .3rem .75rem; border-radius: 999px; border: 1px dashed var(--border-strong); transition: all .15s; }
.hero-cats a:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { kbd { display: none; } .hero { padding-top: 3rem; } }

/* ---------- Toolbar / chips ---------- */
.directory { padding-top: 1.5rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips-nav { flex-wrap: wrap; margin-bottom: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .87rem; font-weight: 500; color: var(--text-2); cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.chip span { font-size: .74rem; color: var(--muted); font-weight: 600; background: var(--surface-2); padding: .05rem .45rem; border-radius: 999px; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.is-active span { background: rgba(127, 127, 127, .25); color: inherit; }
.chip-sm { padding: .3rem .7rem; font-size: .8rem; }
.chip-price { border-color: rgba(5, 150, 105, .35); color: var(--green); background: rgba(5, 150, 105, .07); cursor: default; }
.toolbar-right { display: flex; gap: .5rem; align-items: center; }
.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: .5rem 2.1rem .5rem .95rem; font-size: .86rem; font-weight: 500; cursor: pointer;
}
.select::after {
  content: ''; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
.select select:hover { border-color: var(--text); }
.result-count { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
@media (max-width: 700px) {
  .toolbar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .toolbar > * { min-width: 0; }
  .chips { margin-inline: -16px; padding-inline: 16px; }
  .toolbar-right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .select { min-width: 0; }
  .select select { width: 100%; }
}

/* ---------- Tool card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-media { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.card-media-link, .card-media img { display: block; width: 100%; height: 100%; }
.card-media .thumb { display: flex; width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img, .card:hover .card-media .thumb { transform: scale(1.03); }
.card-visit {
  position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(17, 17, 20, .86); color: #fff; text-decoration: none; font-size: .8rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 999px; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, background-color .15s;
}
.card:hover .card-visit, .card-visit:focus-visible { opacity: 1; transform: none; }
.card-visit:hover { background: var(--accent); }
@media (hover: none) { .card-visit { opacity: 1; transform: none; } }
.badge-featured {
  position: absolute; left: .7rem; top: .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  background: rgba(255, 255, 255, .92); color: #92400E; padding: .25rem .6rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-cats { display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.card-cats a { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.card-cats a:hover { text-decoration: underline; }
.card-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-body { position: relative; }
.card-details { flex-shrink: 0; display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 600; color: var(--muted); transition: color .15s, transform .15s; }
.card:hover .card-details { color: var(--accent); transform: translateX(2px); }
.card-desc { color: var(--muted); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .35rem; position: relative; z-index: 1; }
.card-cats { position: relative; z-index: 1; }
.tag {
  font-size: .75rem; color: var(--text-2); background: var(--surface-2); border-radius: 6px;
  padding: .18rem .5rem; text-decoration: none; transition: background-color .15s, color .15s;
}
a.tag:hover { background: var(--accent-soft); color: var(--accent); }
.tag-more { color: var(--muted); }

/* Generated thumbnail (used when a tool has no screenshot) */
.thumb {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 60%),
    linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #0B0B0F));
  color: #fff; text-align: center; padding: 1rem; transition: transform .4s ease; overflow: hidden;
}
.thumb::before {
  content: ''; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px); background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.thumb-icon {
  position: relative; font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); margin-bottom: .2rem;
}
.thumb-name { position: relative; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, .2); }
.thumb-url { position: relative; font-family: var(--mono); font-size: .7rem; opacity: .85; }

/* Empty state */
.empty { text-align: center; padding: 3.5rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-icon { font-size: 2rem; margin-bottom: .6rem; }
.empty h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.empty p { color: var(--muted); margin-bottom: 1.2rem; }
.empty-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.cat-tile {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.section:not(.section-alt) .cat-tile { background: var(--surface); }
.cat-tile:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-tile-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--accent-soft); }
.cat-tile-body { display: flex; flex-direction: column; min-width: 0; }
.cat-tile-body strong { font-size: .98rem; }
.cat-tile-body small { color: var(--muted); font-size: .8rem; }
.cat-tile-stack { margin-left: auto; display: flex; }
.cat-tile-stack span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border: 2px solid var(--surface); margin-left: -8px;
}
.cat-grid-lg .cat-tile { padding: 1.4rem; }

/* ---------- CTA card ---------- */
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 2.5rem; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(80% 140% at 100% 0%, #7C3AED 0%, transparent 60%), linear-gradient(120deg, #1E1B4B, #4338CA);
}
.cta-card::after {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.025em; margin-bottom: .35rem; }
.cta-card p { color: rgba(255, 255, 255, .78); max-width: 520px; }
@media (max-width: 560px) { .cta-card { padding: 1.75rem 1.4rem; } .cta-card .btn { width: 100%; } }

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero { padding: 3rem var(--gutter) 1.5rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.035em; line-height: 1.15; font-weight: 800; margin-bottom: .6rem; }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .84rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span:last-child { color: var(--text-2); }
.cat-hero { display: flex; gap: 1.1rem; align-items: flex-start; }
.cat-hero-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .cat-hero { flex-direction: column; } }

/* ---------- Tool detail ---------- */
.tool-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
.tool-title { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.tool-logo {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: var(--shadow-md);
}
.tool-hero h1 { margin-bottom: .1rem; }
.tool-domain { font-family: var(--mono); font-size: .84rem; color: var(--accent); text-decoration: none; }
.tool-domain:hover { text-decoration: underline; }
.tool-tagline { font-size: 1.12rem; color: var(--text-2); margin-bottom: 1.1rem; max-width: 560px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.tool-shot { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); aspect-ratio: 1200/630; transition: transform .25s; }
.tool-shot:hover { transform: translateY(-3px); }
.tool-shot .thumb, .tool-shot img { width: 100%; height: 100%; object-fit: cover; }
.tool-shot .thumb-icon { width: 80px; height: 80px; font-size: 2.7rem; border-radius: 22px; }
.tool-shot .thumb-name { font-size: 1.5rem; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.tool-main { display: flex; flex-direction: column; gap: 1.25rem; }
.tool-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 84px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.panel h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .9rem; }
.panel h3 { font-size: 1rem; margin-bottom: .8rem; }
.prose p { color: var(--text-2); margin-bottom: .9rem; }
.prose p:last-child { margin-bottom: 0; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.25rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.check-list svg { flex-shrink: 0; margin-top: .2rem; color: var(--green); background: rgba(5, 150, 105, .1); border-radius: 50%; padding: 2px; width: 20px; height: 20px; }
.info-list dl { display: flex; flex-direction: column; margin-bottom: 1rem; }
.info-list dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-list dl > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { text-align: right; font-weight: 500; }
.info-list dd a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: .2rem; }
.info-list dd a:hover { text-decoration: underline; }
.badge-panel p { color: var(--muted); font-size: .88rem; margin-bottom: .9rem; }
.badge-panel img { margin-bottom: .9rem; }
.badge-panel textarea {
  width: 100%; resize: none; font-family: var(--mono); font-size: .7rem; line-height: 1.5; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem; margin-bottom: .6rem;
}
.guide-box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--accent-soft), transparent);
}
.guide-box p { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) {
  .tool-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-side { position: static; }
}
@media (max-width: 560px) {
  .check-list { grid-template-columns: 1fr; }
  .panel { padding: 1.25rem; }
  .tool-actions .btn { flex: 1; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 3.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.footer-about p { color: var(--muted); font-size: .9rem; margin: .9rem 0 1.1rem; max-width: 300px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; font-weight: 600; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.site-footer ul a { text-decoration: none; color: var(--text-2); font-size: .92rem; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-block: 1.3rem; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   About, Contact, Submit (hand-written pages)
   ========================================================================== */
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.about-grid p { color: var(--text-2); margin-bottom: 1rem; }
.about-grid h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.about-tools-list { display: flex; flex-direction: column; gap: .5rem; }
.about-tool-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .92rem; }
.about-tool-row .name { font-weight: 600; }
.about-tool-row a { color: var(--accent); text-decoration: none; font-family: var(--mono); font-size: .8rem; }
.about-tool-row a:hover { text-decoration: underline; }
.value-list { display: flex; flex-direction: column; gap: .9rem; }
.value-card, .contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.value-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.value-card p { color: var(--muted); font-size: .92rem; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; color: var(--text-2); font-size: .93rem; }
.contact-list a { color: var(--accent); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 860px) { .about-grid, .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-field label { font-size: .86rem; font-weight: 600; }
.form-field label small { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid var(--border-strong); background: var(--bg); border-radius: var(--radius-sm);
  padding: .75rem .9rem; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; }
.form-status.ok { background: rgba(5, 150, 105, .1); color: var(--green); border: 1px solid rgba(5, 150, 105, .3); }
.form-status.err { background: rgba(220, 38, 38, .08); color: #DC2626; border: 1px solid rgba(220, 38, 38, .3); }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 1rem; }
.steps li { counter-increment: s; display: flex; gap: .8rem; color: var(--text-2); font-size: .93rem; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; }
@media (max-width: 860px) { .submit-layout { grid-template-columns: 1fr; } }

/* compact generated thumbnails inside grid cards */
.card .thumb { gap: .15rem; padding: .75rem; }
.card .thumb-icon { width: 44px; height: 44px; font-size: 1.45rem; border-radius: 13px; margin-bottom: .25rem; }
.card .thumb-name { font-size: 1rem; line-height: 1.2; max-width: 90%; }
.card .thumb-url { font-size: .66rem; }
.section:not(.section-alt) + .section-cta { padding-top: 0; }
.card-media-link, .tool-shot { text-decoration: none; color: #fff; }
.site-footer { margin-top: 0; }
main > .section:last-child:not(.section-alt) { padding-bottom: 5rem; }
@media (max-width: 560px) {
  .tool-shot .thumb-icon { width: 56px; height: 56px; font-size: 1.8rem; border-radius: 16px; }
  .tool-shot .thumb-name { font-size: 1.1rem; }
  .search-box input { font-size: .95rem; }
}
[id] { scroll-margin-top: 80px; }
.cat-tile.is-empty .cat-tile-icon { background: var(--surface-2); filter: grayscale(.4); }
.cat-tile.is-empty small { font-style: italic; }
@media (min-width: 701px) { #chips { flex-wrap: wrap; overflow: visible; } }
.info-list dd.ok { color: var(--green); display: inline-flex; align-items: center; gap: .25rem; }

/* ---------- uploaded logos & screenshots ---------- */
.card-media img { object-position: top center; }
.card-title a { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.card-logo { width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.card-logo img, .thumb-icon.has-logo img, .tool-logo.has-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-icon.has-logo { overflow: hidden; padding: 0; background: #fff; }
.tool-logo.has-logo { overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.tool-shot.has-img { aspect-ratio: auto; max-height: 560px; }
.tool-shot.has-img img { height: auto; max-height: 560px; object-fit: cover; object-position: top center; }
.tool-shot:not(a):hover { transform: none; }
span.tool-domain:hover { text-decoration: none; }
span.tool-domain { color: var(--muted); }
.chip-featured { border-color: rgba(217, 119, 6, .35); color: var(--star); background: rgba(217, 119, 6, .08); cursor: default; }

/* ---------- "Featured on" badge strip (footer) ---------- */
.featured-on { border-top: 1px solid var(--border); padding-block: 1.75rem 1.5rem; text-align: center; }
.featured-on h4 { margin-bottom: 1.1rem; }
.fo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.fo-track { display: flex; width: max-content; animation: fo-scroll var(--fo-dur, 30s) linear infinite; }
.fo-marquee:hover .fo-track, .fo-marquee:focus-within .fo-track { animation-play-state: paused; }
.fo-set { display: flex; align-items: center; gap: 1.75rem; padding-right: 1.75rem; }
.fo-item { display: block; flex-shrink: 0; border-radius: 8px; transition: transform .2s ease, opacity .2s ease; opacity: .92; }
.fo-item:hover { transform: translateY(-2px); opacity: 1; }
.fo-item img { height: 44px; width: auto; max-width: 240px; object-fit: contain; display: block; }
/* badges move left → right */
/* left → right: start shifted by one copy, slide back to 0, loop seamlessly */
@keyframes fo-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* the badge strip always slides, even when the device asks for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fo-track { animation: fo-scroll var(--fo-dur, 30s) linear infinite !important; }
}
@media (max-width: 560px) { .fo-item img { height: 38px; } .fo-set { gap: 1.25rem; padding-right: 1.25rem; } }
