:root {
  --ink: #253246;
  --muted: #5f6978;
  --accent: #6f7de8;
  --accent-soft: #eef1ff;
  --surface: rgba(248, 251, 255, 0.96);
  --line: #d8dee8;
  --danger: #d9372b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #d8d8d8;
  color: var(--ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 236, 232, 0.78), transparent 31%),
    radial-gradient(circle at 88% 43%, rgba(224, 237, 229, 0.72), transparent 34%),
    radial-gradient(circle at 30% 82%, rgba(221, 231, 246, 0.7), transparent 36%),
    linear-gradient(135deg, #d7d7d8 0%, #ebe7e5 48%, #d6dcda 100%);
  background-attachment: fixed;
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: 16px 22px 34px;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.ambient-one {
  top: 4%;
  left: -10%;
  width: 360px;
  height: 360px;
  background: rgba(232, 219, 255, 0.24);
}

.ambient-two {
  right: -12%;
  bottom: 12%;
  width: 430px;
  height: 430px;
  background: rgba(214, 238, 229, 0.3);
}

.hero,
.survey,
.risk {
  width: min(100%, 780px);
  margin-inline: auto;
}

.hero {
  text-align: center;
}

.brand-mark {
  width: 100px;
  height: 100px;
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff7de;
  box-shadow: 0 7px 18px rgba(35, 46, 68, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

h1 {
  max-width: 780px;
  margin: 0 auto;
  color: #0c0c0f;
  font-size: clamp(30px, 3.3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero-copy {
  margin: 20px auto 0;
  color: #202124;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.survey {
  position: relative;
  min-height: 325px;
  margin-top: 46px;
}

.state-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.survey-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.step-two {
  display: none;
}

#q1-yes:checked ~ .step-one,
#q1-no:checked ~ .step-one {
  display: none;
}

#q1-yes:checked ~ .step-two,
#q1-no:checked ~ .step-two {
  display: block;
  animation: step-in 0.36s ease both;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-meta span:last-child {
  font-size: 0;
}

.step-meta span:last-child::after {
  font-size: 13px;
  content: "";
}

.step-one .step-meta span:last-child::after {
  content: "1 of 2";
}

.step-two .step-meta span:last-child::after {
  content: "2 of 2";
}

.progress {
  display: none;
}

.survey h2 {
  max-width: 750px;
  margin: 0 0 27px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 29px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.options {
  display: grid;
  gap: 15px;
}

.option {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 84px;
  padding: 14px 26px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: #303744;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(42, 52, 69, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.option:hover,
.option:focus-within {
  border-color: #9ba6ec;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(61, 73, 101, 0.12);
}

.option-key {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(62, 72, 98, 0.07);
}

.option-arrow {
  display: none;
}

.completion {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(22, 26, 33, 0.58);
  backdrop-filter: blur(6px);
}

#q2-short:checked ~ .completion,
#q2-long:checked ~ .completion {
  display: grid;
  animation: fade-in 0.28s ease both;
}

.completion-panel {
  width: min(100%, 520px);
  padding: 42px 38px;
  border: 1px solid #e4e7ed;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(22, 28, 40, 0.3);
  animation: modal-in 0.35s ease both;
}

.checkmark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e9edff;
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
}

.completion-panel h2 {
  margin: 0 0 12px;
  color: #202631;
  font-size: 28px;
}

.completion-panel > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin: 25px 0 13px;
  padding: 14px 22px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(93, 108, 214, 0.25);
}

.primary-action span {
  display: none;
}

.completion-panel small {
  color: #777f8d;
  font-size: 12px;
}

.form-visual {
  width: min(100%, 600px);
  margin: 48px auto 0;
  padding: 0;
}

.form-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #070914;
  box-shadow: none;
}

.risk {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.risk-icon {
  display: none;
}

.risk h2 {
  margin: 0 0 2px;
  color: var(--danger);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.risk h2::before {
  margin-right: 5px;
  content: "⚠️";
}

.risk p {
  margin: 0;
  color: #3f4754;
  font-size: 16px;
  line-height: 1.45;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px 18px 28px;
  }

  .brand-mark {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .hero-copy {
    margin-top: 15px;
    font-size: 17px;
  }

  .survey {
    min-height: 322px;
    margin-top: 38px;
  }

  .survey h2 {
    margin-bottom: 23px;
    font-size: clamp(23px, 6.8vw, 27px);
  }

  .option {
    grid-template-columns: 44px 1fr;
    min-height: 78px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .option-key {
    width: 38px;
    height: 38px;
  }

  .form-visual {
    width: min(100%, 600px);
    margin-top: 32px;
  }

  .risk {
    margin-top: 24px;
  }

  .risk h2 {
    font-size: 18px;
  }

  .risk p {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 82px;
    height: 82px;
  }

  .survey {
    min-height: 314px;
  }

  .step-meta,
  .step-meta span:last-child::after {
    font-size: 12px;
  }

  .option {
    grid-template-columns: 40px 1fr;
    gap: 7px;
    min-height: 74px;
    padding: 11px 14px;
  }

  .option-key {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .completion {
    padding: 13px;
  }

  .completion-panel {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
