:root {
  color-scheme: light;
  --bg: #f8f6f3;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #1d2733;
  --muted: #647386;
  --line: #e4ddd5;
  --accent: #d94a38;
  --accent-strong: #b9382a;
  --accent-soft: #fff0ed;
  --danger: #b42318;
  --success: #067647;
  --radius: 8px;
  --shadow: 0 22px 60px rgb(31 51 79 / 0.12);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.home-page {
  background:
    radial-gradient(circle at 12% 8%, rgb(255 232 225 / 0.8), transparent 28%),
    linear-gradient(180deg, #fffaf8 0%, #f8f6f3 52%, #f5f0ea 100%);
}

.hub-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: 74px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgb(228 221 213 / 0.82);
  background: rgb(255 250 248 / 0.9);
  backdrop-filter: blur(14px);
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.hub-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.hub-nav a,
.hub-action {
  color: #5f6f83;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

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

.hub-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e4ddd5;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
}

.hub-hero {
  padding: 76px 0 38px;
  text-align: center;
}

.hero-inner {
  width: min(880px, 100%);
  margin: 0 auto;
}

.hub-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.hub-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hub-hero p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-search {
  display: grid;
  gap: 10px;
  width: min(680px, 100%);
  margin: 30px auto 0;
  text-align: left;
}

.hero-search span {
  color: #344054;
  font-size: 14px;
  font-weight: 780;
}

.hero-search input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #dfd3ca;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  padding: 0 18px;
  outline: none;
  box-shadow: 0 18px 44px rgb(65 47 37 / 0.1);
}

.hero-search input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgb(217 74 56 / 0.16),
    0 18px 44px rgb(65 47 37 / 0.1);
}

.popular-tools,
.all-tools-hub,
.future-categories {
  padding: 40px 0;
}

.hub-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
}

.hub-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

.hub-section-head p,
.hub-section-head a {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hub-section-head a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.featured-tool {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 36px rgb(65 47 37 / 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.featured-tool:hover {
  transform: translateY(-3px);
  border-color: #e9afa4;
  box-shadow: 0 22px 54px rgb(65 47 37 / 0.13);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.color-icon {
  background: #d94a38;
}

.network-icon {
  background: #2f6f68;
}

.id-icon {
  background: #5f57b7;
}

.featured-tool strong {
  font-size: 19px;
  letter-spacing: 0;
}

.featured-tool span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  overflow: hidden;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgb(65 47 37 / 0.08);
}

.category-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid #eadfd8;
  background: #fffaf8;
}

.category-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.category-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.category-links {
  display: grid;
}

.category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 0 22px;
  border-bottom: 1px solid #eadfd8;
  color: var(--text);
  text-decoration: none;
}

.category-links a:last-child {
  border-bottom: 0;
}

.category-links a:hover {
  background: #fff8f6;
}

.category-links span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.category-links a[hidden],
.featured-tool[hidden] {
  display: none;
}

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

.future-grid article {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.74);
}

.future-grid strong {
  font-size: 21px;
  letter-spacing: 0;
}

.future-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.hub-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  padding: 44px clamp(18px, 4vw, 56px);
  border-top: 1px solid #eadfd8;
  background: #ffffff;
}

@media (max-width: 1040px) {
  .featured-grid,
  .category-board,
  .future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-header {
    grid-template-columns: auto 1fr;
  }

  .hub-action {
    display: none;
  }
}

@media (max-width: 700px) {
  .hub-header {
    height: 64px;
  }

  .hub-nav {
    display: none;
  }

  .hub-hero {
    padding: 44px 0 26px;
    text-align: left;
  }

  .hub-hero h1 {
    max-width: 360px;
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.02;
  }

  .hub-hero p {
    margin-left: 0;
    font-size: 16px;
  }

  .featured-grid,
  .category-board,
  .future-grid,
  .hub-footer {
    grid-template-columns: 1fr;
  }

  .hub-section-head {
    display: block;
  }

  .hub-section-head p,
  .hub-section-head a {
    display: inline-block;
    margin-top: 8px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0%, #faf8f5 48%, #f6f1ec 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgb(255 255 255 / 0.9);
  border-bottom: 1px solid rgb(219 228 238 / 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 740;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.top-nav {
  display: flex;
  gap: 20px;
}

.top-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  align-items: center;
  padding: clamp(78px, 10vw, 126px) 0 clamp(70px, 8vw, 104px);
  text-align: center;
}

.pro-hero {
  border-bottom: 1px solid var(--line);
}

.home-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
}

.home-copy h1,
.tool-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.home-copy p,
.tool-hero p,
.section-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.tool-search {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 28px;
}

.tool-search span {
  color: #344054;
  font-size: 14px;
  font-weight: 760;
}

.tool-search input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #c8d4e2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 0 16px;
  outline: none;
  box-shadow: 0 12px 34px rgb(31 51 79 / 0.08);
}

.tool-search input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgb(217 74 56 / 0.16),
    0 12px 34px rgb(31 51 79 / 0.08);
}

.home-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow);
}

.directory-panel {
  background:
    linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
}

.panel-heading {
  display: grid;
  gap: 4px;
  padding: 14px 16px 8px;
}

.panel-heading strong {
  font-size: 18px;
  letter-spacing: 0;
}

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

.home-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.home-panel a:hover {
  border-color: #efb7ad;
  background: var(--accent-soft);
}

.home-panel span {
  font-weight: 780;
}

.home-panel small {
  color: var(--muted);
  font-weight: 740;
}

.home-tools {
  padding: 46px 0 24px;
}

.home-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.home-section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.home-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.tool-grid,
.family-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 28px;
}

.tool-library {
  padding-top: 6px;
}

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

.library-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.78);
  box-shadow: 0 14px 44px rgb(31 51 79 / 0.07);
}

