:root {
  color-scheme: dark;
  --bg: #0d1110;
  --surface: #171d1a;
  --surface-soft: #202923;
  --control-bg: rgba(255, 255, 255, 0.055);
  --header-bg: rgba(13, 17, 16, 0.84);
  --menu-bg: rgba(23, 29, 26, 0.98);
  --panel-a: rgba(29, 75, 68, 0.88);
  --panel-b: rgba(23, 29, 26, 0.96);
  --ink: #f6f4ed;
  --muted: #a7b0aa;
  --line: #2b3832;
  --accent: #58d6c3;
  --accent-dark: #9af0e2;
  --accent-soft: #153b35;
  --warm: #f0b84f;
  --rose: #e47b78;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --focus: 0 0 0 3px rgba(88, 214, 195, 0.18);
  --page-width: 1180px;
  --page-gutter: 32px;
  font-family:
    Inter, "SF Pro Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --control-bg: rgba(13, 17, 16, 0.045);
  --header-bg: rgba(244, 246, 243, 0.88);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --panel-a: rgba(221, 242, 237, 0.95);
  --panel-b: rgba(255, 255, 255, 0.98);
  --ink: #151b18;
  --muted: #66736d;
  --line: #dbe4de;
  --accent: #0f8a7c;
  --accent-dark: #0b665d;
  --accent-soft: #d9f0eb;
  --warm: #d9972e;
  --rose: #b65f5d;
  --shadow: 0 18px 50px rgba(32, 42, 37, 0.12);
  --focus: 0 0 0 3px rgba(15, 138, 124, 0.16);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    color-scheme: light;
    --bg: #f4f6f3;
    --surface: #ffffff;
    --surface-soft: #eef3ef;
    --control-bg: rgba(13, 17, 16, 0.045);
    --header-bg: rgba(244, 246, 243, 0.88);
    --menu-bg: rgba(255, 255, 255, 0.98);
    --panel-a: rgba(221, 242, 237, 0.95);
    --panel-b: rgba(255, 255, 255, 0.98);
    --ink: #151b18;
    --muted: #66736d;
    --line: #dbe4de;
    --accent: #0f8a7c;
    --accent-dark: #0b665d;
    --accent-soft: #d9f0eb;
    --warm: #d9972e;
    --rose: #b65f5d;
    --shadow: 0 18px 50px rgba(32, 42, 37, 0.12);
    --focus: 0 0 0 3px rgba(15, 138, 124, 0.16);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#top,
#tools,
#tool-groups {
  scroll-margin-top: 78px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 4%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 30%),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--warm) 9%, transparent), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 118px minmax(180px, 1fr) 212px;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 0 max(calc(var(--page-gutter) / 2), calc((100% - var(--page-width)) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--header-bg) 92%, var(--surface-soft) 8%), var(--header-bg));
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.hero-categories,
.filter-row,
.result-count,
footer {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 176px;
  height: 46px;
}

.nav {
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--ink);
}

.nav-item {
  position: relative;
  padding: 22px 0;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(79, 209, 189, 0.22);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
  padding: 8px 12px;
}

.nav-trigger span {
  color: var(--accent);
  font-size: 13px;
  transform: translateY(-1px);
}

