:root {
  color-scheme: light;
  --paper: #f3f6f4;
  --ink: #192a24;
  --muted: #6a7972;
  --line: #d7dfda;
  --accent: #176b4a;
  --accent-bright: #b6e4c5;
  --panel: #e8efeb;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 0 24px;
  background-image: linear-gradient(rgba(25, 42, 36, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 42, 36, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  width: 100%;
  max-width: 1160px;
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.wordmark-symbol {
  display: grid;
  width: 27px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.wordmark-light {
  color: var(--muted);
  font-weight: 400;
}

.status,
.eyebrow,
.privacy-note,
.panel-heading,
.panel-footer,
.signal-label,
.footer-copy {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 74, 0.1);
}

.main-content {
  display: grid;
  width: 100%;
  max-width: 1040px;
  flex: 1;
  align-items: center;
  gap: 64px;
  margin: 0 auto;
  padding: 76px 0 88px;
}

.intro {
  max-width: 620px;
  min-width: 0;
  animation: arrive 600ms ease-out both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.eyebrow-line {
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.eyebrow-index {
  margin-left: 4px;
  color: #8a9891;
  font-size: 8px;
}

h1 {
  max-width: 650px;
  margin: 27px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 12vw, 68px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.03;
}

h1 span {
  color: var(--accent);
  font-style: italic;
}

.description {
  max-width: 505px;
  margin: 0;
  color: #52635b;
  font-size: 15px;
  line-height: 1.8;
}

.start-button {
  display: flex;
  width: min(100%, 390px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding: 0 17px 0 20px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: 600 13px/1.4 var(--font-ui);
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.start-button:hover {
  transform: translateY(-1px);
  background: #10583c;
}

.start-button:focus-visible,
.method-link:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid #80bb98;
  outline-offset: 4px;
}

.button-arrow {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #7c8982;
  font-size: 8px;
}

.privacy-mark {
  color: var(--accent);
  font-size: 8px;
}

.note-divider {
  width: 1px;
  height: 10px;
  margin: 0 2px;
  background: #b8c4bd;
}

.analysis-progress {
  width: min(100%, 390px);
  margin-top: 24px;
}

.analysis-progress[hidden] {
  display: none;
}

.question-stage[hidden],
.flow-stage[hidden],
#landing-stage[hidden] {
  display: none;
}

.progress-indicator[hidden] {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

#progress-value {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: #dce5df;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 100ms linear;
}

.analysis-checklist {
  display: grid;
  gap: 2px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.checklist-item {
  animation: arrive 240ms ease-out both;
}

.checklist-label {
  display: flex;
  min-height: 27px;
  align-items: center;
  gap: 10px;
  color: #52635b;
  font-size: 12px;
  line-height: 1.5;
}

.checklist-item.is-active .checklist-label {
  color: var(--ink);
}

.checklist-label input {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  place-content: center;
  margin: 0;
  appearance: none;
  border: 1px solid #9cab9f;
  border-radius: 2px;
  background: transparent;
}

.checklist-item.is-active .checklist-label input {
  border-color: #d7dfda;
  border-right-color: var(--accent);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 1;
  animation: checklist-spin 800ms linear infinite;
}

.checklist-label input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.checklist-label input:checked::after {
  width: 7px;
  height: 4px;
  transform: translateY(-1px) rotate(-45deg);
  border-bottom: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  content: "";
}

.checklist-item.is-complete .checklist-label input {
  border-color: var(--accent);
  border-radius: 2px;
  background: var(--accent);
  animation: none;
}

.checklist-item.is-complete .checklist-label {
  color: #718078;
}

.simulation-note {
  max-width: 390px;
  margin: 10px 0 0;
  color: #718078;
  font-size: 11px;
  line-height: 1.5;
}

.question-title {
  max-width: 620px;
  margin: 27px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 58px);
  font-weight: 400;
  line-height: 1.06;
}

.question-count {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-prompt {
  max-width: 500px;
  min-height: 34px;
  margin: 0 0 22px;
  color: #52635b;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
}

.answer-options {
  display: grid;
  width: min(100%, 390px);
  gap: 10px;
}

.answer-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid #aebcb4;
  border-radius: 2px;
  background: rgba(243, 246, 244, 0.8);
  color: var(--ink);
  cursor: pointer;
  font: 550 13px/1.4 var(--font-ui);
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.answer-button::after {
  color: var(--accent);
  content: "→";
  font-size: 18px;
  font-weight: 400;
}

.answer-button:hover {
  border-color: var(--accent);
  background: #e8efeb;
}

.answer-button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.7;
}

.answer-button:focus-visible {
  outline: 3px solid #80bb98;
  outline-offset: 3px;
}

.question-disclaimer {
  max-width: 420px;
  margin: 20px 0 0;
  color: #718078;
  font-size: 11px;
  line-height: 1.6;
}

#candidate-photo[hidden],
.portrait-fallback[hidden] {
  display: none;
}

.reveal-heading {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.reveal-heading .question-title {
  margin-bottom: 14px;
}

.reveal-feature {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
}

.candidate-portrait {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

#candidate-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 16px;
  background-image: linear-gradient(rgba(25, 42, 36, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 42, 36, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--accent);
}

.portrait-mark {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(23, 107, 74, 0.35);
  border-radius: 50%;
  background: rgba(243, 246, 244, 0.55);
  font-family: var(--font-display);
  font-size: 48px;
}

.portrait-caption,
.candidate-name {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.candidate-name {
  align-self: center;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.6;
}

.reveal-context {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.serious-heading,
.stakes-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.reveal-context .description + .description {
  margin-top: 14px;
}

.stakes-section {
  padding-top: 28px;
}

.stakes-title {
  margin-bottom: 16px;
  color: var(--accent);
}

.share-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 24px;
}

.share-button {
  justify-content: flex-start;
  margin-top: 0;
}

.share-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-status {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}

.share-manual {
  display: grid;
  width: min(100%, 390px);
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.share-status[hidden],
.share-manual[hidden] {
  display: none;
}

.share-url {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(243, 246, 244, 0.85);
  color: var(--ink);
  font: 12px/1.4 var(--font-ui);
}

.share-url:focus-visible {
  outline: 3px solid #80bb98;
  outline-offset: 3px;
}

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

.information-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(232, 239, 235, 0.55);
}

.information-card-category {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.information-card-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.information-card-title {
  margin: 18px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.information-card-copy {
  color: #52635b;
  font-size: 13px;
  line-height: 1.7;
}

.information-card-copy p {
  margin: 0 0 12px;
}

.information-card-copy p:last-child {
  margin-bottom: 0;
}

.information-card-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(243, 246, 244, 0.75);
  color: #52635b;
  font-size: 12px;
  line-height: 1.65;
}

.information-card-sources {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.information-card-sources summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.information-card-sources summary:hover {
  text-decoration: underline;
}

.information-card-sources a {
  color: var(--accent);
  text-decoration-color: #aab8b0;
  text-underline-offset: 3px;
}

.information-card-sources summary:focus-visible {
  outline: 3px solid #80bb98;
  outline-offset: 4px;
}

.information-card-sources a:focus-visible {
  outline: 3px solid #80bb98;
  outline-offset: 3px;
}

.information-card-sources ul {
  display: grid;
  gap: 11px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.information-card-sources li {
  display: grid;
  gap: 3px;
  color: #52635b;
  font-size: 11px;
  line-height: 1.5;
}

.source-placeholder {
  color: #87948d;
  font-size: 10px;
  font-style: italic;
}

#placeholder-title:focus {
  outline: none;
}

.flow-stage {
  animation: arrive 400ms ease-out both;
}

.second-status {
  min-height: 24px;
  margin: 20px 0 16px;
  color: #52635b;
  font-size: 13px;
  line-height: 1.6;
}

.signal-panel {
  display: none;
  width: 100%;
  max-width: 320px;
  justify-self: end;
  border: 1px solid var(--line);
  background: rgba(232, 239, 235, 0.78);
  animation: arrive 700ms 100ms ease-out both;
}

.panel-heading,
.panel-footer {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: var(--muted);
  font-size: 8px;
}

.panel-heading {
  border-bottom: 1px solid var(--line);
}

.panel-code {
  color: #9ba8a1;
  font-weight: 500;
}

.signal-graphic {
  position: relative;
  display: grid;
  min-height: 248px;
  place-items: center;
  overflow: hidden;
  background-image: linear-gradient(rgba(25, 42, 36, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 42, 36, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.signal-ring {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 107, 74, 0.2);
  border-radius: 50%;
}

.ring-outer {
  width: 168px;
}

.ring-middle {
  width: 116px;
  border-color: rgba(23, 107, 74, 0.29);
}

.ring-inner {
  width: 64px;
  border-color: rgba(23, 107, 74, 0.38);
}

.signal-center {
  z-index: 1;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(23, 107, 74, 0.1);
}

.signal-cross {
  position: absolute;
  width: 5px;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  background: var(--panel);
}

.cross-top { top: calc(50% - 85px); left: calc(50% - 2px); }
.cross-right { top: calc(50% - 2px); left: calc(50% + 82px); }
.cross-bottom { top: calc(50% + 80px); left: calc(50% - 2px); }
.cross-left { top: calc(50% - 2px); left: calc(50% - 87px); }

.signal-label {
  position: absolute;
  color: #718078;
  font-size: 7px;
}

.label-top { top: 27px; }
.label-bottom { bottom: 27px; }

.panel-footer {
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.environment-value {
  color: var(--accent);
}

.footer {
  flex-wrap: wrap;
  width: 100%;
  max-width: 1160px;
  min-height: 63px;
  gap: 16px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.footer-copy {
  color: #87948d;
  font-size: 8px;
}

.photo-credit {
  margin: -8px 0 0;
  color: #87948d;
  font-size: 9px;
  line-height: 1.5;
}

.reveal-feature .photo-credit {
  grid-column: 1 / -1;
}

.photo-credit a {
  color: inherit;
  text-decoration-color: #aab8b0;
  text-underline-offset: 3px;
}

.photo-credit a:focus-visible {
  outline: 3px solid #80bb98;
  outline-offset: 3px;
}

.method-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53665c;
  font-size: 12px;
  text-decoration-color: #aab8b0;
  text-underline-offset: 4px;
}

.method-link span {
  color: var(--accent);
  font-size: 14px;
}

.methodology {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}

.methodology h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.methodology p {
  max-width: 620px;
  margin: 0;
  color: #718078;
  font-size: 12px;
  line-height: 1.65;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (min-width: 760px) {
  .page-shell {
    padding: 0 40px;
  }

  .main-content {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 52px;
    padding: 60px 0;
  }

  .signal-panel {
    display: block;
  }

  h1 {
    font-size: 66px;
  }

}

@media (min-width: 1000px) {
  .reveal-feature {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 22px;
  }

  .information-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding: 0 18px;
  }

  .status {
    font-size: 8px;
  }

  h1 {
    font-size: 42px;
  }

  .description {
    font-size: 14px;
  }
}

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

  .result-confetti span {
    animation: none !important;
    opacity: 0.7;
    transform: none;
  }
}