.library-group-heading {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.library-group-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.library-group-heading span {
  color: var(--muted);
  font-size: 14px;
}

.library-link {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.library-link:last-child {
  border-bottom: 0;
}

.library-link:hover {
  background: #fff8f6;
}

.library-link strong {
  font-size: 17px;
  letter-spacing: 0;
}

.library-link span {
  color: var(--muted);
  line-height: 1.5;
}

.library-link[hidden] {
  display: none;
}

.tool-link-card {
  display: grid;
  min-height: 168px;
  align-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 36px rgb(31 51 79 / 0.07);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.tool-link-card:hover {
  border-color: #efb7ad;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-link-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.tool-link-card span {
  color: var(--muted);
  line-height: 1.5;
}

.tool-link-card small,
.tool-link-card b {
  color: var(--accent);
  font-weight: 760;
}

.tool-link-card small {
  display: inline-block;
  margin-bottom: 12px;
}

.tool-link-card b {
  align-self: end;
}

.color-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
}

.network-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

.id-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 74px;
}

.family-index {
  padding: 28px 0 72px;
}

.family-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-grid a {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
}

.family-grid a:hover {
  border-color: #efb7ad;
  background: #fff8f6;
}

.family-grid strong {
  font-size: 20px;
  letter-spacing: 0;
}

.family-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.home-categories a {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.72);
  color: var(--text);
  text-decoration: none;
}

.home-categories a:hover {
  border-color: #efb7ad;
  background: #ffffff;
}

.home-categories strong {
  font-size: 20px;
  letter-spacing: 0;
}

.home-categories span {
  color: var(--muted);
  line-height: 1.55;
}

.tool-nav {
  margin: 22px 0 70px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.72);
}

.tool-nav h2,
.content-section h2,
.faq-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.tool-hero {
  padding: 34px 0 22px;
}

.tool-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  padding: 0 0 46px;
}

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

.tool-card {
  padding: clamp(20px, 4vw, 34px);
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.tool-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.tool-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.tool-form {
  display: grid;
  gap: 18px;
}

.input-fields {
  display: grid;
  gap: 14px;
}

.input-row {
  display: grid;
  gap: 8px;
}

.input-row label {
  color: #344054;
  font-size: 14px;
  font-weight: 760;
}

.input-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d4e2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.input-row textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid #c8d4e2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 14px;
  outline: none;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.input-row input:focus,
.input-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(217 74 56 / 0.16);
}

.helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button,
.primary-link {
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 760;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.primary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.primary-button:hover,
.primary-link:hover {
  background: var(--accent-strong);
}

.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.secondary-button:hover {
  border-color: #b8c9dc;
  background: #fff8f6;
}

.text-button {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
}

.text-button:hover {
  background: var(--accent-soft);
}

.primary-button:active,
.secondary-button:active,
.text-button:active,
.primary-link:active,
.tool-link-card:active {
  transform: translateY(1px);
}

.result-box {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f6;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-weight: 780;
}

#result-output,
.example-panel pre {
  min-height: 120px;
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 15px;
  line-height: 1.7;
}

.result-box.error {
  border-color: #f3b8b1;
}

.result-box.error #result-output {
  color: var(--danger);
}

.result-box.success #result-output {
  color: var(--success);
}

.html-preview-box {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.html-preview-box iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #ffffff;
}

.example-panel {
  overflow: hidden;
}

.example-panel h2 {
  margin: 0;
  padding: 18px 18px 0;
  font-size: 18px;
  letter-spacing: 0;
}

.example-block {
  border-top: 1px solid var(--line);
}

.example-block:first-of-type {
  margin-top: 16px;
}

.example-block strong {
  display: block;
  padding: 14px 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}

.content-section,
.faq-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 32px;
  margin-top: 18px;
}

.content-section p,
.content-section li,
.faq-section p,
.faq-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.content-section ul,
.faq-section ul {
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.68);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tool-nav {
  margin-bottom: 52px;
}

.mini-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-tool-grid a {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-weight: 740;
  text-decoration: none;
}

.mini-tool-grid a:hover {
  border-color: #efb7ad;
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 760;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #efb7ad;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 14px 40px rgb(31 51 79 / 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  min-height: 560px;
  padding: 70px 0 58px;
  border-bottom: 1px solid var(--line);
}

.site-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.portal-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.portal-copy p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.portal-directory {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.directory-head strong {
  font-size: 20px;
  letter-spacing: 0;
}

.directory-head span,
.portal-directory a strong {
  color: var(--muted);
  font-size: 14px;
}

.portal-directory a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.portal-directory a:last-child {
  border-bottom: 0;
}

.portal-directory a:hover {
  background: #fff8f6;
}

.portal-directory a span {
  font-weight: 780;
}

.tool-directory-section,
.planned-section {
  padding: 54px 0 10px;
}

.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section-bar h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.section-bar > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.directory-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.category-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.72);
}

.category-rail a {
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.category-rail a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.directory-stack {
  display: grid;
  gap: 18px;
}

.tool-family {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 44px rgb(31 51 79 / 0.07);
}

.tool-family-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.tool-family-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.tool-family-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tool-family-head > span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.tool-table {
  display: grid;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(220px, 1fr) 120px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.tool-row:last-child {
  border-bottom: 0;
}

.tool-row:hover {
  background: #fff8f6;
}

.tool-row strong {
  font-size: 17px;
  letter-spacing: 0;
}

.tool-row span {
  color: var(--muted);
  line-height: 1.5;
}

.tool-row small {
  justify-self: end;
  color: var(--accent);
  font-weight: 800;
}

.tool-row[hidden] {
  display: none;
}

.planned-section {
  padding-bottom: 74px;
}

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

.planned-grid article {
  display: grid;
  gap: 10px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.78);
}

.planned-grid strong {
  font-size: 20px;
  letter-spacing: 0;
}

.planned-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.expanded-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  padding-top: 40px;
  padding-bottom: 44px;
  background: #ffffff;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.footer-columns div {
  display: grid;
  gap: 10px;
}

.footer-columns strong {
  color: var(--text);
}