.nav-menu {
  position: absolute;
  top: 62px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--menu-bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  padding: 10px;
  transform: translate(-50%, 6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-menu::before {
  content: attr(data-menu-label);
  grid-column: 1 / -1;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px 6px;
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-menu a {
  border-radius: 6px;
  color: var(--muted);
  padding: 9px 10px;
}

.nav-menu a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

main {
  width: min(var(--page-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.top-search {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  width: 118px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  padding: 0 8px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.top-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.top-search:focus-within,
.theme-picker:focus-within,
.language-picker:focus-within {
  box-shadow: var(--focus);
  border-color: var(--accent);
}

.theme-picker,
.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--muted);
  padding: 0 6px;
}

.theme-picker {
  padding-left: 26px;
}

.theme-picker::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 13px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
}

.theme-picker[data-active-theme="dark"]::after {
  content: "";
  position: absolute;
  left: 14px;
  width: 8px;
  height: 14px;
  border-radius: 50%;
  background: var(--header-bg);
  box-shadow: -2px 0 0 0 var(--header-bg);
}

.theme-picker[data-active-theme="light"]::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  color: var(--ink);
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor,
    7px 0 0 currentColor,
    -7px 0 0 currentColor;
}

.theme-picker select,
.language-picker select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 44px;
  align-items: center;
  padding: 56px 0 34px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof span {
  border: 1px solid rgba(79, 209, 189, 0.22);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.hero-categories {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-categories a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--accent-dark);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.primary-button,
.secondary-button,
form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button,
form button {
  border: 0;
  background: var(--accent);
  color: var(--bg);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--control-bg);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--panel-a), var(--panel-b)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border-radius: 8px;
  background: var(--warm);
  transform: rotate(-2.4deg);
}

.search-preview,
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-preview {
  min-height: 54px;
  padding: 0 16px;
  color: var(--muted);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 2px 0 0;
  font-size: 25px;
  line-height: 1.1;
}

.panel-header a,
.panel-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.featured-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.featured-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: var(--control-bg);
  padding: 9px;
}

.featured-list img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px;
}

.featured-list strong,
.featured-list small {
  display: block;
}

.featured-list small {
  margin-top: 2px;
  color: var(--muted);
}

.featured-carousel {
  position: relative;
}

.featured-slide {
  display: none;
  min-height: 230px;
  border: 1px solid rgba(79, 209, 189, 0.22);
  border-radius: 8px;
  background: var(--control-bg);
  padding: 20px;
}

.featured-slide.active {
  display: grid;
  align-content: start;
  gap: 12px;
}

.featured-slide img {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.featured-slide > span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.featured-slide strong {
  font-size: 30px;
  line-height: 1.1;
}

.featured-slide small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.featured-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.featured-dots button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--muted);
  cursor: pointer;
  min-height: 36px;
  padding: 0 8px;
}

.featured-dots button.active {
  border-color: rgba(79, 209, 189, 0.5);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
  font-weight: 900;
}

.lens {
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
}

.lens::after {
  content: "";
  display: block;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: translate(8.5px, 8.5px) rotate(45deg);
  transform-origin: left center;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.logo-cloud img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
}

.hero-stats div {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 8px;
  background: var(--control-bg);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
}

.toolbar-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.toolbar-title strong {
  font-size: 18px;
}

.toolbar-title span {
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  min-height: 50px;
  padding: 0 16px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-row {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--control-bg);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.section {
  padding: 58px 0 0;
}

.home-content .tools-section {
  padding-top: 0;
}

.home-layout {
  padding-top: 18px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.submit-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.collection,
.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.collection {
  padding: 24px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.collection:hover {
  border-color: rgba(79, 209, 189, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.collection span {
  color: var(--rose);
  font-weight: 900;
}

.collection h3,
.tool-card h3 {
  margin: 12px 0 8px;
}

.collection p,
.tool-card p,
.submit-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.collection-stack {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.collection-stack small,
.index-rail span {
  display: block;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.collection-stack strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.tool-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tools-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.home-layout,
.tools-layout,
.content-with-sidebar {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.home-content {
  min-width: 0;
}

.tools-content {
  min-width: 0;
}

.page-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--control-bg) 82%, var(--accent) 8%), var(--control-bg));
  padding: 11px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

#categorySidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.sidebar-group-block {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-sidebar strong,
.sidebar-title {
  display: grid;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 3px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.sidebar-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.page-sidebar a,
.sidebar-link {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 8px;
  text-align: left;
  width: 100%;
}

.page-sidebar a:hover,
.sidebar-link:hover,
.sidebar-link.active,
.sidebar-group-block a.active,
.sidebar-title:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-dark);
}

.page-sidebar a,
.sidebar-link,
.sidebar-title {
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.page-sidebar a:hover,
.sidebar-link:hover,
.sidebar-title:hover {
  transform: translateX(2px);
}

.tools-heading > div {
  min-width: 0;
  flex: 1;
}

.index-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}

.index-rail button,
.index-rail a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.index-rail button:hover,
.index-rail a:hover {
  border-color: rgba(79, 209, 189, 0.5);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.result-count {
  align-self: flex-end;
  gap: 4px;
  color: var(--muted);
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 178px;
  aspect-ratio: auto;
  padding: 14px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface)),
    var(--surface);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tool-card::before,
.scenario-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 18%, transparent),
    transparent 52%
  );
  opacity: 0;
  transition: opacity 160ms ease;
}

.tool-card:hover::before,
.scenario-card:hover::after {
  opacity: 1;
}

.tool-card > * {
  position: relative;
}

.tool-card:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.tool-card:hover .tool-meta strong {
  color: var(--accent-dark);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
}

.tool-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tool-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-card > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.42;
}

