:root {
  --ink: #17130f;
  --soft-ink: #39312a;
  --muted: #766a60;
  --line: rgba(52, 42, 34, 0.16);
  --paper: #f7f2ea;
  --clay: #a65332;
  --clay-2: #d6a27d;
  --white: #fffaf3;
  --accent: var(--clay);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
}

button, input, select { font: inherit; }

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  background: rgba(247, 242, 234, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 620;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-21deg);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay-2);
}

.one-question-survey {
  min-height: 100vh;
  padding: 68px 24px 32px;
}

.survey-shell {
  width: min(100%, 640px);
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.survey-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.survey-progress { display: none; }

.survey-card form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.survey-card form[hidden] {
  display: none;
}

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

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .2s ease;
}

.progress-copy {
  display: none;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.survey-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.survey-step.active {
  display: contents;
}

.survey-step legend {
  display: none;
}

.survey-helper {
  display: block;
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.survey-step.active .question { display: none; }
.survey-step.active .question.question-current {
  display: flex;
  flex-direction: column;
}

.field-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.question > label:first-child,
.question-label {
  display: block;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.question small {
  display: none;
}

.survey-card input:not([type="checkbox"]):not([type="radio"]),
.survey-card select {
  width: 100%;
  height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}

.survey-card input:focus,
.survey-card select:focus { border-color: var(--clay); box-shadow: none; }

.input-prefix {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.input-prefix span { color: var(--muted); font-size: 18px; }
.input-prefix input { border: 0 !important; }

.choice-grid { display: grid; gap: 10px; }

.choice-grid label,
.check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.choice-grid label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.choice-grid input,
.check-line input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ink);
}

.choice-grid label:has(input:checked) input { accent-color: #fff; }

.check-line {
  margin-top: 14px;
  border: 0;
  padding: 0;
}

.conditional {
  display: none;
  margin-top: 16px;
}

.conditional.is-visible { display: block; }

.survey-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.survey-actions .button:not(.link-action) { flex: 1; }

.survey-actions .link-action {
  flex: none;
  min-height: auto;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.survey-actions .link-action[hidden] { display: none; }

.survey-actions .link-action:hover { color: var(--ink); }

.survey-complete {
  padding: 80px 0;
  text-align: center;
}

.complete-mark {
  display: block;
  margin-bottom: 20px;
  font-size: 36px;
}

.survey-complete h3 { margin: 0 0 12px; font-size: 28px; }
.survey-complete p { margin: 0 0 32px; color: var(--muted); line-height: 1.7; }

@media (max-width: 520px) {
  .nav { padding: 0 20px; }
  .one-question-survey { padding-right: 18px; padding-left: 18px; }
  .survey-actions .button:not(.link-action) { min-height: 56px; padding: 0 20px; }
}
