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

:root {
  color-scheme: light;
  --bg: #fffefd;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #484848;
  --border: #e8e4df;
  --accent: #67295f;
  --accent-soft: #f6eef4;
  --fail: #8b2f2f;
  --fail-soft: #faf0f0;
  --pass: #2f5c3f;
  --pass-soft: #f0f6f2;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --page-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --page-max: 1120px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  opacity: 0.75;
}

.site-header {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem var(--page-gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  justify-self: center;
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.brand-labs {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav-start {
  justify-self: start;
  grid-column: 1;
}

.site-nav a {
  text-decoration: none;
  position: relative;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--text);
  transform: translateX(-50%);
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--page-gutter) 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.4;
}

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 38rem;
}

.hero h1,
.report-header h1,
.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.hero-copy > p:not(.eyebrow),
.report-header > p:not(.eyebrow),
.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  max-width: 52ch;
}

.hero-visual {
  border-radius: clamp(1rem, 3vw, 1.75rem);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #f3ebe8 0%, #e8dfd8 55%, #d9cec6 100%);
  min-height: 280px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 2rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  border: 0;
  transition: opacity 0.15s ease;
}

.button:hover {
  opacity: 0.85;
  filter: none;
}

body.modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.contact-modal-panel {
  position: relative;
  width: min(100%, 28rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.18);
}

.contact-modal-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-modal-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.contact-field span {
  font-weight: 500;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.contact-form-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--pass);
}

.contact-form-status.is-error {
  color: var(--fail);
}

.contact-submit {
  width: 100%;
  cursor: pointer;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.report-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
}

.section {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.judgment-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
}

.judgment-block h3 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.judgment-block.failed h3 {
  color: var(--fail);
}

.judgment-block.passed h3,
.judgment-block.passed .judgment-toggle {
  color: var(--pass);
}

.judgment-block.passed details {
  margin: 0;
}

.judgment-block.passed .judgment-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: opacity 0.15s ease;
}

.judgment-block.passed .judgment-toggle::-webkit-details-marker {
  display: none;
}

.judgment-block.passed .judgment-toggle::marker {
  content: "";
}

.judgment-block.passed .judgment-toggle:hover {
  opacity: 0.75;
}

.judgment-caret {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.judgment-block.passed details[open] .judgment-caret {
  transform: rotate(45deg);
}

.judgment-block.passed .judgment-panel {
  margin-top: 1rem;
}

.requirement {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.requirement:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.requirement-label {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 1rem;
}

.requirement-justification,
.requirement-evidence {
  margin: 0;
  line-height: 1.55;
}

.requirement-justification {
  font-size: calc(0.95rem * 0.85);
  color: var(--muted);
}

.requirement-evidence {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--text);
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: clamp(0.9rem, 2vw, 1.25rem);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.photo-card img {
  display: block;
  width: 50%;
  margin: 0 auto;
  height: auto;
  background: var(--border);
}

.photo-card-body {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.photo-card-body > h3 {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
}

.photo-card.locked .photo-card-body {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.photo-card.locked img {
  filter: blur(10px);
}

.locked-section .judgment-block {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.page.report-locked {
  padding-bottom: calc(5rem + 6rem);
}

.paywall-float {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.5rem);
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 2.5rem), 36rem);
  padding: clamp(0.85rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.25rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 32px rgba(26, 26, 26, 0.12),
    0 2px 8px rgba(26, 26, 26, 0.06);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.paywall-float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.paywall-float-copy {
  min-width: 0;
}

.paywall-float-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.25;
}

.paywall-float-desc {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.paywall-float-button {
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.95rem;
}

.unlocked-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.error-box {
  background: var(--fail-soft);
  color: var(--fail);
  border: 1px solid #ecd4d4;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  max-width: 42rem;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
    row-gap: 1rem;
  }

  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }

  .site-nav-start {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-visual {
    order: -1;
    aspect-ratio: 16 / 11;
    min-height: 220px;
  }

  .button {
    width: 100%;
  }

  .paywall-float {
    border-radius: 1rem;
    width: calc(100% - 2rem);
  }

  .paywall-float-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .paywall-float-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-nav {
    font-size: 0.9rem;
  }

  .judgment-block,
  .photo-card-body {
    padding: 1rem;
  }
}
