:root {
  --ink: #050505;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --muted: #666a61;
  --line: #dfe3d6;
  --mint: #35e0b0;
  --mint-soft: #dffbf2;
  --purple: #920073;
  --purple-dark: #260820;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(5, 5, 5, 0.12);
  --font: "Inter", "Aptos", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  color: #ffffff;
  background: var(--purple-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--purple-dark);
}

.hero-media::before {
  content: "zeitgeist";
  position: absolute;
  right: -0.12em;
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 900;
  line-height: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: var(--mint);
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.brand-mark {
  width: 220px;
  max-width: 54vw;
  height: auto;
}

.hero-content {
  max-width: 900px;
  margin-bottom: 54px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
  font-weight: 900;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 5.4vw, 5.25rem);
}

.hero-content p:not(.eyebrow) {
  max-width: 760px;
  margin: 1.25rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2.1vw, 1.35rem);
  line-height: 1.45;
}

.assessment {
  width: min(1320px, calc(100% - 48px));
  margin: -42px auto 72px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-panel {
  min-height: 420px;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-panel h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: clamp(2.15rem, 2.9vw, 3rem);
  line-height: 1.02;
}

.hint {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.progress-wrap {
  margin: 2rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
}

.progress-track {
  height: 12px;
  background: #edf0e6;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--mint);
  transition: width 180ms ease;
}

.form-panel {
  min-height: 420px;
  min-width: 0;
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.question-kicker {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-weight: 900;
}

.question-title {
  max-width: 900px;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 3.3vw, 4.1rem);
}

.question-copy {
  max-width: 900px;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.5;
}

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

.option-card {
  display: grid;
  gap: 0.35rem;
  min-height: 108px;
  padding: 16px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.option-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: var(--ink);
  background: var(--mint-soft);
}

.option-card strong {
  font-size: clamp(1rem, 1.2vw, 1.14rem);
}

.option-card span {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .assessment {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .status-panel h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  }

  .question-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
  }
}

.open-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 900;
}

.field small {
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  border-radius: 0;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.consent-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.4;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: var(--mint);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  border: 2px solid var(--ink);
  padding: 0.75rem 1.05rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  border-radius: 0;
}

.button.primary {
  background: var(--mint);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.result-card {
  display: grid;
  gap: 1rem;
}

.score-band {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
}

.score-number {
  min-width: 96px;
  color: var(--mint);
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
}

.recommendations {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendations li {
  padding: 12px 14px;
  background: var(--mint-soft);
  border-left: 6px solid var(--mint);
}

.error-box {
  margin-top: 1rem;
  color: var(--danger);
  font-weight: 800;
}

.site-footer {
  width: min(1320px, calc(100% - 48px));
  margin: -36px auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: var(--mint);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .assessment {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .status-panel {
    min-height: auto;
    gap: 20px;
  }

  .status-panel h2 {
    overflow-wrap: normal;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .site-footer {
    width: min(100% - 32px, 1180px);
    margin-top: -44px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero-content,
  .assessment {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 62vh;
  }

  .hero-content {
    margin-bottom: 42px;
  }

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

  .form-actions {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    width: min(100% - 24px, 1180px);
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
