:root {
  --navy: #101c2c;
  --navy-soft: #1c2b3e;
  --ivory: #f6f3ed;
  --paper: #ffffff;
  --line: #d8d6d0;
  --text: #18202b;
  --muted: #69717b;
  --soft: #ece9e2;
  --danger: #8d2f2f;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      var(--paper) 0,
      var(--ivory) 65%
    );
}

button,
input {
  font: inherit;
}

.shell {
  width: min(
    calc(100% - 36px),
    var(--max)
  );
  margin: 0 auto;
  padding: 34px 0 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  margin-bottom: 70px;
}

.brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
}

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

.brand-product {
  font-size: 12px;
  letter-spacing: .16em;
}

.screen {
  display: none;
}

.screen-active {
  display: block;
}

#landing {
  max-width: 790px;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(
    40px,
    6.8vw,
    66px
  );
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--navy);
}

h2 {
  margin: 0;
  font-size: clamp(
    30px,
    5vw,
    46px
  );
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--navy);
}

.lead {
  max-width: 690px;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.lead-result {
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 1px;
  margin: 44px 0 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts > div {
  min-height: 108px;
  padding: 22px;
  background: var(--paper);
}

.facts strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 16px;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.notice {
  max-width: 720px;
  margin: 0 0 34px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.button {
  min-height: 52px;
  border: 0;
  padding: 0 24px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  transition:
    transform .12s ease,
    opacity .12s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: default;
  opacity: .45;
  transform: none;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.progress-track {
  height: 2px;
  margin-bottom: 46px;
  background: var(--line);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--navy);
  transition: width .25s ease;
}

.question-card {
  max-width: 760px;
}

.question-number {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.question-help {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-bottom: 9px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  transition:
    border-color .12s ease,
    background .12s ease;
}

.option:hover {
  border-color: #9da4ab;
  background: #fff;
}

.option:has(input:checked) {
  border-color: var(--navy);
  background: #fff;
}

.option input {
  margin-top: 3px;
  accent-color: var(--navy);
}

.option span {
  font-size: 16px;
  line-height: 1.4;
}

.form-error {
  min-height: 24px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.result-card {
  max-width: 760px;
  padding-top: 30px;
}

.result-note {
  margin: 34px 0;
  padding: 20px;
  border-left: 2px solid var(--navy);
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.next-stage-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

footer {
  margin-top: 90px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}

@media (max-width: 680px) {
  .shell {
    width: min(
      calc(100% - 28px),
      var(--max)
    );
    padding-top: 24px;
  }

  .brand {
    margin-bottom: 48px;
  }

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

  .facts > div {
    min-height: auto;
  }

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

  .button {
    width: 100%;
  }
}