.footer-columns a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .portal-hero,
  .directory-layout,
  .expanded-footer {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-row {
    grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr) 90px;
  }

  .home-hero,
  .home-categories,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .mini-tool-grid,
  .family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-page-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .top-nav {
    display: none;
  }

  main {
    width: min(100% - 28px, 680px);
  }

  .portal-hero {
    min-height: auto;
    padding: 34px 0 34px;
  }

  .portal-copy h1 {
    max-width: 340px;
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1.04;
  }

  .portal-copy p {
    max-width: 340px;
    font-size: 16px;
  }

  .section-bar {
    display: block;
  }

  .section-bar > p {
    margin-top: 8px;
  }

  .category-rail {
    grid-template-columns: 1fr;
  }

  .tool-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .tool-row small {
    justify-self: start;
  }

  .portal-directory a {
    display: grid;
    gap: 6px;
    min-height: 72px;
    align-content: center;
  }

  .portal-directory a strong {
    font-size: 13px;
  }

  .planned-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .tool-hero {
    padding-top: 30px;
  }

  .home-copy h1,
  .tool-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .tool-hero h1 {
    max-width: 330px;
  }

  .home-copy p,
  .tool-hero p {
    font-size: 16px;
  }

  .tool-grid,
  .mini-tool-grid,
  .home-categories,
  .family-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 26px;
    padding-bottom: 34px;
  }

  .tool-search {
    margin-top: 22px;
  }

  .library-link {
    padding: 16px;
  }

  .home-panel {
    padding: 10px;
  }

  .home-panel a {
    min-height: 54px;
  }

  .home-section-title {
    display: block;
  }

  .home-section-title p {
    margin-top: 8px;
  }

  .tool-link-card {
    min-height: 132px;
  }

  .tool-card {
    padding: 18px;
  }

  .tool-card-header {
    flex-direction: column;
  }

  .tool-card-header .secondary-button,
  .primary-button,
  .secondary-button,
  .primary-link {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homepage production refresh */
.home-page {
  background:
    linear-gradient(180deg, #fff8f6 0%, #fffdfb 34%, #f7f3ee 100%);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: 70px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid #eadfd8;
  background: rgb(255 253 251 / 0.92);
  backdrop-filter: blur(14px);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.home-nav a,
.header-button {
  color: #5f6f83;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

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

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #eadfd8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
}

.home-landing {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 72px 0 34px;
  text-align: center;
}

.landing-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 820px;
}

.plain-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.landing-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #1d2733;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.landing-copy p,
.simple-section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #eadfd8;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.tool-finder {
  display: grid;
  gap: 10px;
  width: min(720px, 100%);
  padding: 12px;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgb(65 47 37 / 0.1);
  text-align: left;
}

.tool-finder span {
  padding: 0 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 780;
}

.tool-finder input {
  min-height: 54px;
  width: 100%;
  border: 1px solid #dfd3ca;
  border-radius: 8px;
  background: #fffaf8;
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.tool-finder input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(217 74 56 / 0.16);
}

.popular-launcher,
.tool-directory-section,
.category-expansion,
.resource-strip {
  padding: 44px 0;
}

.simple-section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}

.simple-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.launcher-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 196px;
  padding: 20px;
  border: 1px solid #eadfd8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 34px rgb(65 47 37 / 0.07);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.launcher-card:hover {
  transform: translateY(-2px);
  border-color: #e9afa4;
  box-shadow: 0 20px 48px rgb(65 47 37 / 0.13);
}

.launcher-card:active,
.secondary-link:active,
.header-button:active {
  transform: translateY(1px);
}

.launcher-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.color-tool .launcher-icon {
  background: #d94a38;
}

.network-tool .launcher-icon {
  background: #2f6f68;
}

.id-tool .launcher-icon {
  background: #5f57b7;
}

.launcher-card strong {
  font-size: 19px;
  letter-spacing: 0;
}

.launcher-card span:last-child,
.expansion-grid span,
.resource-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.home-page .directory-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.home-page .tool-family,
.home-page .category-rail,
.expansion-grid article,
.resource-strip article {
  border-radius: 8px;
}

.home-page .tool-family-head {
  background: #fffaf8;
}

.home-page .tool-family-head h3,
.home-page .tool-row strong,
.expansion-grid strong,
.resource-strip strong {
  letter-spacing: 0;
}

.home-page .tool-row {
  grid-template-columns: minmax(150px, 0.32fr) minmax(240px, 1fr) 78px;
}

.home-page .tool-row[hidden],
.launcher-card[hidden],
.home-page [data-tool-group][hidden] {
  display: none;
}

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

.expansion-grid article {
  display: grid;
  gap: 10px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid #eadfd8;
  background: rgb(255 255 255 / 0.78);
}

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

.resource-strip article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #eadfd8;
  background: #ffffff;
}

.home-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  padding: 44px clamp(18px, 4vw, 56px);
  border-top: 1px solid #eadfd8;
  background: #ffffff;
}

@media (max-width: 1040px) {
  .launcher-grid,
  .expansion-grid,
  .resource-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-header {
    grid-template-columns: auto 1fr;
  }

  .header-button {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-header {
    height: 64px;
  }

  .home-nav {
    display: none;
  }

  .home-landing {
    justify-items: start;
    padding: 42px 0 24px;
    text-align: left;
  }

  .landing-copy {
    justify-items: start;
  }

  .landing-copy h1 {
    max-width: 360px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.05;
  }

  .landing-copy p,
  .simple-section-head p {
    font-size: 16px;
  }

  .landing-actions,
  .simple-section-head {
    justify-content: start;
    justify-items: start;
    text-align: left;
  }

  .launcher-grid,
  .home-page .directory-layout,
  .expansion-grid,
  .resource-strip,
  .home-footer,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .home-page .category-rail {
    position: static;
    grid-template-columns: 1fr;
  }

  .home-page .tool-row {
    grid-template-columns: 1fr;
  }

  .home-page .tool-row small {
    justify-self: start;
  }
}

/* Premium utility homepage */
.premium-home {
  --premium-bg: #fbfaf7;
  --premium-ink: #20242a;
  --premium-muted: #65717f;
  --premium-line: #e7e1d8;
  --premium-panel: #ffffff;
  --premium-accent: #e64832;
  --premium-accent-strong: #c83323;
  --premium-wash: #fff1ed;
  --premium-green: #1f766f;
  --premium-violet: #6860c6;
  background:
    linear-gradient(180deg, #fff7f4 0%, #fbfaf7 38%, #f4efe8 100%);
  color: var(--premium-ink);
}

.premium-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgb(231 225 216 / 0.86);
  background: rgb(251 250 247 / 0.92);
  backdrop-filter: blur(16px);
}

.premium-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--premium-ink);
  font-weight: 860;
  text-decoration: none;
}

