:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.94);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --text: #123f75;
  --muted: #57718f;
  --line: rgba(18, 63, 117, 0.12);
  --brand: #36beb8;
  --brand-dark: #123f75;
  --brand-soft: rgba(54, 190, 184, 0.12);
  --success: #269a81;
  --warning: #36beb8;
  --danger: #174d8b;
  --shadow: 0 28px 60px rgba(18, 63, 117, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background-color: #ffffff;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/sail-pattern.png");
  background-repeat: repeat;
  background-size: 200px 200px;
  background-position: top left;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero-card,
.results-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 32px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
}

.brand-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
}

.hero-copy {
  margin-top: 20px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 5.3vw, 3.45rem);
  line-height: 1.02;
  color: var(--brand-dark);
}

.subheadline {
  max-width: 42rem;
  margin: 20px 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}

.scan-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 28px;
}

.scan-form input,
.scan-form button {
  min-height: 56px;
  border-radius: 14px;
  font: inherit;
}

.scan-form input {
  padding: 0 18px;
  border: 1px solid rgba(18, 63, 117, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.scan-form button {
  padding: 0 22px;
  border: none;
  color: #f8ffff;
  background: var(--brand-dark);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 12px 24px rgba(18, 63, 117, 0.2);
}

.scan-form button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.scan-form button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.progress-shell {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--brand-soft));
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-label,
.progress-percent {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.progress-track {
  height: 12px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 63, 117, 0.08);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transition: width 300ms ease;
}

.status-text {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
}

.helper-text {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.results-card {
  margin-top: 20px;
  padding: 24px;
}

.hidden {
  display: none;
}

.score-row,
.result-grid {
  display: grid;
  gap: 16px;
}

.score-row {
  grid-template-columns: 180px 1fr;
  align-items: end;
}

.score-value {
  margin: 0;
  font-size: 4rem;
  line-height: 0.9;
  color: var(--brand-dark);
}

.site-summary {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.result-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.result-panel p {
  margin: 0;
  line-height: 1.55;
}

.cta-panel {
  background: linear-gradient(180deg, rgba(54, 190, 184, 0.08), rgba(255, 255, 255, 0.96));
}

.cta-copy {
  max-width: 44rem;
  color: var(--muted);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 63, 117, 0.14);
  color: var(--brand-dark);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.cta-link:hover {
  background: rgba(54, 190, 184, 0.12);
}

.list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

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

.question-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.pill {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.pill.answered {
  background: var(--success);
}

.pill.partially_answered {
  background: var(--warning);
}

.pill.not_answered,
.pill.unclear {
  background: var(--danger);
}

.question-meta {
  margin-top: 10px;
  color: var(--muted);
}

.question-links {
  margin-top: 8px;
  font-size: 0.95rem;
}

.question-links a {
  color: var(--brand-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 980px);
    padding-top: 20px;
  }

  .hero-card,
  .results-card {
    border-radius: 20px;
  }

  .hero-card {
    padding: 22px;
  }

  .scan-form,
  .score-row,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .progress-meta,
  .question-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-value {
    font-size: 3.3rem;
  }
}
