:root {
  --ink: #14213d;
  --muted: #5c6b7a;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --surface: #ffffff;
  --bg1: #ecfeff;
  --bg2: #f8fafc;
  --line: #dbe4ee;
  --danger: #b91c1c;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(20, 33, 61, 0.08);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.check-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #99f6e4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #bae6fd 0%, transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}
.check-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 20px 14px 40px;
}
.check-brand h1 { font-size: clamp(1.6rem, 4vw, 2rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.check-brand.compact { margin-bottom: 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.lead { color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.check-stack { display: grid; gap: 10px; }
.check-choice {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: 14px; background: var(--surface);
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease;
}
.check-choice:hover { transform: translateY(-1px); border-color: var(--accent); }
.chev { color: var(--accent); font-weight: 700; }
.check-progress {
  height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 16px;
}
.check-progress span { display: block; height: 100%; background: linear-gradient(90deg, #0f766e, #0284c7); }
.check-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px 20px 28px;
  box-shadow: var(--shadow); animation: rise .35s ease;
}
.check-card--question {
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 22px;
}
.check-card h1 { font-size: 1.35rem; margin: 0 0 12px; line-height: 1.35; }
.check-card--question .check-qtext {
  font-size: clamp(1.28rem, 4.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.45;
  margin: 4px 0 0;
  flex: 0 0 auto;
}
.check-card label { display: block; font-size: 0.85rem; margin: 12px 0 6px; color: var(--muted); }
.check-card input[type="text"],
.check-card input:not([type]) {
  width: 100%; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 1rem;
}
.check-agree { display: flex !important; gap: 10px; align-items: flex-start; margin: 18px 0 !important; color: var(--ink) !important; }
.check-options { display: grid; gap: 10px; margin: 18px 0 22px; }
.check-options--row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  margin: auto 0 0;
  flex: 0 0 auto;
}
/* 모바일: 보기 많으면(복수 8지 등) 한 줄 압착 대신 줄바꿈 */
@media (max-width: 420px) {
  .check-options--row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .check-options--row .check-option {
    flex: 1 1 calc(33.333% - 8px);
    min-width: calc(33.333% - 8px);
    max-width: calc(50% - 4px);
    padding: 10px 6px;
  }
  .check-option__val {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .check-option__label {
    font-size: 0.72rem;
  }
  .check-card--question {
    min-height: auto;
    padding: 20px 14px 18px;
  }
  .check-nav .check-prev,
  .check-nav .check-next {
    width: 4.75rem;
    padding: 9px 10px;
    font-size: 0.85rem;
  }
}
.check-option {
  display: flex; gap: 10px; align-items: center; padding: 14px 14px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.check-options--row .check-option {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: 12px 4px;
  text-align: center;
  margin: 0 !important;
  font-size: inherit;
  color: var(--ink);
  border-radius: 12px;
}
.check-option__val {
  display: block;
  flex: 0 0 auto;
  font-size: clamp(1.2rem, 4.2vw, 1.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 12px;
}
.check-option__label {
  display: block;
  flex: 0 0 auto;
  font-size: clamp(0.62rem, 2.4vw, 0.78rem);
  line-height: 1.25;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 0 2px;
}
.check-option.on .check-option__label,
.check-option:has(input:checked) .check-option__label { color: var(--ink); font-weight: 600; }
.check-option.on, .check-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.check-options--row .check-option.on,
.check-options--row .check-option:has(input:checked) {
  transform: translateY(-1px);
}
.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.check-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  flex: 0 0 auto;
}
.check-primary {
  display: inline-flex; justify-content: center; align-items: center; width: 100%; border: 0; border-radius: 12px;
  padding: 14px 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none;
}
.check-card:not(.check-card--question) > .check-primary {
  margin-top: 28px;
}
.check-card--start .check-agree {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
}
.check-nav .check-prev,
.check-nav .check-next {
  flex: 0 0 auto;
  width: 5.5rem;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.check-nav .check-prev {
  background: #94a3b8;
  color: #fff;
}
.check-nav .check-next {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
}
.check-nav .check-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.check-card--question .check-meta {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.check-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.check-error { background: #fef2f2; color: var(--danger); padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.check-actions {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.check-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .12s ease, opacity .12s ease;
}
.check-btn:hover { transform: translateY(-1px); }
.check-btn--primary {
  background: var(--ink);
  color: #fff;
}
.check-btn--secondary {
  background: var(--accent);
  color: #fff;
}
.check-btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.check-btn--muted {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.check-report-hero {
  text-align: center;
  padding: 8px 0 4px;
}
.check-report-type {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.check-bars { display: grid; gap: 14px; margin: 22px 0 8px; }
.check-bar-row { display: grid; gap: 6px; }
.check-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
}
.check-bar-head strong { color: var(--ink); font-weight: 700; }
.check-bar-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.check-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.check-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #0284c7);
  min-width: 2px;
}
.check-locked {
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed #94a3b8;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.96)),
    repeating-linear-gradient(-45deg, #f1f5f9 0 8px, #e2e8f0 8px 16px);
  text-align: center;
}
.check-locked h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.check-locked p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .check-card { animation: none; }
}