.premium-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--premium-accent);
  color: #ffffff;
  font-weight: 860;
}

.premium-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.premium-nav a,
.premium-header-action {
  color: #5f6874;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

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

.premium-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--premium-ink);
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.92fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  min-height: 620px;
  padding: clamp(42px, 7vw, 82px) 0 48px;
}

.hero-copy-block {
  display: grid;
  gap: 18px;
}

.premium-kicker {
  margin: 0;
  color: var(--premium-accent);
  font-size: 14px;
  font-weight: 860;
  letter-spacing: 0;
}

.hero-copy-block h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy-block p {
  max-width: 600px;
  margin: 0;
  color: var(--premium-muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-tool-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.94), rgb(255 255 255 / 0.8)),
    var(--premium-panel);
  box-shadow:
    0 28px 72px rgb(56 45 39 / 0.14),
    inset 0 1px 0 rgb(255 255 255 / 0.86);
}

.premium-search {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #fbfaf7;
}

.premium-search span {
  color: #3b424b;
  font-size: 13px;
  font-weight: 800;
}

.premium-search input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #d9d0c4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--premium-ink);
  padding: 0 16px;
  outline: none;
}

.premium-search input:focus {
  border-color: var(--premium-accent);
  box-shadow: 0 0 0 4px rgb(230 72 50 / 0.15);
}

.quick-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-tool {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--premium-ink);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.quick-tool:hover,
.suite-card:hover,
.premium-tool-list a:hover,
.roadmap-grid article:hover {
  transform: translateY(-2px);
  border-color: #efb3a7;
  box-shadow: 0 16px 40px rgb(56 45 39 / 0.12);
}

.quick-tool small {
  grid-column: 2;
  color: var(--premium-muted);
  font-size: 13px;
  font-weight: 700;
}

.tool-glyph {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--premium-accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 860;
}

.network-tool .tool-glyph {
  background: var(--premium-green);
}

.id-tool .tool-glyph {
  background: var(--premium-violet);
}

.utility-tool .tool-glyph {
  background: #4d6684;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 10px 0 40px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
}

.trust-band article {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-right: 1px solid var(--premium-line);
}

.trust-band article:last-child {
  border-right: 0;
}

.trust-band strong {
  color: var(--premium-ink);
  font-size: 17px;
}

.trust-band span {
  color: var(--premium-muted);
  line-height: 1.5;
}

.popular-suite,
.premium-directory,
.roadmap-library {
  padding: 58px 0;
}

.premium-section-head {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 26px;
}

.premium-section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.premium-section-head p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--premium-muted);
  font-size: 17px;
  line-height: 1.6;
}

.popular-suite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(168px, auto);
  gap: 14px;
}

.suite-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--premium-ink);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.suite-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 350px;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff1ed 100%);
}

.suite-card strong {
  font-size: 21px;
  letter-spacing: 0;
}

.suite-card span:last-child {
  color: var(--premium-muted);
  line-height: 1.55;
}

.suite-card-large strong {
  font-size: 30px;
}

.suite-card-large span:last-child {
  max-width: 420px;
  font-size: 18px;
}

.directory-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.premium-category-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.72);
}

.premium-category-nav a {
  padding: 12px;
  border-radius: 8px;
  color: var(--premium-muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.premium-category-nav a:hover {
  background: var(--premium-wash);
  color: var(--premium-accent);
}

.premium-tool-stack {
  display: grid;
  gap: 16px;
}

.premium-tool-group {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgb(56 45 39 / 0.07);
}

.premium-tool-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--premium-line);
  background: #fffdfb;
}

.premium-tool-group-head h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.premium-tool-group-head p {
  margin: 6px 0 0;
  color: var(--premium-muted);
  line-height: 1.45;
}

.premium-tool-group-head > span {
  color: var(--premium-accent);
  font-size: 14px;
  font-weight: 860;
  white-space: nowrap;
}

.premium-tool-list {
  display: grid;
}

.premium-tool-list a {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(220px, 1fr) 74px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--premium-line);
  color: var(--premium-ink);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.premium-tool-list a:last-child {
  border-bottom: 0;
}

.premium-tool-list a:hover {
  background: #fff8f5;
}

.premium-tool-list strong {
  font-size: 17px;
}

.premium-tool-list span {
  color: var(--premium-muted);
  line-height: 1.5;
}

.premium-tool-list small {
  justify-self: end;
  color: var(--premium-accent);
  font-size: 13px;
  font-weight: 860;
}

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

.roadmap-grid article {
  display: grid;
  gap: 10px;
  min-height: 136px;
  padding: 22px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.78);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.roadmap-grid strong {
  font-size: 20px;
}

.roadmap-grid span {
  color: var(--premium-muted);
  line-height: 1.55;
}

.premium-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  padding: 48px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--premium-line);
  background: #ffffff;
}

.premium-home [data-tool-name][hidden],
.premium-home [data-tool-group][hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .premium-hero,
  .directory-shell,
  .premium-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy-block {
    max-width: 780px;
  }

  .premium-category-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .popular-suite-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .premium-header {
    grid-template-columns: auto 1fr;
    height: 64px;
  }

  .premium-nav,
  .premium-header-action {
    display: none;
  }

  .premium-hero {
    min-height: auto;
    padding: 38px 0 32px;
  }

  .hero-copy-block h1 {
    max-width: 360px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.06;
  }

  .hero-copy-block p,
  .premium-section-head p:last-child {
    font-size: 16px;
  }

  .quick-tool-grid,
  .trust-band,
  .popular-suite-grid,
  .roadmap-grid,
  .premium-category-nav,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .trust-band article {
    border-right: 0;
    border-bottom: 1px solid var(--premium-line);
  }

  .trust-band article:last-child {
    border-bottom: 0;
  }

  .suite-card-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 190px;
  }

  .premium-tool-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-tool-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .premium-tool-list small {
    justify-self: start;
  }
}

