.hkx-audit-hero,
.hkx-audit-results {
  font-family: var(--inter);
  color: var(--black-100);
}

.hkx-audit-container {
  width: min(100%, var(--container-lg));
  margin-inline: auto;
}

.hkx-audit-hero {
  position: relative;
  padding: clamp(95px, 11vw, 160px) 24px 60px;
}

.hkx-audit-intro {
  text-align: center;
}

.hkx-audit-eyebrow,
.hkx-audit-kicker {
  color: var(--violet-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hkx-audit-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
}

.hkx-audit-eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--violet-100);
}

.hkx-audit-intro h1 {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--black-100);
  font-size: clamp(64px, 8.7vw, 126px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.065em;
}

.hkx-audit-intro h1 em {
  color: var(--violet-100);
  font-family: var(--instrument);
  font-weight: 400;
  letter-spacing: -.04em;
}

.hkx-audit-lede {
  max-width: 590px;
  margin: 28px auto 35px;
  color: var(--black-60);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
}

.hkx-audit-start {
  max-width: 730px;
  margin-inline: auto;
  text-align: left;
}

.hkx-audit-start label {
  display: block;
  margin: 0 0 10px 22px;
  font-size: 14px;
  font-weight: 600;
}

.hkx-audit-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 7px;
  border: 1px solid #dcd6e9;
  border-radius: 100px;
  background: var(--white-100);
  box-shadow: 0 12px 38px #27184410;
}

.hkx-audit-input-row:focus-within {
  border-color: #bcb4ca;
}

.hkx-audit-input-row input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black-100);
  font: 500 17px var(--inter);
}

.hkx-audit-input-row input::placeholder {
  color: #8b8696;
}

.hkx-audit-input-row button,
.hkx-audit-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 62px;
  padding: 7px 8px 7px 24px;
  border: 1px solid var(--violet-100);
  border-radius: 100px;
  background: var(--violet-100);
  color: var(--white-100);
  font: 500 16px var(--inter);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hkx-audit-input-row button:hover,
.hkx-audit-button:hover {
  background: var(--purple-100);
  transform: translateY(-2px);
}

.hkx-audit-input-row button:disabled,
.hkx-audit-button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.hkx-audit-button-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white-100);
  color: var(--violet-100);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.hkx-audit-button-icon img {
  display: block;
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.hkx-audit-hint {
  margin: 14px 0 0;
  color: var(--black-60);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.hkx-audit-hint span {
  margin-inline: 6px;
  color: var(--violet-100);
}

.hkx-audit-error {
  margin-top: 12px;
  color: #a52845;
  font-size: 14px;
}

.hkx-audit-scope {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  margin-top: clamp(80px, 9vw, 125px);
  border-top: 1px solid #ded9e7;
  border-bottom: 1px solid #ded9e7;
}

.hkx-audit-scope-intro {
  align-self: center;
  padding: 22px 20px 22px 0;
}

.hkx-audit-scope-intro span {
  color: var(--violet-100);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hkx-audit-scope-intro p {
  max-width: 235px;
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.hkx-audit-scope-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.hkx-audit-scope-list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 23px;
  min-width: 0;
  padding: 24px 14px;
  border-left: 1px solid #ded9e7;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.hkx-audit-scope-list li span {
  color: var(--violet-100);
  font-size: 11px;
  font-weight: 700;
}

.hkx-audit-results {
  padding: 36px 24px 115px;
}

.hkx-audit-results[hidden],
.hkx-audit-loading[hidden],
#audit-report[hidden] {
  display: none !important;
}

.hkx-audit-loading {
  padding: 70px 24px;
  border: 1px solid #e9e2f4;
  border-radius: 26px;
  background: var(--yellow-100);
  text-align: center;
}

.hkx-audit-loading p {
  margin: 22px 0 6px;
  font-size: 24px;
  font-weight: 500;
}

.hkx-audit-loading small {
  color: var(--black-60);
}

.hkx-audit-spinner {
  display: block;
  width: 44px;
  height: 44px;
  margin: auto;
  border: 3px solid #d7c3ef;
  border-top-color: var(--violet-100);
  border-radius: 50%;
  animation: hkx-spin .8s linear infinite;
}

@keyframes hkx-spin {
  to { transform: rotate(360deg); }
}

.hkx-audit-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.hkx-audit-report-header h2 {
  margin: 10px 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.hkx-audit-report-header p:not(.hkx-audit-kicker) {
  margin: 0;
  color: var(--black-60);
}

.hkx-audit-report-header button {
  flex: none;
  padding: 12px 18px;
  border: 1px solid #dcd6e9;
  border-radius: 100px;
  background: var(--white-100);
  color: var(--black-100);
  cursor: pointer;
}

.hkx-audit-summary {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 20px;
}

.hkx-audit-score,
.hkx-audit-categories,
.hkx-audit-panel,
.hkx-audit-locked,
.hkx-audit-lead {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #e6e0eb;
  border-radius: 26px;
  background: var(--white-100);
}

.hkx-audit-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  border-color: #e7d9f5;
  background: var(--yellow-100);
}

.hkx-audit-score strong {
  color: var(--violet-100);
  font-size: clamp(88px, 9vw, 126px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.09em;
}

.hkx-audit-score strong small {
  color: var(--black-60);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
}

.hkx-audit-score p {
  margin: 8px 0 0;
  font-family: var(--instrument);
  font-size: 30px;
  font-style: italic;
}

.hkx-audit-categories h3,
.hkx-audit-panel h3,
.hkx-audit-locked h3,
.hkx-audit-lead h3 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.hkx-audit-category {
  display: grid;
  grid-template-columns: minmax(175px, .7fr) 1fr 64px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #efebf2;
  font-size: 14px;
}

.hkx-audit-category span { font-weight: 500; }
.hkx-audit-category b { text-align: right; }

.hkx-audit-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: #eee7f6;
}

.hkx-audit-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--violet-100);
}

