:root {
  --yellow: #fbcf00;
  --yellow-dark: #d7ad00;
  --black: #000000;
  --night: #0a0a0a;
  --ink: #15181d;
  --charcoal: #242424;
  --muted: #575756;
  --line: #deded8;
  --soft-line: rgba(0, 0, 0, 0.1);
  --surface: #ffffff;
  --wash: #f5f5f1;
  --success: #1f7a4d;
  --success-soft: #e7f4ee;
  --warning: #b46a00;
  --warning-soft: #fff3df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --review: #9a5b00;
  --review-soft: #fff6e8;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--wash);
  font-family: Stolzl, "Sora", "General Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  width: 100%;
  margin: 0;
  padding: 18px max(16px, calc((100vw - 1180px) / 2)) 16px;
  background: var(--night);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 236px;
  height: 64px;
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(251, 207, 0, 0.18);
}

.brand-word {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand-word span {
  color: var(--yellow);
}

.brand-sub {
  margin-top: 3px;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.58fr);
  gap: 44px;
  align-items: end;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 64px max(16px, calc((100vw - 1180px) / 2)) 28px;
  background: var(--night);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: #e4e4df;
  font-size: 18px;
  line-height: 1.65;
}

.risk-card,
.assessment-panel,
.results-panel,
.upsell-card,
.faq details {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.risk-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.risk-card article {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.risk-card article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.risk-card h2 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.25;
}

.risk-card p,
.field small,
.fine-print,
.classification,
.finding-group > p,
.marketplace-panel > p,
.faq p,
.upsell-card p,
.site-footer,
.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.risk-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 24px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
}

.trust-bar span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #333333;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.assessment-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.panel-header h2,
.results-header h2,
.upsell-card h2,
.section-heading h2 {
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: 27px;
  line-height: 1.15;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.consent span {
  color: #333c46;
  font-size: 14px;
  font-weight: 760;
}

input,
select {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(251, 207, 0, 0.24);
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 166px;
  padding: 22px;
  border: 1.5px dashed #b8c4d0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.drop-zone.is-dragging {
  border-color: var(--yellow-dark);
  background: rgba(251, 207, 0, 0.12);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border: 1px solid rgba(251, 207, 0, 0.55);
  border-radius: 50%;
  background: rgba(251, 207, 0, 0.2);
  color: var(--black);
}

.drop-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.drop-zone strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.drop-zone small,
.field small {
  font-size: 12px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--yellow);
}

.consent span {
  font-weight: 520;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.primary-button {
  background: var(--yellow);
  color: var(--black);
}

.primary-button:hover {
  background: #ffd91f;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.secondary-button {
  align-self: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--charcoal);
  padding: 0 20px;
}

.secondary-button.compact {
  min-height: 42px;
  padding: 0 16px;
  background: var(--black);
  color: #ffffff;
}

.fine-print {
  margin: 0;
  font-size: 12px;
}

.results-panel {
  min-height: 660px;
  padding: 30px;
}

.empty-state {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 590px;
  text-align: center;
}

.empty-state h2 {
  margin: 18px 0 8px;
}

.score-gauge {
  --score: 0;
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--danger) 0deg 90deg,
      var(--warning) 90deg 180deg,
      var(--review) 180deg 270deg,
      var(--success) 270deg 360deg
    );
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 16px 34px rgba(21, 24, 29, 0.12);
}

.score-gauge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-fill, var(--charcoal)) calc(var(--score) * 3.6deg), rgba(255, 255, 255, 0.82) 0);
  opacity: 0.88;
  transition: background 700ms ease, opacity 700ms ease;
}

.score-gauge.band-high-risk {
  --gauge-fill: var(--danger);
}

.score-gauge.band-correction {
  --gauge-fill: var(--warning);
}

.score-gauge.band-review {
  --gauge-fill: var(--review);
}

.score-gauge.band-ready {
  --gauge-fill: var(--success);
}