/* Refined public homepage */
.refined-home {
  --premium-accent: #2f66d0;
  --premium-accent-strong: #214ea3;
  --premium-wash: #eef4ff;
  --premium-green: #16806d;
  --premium-violet: #6d5dd3;
  background:
    radial-gradient(circle at 50% 0%, rgb(47 102 208 / 0.12), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, #f7f8fb 46%, #f2f4f7 100%);
}

.refined-header .premium-nav a[href="/sitemap.xml"] {
  display: none;
}

.center-hero {
  display: grid;
  place-items: center;
  min-height: clamp(430px, 58vh, 620px);
  padding: clamp(54px, 8vw, 92px) 0 clamp(42px, 6vw, 72px);
  text-align: center;
}

.center-hero-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 900px;
}

.center-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.center-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--premium-muted);
  font-size: 19px;
  line-height: 1.65;
}

.refined-trust {
  margin: 0 0 42px;
  background: rgb(255 255 255 / 0.78);
}

.all-tools-showcase {
  padding: 42px 0 78px;
}

.all-tools-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.all-tools-head h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.inline-tool-search {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgb(31 43 64 / 0.08);
}

.inline-tool-search span {
  color: #394453;
  font-size: 13px;
  font-weight: 800;
}

.inline-tool-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--premium-ink);
  padding: 0 14px;
  outline: none;
}

.inline-tool-search input:focus {
  border-color: var(--premium-accent);
  box-shadow: 0 0 0 4px rgb(47 102 208 / 0.15);
}

.tool-category-block {
  display: grid;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--premium-line);
}

.tool-category-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.tool-category-title h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.tool-category-title span {
  max-width: 560px;
  color: var(--premium-muted);
  line-height: 1.55;
}

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

.tool-tile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 7px 14px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--premium-ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(31 43 64 / 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.tool-tile:hover {
  transform: translateY(-2px);
  border-color: rgb(47 102 208 / 0.28);
  box-shadow: 0 18px 48px rgb(31 43 64 / 0.12);
}

.tool-tile strong {
  font-size: 18px;
  letter-spacing: 0;
}

.tool-tile > span:last-child {
  grid-column: 2;
  color: var(--premium-muted);
  line-height: 1.48;
}

.tool-symbol {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.color-tile .tool-symbol {
  background: #e64f3c;
}

.network-tile .tool-symbol {
  background: #16806d;
}

.encoding-tile .tool-symbol {
  background: #4d66d6;
}

.compression-tile .tool-symbol {
  background: #7b5fc9;
}

.validator-tile .tool-symbol {
  background: #c23f81;
}

.browser-tile .tool-symbol {
  background: #4a6f8f;
}

.tool-tile[hidden],
.tool-category-block[hidden] {
  display: none;
}

.refined-footer .footer-columns a[href="/sitemap.xml"] {
  display: none;
}

@media (max-width: 1100px) {
  .tool-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .all-tools-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tool-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-category-title {
    display: grid;
  }
}

@media (max-width: 560px) {
  .center-hero {
    min-height: auto;
    text-align: left;
    place-items: start;
  }

  .center-hero-copy {
    justify-items: start;
  }

  .center-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .tool-card-grid,
  .refined-trust {
    grid-template-columns: 1fr;
  }

  .tool-tile {
    min-height: 118px;
  }
}

/* FreeCodeFormat-inspired directory and tool polish */
.directory-home {
  --fcf-bg: #f7f9fc;
  --fcf-panel: #ffffff;
  --fcf-text: #111827;
  --fcf-muted: #64748b;
  --fcf-soft: #f1f5f9;
  --fcf-line: #e3eaf3;
  --fcf-blue: #3478f6;
  --fcf-pink: #f472b6;
  --fcf-green: #31b981;
  --fcf-orange: #fb923c;
  min-height: 100vh;
  background: var(--fcf-bg);
  color: var(--fcf-text);
}

.app-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  height: 70px;
  padding: 0 clamp(18px, 3.5vw, 42px);
  border-bottom: 1px solid var(--fcf-line);
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(16px);
}

.app-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.app-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  color: #2f66f2;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.app-mark::before,
.brand-mark::before {
  content: "";
  width: 100%;
  height: 100%;
  background: url("./assets/tooleaxct-mark.svg") center / contain no-repeat;
}

.app-mark > svg,
.brand-mark > svg {
  display: none;
}

.app-mark svg,
.brand-mark svg,
[data-icon] svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.app-nav,
.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

.app-nav a,
.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5f6b7d;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
}

.app-nav a svg,
.top-nav a svg {
  width: 18px;
  height: 18px;
  color: #7aa8ff;
}

.app-nav a:hover,
.top-nav a:hover {
  color: var(--fcf-blue);
}

.app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.directory-main {
  width: min(100% - 42px, 1780px);
  margin: 0 auto;
}

.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
  align-items: end;
  padding: 46px 0 38px;
}

.directory-kicker {
  margin: 0 0 8px;
  color: var(--fcf-blue);
  font-size: 15px;
  font-weight: 850;
}

.directory-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.directory-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--fcf-muted);
  font-size: 18px;
  line-height: 1.55;
}

.directory-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid var(--fcf-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgb(30 41 59 / 0.08);
}

.directory-search span {
  display: grid;
  place-items: center;
  color: #9aa8bc;
  font-size: 24px;
}

.directory-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fcf-text);
  font-size: 18px;
}

.directory-search input::placeholder {
  color: #9aa8bc;
}

.category-board-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.directory-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.directory-column-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
}

.compact-title {
  margin-top: 18px;
}

.category-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
}

.directory-column-title h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.directory-list {
  overflow: hidden;
  border: 1px solid var(--fcf-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgb(30 41 59 / 0.05);
}

.directory-tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #edf2f7;
  color: #536174;
  text-decoration: none;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.directory-tool:last-child {
  border-bottom: 0;
}

.directory-tool:hover {
  background: #f8fbff;
  color: #111827;
}

.directory-tool strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 22px;
}

