body.cl-home-page {
  --home-bg: #f7f9fc;
  --home-surface: #ffffff;
  --home-soft: #f1f5ff;
  --home-line: #dce5f2;
  --home-line-strong: #c7d6ea;
  --home-text: #0b1220;
  --home-muted: #536179;
  --home-primary: #155dfc;
  --home-primary-strong: #0b45c9;
  --home-success: #0f8f5f;
  --home-radius: 12px;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] body.cl-home-page,
[data-theme="dark"] .tools-home {
  --home-bg: #080d16;
  --home-surface: #0f1726;
  --home-soft: #102348;
  --home-line: #24344f;
  --home-line-strong: #315071;
  --home-text: #f4f7fb;
  --home-muted: #bdc7d8;
  --home-primary: #6ea2ff;
  --home-primary-strong: #9bbcff;
  --home-success: #64d7a4;
}

.tools-home {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 54px;
}

.home-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: stretch;
}

.home-command-copy,
.home-start-panel,
.home-strip,
.home-workbench,
.home-pathways,
.home-guide-band,
.home-content-depth,
.home-guides,
.home-faq {
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-surface);
}

.home-command-copy {
  padding: 34px;
}

.home-kicker {
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-soft);
  color: var(--home-primary-strong);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.1;
}

.home-command h1 {
  max-width: 920px;
  margin: 0;
  color: var(--home-text);
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.home-lede {
  max-width: 75ch;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 1.02rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
}

.home-quick-links a,
.home-section-head > a,
.home-tool-card em,
.home-guide-grid a,
.home-path-grid a {
  color: var(--home-primary-strong);
  font-weight: 820;
}

.home-quick-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-soft);
  font-size: 0.88rem;
}

.home-start-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.home-panel-head span {
  display: block;
  color: var(--home-muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.home-panel-head h2 {
  margin: 7px 0 0;
  color: var(--home-text);
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.home-job-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.home-job-list a {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-bg);
}

.home-job-list a:hover,
.home-job-list a:focus-visible,
.home-tool-card:hover,
.home-tool-card:focus-visible,
.home-path-grid article:hover,
.home-guide-grid a:hover,
.home-guide-grid a:focus-visible,
.home-strip a:hover,
.home-strip a:focus-visible {
  border-color: var(--home-primary);
  background: color-mix(in srgb, var(--home-primary) 7%, var(--home-surface));
}

.home-job-list strong {
  color: var(--home-text);
  font-size: 0.96rem;
}

.home-job-list span {
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--home-line);
}

.home-strip a {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  background: var(--home-surface);
}

.home-strip strong {
  color: var(--home-text);
  font-size: 0.98rem;
}

.home-strip span {
  color: var(--home-muted);
  font-size: 0.86rem;
}

.home-workbench,
.home-pathways,
.home-guide-band,
.home-content-depth,
.home-guides,
.home-faq {
  margin-top: 18px;
  padding: 24px;
}

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

.home-section-head h2,
.home-guide-band h2,
.home-content-depth h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.home-section-head p,
.home-guide-band p,
.home-content-depth p {
  max-width: 72ch;
  margin: 7px 0 0;
  color: var(--home-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

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

.home-tool-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-bg);
}

.home-tool-card.is-featured {
  grid-column: span 2;
  background: color-mix(in srgb, var(--home-primary) 8%, var(--home-surface));
}

.home-tool-card span {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--home-line-strong);
  border-radius: 999px;
  background: var(--home-surface);
  color: var(--home-primary-strong);
  font-size: 0.76rem;
  font-weight: 820;
}

.home-tool-card strong {
  display: block;
  margin-top: 12px;
  color: var(--home-text);
  font-size: 1.05rem;
  line-height: 1.25;
}

.home-tool-card p {
  margin: 9px 0 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-tool-card em {
  display: block;
  font-size: 0.86rem;
  font-style: normal;
}

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

.home-path-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-bg);
}

.home-path-grid h3 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.08rem;
}

.home-path-grid p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-path-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.home-path-grid a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-surface);
  font-size: 0.82rem;
}

.home-guide-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
  background: var(--home-soft);
}

.home-guide-band ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-guide-band li {
  position: relative;
  padding-left: 22px;
  color: var(--home-text);
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-guide-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-success);
}

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

.home-content-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-bg);
}

.home-content-grid h3 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.03rem;
  line-height: 1.28;
}

.home-content-grid p {
  max-width: none;
  margin-top: 10px;
  color: var(--home-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

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

.home-guide-grid a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-bg);
  overflow: hidden;
}

.home-guide-grid img {
  width: 100%;
  height: 150px;
  flex: 0 0 150px;
  display: block;
  object-fit: cover;
  background: var(--home-soft);
}

.home-guide-copy {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.home-guide-grid strong {
  display: block;
  padding: 0;
  color: var(--home-text);
  font-size: 1rem;
  line-height: 1.3;
}

.home-guide-grid .home-guide-copy > span {
  display: block;
  padding: 0;
  color: var(--home-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-guide-grid em {
  margin-top: auto;
  color: var(--home-primary-strong);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 820;
}

.home-faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-width: 100%;
}

.home-faq-list details {
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: var(--home-bg);
  overflow: hidden;
}

.home-faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  color: var(--home-text);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 820;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface);
  color: var(--home-primary-strong);
}

.home-faq-list details[open] summary::after {
  content: "-";
}

.home-faq-list p {
  margin: 0;
  max-width: 78ch;
  padding: 0 16px 16px;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.home-faq {
  border: 0;
  background: transparent;
  padding: 28px 0 0;
}

.home-faq .home-section-head {
  margin-bottom: 14px;
}

@media (max-width: 1040px) {
  .home-command,
  .home-guide-band {
    grid-template-columns: 1fr;
  }

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

  .home-tool-card.is-featured {
    grid-column: span 1;
  }

  .home-path-grid,
  .home-content-grid,
  .home-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tools-home {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .home-command,
  .home-command-copy,
  .home-start-panel {
    min-width: 0;
    max-width: 100%;
  }

  .home-command {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .home-command-copy > *,
  .home-start-panel > *,
  .home-kicker,
  .home-lede,
  .home-command h1 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-command-copy,
  .home-start-panel,
    .home-workbench,
    .home-pathways,
    .home-guide-band,
    .home-content-depth,
    .home-guides,
    .home-faq {
    padding: 18px;
  }

  .home-command h1 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  .home-lede {
    font-size: 0.98rem;
  }

  .home-strip,
  .home-tool-grid,
  .home-path-grid,
  .home-content-grid,
  .home-guide-grid,
  .home-faq-list {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    display: grid;
    gap: 10px;
  }

  .home-guide-grid img {
    height: 132px;
    flex-basis: 132px;
  }

  .home-guide-copy {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-job-list a,
  .home-strip a,
  .home-tool-card,
  .home-path-grid article,
  .home-guide-grid a {
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .home-tool-card:hover,
  .home-tool-card:focus-visible,
  .home-guide-grid a:hover,
  .home-guide-grid a:focus-visible {
    transform: translateY(-1px);
  }
}
