:root {
  --ink: #171717;
  --muted: #606060;
  --line: #dedede;
  --soft: #f7f7f5;
  --yellow: #ffe000;
  --blue: #0877e8;
  --blue-soft: #eef6ff;
  --max: 760px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: #f2f2f0;
  font-family: "TW Cen MT", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

.shell {
  width: min(100%, 900px);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  border-top: 5px solid var(--yellow);
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { width: 52px; height: 52px; display: block; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand-sub { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.edition { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

main { padding: 44px clamp(20px, 7vw, 70px) 56px; }
.content { max-width: var(--max); margin: 0 auto; }

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

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 650;
}

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

.progress-wrap { margin: 34px 0 28px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.progress { height: 4px; overflow: hidden; background: #ececec; }
.progress > span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .25s ease; }

.panel {
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  background: #fff;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 14px 36px rgba(0,0,0,.05);
}

.step { display: none; }
.step.active { display: block; }
.step-label { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
h2 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 29px); line-height: 1.2; font-weight: 650; }
.hint { margin: 0 0 22px; color: var(--muted); }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.choice:hover, .choice:focus-visible { border-color: var(--blue); background: var(--blue-soft); outline: none; transform: translateY(-1px); }
.choice.selected { border-color: var(--blue); background: var(--blue-soft); }
.choice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: 0 0 auto; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.button {
  appearance: none;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { border-color: var(--yellow); background: var(--yellow); color: #111; }
.button.blue { border-color: var(--blue); background: var(--blue); }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); padding-left: 0; }
.button:disabled { opacity: .45; cursor: not-allowed; }

.result {
  border-top: 4px solid var(--yellow);
  background: var(--soft);
  padding: 22px;
  margin-bottom: 24px;
}
.result-kicker { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.result h2 { margin-bottom: 8px; }
.result p { margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}
input:focus, textarea:focus { outline: 2px solid rgba(8,119,232,.22); border-color: var(--blue); }
textarea { min-height: 88px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.consent input { width: auto; margin-top: 3px; }
.status { min-height: 22px; margin: 12px 0 0; font-size: 13px; }
.status.error { color: #a52222; }
.status.success { color: #1a6b3a; }

.aside {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.aside p { margin: 0; color: var(--muted); font-size: 14px; }

footer { padding: 22px clamp(20px, 7vw, 70px) 34px; color: var(--muted); font-size: 12px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .shell { border-top-width: 4px; }
  .brandbar { padding: 14px 18px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 16px; }
  .brand-sub, .edition { font-size: 10px; }
  main { padding: 32px 18px 42px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .aside { grid-template-columns: 1fr; }
  .actions { align-items: stretch; }
  .actions .button:not(.ghost) { flex: 1; text-align: center; }
}

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