.color-tone .category-icon {
  background: #ffe8f3;
  color: #ec4899;
}

.color-tone .row-icon {
  color: #f472b6;
}

.network-tone .category-icon {
  background: #e6f0ff;
  color: #377cf6;
}

.network-tone .row-icon {
  color: #75a9ff;
}

.string-tone .category-icon {
  background: #ffe7ee;
  color: #f06292;
}

.string-tone .row-icon {
  color: #fb88aa;
}

.utility-tone .category-icon {
  background: #fff4df;
  color: #f59e0b;
}

.utility-tone .row-icon {
  color: #f6b64b;
}

.validator-tone .category-icon {
  background: #eef2ff;
  color: #6366f1;
}

.validator-tone .row-icon {
  color: #8b8df8;
}

.web-tone .category-icon {
  background: #e9fbf7;
  color: #14b8a6;
}

.web-tone .row-icon {
  color: #3cc9bb;
}

.directory-note-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--fcf-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--fcf-muted);
  box-shadow: 0 6px 22px rgb(30 41 59 / 0.05);
}

.directory-note-card strong {
  color: var(--fcf-text);
  font-size: 18px;
}

.directory-note-card span {
  line-height: 1.55;
}

.directory-tool[hidden],
.directory-column[hidden] {
  display: none;
}

.directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 3.5vw, 42px);
  border-top: 1px solid var(--fcf-line);
  background: #ffffff;
}

.directory-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.directory-footer a {
  color: #64748b;
  font-weight: 720;
  text-decoration: none;
}

.directory-footer a:hover {
  color: var(--fcf-blue);
}

/* Tool page refinement */
body:not(.home-page) {
  background: #f7f9fc;
}

body:not(.home-page) main {
  width: min(100% - 42px, 1320px);
}

body:not(.home-page) .breadcrumb {
  padding: 26px 0 18px;
  color: #7a8799;
  font-size: 15px;
}

body:not(.home-page) .breadcrumb a {
  color: #6d7a8d;
}

body:not(.home-page) .tool-hero {
  display: grid;
  gap: 12px;
  padding: 34px clamp(22px, 4vw, 44px);
  border: 1px solid var(--fcf-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #ffffff;
}

body:not(.home-page) .tool-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
}

body:not(.home-page) .tool-hero p {
  max-width: 760px;
  margin: 0;
  color: #728099;
  font-size: 18px;
}

body:not(.home-page) .tool-page-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding-bottom: 42px;
}

body:not(.home-page) .tool-card {
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 32px rgb(30 41 59 / 0.06);
}

body:not(.home-page) .tool-card,
body:not(.home-page) .example-panel,
body:not(.home-page) .tool-nav {
  border-color: var(--fcf-line);
  background: #ffffff;
}

body:not(.home-page) .tool-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

body:not(.home-page) .tool-kicker {
  color: var(--fcf-blue);
}

body:not(.home-page) .input-row label,
body:not(.home-page) .result-heading {
  color: #334155;
}

body:not(.home-page) .input-row input,
body:not(.home-page) .input-row textarea,
body:not(.home-page) .result-box,
body:not(.home-page) .example-panel {
  border-color: #dbe4ef;
}

body:not(.home-page) .input-row input,
body:not(.home-page) .input-row textarea {
  background: #fbfdff;
}

body:not(.home-page) .primary-button,
body:not(.home-page) .primary-link {
  background: var(--fcf-blue);
}

body:not(.home-page) .primary-button:hover,
body:not(.home-page) .primary-link:hover {
  background: #2664d8;
}

body:not(.home-page) .secondary-button,
body:not(.home-page) .text-button,
body:not(.home-page) .related-links a,
body:not(.home-page) .mini-tool-grid a {
  border-color: #dbe4ef;
  background: #f7faff;
  color: #2f66d0;
}

body:not(.home-page) .result-box {
  background: #fbfdff;
}

@media (max-width: 1180px) {
  .category-board-v2 {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 820px) {
  .app-header,
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .app-nav,
  .top-nav,
  .app-action {
    display: none;
  }

  .directory-hero,
  body:not(.home-page) .tool-page-layout {
    grid-template-columns: 1fr;
  }

  .category-board-v2 {
    grid-template-columns: 1fr;
  }

  .directory-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* FreeCodeFormat-style tool workspace iteration */
.directory-home {
  --fcf-page: #f7f9fd;
  --fcf-panel: #ffffff;
  background: var(--fcf-page);
}

.directory-main {
  padding-top: 0;
}

.home-hero {
  display: grid;
  justify-items: center;
  padding: clamp(60px, 7vw, 96px) 0 clamp(58px, 6vw, 84px);
  text-align: center;
}

.home-hero .home-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 18px;
  padding: 0 10px;
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  background: #f8fbff;
  color: #536176;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-hero h1 {
  max-width: 1060px;
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 900px;
  margin: 28px 0 0;
  color: #4f5f75;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
  min-width: 220px;
  background: #2f66f2;
  color: #ffffff;
  box-shadow: 0 22px 46px rgb(47 102 242 / 0.22);
}

.directory-hero {
  margin-bottom: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.directory-kicker {
  color: #2f66f2;
  font-size: 16px;
  font-weight: 850;
}

.directory-hero h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.directory-hero p {
  max-width: 680px;
}

.category-board-v2 {
  align-items: start;
}

.directory-column {
  background: transparent;
  box-shadow: none;
}

.directory-list {
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 18px 44px rgb(30 41 59 / 0.05);
}

.directory-tool {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.directory-tool {
  align-items: start;
  min-height: 82px;
  padding-top: 14px;
  padding-bottom: 14px;
}

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

.directory-tool-copy strong {
  overflow: hidden;
  color: #3f4b5f;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-tool-copy span {
  color: #758399;
  font-size: 13px;
  line-height: 1.38;
}

.directory-tool + .directory-tool {
  border-top: 1px solid #edf1f6;
}

.directory-tool:hover {
  background: #fbfdff;
}

.home-content,
.home-workflows,
.home-principles,
.home-faq {
  margin-top: clamp(52px, 7vw, 86px);
  border-top: 1px solid #dbe4ef;
  padding-top: clamp(44px, 6vw, 72px);
}

.home-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.home-content-main h2,
.home-workflows h2,
.home-principles h2,
.home-faq h2 {
  max-width: 860px;
  margin: 0 0 22px;
  color: #111827;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-content-main p {
  max-width: 860px;
  margin: 0 0 18px;
  color: #536176;
  font-size: 18px;
  line-height: 1.75;
}

.home-content-aside {
  padding: 28px;
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 18px 44px rgb(30 41 59 / 0.05);
}

.home-content-aside h3 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 22px;
}

.home-content-aside ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-content-aside li {
  color: #536176;
  font-size: 16px;
  line-height: 1.55;
}

.workflow-grid,
.principle-grid {
  display: grid;
  gap: 18px;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid article,
.principle-grid article {
  padding: 24px;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgb(30 41 59 / 0.05);
}

.workflow-grid article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eef5ff;
  color: #2f66f2;
}

.workflow-grid h3,
.principle-grid h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 20px;
}

.workflow-grid p,
.principle-grid p {
  margin: 0;
  color: #64748b;
  line-height: 1.62;
}

.home-faq {
  padding-bottom: clamp(62px, 7vw, 96px);
}

.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.home-faq-grid article {
  padding: 24px;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgb(30 41 59 / 0.05);
}

.home-faq-grid h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
}