.score-gauge.is-empty::before {
  background: conic-gradient(#aeb8c3 0deg, rgba(255,255,255,0.74) 0);
}

.score-gauge.is-loading {
  animation: gauge-ring-spin 1.35s linear infinite;
}

.score-gauge.is-loading .gauge-value {
  animation: gauge-ring-spin 1.35s linear infinite reverse;
}

.score-gauge.is-loading::before {
  opacity: 0.55;
}

.assess-loading h2 {
  margin: 18px 0 8px;
}

.assess-loading p {
  max-width: 28rem;
  color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
  .score-gauge.is-loading {
    animation: gauge-loading-pulse 1.4s ease-in-out infinite;
  }

  .score-gauge.is-loading .gauge-value {
    animation: none;
  }

  @keyframes gauge-loading-pulse {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.72;
    }
  }
}

.gauge-value {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #fff;
}

.gauge-value strong {
  color: var(--charcoal);
  font-size: 42px;
  line-height: 1;
}

.gauge-value span {
  margin-top: -18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.band-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 18px 0 0;
}

.band-labels span {
  padding: 9px 10px;
  border-radius: 7px;
  background: #f4f7fa;
  color: #4b5662;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  border: 2px solid transparent;
}

.band-labels span[data-band="high-risk"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.band-labels span[data-band="correction"] {
  background: var(--warning-soft);
  color: var(--warning);
}

.band-labels span[data-band="review"] {
  background: var(--review-soft);
  color: var(--review);
}

.band-labels span[data-band="ready"] {
  background: var(--success-soft);
  color: var(--success);
}

.band-labels span.is-active {
  border-color: currentColor;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-weight: 820;
}

.results-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.disclosure-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.disclosure-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ai-label {
  padding: 10px 12px;
  border-left: 4px solid var(--yellow);
  background: #fbf6dc;
  color: var(--black) !important;
  font-weight: 780;
}

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

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 27px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.findings {
  display: grid;
  gap: 16px;
}

.finding-group,
.marketplace-panel,
.report-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.group-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.group-heading h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.group-heading span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef3f7;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 850;
}

.finding-group > p,
.marketplace-panel > p {
  margin: 8px 0 14px;
  font-size: 13px;
}

.checks {
  display: grid;
  gap: 10px;
}

.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.check.pass .check-icon {
  background: var(--success);
}

.check.fail.major .check-icon {
  background: var(--danger);
}

.check.fail.minor .check-icon {
  background: var(--warning);
}

.check-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.check h4 {
  margin: 4px 0 5px;
  font-size: 14px;
}

.check p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check small,
.marketplace-panel small,
.upsell-card small {
  color: #3f4852;
  font-size: 12px;
  line-height: 1.45;
}

.issue-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #fbf6dc;
  color: var(--black);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.empty-line {
  padding: 13px 14px;
  border-radius: 8px;
  background: #f7f9fb;
  color: var(--muted);
  font-size: 13px;
}

.marketplace-panel {
  margin-top: 18px;
  background: #fffef6;
}

.marketplace-panel small {
  display: block;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.report-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  background: #f7fafc;
}

.report-cta h3 {
  margin-bottom: 5px;
}

.report-cta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-cta span {
  color: var(--black);
  font-size: 12px;
  font-weight: 850;
}

.report-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

a {
  color: var(--black);
  font-weight: 850;
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
}

.upsell-card {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
  margin: 26px 0;
  padding: 28px;
}

.upsell-card p {
  max-width: 660px;
  margin-bottom: 10px;
}

.faq {
  margin: 34px 0 42px;
}

.section-heading {
  margin-bottom: 16px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  color: var(--charcoal);
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  margin: 12px 0 0;
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.error {
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 940px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 26px;
    padding-top: 38px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand-mark {
    width: 204px;
    height: 62px;
  }

  .brand img {
    width: 178px;
    height: auto;
  }

  h1 {
    font-size: 38px;
    line-height: 1;
  }

  .assessment-panel,
  .results-panel,
  .upsell-card {
    padding: 20px;
  }

  .results-header,
  .metric-row,
  .band-labels {
    grid-template-columns: 1fr;
  }

  .results-header {
    justify-items: start;
  }

  .score-gauge {
    width: 152px;
    height: 152px;
  }

  .gauge-value {
    width: 108px;
    height: 108px;
  }

  .upsell-card,
  .report-cta {
    flex-direction: column;
  }
}
