.clarity-hero {
  min-height: 430px;
}

.hero-examples {
  margin: -8px 0 22px;
  color: #94a3b8;
  font-size: 13px;
}

.audience-paths,
.how-it-works,
.plain-explainer,
.glossary,
.language-note,
.disclosure-section {
  margin-top: 46px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.path-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(17, 24, 39, .06);
  overflow: hidden;
}

.path-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  inset: auto auto -110px -70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.developer-path::after {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.path-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  font-weight: 900;
}

.developer-path .path-icon {
  color: #047857;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
}

.path-label {
  margin: 18px 0 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.path-card h3 {
  margin: 0;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.4;
}

.path-card p:not(.path-label) {
  max-width: 580px;
  color: var(--muted);
}

.path-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.path-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.how-it-works {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface));
}

.how-it-works h2,
.plain-explainer h2,
.glossary h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.35;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.step-grid li {
  display: flex;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.step-grid li > span {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.step-grid strong {
  display: block;
  margin-bottom: 5px;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.plain-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr);
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plain-explainer > div:first-child p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.plain-explainer > .button {
  grid-column: 1 / -1;
  width: fit-content;
}

.example-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-soft);
  direction: rtl;
}

.example-flow span {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.example-flow b {
  color: var(--primary);
}

.section-intro {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
}

.section-intro a {
  color: var(--primary);
  font-weight: 800;
}

.simplified-advisor {
  margin-top: 0;
  margin-bottom: 18px;
}

.advanced-filter-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .04);
  overflow: hidden;
}

.advanced-filter-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.advanced-filter-panel > summary::-webkit-details-marker {
  display: none;
}

.advanced-filter-panel > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--primary);
  background: var(--surface-soft);
  font-size: 20px;
}

.advanced-filter-panel[open] > summary::after {
  content: "−";
}

.advanced-filter-panel summary span,
.advanced-filter-panel summary small {
  display: block;
}

.advanced-filter-panel summary small {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.advanced-filter-panel .filters {
  margin: 0 14px 14px;
  border-radius: 16px;
  box-shadow: none;
}

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

.glossary-grid details {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.glossary-grid summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.glossary-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.disclosure-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.disclosure-section > summary {
  padding: 17px 20px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

.disclosure-section > div {
  padding: 0 20px 20px;
}

.language-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.language-note p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.language-note a {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 960px) {
  .path-grid,
  .plain-explainer {
    grid-template-columns: 1fr;
  }

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

  .plain-explainer > .button {
    grid-column: 1;
  }

  .simplified-advisor {
    grid-template-columns: 1fr 1fr;
  }

  .simplified-advisor .advisor-results {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar nav a[href="#how-it-works"],
  .topbar nav a[href="#catalog"] {
    display: none;
  }

  .clarity-hero {
    min-height: 0;
  }

  .path-grid,
  .step-grid,
  .glossary-grid,
  .simplified-advisor,
  .simplified-advisor .advisor-results {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 0;
  }

  .trust-strip {
    width: calc(100% - 28px);
  }

  .example-flow {
    flex-wrap: wrap;
  }

  .advanced-filter-panel > summary {
    align-items: flex-start;
  }

  .advanced-filter-panel summary small {
    display: none;
  }

  .language-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
