:root {
  color-scheme: light;
  --ink: #18211e;
  --muted: #63716c;
  --line: #dae4df;
  --line-strong: #a9b8b1;
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #eef5f1;
  --sage: #517c68;
  --sage-dark: #2f5947;
  --coral: #c9624c;
  --coral-soft: #fff0eb;
  --blue: #315d7d;
  --danger: #b74335;
  --focus: #1f6f5b;
  --shadow: 0 18px 60px rgba(28, 42, 36, 0.14);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(247, 250, 248, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(218, 228, 223, 0.7);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  letter-spacing: 0;
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.status-line {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav-cta {
  border: 1px solid var(--sage);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--sage);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  min-height: 560px;
  height: calc(100svh - 132px);
  max-height: 760px;
  display: flex;
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(17, 32, 27, 0.86), rgba(17, 32, 27, 0.52), rgba(17, 32, 27, 0.1)),
    url("/assets/report-preview.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fd3ad;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  word-break: keep-all;
  text-wrap: balance;
}

.hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.form-actions,
.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

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

.button.primary {
  background: #4b8769;
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.warn {
  background: var(--coral);
  color: #fff;
}

.hero-actions .button.primary {
  min-height: 58px;
  padding: 0 32px;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(20, 52, 39, 0.26);
}

.hero-action-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.landing-band,
.notice,
.survey-shell,
.completion {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 38px 0 46px;
}

.landing-cta-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 34px 0 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.landing-cta-kicker {
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
}

.landing-cta-band h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
  word-break: keep-all;
}

.landing-cta-band p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.landing-cta-band .button {
  min-height: 50px;
  padding: 0 28px;
}

.plain-section h2,
.notice h1,
.step-main h1,
.completion h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}

.plain-section p,
.notice p,
.completion p {
  color: var(--muted);
  line-height: 1.72;
}

.benefit-list,
.trust-list,
.notice-list,
.completion-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.benefit-list li,
.trust-list li,
.notice-list li,
.completion-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.benefit-list li::before,
.trust-list li::before,
.notice-list li::before,
.completion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.trust-list li::before {
  background: var(--blue);
}

.notice {
  padding: 54px 0 80px;
}

.notice-panel,
.form-panel,
.completion-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.notice-panel {
  padding: clamp(24px, 5vw, 46px);
}

.survey-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 28px 0 76px;
}

.step-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.progress-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--coral));
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.progress-step-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  text-align: right;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.step-list button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
}

.step-list button.active {
  color: var(--ink);
  border-color: var(--sage);
  background: #f1f8f4;
}

.step-index {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.form-panel {
  padding: clamp(20px, 4vw, 38px);
}

.step-main > p {
  color: var(--muted);
  line-height: 1.65;
}

.question-list {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}

.question {
  display: grid;
  gap: 12px;
}

.question-header {
  display: grid;
  gap: 6px;
}

.question-title {
  font-weight: 780;
  font-size: 18px;
  line-height: 1.42;
}

.required-mark {
  color: var(--coral);
  margin-left: 4px;
}

.helper {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.option-tile,
.scale-tile,
.consent-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  line-height: 1.45;
}

.option-tile:has(input:checked),
.scale-tile:has(input:checked),
.consent-row:has(input:checked) {
  border-color: var(--sage);
  background: #f2faf5;
}

.option-tile input,
.scale-tile input,
.consent-row input {
  margin-top: 3px;
  accent-color: var(--sage);
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.scale-tile {
  min-height: 76px;
}

.scale-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--sage-dark);
  font-weight: 800;
  font-size: 13px;
}

.field,
.product-field {
  display: grid;
  gap: 7px;
}

.field input,
.field textarea,
.field select,
.product-field input,
.product-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.product-field input:focus,
.product-field select:focus,
.button:focus-visible,
.step-list button:focus-visible,
.option-tile:focus-within,
.scale-tile:focus-within,
.consent-row:focus-within {
  outline: 3px solid rgba(31, 111, 91, 0.2);
  border-color: var(--focus);
}

.product-repeater {
  display: grid;
  gap: 14px;
}

.product-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.product-slot h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-span {
  grid-column: 1 / -1;
}

.consent-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.consent-copy {
  display: grid;
  gap: 4px;
}

.consent-copy small {
  color: var(--muted);
  line-height: 1.55;
}

.error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
}

.error-box,
.safety-box {
  border: 1px solid #efc6bd;
  background: var(--coral-soft);
  color: #6a2b20;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.55;
}

.safety-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.form-actions {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.submit-pending {
  margin-top: 14px;
  color: var(--sage-dark);
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.completion {
  padding: 48px 0 80px;
}

.completion-panel {
  padding: clamp(24px, 5vw, 48px);
}

.result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 4px;
}

.result-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-2);
  color: var(--sage-dark);
  font-weight: 750;
  font-size: 14px;
}

.footer-note {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .status-line {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 560px;
    height: calc(100svh - 112px);
    max-height: 680px;
    background-image:
      linear-gradient(180deg, rgba(17, 32, 27, 0.82), rgba(17, 32, 27, 0.58)),
      url("/assets/report-preview.png");
    background-position: 58% center;
  }

  .landing-band,
  .survey-shell {
    grid-template-columns: 1fr;
  }

  .survey-shell {
    gap: 14px;
    padding-top: 16px;
  }

  .landing-cta-band {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .benefit-list li,
  .trust-list li,
  .landing-cta-band h2,
  .landing-cta-band p {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .step-rail {
    position: sticky;
    top: 56px;
    z-index: 20;
    gap: 0;
  }

  .progress-wrap {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(28, 42, 36, 0.08);
  }

  .progress-track {
    height: 7px;
  }

  .step-list {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 56px;
  }

  .brand span {
    display: none;
  }

  .hero-inner {
    width: min(calc(100% - 32px), 520px);
    padding-bottom: 28px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.12;
  }

  .hero p {
    margin-top: 16px;
    font-size: 15px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-meta {
    margin-top: 14px;
  }

  .hero-actions,
  .form-actions,
  .completion-actions {
    flex-direction: column;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button.primary {
    min-height: 60px;
    font-size: 18px;
  }

  .hero-action-note {
    text-align: center;
  }

  .notice {
    width: min(calc(100% - 24px), 520px);
    padding: 28px 0 56px;
  }

  .notice-panel {
    padding: 24px 20px;
  }

  .notice-list {
    gap: 16px;
  }

  .notice-list li {
    padding-left: 18px;
    line-height: 1.62;
  }

  .notice-list li::before {
    top: 0.72em;
    width: 6px;
    height: 6px;
  }

  .notice .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .progress-meta {
    margin-top: 8px;
  }

  .scale-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scale-tile {
    align-items: center;
    min-height: 54px;
    padding: 12px 14px;
  }

  .scale-tile input {
    margin-top: 0;
  }

  .scale-number {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .submit-pending {
    text-align: center;
  }

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

  .full-span {
    grid-column: auto;
  }
}