.tool-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.tool-logo-wrap {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 82%, var(--ink) 5%);
  padding: 5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 5%, transparent);
}

.badge {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tool-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.tool-tags span:nth-child(n + 4) {
  display: none;
}

.tool-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.tool-link,
.detail-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 900;
}

.tool-link span {
  margin-left: 5px;
}

.detail-link {
  color: var(--muted);
}

.detail-link:hover,
.tool-link:hover {
  color: var(--ink);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--control-bg);
  color: var(--muted);
  text-align: center;
}

.submit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 34px;
  margin: 76px 0;
  padding: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.submit-section p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

form input,
form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: 0;
  padding: 12px 13px;
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

form button {
  width: fit-content;
  background: var(--warm);
  color: #201706;
  cursor: pointer;
}

.hidden-field {
  display: none;
}

footer {
  justify-content: space-between;
  gap: 14px;
  width: min(var(--page-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
  width: min(var(--page-width), calc(100% - var(--page-gutter)));
  margin: 56px auto 32px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, var(--accent) 5%), var(--surface));
  color: var(--muted);
}

.site-footer div {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding-top: 0;
}

.site-footer .footer-brand {
  align-content: center;
  align-self: stretch;
}

.site-footer div:not(.footer-brand) {
  padding-top: 4px;
}

.footer-brand img {
  width: 152px;
  height: 40px;
}

.footer-brand small {
  color: var(--muted);
  font-weight: 800;
}

.site-footer strong {
  color: var(--ink);
  min-height: 40px;
  line-height: 40px;
}

.site-footer p {
  margin: 0;
  line-height: 1.65;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.detail-main {
  width: min(var(--page-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 900;
}

.back-link span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 42%),
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--ink) 7%, transparent) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(135deg, var(--panel-a), var(--panel-b));
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

.detail-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.detail-title-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.detail-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  padding: 8px;
}

.detail-logo .tool-logo {
  width: 44px;
  height: 44px;
}

.detail-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.98;
}

.detail-title-tags {
  margin-top: 0;
  justify-content: flex-end;
  max-width: min(520px, 46%);
}

.official-link {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 62%, currentColor);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.official-link:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

.detail-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.detail-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 58%, currentColor);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.detail-visit span {
  display: inline-block;
  transition: transform 160ms ease;
}

.detail-visit:hover {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.detail-visit:hover .detail-visit-arrow {
  transform: translateX(3px);
}

.detail-intro {
  max-width: 880px;
  margin-top: 20px;
}

.detail-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.detail-hero-info {
  margin-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  padding-top: 18px;
}

.detail-hero-info h2 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
}

.detail-hero-info p,
.detail-hero-info li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-hero-info ul {
  margin: 0;
  padding-left: 18px;
}