.home-faq-grid p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.legal-page {
  background: #f6f8fc;
}

.legal-main {
  width: min(100% - 42px, 920px);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.legal-main h1 {
  margin: 0 0 22px;
  color: #111827;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
}

.legal-main h2 {
  margin: 38px 0 12px;
  color: #111827;
  font-size: 26px;
}

.legal-main p {
  margin: 0 0 18px;
  color: #536176;
  font-size: 18px;
  line-height: 1.75;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin: 30px 0 10px;
  padding: 26px;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgb(30 41 59 / 0.05);
}

.contact-card strong {
  color: #111827;
  font-size: 18px;
}

.contact-card a {
  color: #2f66f2;
  font-size: 20px;
  font-weight: 820;
  text-decoration: none;
}

.legal-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.legal-link-grid a {
  padding: 14px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.05);
}

.legal-link-grid a:hover {
  color: #2f66f2;
  border-color: #bfcef8;
}

body:not(.home-page) {
  background: #f6f8fc;
}

body:not(.home-page) main {
  width: min(100% - 42px, 1460px);
}

body:not(.home-page) .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 0 22px;
}

body:not(.home-page) .tool-page-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding-bottom: 44px;
}

body:not(.home-page) .tool-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 24px 60px rgb(30 41 59 / 0.07);
}

body:not(.home-page) .tool-card > .tool-hero {
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  box-shadow: none;
}

body:not(.home-page) .tool-card > .tool-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: 0;
}

body:not(.home-page) .tool-card > .tool-hero p {
  max-width: 780px;
  color: #6b788d;
  font-size: 19px;
  line-height: 1.55;
}

body:not(.home-page) .tool-card-header,
body:not(.home-page) .tool-form,
body:not(.home-page) .result-box,
body:not(.home-page) .html-preview-box {
  margin-right: clamp(20px, 3vw, 44px);
  margin-left: clamp(20px, 3vw, 44px);
}

body:not(.home-page) .tool-card-header {
  align-items: center;
  padding-top: 32px;
}

body:not(.home-page) .tool-card h2 {
  font-size: clamp(24px, 2.7vw, 36px);
}

body:not(.home-page) .tool-kicker {
  margin-bottom: 7px;
  color: #2f66f2;
  font-size: 13px;
  font-weight: 820;
}

body:not(.home-page) .input-fields {
  gap: 16px;
}

body:not(.home-page) .input-row label {
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body:not(.home-page) .input-row input,
body:not(.home-page) .input-row textarea {
  min-height: 58px;
  border-radius: 14px;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.03);
}

body:not(.home-page) .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 0 8px;
}

body:not(.home-page) .primary-button,
body:not(.home-page) .secondary-button,
body:not(.home-page) .text-button {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 820;
}

body:not(.home-page) .result-box {
  margin-top: 24px;
  margin-bottom: 30px;
  border-radius: 18px;
}

body:not(.home-page) #result-output.preview-status {
  min-height: auto;
  padding-bottom: 14px;
  color: #64748b;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body:not(.home-page) .result-box iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  border-top: 1px solid #edf1f6;
  background: #ffffff;
}

body:not(.home-page) .guided-test {
  display: grid;
  gap: 22px;
  margin: 30px clamp(20px, 3vw, 44px) 34px;
}

body:not(.home-page) .test-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.home-page) .test-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-content: start;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fbfdff;
  color: #64748b;
}

body:not(.home-page) .test-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f66f2;
  font-size: 13px;
  font-weight: 850;
}

body:not(.home-page) .test-step strong {
  align-self: center;
  color: #111827;
  font-size: 15px;
}

body:not(.home-page) .test-step p {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

body:not(.home-page) .test-step.is-active {
  border-color: #94b8ff;
  background: #f5f8ff;
  box-shadow: 0 12px 30px rgb(47 102 242 / 0.08);
}

body:not(.home-page) .test-step.is-complete span {
  background: #2f66f2;
  color: #ffffff;
}

body:not(.home-page) .test-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

body:not(.home-page) .test-status {
  margin: 0;
  color: #41516a;
  font-size: 17px;
  line-height: 1.65;
}

body:not(.home-page) .latency-readout {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 120px;
  border: 1px solid #d7e4ff;
  border-radius: 16px;
  background: #ffffff;
}

body:not(.home-page) .latency-readout span {
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 860;
  line-height: 1;
}

body:not(.home-page) .latency-readout small {
  color: #64748b;
  font-size: 13px;
  font-weight: 720;
}

body:not(.home-page) .latency-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding: 0;
}

body:not(.home-page) .latency-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body:not(.home-page) .latency-result {
  margin: 0;
}

