:root {
  --coral: #fc5a3f;
  --navy: #2a3a62;
  --cream: #f6e4ce;
  --ink: #17233e;
  --mist: #e9edf4;
  --white: #fffdfa;
  --shadow: 0 20px 42px rgb(23 35 62 / 18%);
  font-family: MiSans, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  min-height: 100dvh;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.app-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.screen {
  width: min(100%, 920px);
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.welcome {
  background: var(--navy);
  color: var(--white);
  justify-content: space-between;
}

.welcome::after {
  content: "";
  position: absolute;
  width: clamp(210px, 36vw, 370px);
  aspect-ratio: 1;
  right: -8%;
  top: -13%;
  border: 1px solid rgb(255 253 250 / 36%);
  border-radius: 50%;
}

.brand-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cream);
  font-size: 14px;
  letter-spacing: .04em;
}

.brand-strip strong { color: var(--white); font-weight: 700; }
.brand-strip span { font-family: "Space Grotesk", Arial, sans-serif; font-size: 12px; }

.welcome-copy { position: relative; z-index: 1; max-width: 650px; margin: auto 0; }
.welcome-copy h1 { margin: 0; max-width: 10ch; font-size: clamp(42px, 8vw, 84px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.welcome-copy p { max-width: 38ch; margin: 26px 0 0; color: var(--cream); font-size: clamp(17px, 2vw, 21px); line-height: 1.75; }

.welcome-footer { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.robot-lockup { width: clamp(110px, 18vw, 164px); height: auto; background: var(--white); border-radius: 16px; padding: 7px; }

.button-primary, .button-secondary {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 19px;
  font-weight: 800;
  transition: transform 180ms cubic-bezier(.2,.9,.25,1), box-shadow 180ms ease, background-color 180ms ease;
}
.button-primary { background: var(--coral); color: var(--white); box-shadow: 0 12px 22px rgb(23 35 62 / 22%); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgb(23 35 62 / 25%); }
.button-primary:disabled { cursor: wait; background: #b84a38; transform: none; box-shadow: none; }
.button-secondary { background: transparent; color: var(--navy); border: 1px solid rgb(42 58 98 / 32%); }
.button-secondary:hover { background: rgb(42 58 98 / 8%); }

.form-screen { background: var(--cream); }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--navy); font-size: 14px; }
.form-top img { width: 48px; height: 48px; object-fit: contain; background: var(--white); border-radius: 12px; padding: 3px; }
.progress-track { flex: 1; height: 6px; background: rgb(42 58 98 / 16%); overflow: hidden; border-radius: 999px; }
.progress-track span { display: block; width: 100%; height: 100%; background: var(--coral); border-radius: inherit; transform: scaleX(var(--progress, 0)); transform-origin: left center; transition: transform 360ms cubic-bezier(.2,.9,.25,1); }
.progress-label { white-space: nowrap; font-weight: 700; }

.question-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 720px; margin: 0 auto; width: 100%; }
.question-panel h1 { margin: 0; color: var(--navy); font-size: clamp(32px, 5vw, 58px); line-height: 1.14; letter-spacing: -.032em; text-wrap: balance; }
.question-hint { margin: 18px 0 0; color: #465475; font-size: 15px; line-height: 1.65; }
.required-mark { color: var(--coral); }

.input-text {
  width: 100%; margin-top: 34px; padding: 16px 0 14px; border: 0; border-bottom: 2px solid rgb(42 58 98 / 35%); background: transparent; color: var(--ink); font-size: clamp(21px, 3vw, 30px); border-radius: 0;
}
.input-text::placeholder { color: #7d879e; }
.input-text:focus { outline: none; border-bottom-color: var(--coral); }

.choices { display: grid; gap: 12px; margin-top: 32px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 17px 18px; background: var(--white); border: 1px solid rgb(42 58 98 / 16%); border-radius: 15px; color: var(--ink); line-height: 1.45; box-shadow: 0 4px 12px rgb(23 35 62 / 5%); transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.choice:hover { transform: translateY(-1px); border-color: var(--navy); }
.choice:has(input:checked) { background: #fff2eb; border-color: var(--coral); }
.choice input { appearance: none; flex: 0 0 21px; width: 21px; height: 21px; margin: 1px 0 0; border: 2px solid var(--navy); background: var(--white); }
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="checkbox"] { border-radius: 5px; }
.choice input:checked { border-color: var(--coral); background: var(--coral); box-shadow: inset 0 0 0 4px #fff2eb; }
.other-input { display: none; width: 100%; margin-top: 4px; padding: 13px 14px; border: 1px solid rgb(42 58 98 / 24%); border-radius: 12px; background: var(--white); color: var(--ink); }
.other-input.is-visible { display: block; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.validation { min-height: 22px; margin: 14px 0 0; color: #b43520; font-size: 14px; font-weight: 700; }
.privacy { margin-top: 18px; color: #53617d; font-size: 13px; line-height: 1.65; }

.thanks { background: var(--coral); color: var(--white); justify-content: space-between; }
.thanks h1 { margin: auto 0 18px; font-size: clamp(44px, 9vw, 90px); line-height: 1.02; letter-spacing: -.04em; }
.thanks h1 span { display: block; white-space: nowrap; }
.thanks p { max-width: 33ch; margin: 0; font-size: 18px; line-height: 1.75; }
.thanks img { width: clamp(125px, 23vw, 184px); background: var(--white); border-radius: 16px; padding: 7px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

@media (min-width: 921px) {
  .screen { min-height: min(790px, 92dvh); border-radius: 24px; box-shadow: var(--shadow); }
  .app-shell { padding: 4vh 28px; }
}

@media (max-width: 560px) {
  .screen { padding: 22px; }
  .welcome-footer { align-items: flex-start; flex-direction: column-reverse; }
  .robot-lockup { align-self: flex-end; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button-primary { width: 100%; }
}

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