:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #596579;
  --border: #d9e0ea;
  --accent: #165d7d;
  --accent-dark: #0f455d;
  --bright: #ffd23f;
  --bright-dark: #f2bd00;
  --soft: #eaf4f8;
  --warning: #fff3cd;
  --warning-border: #eed483;
  --quiet-button: #eef2f6;
  --quiet-button-border: #cfd8e3;
  --quiet-button-hover: #e5ebf2;
  --quiet-button-text: #4b5565;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.site-logo {
  width: 96px;
  height: auto;
  display: block;
}

.hero {
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  margin: 0 0 12px;
}

h3 {
  margin: 0 0 10px;
}

.lede {
  max-width: 780px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  padding: 24px;
  margin-bottom: 20px;
}

.notice, .warning {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  line-height: 1.45;
}

.notice {
  background: var(--soft);
  border: 1px solid #cae4ee;
}

.warning {
  background: var(--warning);
  border: 1px solid var(--warning-border);
}

.progress, .nav-row, .result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.nav-row {
  margin-top: 22px;
  margin-bottom: 0;
}

.result-progress {
  margin-bottom: 18px;
}

.result-progress .eyebrow {
  margin-bottom: 0;
}

.restart-button {
  white-space: nowrap;
}

#step-label {
  color: var(--muted);
  font-weight: 700;
}

.help {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.answers button, .secondary, .link-button, .primary-link {
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 16px;
  cursor: pointer;
}

.answers button {
  background: #fff;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text);
}

.answers button:hover,
.answers button:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(22, 93, 125, .15);
}

.secondary {
  background: var(--quiet-button);
  border: 1px solid var(--quiet-button-border);
  color: var(--quiet-button-text);
}

.secondary:hover,
.secondary:focus {
  background: var(--quiet-button-hover);
  border-color: #b9c5d3;
  outline: 3px solid rgba(75, 85, 101, .10);
}

.secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  padding: 0;
}

.primary-link {
  background: var(--bright);
  color: var(--text);
  border: 1px solid var(--bright-dark);
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
}

.primary-link:hover,
.primary-link:focus {
  background: var(--bright-dark);
  color: var(--text);
  outline: 3px solid rgba(255, 210, 63, .35);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.zone-list {
  min-height: 46px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
}

.zone-tag {
  display: inline-block;
  padding: 8px 10px;
  margin: 4px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid #cae4ee;
  font-weight: 700;
}

.hidden { display: none; }

code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #101828;
  color: #f5f7fb;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
}

@media (max-width: 560px) {
  .site-logo {
    width: 76px;
  }

  .progress, .nav-row, .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link, .secondary {
    width: 100%;
    text-align: center;
  }
}