.detail-flow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  margin-top: 16px;
}

.detail-flow-section > article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 5%), var(--surface)),
    var(--surface);
  padding: 20px;
}

.hero-use-cases {
  margin-top: 0;
}

.hero-use-cases h2,
.hero-workflow h2 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-workflow {
  margin-top: 0;
}

.detail-flow-section .use-case-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.detail-flow-section .use-case-grid article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.detail-flow-section .use-case-grid span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.detail-flow-section .use-case-grid strong {
  margin-top: 1px;
  font-size: 14px;
}

.detail-flow-section .workflow-list {
  counter-reset: workflow-step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.detail-flow-section .workflow-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
  padding: 0;
}

.detail-flow-section .workflow-list li::before {
  counter-increment: workflow-step;
  content: counter(workflow-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 5%), var(--surface)),
    var(--surface);
  padding: 20px;
}

.detail-grid h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 20px;
}

.detail-grid h2::before,
.detail-section h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-dark);
  border-radius: 3px;
  transform: rotate(45deg);
}

.detail-grid p,
.detail-grid li {
  color: var(--muted);
  line-height: 1.65;
}

.detail-grid ul {
  margin: 0;
  padding-left: 18px;
}

.detail-overview {
  margin-top: 16px;
}

.detail-overview > article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 5%), var(--surface)),
    var(--surface);
  padding: 20px;
}

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

.overview-item {
  min-width: 0;
  padding: 0;
}

.pros-cons {
  grid-template-columns: 1fr;
}

.pros-cons-combined {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pros-cons-item {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.pros-cons-item h2,
.pros-cons-item p,
.pros-cons-item ul {
  margin: 0;
}

.pros-cons-item ul {
  counter-reset: pros-cons-step;
  display: grid;
  gap: 10px;
  padding: 0;
}

.pros-cons-item li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

.pros-cons-item li::before {
  counter-increment: pros-cons-step;
  content: counter(pros-cons-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.detail-overview h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 20px;
}

.detail-overview h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-dark);
  border-radius: 3px;
  transform: rotate(45deg);
}

.detail-overview p,
.detail-overview li {
  color: var(--muted);
  line-height: 1.65;
}

.detail-overview ul {
  margin: 0;
  padding-left: 18px;
}

.detail-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px;
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-section p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.detail-overview .use-case-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.use-case-grid article {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--accent) 8%);
  padding: 14px;
}

.detail-overview .use-case-grid article {
  min-height: auto;
  padding: 10px;
}

.use-case-grid span,
.workflow-list li::marker {
  color: var(--accent-dark);
  font-weight: 900;
}

.use-case-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  line-height: 1.45;
}

.detail-overview .use-case-grid strong {
  margin-top: 5px;
  font-size: 13px;
}

.workflow-list,
.check-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.combo-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.combo-flow a {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control-bg);
  min-height: 76px;
  padding: 12px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.combo-flow a:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--control-bg));
  transform: translateY(-2px);
}

.combo-flow a > span {
  grid-row: 1 / 3;
  align-self: start;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.combo-flow img {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  width: 44px;
  height: auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 84%, var(--ink) 6%);
  padding: 5px;
  object-fit: contain;
}