.hkx-audit-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hkx-audit-metrics span {
  padding: 8px 12px;
  border-radius: 100px;
  background: var(--yellow-100);
  font-size: 12px;
}

.hkx-audit-categories .hkx-audit-hint {
  text-align: left;
}

.hkx-audit-warnings {
  margin: 20px 0;
  color: #6f597d;
  font-size: 13px;
}

.hkx-audit-findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.hkx-audit-panel ul {
  margin: 0;
  padding-left: 21px;
}

.hkx-audit-panel li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.hkx-audit-panel li::marker { color: var(--violet-100); }

.hkx-audit-locked {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-color: #e7d9f5;
  background: var(--yellow-100);
}

.hkx-audit-locked > * { position: relative; z-index: 1; }
.hkx-audit-locked p:not(.hkx-audit-kicker) { max-width: 620px; color: var(--black-60); line-height: 1.55; }
.hkx-audit-locked .hkx-audit-button { margin-top: 8px; }

.hkx-audit-lead { margin-top: 20px; }
.hkx-audit-lead form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.hkx-audit-lead label { font-size: 13px; font-weight: 600; }

.hkx-audit-lead input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #ddd7e8;
  border-radius: 12px;
  color: var(--black-100);
  font: 15px var(--inter);
}

.hkx-audit-lead .wide { grid-column: 1 / -1; }
.hkx-audit-lead .hkx-audit-button { width: max-content; padding-right: 24px; }
.hkx-audit-consent { margin: 0; color: var(--black-60); font-size: 12px; line-height: 1.5; }
.hkx-audit-full-report {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid #e6e0eb;
  border-radius: 28px;
  background: var(--white-100);
  scroll-margin-top: 28px;
}

.hkx-audit-full-intro { max-width: 650px; }
.hkx-audit-full-intro .hkx-audit-kicker { margin: 0 0 14px; }
.hkx-audit-full-intro h3 {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.055em;
}
.hkx-audit-full-intro h3 span { color: var(--violet-100); }
.hkx-audit-full-intro h3:focus { outline: none; }
.hkx-audit-full-intro > p:last-child { margin: 16px 0 0; color: var(--black-60); font-size: 16px; line-height: 1.55; }

