body {
  margin: 0;
}

.page.kh-page {
  padding: 0;
}

.kh,
.kh *,
.kh *::before,
.kh *::after {
  box-sizing: border-box;
}

.kh {
  --navy: #05023f;
  --mint: #05edb4;
  --purple: #754eff;
  --ink: #08083b;
  --muted: #656a80;
  --line: #dfe2ec;
  --page: #f5f7fb;
  --soft-purple: #ede8ff;
  --danger: #c93d58;
  background: var(--page);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kh [hidden] {
  display: none !important;
}

.kh main {
  flex: 1;
}

.kh .topbar {
  min-height: 56px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kh .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
}

.kh .brand img {
  display: block;
  width: auto;
  height: 32px;
}

.kh .product {
  color: #c7c7dc;
  font-size: 14px;
  margin-left: 4px;
  white-space: nowrap;
}

.kh .site-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kh .site-menu a {
  color: #52f8ab;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.kh .site-menu a:hover,
.kh .site-menu a:focus-visible {
  text-decoration: underline;
}

.kh .menu-knop {
  display: none;
  width: 40px;
  height: 36px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.kh .menu-knop span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.kh .tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kh .tab {
  border: 1px solid #393663;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.kh .tab:hover,
.kh .tab:focus-visible {
  border-color: var(--mint);
}

.kh .tab.active {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--navy);
  font-weight: 600;
}

.kh .view {
  padding: 32px clamp(20px, 5vw, 72px) 60px;
}

.kh .prototype-note,
.kh .notice,
.kh .management-note {
  max-width: 1120px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-left: 4px solid var(--purple);
  background: #fff;
  border-radius: 10px;
  color: var(--muted);
}

.kh .prototype-note strong,
.kh .notice strong,
.kh .management-note strong {
  color: var(--ink);
}

.kh .check-shell {
  max-width: 900px;
  margin: 0 auto;
}

.kh .intro,
.kh .question-card,
.kh .result {
  scroll-margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 20px 55px rgba(8, 8, 59, 0.08);
}

.kh .eyebrow {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kh h1,
.kh h2,
.kh h3,
.kh p {
  margin-top: 0;
}

.kh h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.kh h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.kh h3 {
  font-size: 19px;
  font-weight: 700;
}

.kh .lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.kh .primary,
.kh .secondary {
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 21px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.kh .primary {
  border: 1px solid var(--mint);
  background: var(--mint);
  color: var(--navy);
}

.kh .primary:hover,
.kh .primary:focus-visible {
  background: #22f5c3;
}

.kh .secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.kh .secondary:hover,
.kh .secondary:focus-visible {
  border-color: var(--purple);
}

.kh .intro .primary {
  margin-top: 12px;
}

.kh .question-area {
  display: grid;
  gap: 14px;
}

.kh .progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.kh .progress-track {
  height: 9px;
  background: #dfe2ea;
  border-radius: 999px;
  overflow: hidden;
}

.kh .progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--mint));
  transition: width 0.25s ease;
}

.kh .help {
  color: var(--muted);
}

.kh .help-note {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.kh .help-note strong {
  font-weight: 800;
  color: var(--navy);
}

.kh .options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.kh .option {
  min-height: 60px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kh .option:hover,
.kh .option:focus-visible {
  border-color: var(--purple);
}

.kh .option.selected {
  border-color: var(--purple);
  background: var(--soft-purple);
  box-shadow: inset 0 0 0 1px var(--purple);
}

.kh .why {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f4f5f9;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
}

.kh .why > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}

.kh .why p,
.kh .solar-advice p,
.kh .result-guidance p,
.kh .form-action p {
  margin: 0;
}

.kh .why strong,
.kh .result-guidance strong {
  color: var(--ink);
}

.kh .error {
  margin: 12px 0 0;
  color: var(--danger);
  font-weight: 600;
}

.kh .actions {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kh .result > h2 {
  max-width: 790px;
  margin-bottom: 22px;
}

.kh .solar-advice {
  margin: 24px 0 8px;
  padding: 20px 22px;
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  background: #f4f2ff;
}

.kh .solar-advice h3 {
  margin-bottom: 7px;
}

.kh .solar-advice p {
  color: #41465e;
}

.kh .advice-panel {
  margin: 30px 0 28px;
  max-width: 100%;
  padding: 30px 32px;
  border: 1px solid #9be9d7;
  border-radius: 20px;
  background: linear-gradient(145deg, #e6fbf5 0%, #f9fffd 68%);
}

.kh .advice-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: start;
}

.kh .advice-intro h3 {
  margin-bottom: 10px;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.kh .advice-intro p {
  margin-bottom: 0;
  color: #41465e;
}

.kh .advice-benefits {
  display: grid;
  gap: 11px;
  padding-top: 4px;
}

.kh .advice-benefit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #25274a;
  font-size: 14px;
}

.kh .advice-benefit span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.kh .advies-melding {
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: 600;
}

.kh .advice-form h4 {
  margin: 26px 0 13px;
  font-size: 16px;
  font-weight: 700;
}

.kh .advice-form {
  max-width: 100%;
  min-width: 0;
}

.kh .form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.kh .form-fields .veld-vol {
  grid-column: 1 / -1;
}

.kh .form-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #40435e;
  font-size: 12px;
  font-weight: 600;
}

.kh .form-fields input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #cfd8d8;
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.kh .advice-form.advies-verstuurd h4,
.kh .advice-form.advies-verstuurd .form-fields,
.kh .advice-form.advies-verstuurd .form-action {
  display: none;
}

.kh .form-fields input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

.kh .form-action {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.kh .form-action p {
  color: #555b70;
  font-size: 12px;
}

.kh .form-action p strong {
  color: #203f3a;
  font-size: 13px;
}

.kh .result-guidance {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f4f5f9;
  color: #555b70;
  font-size: 13px;
}

.kh .result-guidance > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}

.kh .result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.kh .result-grid > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.kh .result-grid ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.kh .restart {
  display: block;
  margin: 27px auto 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.kh .restart:hover,
.kh .restart:focus-visible {
  text-decoration: underline;
}

.kh .page-heading {
  max-width: 1120px;
  margin: 0 auto 28px;
}

.kh .page-heading .lead {
  max-width: 940px;
}

.kh .logic-group {
  max-width: 1120px;
  margin: 0 auto 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.kh .logic-group summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}

.kh .logic-group summary::marker {
  color: var(--purple);
}

.kh .logic-content {
  padding: 0 22px 22px;
  overflow: auto;
}

.kh .logic-content p {
  color: var(--muted);
}

.kh table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 14px;
}

.kh th,
.kh td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.kh th {
  background: #f3f4f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kh .score {
  display: inline-block;
  min-width: 30px;
  padding: 3px 7px;
  margin: 2px;
  border-radius: 999px;
  background: var(--soft-purple);
  color: var(--purple);
  font-weight: 700;
  text-align: center;
}

.kh .rules-section {
  max-width: 1120px;
  margin: 38px auto 0;
}

.kh .rule-grid,
.kh .architecture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kh .rule,
.kh .architecture article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.kh .rule p,
.kh .architecture p {
  margin-bottom: 0;
  color: var(--muted);
}

.kh .architecture {
  max-width: 1120px;
  margin: 0 auto 22px;
}

.kh .architecture article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--mint);
  font-weight: 700;
}

.kh .architecture h2 {
  font-size: 22px;
}

.kh .management-note {
  margin-top: 26px;
}

.kh footer {
  min-height: 44px;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  background: var(--navy);
  font-size: 13px;
}

.kh footer a {
  color: #52f8ab;
  text-decoration: none;
}

.kh footer a:hover,
.kh footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .kh .topbar {
    flex-wrap: wrap;
    align-items: center;
  }

  .kh .menu-knop {
    display: block;
    margin-left: auto;
  }

  .kh .site-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0 10px;
  }

  .kh .site-menu.open {
    display: flex;
  }

  .kh .product {
    display: inline;
    font-size: 13px;
  }

  .kh .tabs {
    width: 100%;
  }

  .kh .tab {
    flex: 1;
    padding-inline: 10px;
  }

  .kh .view {
    padding-top: 22px;
  }

  .kh .options,
  .kh .result-grid,
  .kh .rule-grid,
  .kh .architecture,
  .kh .advice-intro,
  .kh .form-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh h1 {
    font-size: 35px;
  }

  .kh .intro,
  .kh .question-card,
  .kh .result {
    padding: 24px;
  }

  .kh .progress-meta {
    font-size: 12px;
  }

  .kh .actions .primary,
  .kh .actions .secondary,
  .kh .form-action .primary {
    width: 100%;
  }

  .kh .advice-panel {
    margin-inline: 0;
    padding: 24px 20px;
  }

  .kh .advice-intro h3 {
    font-size: 24px;
  }

  .kh .form-action {
    align-items: stretch;
    flex-direction: column;
  }

}