.combo-flow img.tool-icon-v0,
.tool-logo.tool-icon-v0 {
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.combo-flow strong,
.combo-flow small {
  grid-column: 3;
}

.combo-flow strong {
  align-self: start;
  color: var(--ink);
  line-height: 1.2;
}

.combo-flow small {
  align-self: end;
  color: var(--muted);
  line-height: 1.35;
}

.scenario-card .combo-flow a,
.group-tool-flow a {
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 76px;
}

.scenario-card .combo-flow {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
}

.scenario-card .combo-flow a {
  padding: 12px;
}

.scenario-card .combo-flow a > span,
.group-tool-flow a > span {
  display: none;
}

.scenario-card .combo-flow img,
.group-tool-flow img {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 4px;
}

.scenario-card .combo-flow strong,
.scenario-card .combo-flow small,
.group-tool-flow strong,
.group-tool-flow small {
  grid-column: 2;
}

.scenario-card .combo-flow strong,
.group-tool-flow strong {
  grid-row: 1;
  align-self: start;
  font-size: 15.5px;
  line-height: 1.18;
}

.scenario-card .combo-flow small,
.group-tool-flow small {
  grid-row: 2;
  align-self: end;
  line-height: 1.35;
}

.scenario-card .combo-flow small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.scenario-card {
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--scenario-a, var(--accent)) 26%, transparent), transparent 34%),
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--scenario-b, var(--warm)) 18%, transparent), transparent 36%),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface) 88%, var(--scenario-a, var(--accent)) 12%),
      color-mix(in srgb, var(--surface) 92%, var(--scenario-c, var(--scenario-b, var(--warm))) 8%)
    );
  padding: 20px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.scenario-card::after {
  z-index: 0;
}

.scenario-card::before,
.group-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 96%, color-mix(in srgb, var(--scenario-b, var(--warm)) 16%, transparent), transparent 34%),
    linear-gradient(135deg, transparent 36%, color-mix(in srgb, var(--scenario-a, var(--accent)) 10%, transparent), transparent 70%);
  opacity: 0.72;
}

.scenario-card > *,
.group-hero > * {
  position: relative;
}

.scenario-content {
  --scenario-a: #54d7c9;
  --scenario-b: #f0c45e;
  --scenario-c: #6fd1ff;
}

.scenario-product {
  --scenario-a: #69a8ff;
  --scenario-b: #52d6a8;
  --scenario-c: #9ad6ff;
}

.scenario-growth {
  --scenario-a: #f3b65f;
  --scenario-b: #ff7f95;
  --scenario-c: #ffd166;
}

.scenario-meeting {
  --scenario-a: #8bdbff;
  --scenario-b: #9a8cff;
  --scenario-c: #67e8f9;
}

.scenario-research {
  --scenario-a: #74d2a4;
  --scenario-b: #7fb8ff;
  --scenario-c: #c7d2fe;
}

.scenario-design {
  --scenario-a: #f08bd3;
  --scenario-b: #f2c65d;
  --scenario-c: #a78bfa;
}

.scenario-developer {
  --scenario-a: #5ba8ff;
  --scenario-b: #5ee0b7;
  --scenario-c: #8bdbff;
}

.scenario-designer {
  --scenario-a: #f58bd9;
  --scenario-b: #7dd3fc;
  --scenario-c: #facc15;
}

.scenario-sales {
  --scenario-a: #f2b45f;
  --scenario-b: #f97388;
  --scenario-c: #fb7185;
}

.scenario-support {
  --scenario-a: #64d8d0;
  --scenario-b: #9bbcff;
  --scenario-c: #67e8f9;
}

.scenario-education {
  --scenario-a: #b7e66f;
  --scenario-b: #6ed7ff;
  --scenario-c: #fde68a;
}

.scenario-finance {
  --scenario-a: #7bd88f;
  --scenario-b: #d8c15f;
  --scenario-c: #86efac;
}

.scenario-legal {
  --scenario-a: #9ea7ff;
  --scenario-b: #d7bfff;
  --scenario-c: #c4b5fd;
}

.scenario-solopreneur {
  --scenario-a: #ffbd65;
  --scenario-b: #62e1ce;
  --scenario-c: #fca5a5;
}

.scenario-realestate {
  --scenario-a: #84d6a3;
  --scenario-b: #f3c66b;
  --scenario-c: #93c5fd;
}

.scenario-hr {
  --scenario-a: #f2a1b5;
  --scenario-b: #8fd3ff;
  --scenario-c: #f9a8d4;
}

