:root {
  --font-body: "IBM Plex Sans", sans-serif;
  --font-hero: "Bricolage Grotesque", sans-serif;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-compact: "IBM Plex Sans", sans-serif;
  --max: 1880px;
  --header-h: 60px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --panel: #ffffff;
  --panel-2: #fbfbfb;
  --text: #050505;
  --muted: #5d5d5d;
  --muted-2: #8a8a8a;
  --line: #dedede;
  --line-soft: #ededed;
  --inverse: #050505;
  --inverse-text: #ffffff;
  --accent: #8e7bff;
  --accent-2: #72dff4;
  --accent-3: #ff9b35;
  --logo-bg: #ffffff;
  --map-title: #24264f;
  --map-title-accent: #d85b86;
  --map-blue: #167bc4;
  --map-pink: #d82870;
  --map-label-halo: #ffffff;
  --focus-ring: #050505;
  --price: #047857;
  --hero-overlay: rgba(255,255,255,.68);
  --shadow: 0 16px 60px rgba(0,0,0,.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070707;
  --bg-soft: #0e0e0e;
  --panel: #0c0c0c;
  --panel-2: #141414;
  --text: #f8f8f8;
  --muted: #b9b9b9;
  --muted-2: #898989;
  --line: #2d2d2d;
  --line-soft: #1f1f1f;
  --inverse: #ffffff;
  --inverse-text: #050505;
  --accent: #b49cff;
  --accent-2: #76dff5;
  --accent-3: #ffa64d;
  --logo-bg: #f7f5ef;
  --map-title: #d9ddff;
  --map-title-accent: #ff74a8;
  --map-blue: #8bd2ff;
  --map-pink: #ff7caf;
  --map-label-halo: #050505;
  --focus-ring: #f8f8f8;
  --price: #34d399;
  --hero-overlay: rgba(0,0,0,.66);
  --shadow: 0 16px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--font-body); text-rendering: optimizeLegibility; font-synthesis: none; font-feature-settings: "kern" 1, "liga" 1, "calt" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, select, textarea, option { font: inherit; }
h1, h2, h3, .brand-copy strong, .marquee-logo, .map-title, .map-center-label strong, .tool-meta h3, .category-card h3, .summary-stats strong, #resultCount, .empty-state strong { font-family: var(--font-display); }
.main-nav a, .theme-toggle, .nav-button, .mobile-menu-button, .button, .small-caps, .filter-title, .badge, .mode-chip, .summary-action, .map-category-bubble, .mobile-map-view, .view-toggle button, .category-tab, .filter-toggle { font-family: var(--font-compact); }
.tool-meta h3, .category-card h3, .filters-header h3 { font-family: var(--font-hero); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
#ecosystem, #dashboard, #categories { scroll-margin-top: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 10px 12px; background: var(--inverse); color: var(--inverse-text); }
.skip-link:focus { top: 16px; }
:where(a, button, input, select):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.top-ribbon { min-height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: linear-gradient(90deg, #f5a3ff 0%, #ff8d21 100%); color: #050505; font-size: 12px; line-height: 1; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-grid { min-height: var(--header-h); display: grid; grid-template-columns: 180px 1fr auto; align-items: center; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 24px; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; line-height: 1; color: var(--text); }
.brand-copy strong { font-size: 14px; font-weight: 800; letter-spacing: 0; }
.brand-copy small { font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a { height: 100%; display: inline-flex; align-items: center; padding: 0 21px; color: var(--text); font-size: 13px; font-weight: 650; border-right: 1px solid transparent; }
.main-nav a:hover { background: var(--bg-soft); border-right-color: transparent; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 100%; padding-right: 13px; min-width: 0; }
.theme-toggle, .nav-button, .mobile-menu-button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 16px; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nav-button.primary { background: var(--inverse); color: var(--inverse-text); }
.nav-button.secondary { background: var(--panel); }
.theme-toggle { width: 57px; padding: 0; }
.nav-button.secondary { width: 124px; padding: 0; }
.nav-button.primary { width: 111px; padding: 0; }
.mobile-menu-button { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: 14px 18px; border-bottom: 1px solid var(--line); }

.hero-frame { position: relative; max-width: none; margin: 0 auto; min-height: 500px; overflow: hidden; background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg) 93%, transparent) 0%, color-mix(in srgb, var(--bg) 56%, transparent) 48%, color-mix(in srgb, var(--bg) 16%, transparent) 100%), url('../assets/hero-background.webp'); background-size: cover; background-position: center bottom; }
.hero-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--bg) 72%, transparent) 0 28%, transparent 56%); }
.hero-copy-only { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 80px 24px 28px; text-align: center; }
.small-caps { display: inline-block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.hero-copy-only h1 { margin: 0 auto; max-width: 780px; font-family: var(--font-hero); font-size: clamp(46px, 4.28vw, 64px); line-height: .96; letter-spacing: 0; font-weight: 700; }
.hero-copy-only h1 span { background: linear-gradient(90deg, #ff8b54 0%, #e663df 48%, #48a6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy-only p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.48; letter-spacing: 0; }
.hero-search { position: relative; min-height: 50px; max-width: 568px; margin: 27px auto 0; display: grid; grid-template-columns: 45px 1fr 44px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 18px 48px rgba(0,0,0,.12); padding: 0 6px 0 8px; }
.hero-search-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.hero-search-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-search input { min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 14px; }
.hero-search input::placeholder { color: var(--muted-2); opacity: 1; }
.hero-search button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--inverse); color: var(--inverse-text); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inverse-text) 12%, transparent); }
.hero-search button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-browse { margin-top: 24px; }
.hero-category-pills { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-category-pill { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line-soft); border-radius: 15px; background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--text); box-shadow: 0 10px 28px rgba(0,0,0,.07); font-size: 12px; font-weight: 600; cursor: pointer; }
.hero-category-pill:hover { border-color: var(--line); transform: translateY(-1px); }
.hero-category-pill .category-glyph { width: 24px; height: 24px; }
.hero-category-pill .category-glyph svg { width: 15px; height: 15px; }
.hero-category-pill:nth-child(1) .category-glyph { color: #ff8b35; border-color: #ffd8bd; background: #fff7f0; }
.hero-category-pill:nth-child(2) .category-glyph { color: #ff5ab3; border-color: #ffc7e7; background: #fff2fa; }
.hero-category-pill:nth-child(3) .category-glyph { color: #9b72ff; border-color: #d8c8ff; background: #f7f3ff; }
.hero-category-pill:nth-child(4) .category-glyph { color: #5f8cff; border-color: #c9d8ff; background: #f2f6ff; }
.hero-category-pill:nth-child(5) .category-glyph { color: #5d9bff; border-color: #c8dcff; background: #f1f6ff; }
.hero-category-pill:nth-child(6) .category-glyph { color: #19bdf2; border-color: #bdefff; background: #effcff; }
.hero-category-pill:nth-child(7) .category-glyph { color: #9a9a9a; border-color: #dfdfdf; background: #fafafa; }
.hero-actions { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 20px; }
.hero-actions .button { min-height: 34px; padding: 0 27px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 26px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; font-size: 11px; font-weight: 700; }
.button.solid { background: var(--inverse); color: var(--inverse-text); border-color: var(--inverse); }
.button.ghost { background: var(--panel); color: var(--text); }

.trusted-strip { max-width: 100vw; box-sizing: border-box; margin: 0; padding: 12px max(24px, calc((100vw - var(--max)) / 2 + 28px)); border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 64%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent), var(--panel)); display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); align-items: center; gap: 22px; min-height: 136px; overflow: hidden; }
.trusted-label { display: flex; align-items: center; max-width: 175px; padding: 0; border: 0; color: var(--muted-2); font-size: 11px; font-weight: 750; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }
.logo-marquee { position: relative; overflow: hidden; contain: layout paint; isolation: isolate; width: 100%; min-width: 0; height: 124px; padding: 8px 0; mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%); }
.marquee-track { position: absolute; left: 0; display: flex; width: max-content; padding-left: 54px; will-change: transform; }
.marquee-track.top { top: 8px; }
.marquee-track.bottom { bottom: 8px; }
.marquee-track.top { animation: logo-marquee-left 128s linear infinite; }
.marquee-track.bottom { animation: logo-marquee-right 148s linear infinite; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); font-size: 16px; font-weight: 650; letter-spacing: 0; }
.marquee-logo .logo-box { width: 50px; height: 50px; border: 0; padding: 6px; background: var(--logo-bg); }
.marquee-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes logo-marquee-left { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes logo-marquee-right { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.section-pad { max-width: var(--max); margin: 0 auto; padding: 70px 34px; }
.compact-pad { padding-top: 34px; padding-bottom: 34px; }
.topless { padding-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading.center { display: grid; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto 30px; }
h2 { margin: 0; font-size: clamp(42px, 4vw, 70px); line-height: .94; letter-spacing: 0; font-weight: 800; }
.map-title { position: absolute; left: 24px; right: 24px; top: 18px; z-index: 4; margin: 0; color: var(--map-title); font-size: clamp(36px, 4.1vw, 66px); line-height: .88; letter-spacing: 0; text-align: center; text-transform: uppercase; white-space: normal; text-wrap: balance; pointer-events: none; }
.map-title span { color: var(--map-title-accent); }
.section-heading p { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.text-link { color: var(--text); font-weight: 600; white-space: nowrap; }

.ecosystem-section { border-left: 0; border-right: 0; }
.ecosystem-section.section-pad { padding-top: 46px; }
.ecosystem-map { position: relative; width: min(100%, 1320px); min-height: 1390px; margin: 0 auto; padding-top: 88px; overflow: visible; }
.ecosystem-rays, .ecosystem-category-rail, .ecosystem-lanes { position: absolute; left: 50%; top: 88px; width: min(100%, 1250px); aspect-ratio: 1; transform: translateX(-50%); }
.ecosystem-rays { z-index: 1; background: url("../assets/ecosystem-atlas/base.webp") center / contain no-repeat; pointer-events: none; }
.ecosystem-category-rail { z-index: 3; pointer-events: none; }
.ecosystem-lanes { z-index: 2; min-width: 0; background: transparent; }
.map-center-label { position: absolute; left: 50%; top: calc(88px + min(calc(100vw - 68px), 1250px) / 2); z-index: 4; width: clamp(92px, 8vw, 124px); aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 0; background: transparent; color: var(--text); transform: translate(-50%, -50%); pointer-events: none; }
.map-center-label strong { font-size: clamp(30px, 3.2vw, 44px); line-height: .86; letter-spacing: 0; }
.map-center-label span { margin-top: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; font-weight: 700; }
.map-center-label.is-category strong { max-width: 92%; font-size: clamp(15px, 1.55vw, 23px); line-height: .95; letter-spacing: 0; text-align: center; }
.map-center-label.is-category span { color: var(--text); }
.map-lane { position: absolute; inset: 0; transition: opacity .16s ease, filter .16s ease; pointer-events: none; }
.map-lane::before, .map-tool-node::before, .map-tool-node::after { content: none; }
.map-category-bubble { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: calc(var(--size) * 1.58); aspect-ratio: 1; min-width: 0; border: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 10px; color: #050505; background: transparent; box-shadow: none; font: inherit; cursor: pointer; text-align: center; transform: translate(-50%, -50%); transition: transform .16s ease, filter .16s ease, opacity .16s ease; pointer-events: auto; }
.map-category-bubble::before { content: ""; position: absolute; inset: 8%; border-radius: inherit; background: color-mix(in srgb, currentColor 10%, transparent); opacity: 0; transform: scale(.92); transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease; }
.map-category-bubble.blue { color: var(--map-blue); }
.map-category-bubble.pink { color: var(--map-pink); }
.map-category-bubble:hover { outline: 0; transform: translate(-50%, -50%) scale(1.04); }
.map-category-bubble:hover::before, .map-category-bubble.is-active::before { opacity: .88; transform: scale(1); box-shadow: 0 10px 30px color-mix(in srgb, currentColor 18%, transparent); }
.map-category-bubble:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.map-category-bubble strong, .map-category-bubble small { position: relative; z-index: 1; display: block; max-width: 100%; text-shadow: 0 1px 0 var(--map-label-halo), 0 -1px 0 var(--map-label-halo), 1px 0 0 var(--map-label-halo), -1px 0 0 var(--map-label-halo); }
.map-category-bubble strong { font-size: clamp(10px, .82vw, 14px); line-height: .95; letter-spacing: 0; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: none; }
.map-category-bubble small { color: color-mix(in srgb, currentColor 70%, var(--text)); font-size: clamp(8px, .52vw, 10px); line-height: 1; font-weight: 800; text-transform: uppercase; }
.map-category-bubble.is-active { z-index: 7; transform: translate(-50%, -50%) scale(1.08); filter: saturate(1.22); }
.map-category-bubble.is-active strong { font-size: clamp(11px, .9vw, 15px); }
.map-lane-tools { position: absolute; inset: 0; min-width: 0; }
.map-tool-node { position: absolute; left: var(--x); top: var(--y); width: var(--size); aspect-ratio: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0; color: #050505; text-align: center; transform: translate(-50%, -50%); transition: transform .16s ease, filter .16s ease, opacity .16s ease; pointer-events: auto; }
.map-tool-node:hover, .map-tool-node:focus-visible { outline: none; transform: translate(-50%, -50%) scale(1.16); z-index: 8; }
.map-tool-node:focus-visible .logo-box { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.map-tool-node .logo-box { width: 100%; height: 100%; border: 1px solid rgba(5,5,5,.1); border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: 0 8px 22px rgba(0,0,0,.12); padding: 7px; opacity: 1; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.map-tool-node .logo-box img { width: 100%; height: 100%; max-width: 32px; max-height: 32px; object-fit: contain; }
.map-tool-node span:not(.logo-box) { display: none; }
.ecosystem-map.has-active-map-category .map-category-bubble:not(.is-active) { opacity: .36; filter: grayscale(1) saturate(.2); }
.ecosystem-map.has-active-map-category .map-lane { opacity: .08; filter: grayscale(1) saturate(.15); }
.ecosystem-map.has-active-map-category .map-lane.is-active { opacity: 1; filter: none; z-index: 5; }
.ecosystem-map.has-active-map-category .map-lane.is-active .map-tool-node { transform: translate(-50%, -50%) scale(1.12) !important; }
.ecosystem-map.has-active-map-category .map-lane.is-active .map-tool-node .logo-box { border-color: color-mix(in srgb, var(--accent) 42%, rgba(5,5,5,.12)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent), 0 12px 30px rgba(0,0,0,.2); }
.map-lane:is(:hover, :focus-within) .map-tool-node .logo-box { box-shadow: 0 9px 24px rgba(0,0,0,.22); }
html[data-theme="dark"] .ecosystem-rays { filter: saturate(.9) brightness(.9); }
html[data-theme="dark"] .map-tool-node .logo-box { background: rgba(255,255,255,.93); border-color: rgba(255,255,255,.16); box-shadow: 0 10px 26px rgba(0,0,0,.42); }
.ecosystem-mobile-list { display: none; }
.category-glyph { width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.category-glyph svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-box { width: 40px; height: 40px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 6px; border: 1px solid var(--line); background: color-mix(in srgb, var(--logo-bg) 82%, var(--panel)); }
.logo-box img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.logo-missing { background: repeating-linear-gradient(135deg, var(--logo-bg), var(--logo-bg) 6px, var(--panel-2) 6px, var(--panel-2) 12px); }
.cyan-rule { max-width: var(--max); height: 7px; margin: 0 auto; background: #73dff4; }

.dashboard-section { border-top: 1px solid var(--line); }
.filter-toggle { display: none; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.dashboard-header { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.dashboard-header.compact-pad { padding-top: 22px; padding-bottom: 18px; }
.dashboard-header h2 { font-size: clamp(34px, 3.4vw, 54px); line-height: .9; }
.dashboard-header .small-caps { margin-bottom: 7px; }
.summary-stats { display: flex; border: 1px solid var(--line); background: var(--panel); }
.summary-stats span { min-width: 112px; display: grid; gap: 1px; padding: 10px 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.summary-stats span:last-child { border-right: 0; }
.summary-stats strong { color: var(--text); font-size: 20px; letter-spacing: 0; }
.dashboard-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.filters { border: 1px solid var(--line); border-right: 0; background: var(--panel); height: fit-content; position: sticky; top: calc(var(--header-h) + 26px); }
.filters-header { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.filters-header h3 { margin: 0; font-size: 16px; letter-spacing: 0; font-weight: 700; }
.filters-header button { border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.filters-header button:hover, .filters-header button:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.filter-group { padding: 13px 10px; border-bottom: 1px solid var(--line); }
.filter-title { margin: 0 0 8px 4px; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; font-weight: 700; color: var(--muted-2); }
.check-list { display: grid; gap: 1px; }
.check-row { min-height: 32px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 3px 5px; border-radius: 6px; font-size: 13px; line-height: 1.2; }
.check-row.category-check { grid-template-columns: 16px 22px minmax(0, 1fr) auto; }
.check-row:hover { background: var(--bg-soft); }
.check-row input[type="checkbox"] { appearance: none; width: 15px; height: 15px; margin: 0; display: grid; place-content: center; border: 1.5px solid color-mix(in srgb, var(--muted-2) 72%, var(--line)); border-radius: 4px; background: var(--panel); }
.check-row input[type="checkbox"]::before { content: ""; width: 8px; height: 8px; transform: scale(0); transition: transform .12s ease; background: var(--inverse-text); clip-path: polygon(14% 48%, 0 63%, 38% 100%, 100% 18%, 84% 4%, 36% 67%); }
.check-row input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); }
.check-row input[type="checkbox"]:checked::before { transform: scale(1); }
.check-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.check-row small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.filters .category-glyph { width: 22px; height: 22px; border: 0; background: transparent; color: color-mix(in srgb, var(--accent) 76%, var(--text)); }
.filters .category-glyph svg { width: 17px; height: 17px; stroke-width: 2; }
.filters .category-check:has(input:checked) { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.filters .category-check:has(input:checked) span { color: var(--text); font-weight: 600; }
.results-panel { min-width: 0; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.dashboard-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.dashboard-search, .sort-control, .view-toggle { min-height: 46px; border: 1px solid var(--line); background: var(--panel-2); }
.dashboard-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.dashboard-search span { color: var(--muted); }
.dashboard-search input { width: 100%; border: 0; outline: none; background: transparent; color: var(--text); }
.sort-control { display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); }
.sort-control span { white-space: nowrap; }
.sort-control select { border: 0; outline: none; background: transparent; color: var(--text); }
.view-toggle { display: inline-flex; padding: 4px; }
.view-toggle button { min-width: 66px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.view-toggle button.active { background: var(--inverse); color: var(--inverse-text); }
.category-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.category-tab { min-height: 54px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 0; border-right: 1px solid var(--line-soft); background: var(--panel); color: var(--text); font-weight: 600; white-space: nowrap; cursor: pointer; }
.category-tab .category-glyph { width: 30px; height: 30px; }
.category-tab .category-glyph svg { width: 17px; height: 17px; }
.category-tab.active { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.category-tab small { color: var(--muted); }
.results-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 15px 16px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 58%); }
#resultCount { color: var(--text); font-size: 22px; line-height: 1; font-weight: 800; }
#activeFiltersLabel { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-chip, .filter-chip { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text); font-weight: 700; }
.filter-chip { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--text); }
.summary-action { min-height: 28px; padding: 0 10px; border: 1px solid var(--accent); border-radius: 6px; background: var(--panel); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.summary-action:hover, .summary-action:focus-visible { background: color-mix(in srgb, var(--accent) 9%, transparent); outline: 2px solid var(--accent); outline-offset: 2px; }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; background: color-mix(in srgb, var(--bg-soft) 84%, var(--line)); }
.tool-card { min-width: 0; min-height: 168px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 24px; align-items: start; gap: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 8px; background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel-2) 58%, var(--panel))); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--panel)), var(--panel)); box-shadow: 0 14px 30px rgba(0,0,0,.09); }
.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tool-card .logo-box { width: 54px; height: 54px; padding: 8px; border-color: color-mix(in srgb, var(--line) 80%, transparent); border-radius: 8px; background: var(--logo-bg); }
.tool-meta { min-width: 0; display: grid; align-content: start; }
.tool-meta h3 { margin: 0; color: var(--text); font-size: 19px; letter-spacing: 0; line-height: 1.02; font-weight: 800; overflow-wrap: anywhere; }
.tool-meta .company { margin: 5px 0 0; color: color-mix(in srgb, var(--text) 78%, var(--muted)); font-size: 12.5px; font-weight: 650; }
.tool-meta .description { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-details { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.tool-price, .tool-category { min-width: 0; display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 800; line-height: 1; white-space: nowrap; }
.tool-price { border: 1px solid color-mix(in srgb, var(--price) 28%, transparent); background: color-mix(in srgb, var(--price) 9%, transparent); color: var(--price); }
.tool-category { max-width: 100%; border: 1px solid color-mix(in srgb, var(--muted-2) 20%, transparent); color: var(--muted); background: color-mix(in srgb, var(--muted-2) 8%, transparent); letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.card-badges, .badge { display: none; }
.external-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--muted-2); background: color-mix(in srgb, var(--muted-2) 7%, transparent); font-size: 13px; line-height: 1; transition: color .14s ease, background .14s ease, transform .14s ease; }
.tool-card:hover .external-icon, .tool-card:focus-visible .external-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transform: translate(1px, -1px); }
.tools-grid.list { grid-template-columns: 1fr; }
.tools-grid.list .tool-card { min-height: 94px; grid-template-columns: 54px minmax(0, 1fr) 24px; align-items: center; padding: 14px 16px; }
.tools-grid.list .tool-meta { grid-template-columns: minmax(180px, .66fr) minmax(220px, 1fr) auto; align-items: center; gap: 4px 18px; }
.tools-grid.list .tool-meta h3, .tools-grid.list .tool-meta .company { grid-column: 1; }
.tools-grid.list .tool-meta .description { grid-column: 2; grid-row: 1 / span 2; margin: 0; -webkit-line-clamp: 2; }
.tools-grid.list .tool-details { grid-column: 3; grid-row: 1 / span 2; justify-content: flex-end; margin: 0; }
html[data-theme="dark"] .tools-grid { background: color-mix(in srgb, var(--bg-soft) 78%, #000); }
html[data-theme="dark"] .tool-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,.42); }
.empty-state { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 8px; }
.empty-state button { min-height: 38px; margin-top: 12px; padding: 0 14px; border: 1px solid var(--line); background: var(--inverse); color: var(--inverse-text); font-weight: 700; cursor: pointer; }

.category-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-soft) 84%, var(--line)); }
.category-card { position: relative; min-width: 0; min-height: 184px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 16px; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 8px; background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel-2) 58%, var(--panel))); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.category-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 8px 0 0 8px; background: var(--map-blue); opacity: .74; }
.category-card.pink::before { background: var(--map-pink); }
.category-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--panel)), var(--panel)); box-shadow: 0 14px 30px rgba(0,0,0,.09); }
.category-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.category-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-card .category-glyph { width: 34px; height: 34px; border-radius: 8px; }
.category-card .category-glyph svg { width: 18px; height: 18px; }
.category-card-count { min-width: 34px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 999px; color: var(--text); background: var(--panel-2); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.category-card h3 { margin: 0; font-size: 22px; line-height: 1.02; letter-spacing: 0; }
.category-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.43; }
.category-card-action { display: inline-flex; width: fit-content; min-height: 26px; align-items: center; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); font-size: 12px; font-weight: 800; }
.category-card-action::after { content: "\2192"; margin-left: 7px; }
html[data-theme="dark"] .category-cards { background: color-mix(in srgb, var(--bg-soft) 78%, #000); }
html[data-theme="dark"] .category-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,.42); }
.site-footer { max-width: var(--max); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 62%); }
.site-footer div { color: var(--text); font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer a { min-height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--panel); font-weight: 700; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, transparent); }