body:not(.home-page) .example-panel {
  margin: 0 clamp(20px, 3vw, 44px) clamp(24px, 3vw, 40px);
  padding: 22px;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: none;
}

body:not(.home-page) .example-panel h2 {
  font-size: 18px;
}

body:not(.home-page) .example-block {
  border-color: #edf1f6;
}

body:not(.home-page) .tool-sidebar {
  position: sticky;
  top: 94px;
  margin: 0;
  padding: 26px;
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 18px 44px rgb(30 41 59 / 0.06);
}

body:not(.home-page) .tool-sidebar h2 {
  margin-bottom: 22px;
  font-size: 22px;
}

body:not(.home-page) .mini-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

body:not(.home-page) .mini-tool-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4d5b70;
  font-weight: 780;
}

body:not(.home-page) .mini-tool-grid a + a {
  border-top: 1px solid #edf1f6;
}

body:not(.home-page) .mini-tool-grid a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #2f66f2;
}

body:not(.home-page) .mini-tool-grid a:hover {
  color: #2f66f2;
}

body:not(.home-page) .seo-section,
body:not(.home-page) .faq-section {
  margin: 0 0 48px;
  padding-top: 42px;
  border-top: 1px solid #dbe4ef;
}

body:not(.home-page) .seo-section-head {
  max-width: 840px;
  margin-bottom: 18px;
}

body:not(.home-page) .section-label {
  margin: 0 0 8px;
  color: #2f66f2;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body:not(.home-page) .seo-section h2,
body:not(.home-page) .faq-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

body:not(.home-page) .seo-section-head > p:last-child {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
}

body:not(.home-page) .seo-card-grid,
body:not(.home-page) .reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body:not(.home-page) .reference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not(.home-page) .insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body:not(.home-page) .seo-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.03),
    0 12px 30px rgb(30 41 59 / 0.04);
}

body:not(.home-page) .seo-card h3 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.25;
}

body:not(.home-page) .seo-card p,
body:not(.home-page) .seo-card li,
body:not(.home-page) .mistake-list li {
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

body:not(.home-page) .seo-card p {
  margin: 0;
}

body:not(.home-page) .seo-card code {
  white-space: normal;
  overflow-wrap: anywhere;
  color: #1d4ed8;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 14px;
}

body:not(.home-page) .seo-card ul,
body:not(.home-page) .seo-card ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

body:not(.home-page) .mistake-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(.home-page) .mistake-list li {
  position: relative;
  padding: 14px 16px 14px 38px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #ffffff;
}

body:not(.home-page) .mistake-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2f66f2;
}

@media (max-width: 980px) {
  .home-content,
  .workflow-grid,
  .principle-grid,
  .home-faq-grid {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .tool-page-layout {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .tool-sidebar {
    position: static;
  }

  body:not(.home-page) .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.home-page) .insight-grid {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .test-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.home-page) .test-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero {
    align-items: start;
    justify-items: start;
    padding: 54px 0 46px;
    text-align: left;
  }

  .home-hero-badge {
    min-height: 28px;
    padding: 0 14px;
    font-size: 12px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .home-hero p {
    font-size: 18px;
  }

  .home-hero-actions {
    justify-content: stretch;
    width: 100%;
  }

  .hero-primary {
    width: 100%;
  }

  body:not(.home-page) .seo-card-grid,
  body:not(.home-page) .reference-grid,
  body:not(.home-page) .insight-grid,
  body:not(.home-page) .mistake-list {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .seo-section,
  body:not(.home-page) .faq-section {
    margin-bottom: 34px;
    padding-top: 32px;
  }

  body:not(.home-page) .guided-test {
    margin-top: 24px;
  }

  body:not(.home-page) .test-steps {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .latency-actions {
    justify-content: stretch;
  }

  body:not(.home-page) .latency-actions button {
    flex: 1 1 100%;
  }
}

/* Final homepage and footer stability pass */
.home-page .home-hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  min-height: min(640px, calc(100svh - 70px));
  padding: clamp(66px, 8vw, 104px) 0 clamp(58px, 7vw, 86px);
  text-align: center;
}

.home-page .home-hero > * {
  grid-column: 1;
}

.home-page .home-hero-badge {
  margin-bottom: 20px;
}

.home-page .home-hero h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(38px, 4.5vw, 62px);
}

.home-page .home-hero p {
  max-width: 880px;
  margin-inline: auto;
}

.home-page .home-hero-actions {
  justify-content: center;
}

.pro-footer,
.site-footer.expanded-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.6fr);
  gap: clamp(34px, 6vw, 88px);
  padding: clamp(46px, 6vw, 72px) clamp(22px, 4vw, 56px) 28px;
  border-top: 1px solid #dbe4ef;
  background: #ffffff;
  color: #64748b;
}

.pro-footer .footer-brand,
.site-footer.expanded-footer .footer-brand {
  align-content: start;
}

.pro-footer .brand,
.site-footer.expanded-footer .brand {
  width: max-content;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
}

.pro-footer .footer-brand p,
.site-footer.expanded-footer .footer-brand p {
  max-width: 380px;
  color: #5f6d82;
  font-size: 15px;
  line-height: 1.7;
}

.pro-footer .footer-columns,
.site-footer.expanded-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.pro-footer .footer-columns div,
.site-footer.expanded-footer .footer-columns div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.pro-footer .footer-columns strong,
.site-footer.expanded-footer .footer-columns strong {
  margin-bottom: 4px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.pro-footer .footer-columns a,
.site-footer.expanded-footer .footer-columns a {
  color: #64748b;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.pro-footer .footer-columns a:hover,
.site-footer.expanded-footer .footer-columns a:hover {
  color: #2f66f2;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #edf1f6;
  color: #7b8798;
  font-size: 13px;
}

@media (max-width: 980px) {
  .pro-footer,
  .pro-footer .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .home-page .home-hero {
    justify-items: start;
    min-height: auto;
    padding: 54px 0 48px;
    text-align: left;
  }

  .home-page .home-hero h1,
  .home-page .home-hero p {
    margin-inline: 0;
  }
}