.scenario-operations {
  --scenario-a: #76e0c2;
  --scenario-b: #a8c2ff;
  --scenario-c: #c4b5fd;
}

.scenario-data {
  --scenario-a: #6bd3ff;
  --scenario-b: #8ee67b;
  --scenario-c: #60a5fa;
}

.scenario-consulting {
  --scenario-a: #7dd3fc;
  --scenario-b: #c4b5fd;
  --scenario-c: #5eead4;
}

.scenario-video {
  --scenario-a: #f472b6;
  --scenario-b: #60a5fa;
  --scenario-c: #facc15;
}

.scenario-ecommerceops {
  --scenario-a: #f59e0b;
  --scenario-b: #34d399;
  --scenario-c: #fb7185;
}

.scenario-healthcare {
  --scenario-a: #2dd4bf;
  --scenario-b: #93c5fd;
  --scenario-c: #86efac;
}

.scenario-game {
  --scenario-a: #a78bfa;
  --scenario-b: #fb7185;
  --scenario-c: #38bdf8;
}

.scenario-localbusiness {
  --scenario-a: #fbbf24;
  --scenario-b: #5eead4;
  --scenario-c: #fca5a5;
}

.scenario-card[data-card-link] {
  cursor: pointer;
}

.scenario-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.scenario-card > p,
.scenario-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.scenario-head span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.scenario-head h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
}

.scenario-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenario-title > span:not(.scenario-icon) {
  color: var(--ink);
  font-size: inherit;
  font-weight: 950;
  line-height: 1;
}

.scenario-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid color-mix(in srgb, var(--scenario-a, var(--accent)) 48%, var(--line));
  border-radius: 15px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--scenario-a, var(--accent)) 22%, var(--surface)), color-mix(in srgb, var(--scenario-b, var(--warm)) 14%, var(--control-bg)));
  color: color-mix(in srgb, var(--scenario-a, var(--accent)) 76%, var(--ink));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent);
}

.scenario-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.group-hero .detail-hero-top {
  align-items: flex-start;
}

.group-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.group-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.group-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  padding: 8px 12px;
}

.group-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.group-section {
  padding: 24px;
}

.group-section .combo-flow {
  margin-top: 4px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.reason-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--accent) 8%);
  padding: 16px;
}

.reason-grid span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
}

.reason-grid p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.group-tool-flow {
  grid-template-columns: repeat(3, 1fr);
}

.group-tool-flow a {
  min-height: 112px;
  padding: 16px;
}

.group-tool-flow img {
  width: 50px;
  min-height: 50px;
}

.scenario-card .combo-flow img.tool-icon-v0,
.group-tool-flow img.tool-icon-v0 {
  padding: 0;
}

.group-tool-flow strong {
  font-size: 17px;
}

.group-tool-flow small {
  font-size: 13px;
}

.group-detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

.related-tools {
  padding-top: 44px;
}

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

.related-grid > a:not(.tool-card) {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  font-weight: 900;
}