@media (max-width: 1320px) { .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .header-grid { grid-template-columns: 1fr auto; }
  .main-nav, .desktop-only { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .header-actions { gap: 8px; padding-right: 12px; }
  .theme-toggle, .mobile-menu-button { padding: 0 14px; }
  .brand { border-right: 0; }
  .hero-frame { min-height: 690px; }
  .hero-copy-only { padding: 76px 18px 34px; }
  .hero-copy-only h1 { font-size: clamp(44px, 10vw, 68px); }
  .hero-search { grid-template-columns: 48px 1fr 52px; }
  .trusted-strip { display: block; min-height: 0; padding: 14px 0 12px; }
  .trusted-label { justify-content: center; max-width: none; min-height: 0; padding: 0 16px 8px; border: 0; text-align: center; }
  .logo-marquee { height: 60px; min-height: 0; padding: 6px 0; gap: 10px; }
  .dashboard-shell { display: flex; flex-direction: column; }
  .filter-toggle { order: 1; display: inline-flex; }
  .filters { order: 2; display: none; position: static; border-right: 1px solid var(--line); }
  .results-panel { order: 3; }
  .filters.open { display: block; }
  .dashboard-toolbar { grid-template-columns: 1fr; }
  .dashboard-header { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecosystem-map { display: none; }
  .ecosystem-section.section-pad { padding-top: 18px; padding-bottom: 36px; }
  .ecosystem-mobile-list { display: grid; gap: 8px; }
  .mobile-map-strip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 10px 11px 10px 13px; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--panel) 92%, var(--bg)); }
  .mobile-map-strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--map-blue); }
  .mobile-map-strip.pink::before { background: var(--map-pink); }
  .mobile-map-head { min-width: 0; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; gap: 8px; padding: 0; font: inherit; text-align: left; cursor: pointer; }
  .mobile-map-head .category-glyph { width: 30px; height: 30px; }
  .mobile-map-head .category-glyph svg { width: 16px; height: 16px; }
  .mobile-map-head strong { display: block; font-size: 15px; line-height: 1.05; letter-spacing: 0; }
  .mobile-map-head small { display: inline-block; margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 650; }
  .mobile-map-tools { min-width: 0; display: grid; grid-template-columns: repeat(4, 36px); gap: 6px; justify-content: end; }
  .mobile-map-tool { min-width: 0; display: grid; justify-items: center; color: var(--text); }
  .mobile-map-tool .logo-box { width: 36px; height: 36px; border-radius: 50%; padding: 5px; background: var(--logo-bg); }
  .mobile-map-tool span:not(.logo-box) { display: none; }
  .mobile-map-view { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); font-size: 11px; font-weight: 750; white-space: nowrap; }
}
@media (max-width: 640px) {
  .section-pad { padding-left: 16px; padding-right: 16px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .ecosystem-title { max-width: 100%; font-size: clamp(34px, 11vw, 46px); overflow-wrap: anywhere; }
  .top-ribbon { min-height: 28px; padding: 0 10px; font-size: 11px; text-align: center; }
  .brand { padding: 0 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 7px; letter-spacing: .24em; }
  .header-actions { gap: 8px; padding-right: 12px; }
  .theme-toggle, .mobile-menu-button { min-height: 32px; padding: 0 13px; letter-spacing: .06em; font-size: 10px; }
  .hero-frame { min-height: 720px; }
  .hero-copy-only p { font-size: 16px; }
  .hero-search { max-width: 100%; min-height: 58px; margin-top: 28px; grid-template-columns: 38px minmax(0, 1fr) 42px; border-radius: 14px; padding-right: 8px; }
  .hero-search input { font-size: 14px; padding-right: 4px; }
  .hero-search input::placeholder { font-size: 13px; }
  .hero-search button { width: 38px; height: 38px; border-radius: 9px; }
  .hero-category-pills { gap: 10px; }
  .hero-category-pill { min-height: 42px; padding: 0 14px; border-radius: 14px; font-size: 12px; }
  .marquee-track.bottom { display: none; }
  .marquee-logo span:not(.logo-box) { display: none; }
  .marquee-track { position: static; width: 100%; padding-left: 0; justify-content: center; }
  .marquee-track.top, .marquee-track.bottom { animation: none; transform: none !important; }
  .marquee-track.top .marquee-group:nth-child(2), .marquee-track.top .marquee-logo:nth-child(n+5) { display: none; }
  .marquee-group { gap: 24px; padding-right: 0; }
  .marquee-logo .logo-box { width: 48px; height: 48px; }
  .summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .summary-stats span { min-width: 0; padding: 9px 8px; }
  .summary-stats strong { font-size: 22px; }
  .dashboard-header.compact-pad { padding-top: 18px; padding-bottom: 16px; }
  .dashboard-header h2 { font-size: clamp(32px, 8.5vw, 42px); }
  .filter-toggle { min-height: 44px; }
  .dashboard-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
  .dashboard-search { grid-column: 1 / -1; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); padding: 0 14px; }
  .sort-control, .view-toggle { min-height: 44px; border: 0; background: var(--panel); }
  .sort-control { min-width: 0; border-right: 1px solid var(--line); padding: 0 12px; }
  .sort-control select { min-width: 0; width: 100%; }
  .view-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; }
  .view-toggle button { min-width: 0; }
  .category-tabs { gap: 6px; padding: 7px 8px; scroll-snap-type: x proximity; }
  .category-tab { min-height: 38px; gap: 6px; padding: 0 10px; border: 1px solid var(--line-soft); scroll-snap-align: start; }
  .category-tab .category-glyph { width: 18px; height: 18px; border: 0; background: transparent; }
  .category-tab .category-glyph svg { width: 16px; height: 16px; }
  .category-tab small { font-size: 11px; }
  .results-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; padding: 10px 14px; font-size: 12px; }
  #activeFiltersLabel { grid-column: 1 / -1; min-width: 0; gap: 6px; justify-content: start; }
  .mode-chip, .filter-chip, .summary-action { min-height: 28px; padding: 0 8px; font-size: 12px; }
  .mobile-map-strip { grid-template-columns: minmax(0, 1fr) auto; }
  .mobile-map-head { grid-column: 1; grid-row: 1; }
  .mobile-map-tools { grid-column: 1 / -1; justify-content: start; }
  .mobile-map-view { grid-column: 2; grid-row: 1; align-self: start; width: max-content; }
  .tools-grid { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .tool-card { min-height: 0; grid-template-columns: 46px minmax(0, 1fr) 24px; gap: 12px; padding: 14px; }
  .tool-card .logo-box { width: 46px; height: 46px; padding: 7px; }
  .tool-meta h3 { font-size: 18px; }
  .tool-meta .description { margin-top: 9px; -webkit-line-clamp: 2; }
  .tool-details { align-items: center; justify-content: flex-start; gap: 6px; }
  .tool-price, .tool-category { max-width: 100%; }
  .tools-grid.list .tool-card { min-height: 0; grid-template-columns: 46px minmax(0, 1fr) 24px; }
  .tools-grid.list .tool-meta { grid-template-columns: 1fr; gap: 0; }
  .tools-grid.list .tool-meta h3, .tools-grid.list .tool-meta .company, .tools-grid.list .tool-meta .description, .tools-grid.list .tool-details { grid-column: auto; grid-row: auto; }
  .tools-grid.list .tool-meta .description { margin-top: 9px; }
  .tools-grid.list .tool-details { justify-content: flex-start; margin-top: 13px; }
  .category-cards { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .category-card { min-height: 148px; padding: 14px; }
  .category-card h3 { font-size: 21px; }
  .category-card p { font-size: 13px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
}
