:root {
  color-scheme: light;
  --background: #f4f0e7;
  --surface: #fffdf8;
  --ink: #17211d;
  --muted: #647068;
  --line: #d8d3c8;
  --green: #1f624a;
  --green-soft: #dce9e1;
  --amber: #9a6316;
  --amber-soft: #f5e8c9;
  --red: #9c3d35;
  --red-soft: #f4ddd8;
  --blue: #315f75;
  --blue-soft: #dce8ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(164, 190, 169, 0.34), transparent 28rem),
    var(--background);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-35deg);
}

.prototype-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  max-width: 790px;
  padding: 88px 0 102px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.intro {
  max-width: 660px;
  margin: 30px 0;
  color: #435048;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.58;
}

.notice {
  max-width: 610px;
  margin: 0 0 30px;
  padding: 15px 18px;
  border-left: 3px solid var(--green);
  background: rgba(255, 253, 248, 0.7);
  color: #435048;
  line-height: 1.5;
}

.notice strong {
  color: var(--ink);
}

.primary-button {
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(31, 98, 74, 0.2);
  color: white;
  cursor: pointer;
  font-weight: 750;
}

.primary-button:hover {
  background: #174e3a;
}

.primary-button:focus-visible {
  outline: 3px solid #9fc4af;
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.run-note {
  display: inline;
  margin-left: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.connection-summary {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.72);
}

.connection-summary-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.connection-summary-heading .eyebrow {
  margin-bottom: 6px;
}

.connection-summary-heading h2 {
  font-family: inherit;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.connection-summary-heading > p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.connection-runs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.connection-runs:empty {
  display: none;
}

.connection-run {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.connection-run-label {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-run h3 {
  margin: 0;
  font-size: 1rem;
}

.connection-run p:not(.connection-run-label) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.connection-run a {
  color: var(--green);
  font-weight: 700;
}

.connection-comparison {
  margin: 13px 0 0;
  padding: 12px 14px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 750;
}

.connection-comparison[data-result="different"] {
  background: var(--green-soft);
  color: var(--green);
}

.connection-comparison[data-result="same"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.switch-prompt {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.switch-prompt[hidden] {
  display: none;
}

.switch-prompt strong {
  font-size: 0.9rem;
}

.switch-prompt p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.results-section {
  padding: 44px 0 70px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.run-status {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.result-groups {
  display: grid;
  gap: 44px;
}

.result-group-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 17px;
}

.result-group-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.result-group-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  line-height: 1.5;
}

.result-card {
  min-height: 220px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.82);
}

.result-card[data-disabled="true"] {
  opacity: 0.68;
  background: transparent;
}

.result-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.result-group {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-name {
  margin: 0;
  font-size: 1.16rem;
}

.result-hostname {
  margin: 8px 0 19px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ebe7dd;
  color: #59625d;
  font-size: 0.73rem;
  font-weight: 800;
}

.status-pill[data-status="accessible"] {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill[data-status="access_failure"] {
  background: var(--red-soft);
  color: var(--red);
}

.status-pill[data-status="intermittent"],
.status-pill[data-status="inconclusive"] {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill[data-status="running"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.attempts {
  display: flex;
  gap: 7px;
  min-height: 13px;
}

.attempt-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d8d3c8;
}

.attempt-dot[data-status="loaded"] {
  background: var(--green);
}

.attempt-dot[data-status="failed"],
.attempt-dot[data-status="timed_out"] {
  background: var(--red);
}

.failure-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: 24px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: var(--red-soft);
}

.failure-alert[hidden] {
  display: none;
}

.failure-alert-label {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.failure-alert h3 {
  margin: 0;
  font-size: 1.22rem;
}

.failure-alert > div:first-child > p:last-child {
  max-width: 670px;
  margin: 8px 0 0;
  color: #60312d;
  line-height: 1.5;
}

.failure-send-panel {
  flex: 0 0 310px;
}

.turnstile-widget {
  min-height: 65px;
  margin-bottom: 10px;
}

.turnstile-widget[hidden] {
  display: none;
}

.failure-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.failure-email-button {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: white;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.failure-email-button[hidden] {
  display: none;
}

.failure-email-button:hover {
  background: #7f302a;
}

.failure-email-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.failure-email-button:focus-visible {
  outline: 3px solid #d99d96;
  outline-offset: 3px;
}

.failure-email-fallback {
  color: #60312d;
  font-size: 0.84rem;
  font-weight: 750;
}

.send-report-status {
  margin: 9px 0 0;
  color: #60312d;
  font-size: 0.82rem;
  line-height: 1.4;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.report-actions[hidden] {
  display: none;
}

.secondary-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 750;
}

.secondary-button:hover {
  background: var(--green-soft);
}

.report-status {
  margin: 0 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-assessment {
  margin: 17px 0 0;
  font-weight: 700;
}

.result-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.explanation {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  margin-bottom: 80px;
  padding: 50px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}

.explanation .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -28px;
  color: #9bc4ae;
}

.explanation p:last-child {
  margin: 5px 0 0;
  color: #cad3cd;
  font-size: 1.02rem;
  line-height: 1.68;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .prototype-badge {
    display: none;
  }

  .hero {
    padding: 62px 0 72px;
  }

  .run-note {
    display: block;
    margin: 12px 0 0;
  }

  .connection-runs {
    grid-template-columns: 1fr;
  }

  .connection-summary {
    padding: 20px 17px;
  }

  .connection-summary-heading {
    display: block;
  }

  .connection-summary-heading > p {
    margin-top: 8px;
  }

  .section-heading {
    display: block;
  }

  .run-status {
    margin-top: 15px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-group-heading {
    display: block;
  }

  .result-group-heading p {
    margin-top: 8px;
  }

  .failure-alert {
    display: block;
  }

  .failure-send-panel {
    margin-top: 18px;
  }

  .failure-email-button,
  .failure-email-fallback {
    margin-top: 18px;
  }

  .explanation {
    display: block;
    padding: 30px 24px;
  }

  .explanation .eyebrow {
    margin-bottom: 12px;
  }

  .explanation p:last-child {
    margin-top: 18px;
  }
}
