@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Neogrotesk Pro";
  src: url("/assets/fonts/NeogroteskPro-Black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}

:root {
  --indigo: #180c54;
  --yellow: #f5bb06;
  --paper: #f7f5ef;
  --ink: #16122e;
  --white: #ffffff;
  --muted: #6f6b8a;
  --muted-light: #ddd8ea;
  --soft: #eeeaf7;
  --line: #cfc8df;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1160px;
  font-family: "Neogrotesk Pro", Arial, sans-serif;
  font-synthesis: none;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--content)) / 2));
  background: var(--indigo);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.report-header img {
  width: 170px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.report-header span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  text-wrap: pretty;
}

h1,
h2 {
  letter-spacing: -0.045em;
  font-weight: 900;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2.15rem, 4.4vw, 4.4rem);
  line-height: 0.98;
}

.mono-label {
  margin-bottom: 18px;
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.mono-label.light {
  color: var(--yellow);
}

.report-loading,
.report-invalid {
  width: min(850px, calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 150px) 0;
}

.report-loading h1,
.report-invalid h1 {
  max-width: 12ch;
  color: var(--indigo);
}

.report-invalid p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(45px, 8vw, 110px);
  align-items: center;
  min-height: 610px;
  padding: clamp(62px, 9vw, 120px) max(20px, calc((100vw - var(--content)) / 2));
  background: var(--indigo);
  color: var(--white);
}

.cover-copy h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.report-date {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.manual-badge {
  display: inline-flex;
  margin: 15px 0 0;
  padding: 0.9em;
  transform: rotate(-2deg);
  border: 3px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--mono);
  font-weight: 700;
}

.score-seal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  width: 250px;
  height: 250px;
  padding: 55px 36px 35px;
  border: 12px solid var(--yellow);
  border-radius: 50%;
  color: var(--white);
}

.score-seal > span {
  font-size: 5.4rem;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.score-seal small {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.score-seal p {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  text-align: center;
}

.report-summary,
.category-section,
.findings-section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(75px, 10vw, 140px) 0;
}

.report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 50px;
  align-items: end;
  border-bottom: 2px solid var(--indigo);
}

.report-summary h2 {
  max-width: 13ch;
  margin-bottom: 0;
  color: var(--indigo);
}

.relevant-summary {
  margin: 0;
  padding: 26px;
  background: var(--yellow);
  color: var(--ink);
}

.relevant-summary strong,
.relevant-summary span {
  display: block;
}

.relevant-summary strong {
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 0.9;
}

.relevant-summary span {
  margin-top: 10px;
  font-weight: 700;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  max-width: 13ch;
  color: var(--indigo);
}

.category-section {
  border-bottom: 1px solid var(--line);
}

.category-list {
  border-top: 2px solid var(--indigo);
}

.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 24px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.category-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
}

.category-score {
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

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

.finding-card {
  position: relative;
  min-width: 0;
  padding: 32px;
  background: var(--white);
  border-top: 5px solid var(--indigo);
  box-shadow: 0 0 0 1px var(--line);
}

.finding-index {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--indigo);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.finding-category {
  display: inline-flex;
  margin: 0 0 28px 12px;
  padding: 0.9em;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finding-card h3 {
  margin-bottom: 14px;
  color: var(--indigo);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.06;
}

.finding-card > p:not(.finding-index, .finding-category) {
  color: var(--muted);
  line-height: 1.55;
}

.finding-action {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.finding-action strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.evidence-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  padding: 14px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.evidence-list li + li {
  margin-top: 8px;
}

.evidence-quote {
  display: block;
}

.evidence-list a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 0 0;
  color: var(--indigo);
  font-weight: 700;
  text-underline-offset: 3px;
}

.fix-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(50px, 9vw, 120px);
  padding: clamp(74px, 10vw, 130px) max(20px, calc((100vw - var(--content)) / 2));
  background: var(--indigo);
  color: var(--white);
}

.fix-copy h2 {
  max-width: 11ch;
}

.fix-copy > p:last-child {
  color: var(--muted-light);
  font-size: 1.08rem;
}

.offer-state {
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: 900;
}

.fix-form {
  padding: clamp(28px, 5vw, 50px);
  background: var(--paper);
  color: var(--ink);
}

.fix-form label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
}

.fix-form label:first-child {
  margin-top: 0;
}

.fix-form label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.fix-form input,
.fix-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--indigo);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}

.fix-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 15px 18px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.fix-form button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.form-error,
.form-success {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--indigo);
  font-weight: 700;
}

.report-footer {
  padding: 38px max(20px, calc((100vw - var(--content)) / 2));
  background: var(--paper);
  color: var(--indigo);
  border-top: 1px solid var(--line);
}

.report-footer > img {
  width: 140px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.report-footer nav {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.report-footer a,
.report-footer summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--indigo);
  cursor: pointer;
  text-underline-offset: 3px;
}

.report-footer details {
  max-width: 780px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.report-footer details p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .report-cover {
    grid-template-columns: 1fr;
  }

  .score-seal {
    width: 210px;
    height: 210px;
    padding: 44px 30px 28px;
    border-width: 10px;
  }

  .score-seal > span {
    font-size: 4.7rem;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .relevant-summary {
    width: min(260px, 100%);
  }

  .findings-list {
    grid-template-columns: 1fr;
  }

  .fix-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .report-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .report-header img {
    width: 135px;
    height: 42px;
  }

  .report-header span {
    max-width: 128px;
    font-size: 0.62rem;
    text-align: right;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.7rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.2rem);
  }

  .report-cover {
    min-height: 700px;
    padding: 58px 16px 70px;
  }

  .report-summary,
  .category-section,
  .findings-section {
    width: calc(100% - 32px);
  }

  .category-row {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .finding-card {
    padding: 26px 20px;
  }

  .finding-category {
    display: flex;
    width: fit-content;
    margin: 0 0 20px;
  }

  .finding-index {
    display: block;
    margin-bottom: 12px;
  }

  .fix-section {
    padding: 64px 16px;
  }

  .fix-form {
    padding: 26px 20px;
  }

  .report-footer {
    padding: 34px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