.hkx-audit-priority-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 42px;
  border: 1px solid #e9e3ee;
  border-radius: 18px;
  overflow: hidden;
}
.hkx-audit-priority-summary > div { display: flex; align-items: baseline; gap: 12px; padding: 18px 24px; }
.hkx-audit-priority-summary > div + div { border-left: 1px solid #e9e3ee; }
.hkx-audit-priority-summary strong { color: var(--violet-100); font-size: 32px; font-weight: 500; line-height: 1; }
.hkx-audit-priority-summary span { color: var(--black-60); font-size: 13px; }

.hkx-audit-priority-group + .hkx-audit-priority-group { margin-top: 48px; }
.hkx-audit-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hkx-audit-priority { color: var(--violet-100); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hkx-audit-group-heading h4 { margin: 5px 0 0; font-family: var(--instrument); font-size: clamp(29px, 3vw, 39px); font-weight: 400; font-style: italic; line-height: 1.1; }
.hkx-audit-group-count { flex: none; color: var(--black-60); font-size: 13px; }
.hkx-audit-issue-list { display: grid; gap: 14px; }
.hkx-audit-issue { padding: clamp(22px, 3vw, 32px); border: 1px solid #e9e3ee; border-radius: 20px; background: #fff; }
.hkx-audit-priority-high .hkx-audit-issue { border-left: 4px solid var(--violet-100); }
.hkx-audit-issue-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: var(--violet-100); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hkx-audit-issue-meta span:last-child { color: #aaa3b3; font-variant-numeric: tabular-nums; }
.hkx-audit-issue h5 { max-width: 780px; margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.22; letter-spacing: -.035em; }
.hkx-audit-issue-page { margin: 11px 0 0; color: var(--black-60); font-size: 12px; overflow-wrap: anywhere; }
.hkx-audit-issue-details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.hkx-audit-issue-details > div { padding: 18px 20px; border-radius: 14px; background: #f7f5f9; }
.hkx-audit-issue-details .hkx-audit-recommendation { background: var(--yellow-100); }
.hkx-audit-detail-label { color: var(--violet-100); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hkx-audit-issue-details p { margin: 9px 0 0; color: #45414c; font-size: 14px; line-height: 1.55; }
.hkx-audit-issue-service { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; font-size: 12px; }
.hkx-audit-issue-service span { color: var(--black-60); }
.hkx-audit-issue-service strong { color: var(--black-100); font-weight: 600; }
.hkx-audit-empty { margin: 32px 0; color: var(--black-60); }
.hkx-audit-full-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; padding: 30px; border-radius: 20px; background: var(--yellow-100); }
.hkx-audit-full-footer .hkx-audit-kicker { margin: 0 0 8px; }
.hkx-audit-full-footer p:not(.hkx-audit-kicker) { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.hkx-audit-full-footer .hkx-audit-button { flex: none; }

.hkx-audit-hero :focus-visible,
.hkx-audit-results :focus-visible {
  outline: 3px solid var(--violet-100);
  outline-offset: 3px;
}

.hkx-audit-input-row input:focus-visible { outline: none; }

@media (max-width: 1000px) {
  .hkx-audit-scope { grid-template-columns: 1fr; gap: 0; }
  .hkx-audit-scope-intro { padding: 24px 0; }
  .hkx-audit-scope-intro p { max-width: none; }
  .hkx-audit-scope-list li:first-child { border-left: 0; }
  .hkx-audit-summary { grid-template-columns: 1fr; }
  .hkx-audit-score { min-height: 250px; }
}

@media (max-width: 700px) {
  .hkx-audit-hero { padding: 76px 18px 40px; }
  .hkx-audit-intro h1 { font-size: clamp(52px, 11vw, 78px); }
  .hkx-audit-lede { margin-top: 22px; }
  .hkx-audit-input-row { align-items: stretch; flex-direction: column; border-radius: 24px; }
  .hkx-audit-input-row input { width: 100%; }
  .hkx-audit-input-row button { width: 100%; }
  .hkx-audit-scope { margin-top: 75px; }
  .hkx-audit-scope-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hkx-audit-scope-list li { min-height: 104px; border-top: 1px solid #ded9e7; }
  .hkx-audit-scope-list li:nth-child(odd) { border-left: 0; }
  .hkx-audit-scope-list li:last-child { grid-column: 1 / -1; }
  .hkx-audit-scope-list li:first-child,
  .hkx-audit-scope-list li:nth-child(2) { border-top: 0; }
  .hkx-audit-results { padding: 25px 18px 80px; }
  .hkx-audit-report-header { display: block; }
  .hkx-audit-report-header button { margin-top: 18px; }
  .hkx-audit-findings { grid-template-columns: 1fr; }
  .hkx-audit-category { grid-template-columns: 125px 1fr 49px; gap: 9px; font-size: 12px; }
  .hkx-audit-lead form { grid-template-columns: 1fr; }
  .hkx-audit-priority-summary { margin-bottom: 36px; }
  .hkx-audit-priority-summary > div { display: block; padding: 15px; }
  .hkx-audit-priority-summary strong { display: block; margin-bottom: 5px; font-size: 26px; }
  .hkx-audit-priority-summary span { font-size: 11px; }
  .hkx-audit-issue-details { grid-template-columns: 1fr; gap: 10px; }
  .hkx-audit-full-footer { align-items: flex-start; flex-direction: column; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hkx-audit-spinner { animation: none; }
  .hkx-audit-input-row button,
  .hkx-audit-button { transition: none; }
}