.related-grid > a:not(.tool-card) img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 118px minmax(120px, 1fr) auto;
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .top-actions {
    width: auto;
  }

  .top-search {
    width: 118px;
  }

  .hero,
  .submit-section,
  .home-layout,
  .tools-layout,
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
    grid-template-columns: 1fr;
  }

  .page-sidebar strong,
  .sidebar-title {
    grid-column: 1 / -1;
  }

  .hero {
    gap: 26px;
    min-height: auto;
    padding: 38px 0 22px;
  }

	  .collection-grid,
	  .tool-grid,
	  .scenario-grid,
	  .index-rail,
		  .combo-flow,
		  .detail-grid,
		  .detail-overview,
		  .overview-combined,
		  .pros-cons-combined,
		  .use-case-grid,
	  .related-grid,
	  .reason-grid,
	  .group-tool-flow,
	  .group-detail-grid {
	    grid-template-columns: repeat(2, 1fr);
	  }

  .detail-flow-section {
    grid-template-columns: 1fr;
  }

  .detail-flow-section .use-case-grid,
  .detail-flow-section .workflow-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "actions";
    gap: 8px 10px;
    min-height: auto;
    padding: 10px 12px;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
  }

  .brand-logo {
    width: 112px;
    height: 30px;
  }

  .top-actions {
    grid-area: actions;
    justify-self: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }

  .top-search {
    grid-area: search;
    justify-self: stretch;
    width: 100%;
    min-height: 34px;
  }

  .theme-picker,
  .language-picker {
    min-height: 28px;
    padding-right: 3px;
  }

  .theme-picker {
    padding-left: 22px;
  }

  .theme-picker::before {
    left: 7px;
    width: 12px;
    height: 12px;
  }

  .theme-picker select,
  .language-picker select {
    font-size: 10.5px;
  }

  .home-layout {
    gap: 12px;
    padding-top: 10px;
  }

  .page-sidebar {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    scrollbar-width: none;
  }

  .page-sidebar::-webkit-scrollbar {
    display: none;
  }

  #categorySidebar,
  .sidebar-group-block {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }

  .sidebar-group-block {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }

  .page-sidebar strong,
  .sidebar-title,
  .page-sidebar a,
  .sidebar-link {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .page-sidebar a:hover,
  .sidebar-link:hover,
  .sidebar-title:hover {
    transform: translateY(-1px);
  }

  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

  .hero-panel,
  .toolbar,
  .submit-section {
    padding: 16px;
  }

  .hero-stats,
	  .collection-grid,
	  .tool-grid,
	  .scenario-grid,
	  .index-rail,
		  .combo-flow,
		  .detail-grid,
		  .detail-overview,
		  .overview-combined,
		  .pros-cons-combined,
		  .related-grid,
	  .reason-grid,
	  .group-tool-flow,
	  .group-detail-grid {
	    grid-template-columns: 1fr;
	  }

  .detail-flow-section,
  .detail-flow-section .use-case-grid,
  .detail-flow-section .workflow-list {
    grid-template-columns: 1fr;
  }

  .detail-hero-top {
    flex-direction: column;
  }

  .tools-heading,
  footer,
  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --page-gutter: 20px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  html {
    scroll-padding-top: 132px;
  }

  body {
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
  }

  #top,
  #tools,
  #tool-groups {
    scroll-margin-top: 132px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand . actions"
      "search search search";
    gap: 7px;
    padding: max(8px, env(safe-area-inset-top)) 12px 9px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--header-bg) 96%, var(--surface-soft) 4%), var(--header-bg));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .brand-logo {
    width: 118px;
    height: 32px;
  }

  .brand {
    justify-self: start;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 72px 96px;
    justify-self: end;
    justify-content: end;
    gap: 5px;
    min-width: 173px;
    width: auto;
  }

  .top-search {
    min-height: 38px;
    border-radius: 12px;
    padding: 0 11px;
  }

  .theme-picker,
  .language-picker {
    min-height: 30px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--control-bg) 82%, var(--surface) 18%);
  }

  .theme-picker {
    width: 100%;
    max-width: 72px;
  }

  .language-picker {
    width: 100%;
    max-width: 96px;
  }

  .theme-picker select,
  .language-picker select,
  .top-search input {
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
  }

  main,
  .detail-main,
  footer,
  .site-footer {
    width: min(100% - var(--page-gutter), 1180px);
  }

  .home-layout,
  .tools-layout,
  .content-with-sidebar {
    gap: 12px;
    padding-top: 10px;
  }

  .page-sidebar {
    position: sticky;
    top: 87px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-inline: -10px;
    max-height: none;
    border-inline: 0;
    border-radius: 0 0 16px 16px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, var(--surface) 14%), color-mix(in srgb, var(--bg) 78%, var(--surface) 22%));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 9px 10px 10px;
    scroll-snap-type: x proximity;
  }

  #categorySidebar,
  .sidebar-group-block {
    gap: 7px;
  }

  .page-sidebar strong,
  .sidebar-title,
  .page-sidebar a,
  .sidebar-link {
    min-height: 36px;
    border-radius: 999px;
    padding: 0 12px;
    scroll-snap-align: start;
  }

  .sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent-dark);
    font-size: 13px;
  }

  .sidebar-count {
    font-size: 11px;
  }

  .page-sidebar strong {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-size: 12px;
  }

  .page-sidebar a,
  .sidebar-link {
    display: inline-flex;
    align-items: center;
    background: color-mix(in srgb, var(--control-bg) 72%, transparent);
    font-size: 12px;
  }

  .sidebar-link.active,
  .sidebar-group-block a.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
  }

  .tool-grid,
  .related-grid {
    gap: 10px;
  }

  .tool-card {
    grid-template-rows: auto auto auto;
    min-height: auto;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  }

  .tool-top {
    gap: 12px;
  }

  .tool-logo-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    padding: 6px;
  }

  .tool-logo {
    width: 32px;
    height: 32px;
  }

  .tool-meta strong {
    font-size: 16px;
  }

  .tool-card > p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .tool-tags {
    margin-top: 10px;
  }

  .tool-tags span {
    padding: 4px 8px;
  }

  .scenario-grid {
    gap: 12px;
  }

  .scenario-card {
    gap: 12px;
    border-radius: 16px;
    padding: 16px;
  }

  .scenario-head h2 {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.03;
  }

  .scenario-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .scenario-icon svg {
    width: 25px;
    height: 25px;
  }

  .scenario-card .combo-flow a,
  .group-tool-flow a {
    min-height: 66px;
    border-radius: 12px;
    padding: 10px;
  }

  .scenario-card .combo-flow img,
  .group-tool-flow img {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .scenario-card .combo-flow small {
    font-size: 12px;
  }

  .detail-main {
    padding: 20px 0 48px;
  }

  .back-link {
    min-height: 36px;
  }

  .detail-hero {
    margin-top: 12px;
    border-radius: 18px;
    padding: 22px 18px;
  }

  .detail-hero-top {
    gap: 12px;
  }

  .detail-title {
    gap: 13px;
  }

  .detail-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    padding: 7px;
  }

  .detail-logo .tool-logo {
    width: 42px;
    height: 42px;
  }

  .detail-title h1 {
    font-size: 30px;
    line-height: 1;
  }

  .detail-title-tags {
    justify-content: flex-start;
    max-width: 100%;
  }

  .detail-intro {
    margin-top: 16px;
  }

  .detail-intro p,
  .detail-hero p {
    max-width: none;
    font-size: 15px;
    line-height: 1.7;
  }

  .detail-hero-info {
    margin-top: 18px;
    padding-top: 16px;
  }

  .overview-combined,
  .pros-cons-combined {
    gap: 14px;
  }

  .detail-flow-section {
    gap: 12px;
    margin-top: 12px;
  }

  .detail-flow-section > article,
  .detail-grid article,
  .group-section,
  .reason-grid article {
    border-radius: 14px;
    padding: 16px;
  }

  .related-tools {
    padding-top: 34px;
  }

  .related-tools .section-heading h2 {
    font-size: 34px;
  }

  .site-footer {
    gap: 18px;
    margin: 38px auto 22px;
    border-radius: 16px;
    padding: 18px;
  }

  .site-footer strong {
    min-height: 0;
    line-height: 1.2;
  }

  .footer-brand img {
    width: 136px;
    height: 36px;
  }

  .tool-card:active,
  .scenario-card:active,
  .combo-flow a:active,
  .page-sidebar a:active,
  .sidebar-link:active {
    transform: scale(0.985);
  }
}
