:root {
  --bg: #eef1ef; --surface: #ffffff; --ink: #18221f; --muted: #5d6b66; --line: #d6ddd9;
  --accent: #0f6b55; --accent-soft: #e2f1ec; --lock: #8a5a12; --lock-soft: #fbf1df; --danger: #b42318;
  --display: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121816; --surface: #1b2320; --ink: #e7eeeb; --muted: #9aaaa4; --line: #2d3834;
    --accent: #4cc3a0; --accent-soft: #1d332c; --lock: #e0a64a; --lock-soft: #33291a; --danger: #ff8a7a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word;
}
[hidden] { display: none !important; }

.app {
  max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--surface);
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); padding-inline: 24px; }
}

.screen { display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.pre { white-space: pre-line; }
.center { text-align: center; }
.brand { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--muted); }
.big { font-family: var(--display); font-size: 24px; line-height: 1.35; margin: 0; text-wrap: balance; }
.q-text { font-size: 20px; }
.big:focus { outline: none; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }

.field {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 12px; padding: 12px; font: inherit; min-height: 46px;
}
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field[aria-invalid="true"] { border-color: var(--danger); }
select.field { appearance: auto; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px; min-height: 48px;
  font: inherit; font-weight: 700; background: var(--accent); color: var(--surface); cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--line); }
.btn:focus-visible, .link-btn:focus-visible, summary:focus-visible, .check input:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
}
.link-btn {
  border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700;
  padding: 8px 4px; min-height: 40px; cursor: pointer;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.edit-domain { font-size: 13px; white-space: nowrap; }

.big em { font-style: normal; color: var(--accent); }
.pitch { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.mid { font-family: var(--display); font-size: 20px; line-height: 1.4; margin: 0; text-wrap: balance; }
.spots { display: flex; flex-direction: column; gap: 10px; }
.spot { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--bg); }
.spot svg { width: 44px; height: 44px; }
.spot b { display: block; font-family: var(--display); font-size: 16px; }
.spot p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ico-bg { fill: var(--accent-soft); }
.ico-fg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sample { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sample > .tag { align-self: flex-start; }
.sample .item.first { border-top: 0; padding-top: 0; margin-top: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.tag.lock { background: var(--lock-soft); color: var(--lock); }

.error { color: var(--danger); font-size: 14px; margin: 0; }

.domain-chip { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 6px 10px;
  overflow-wrap: anywhere; align-self: flex-start; }
.q-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s ease; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.other-row { display: flex; gap: 8px; }
.other-row .field { flex: 1; min-width: 0; }
.other-row .btn { width: auto; flex: none; padding-inline: 20px; }
.opt {
  text-align: left; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 12px; padding: 14px 12px; min-height: 48px; font: inherit; cursor: pointer;
}
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.checks .done .dot { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.checks .now .dot { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
.checks .fail .dot { border-color: var(--lock); color: var(--lock); }
.checks .wait { color: var(--muted); }
.step-desc { color: var(--muted); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
div.shot { border-radius: 12px; background: var(--bg); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); animation: pulse 1.6s ease-in-out infinite; }
.bar.tall { height: 70px; }
@keyframes pulse { 50% { opacity: .5; } }
.found { font-size: 13px; background: var(--lock-soft); color: var(--lock); border-radius: 8px; padding: 8px 10px; margin: 0; }

.disclaimer { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px; }
.item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.item h3 { font-family: var(--display); font-size: 16px; margin: 0; display: flex; gap: 8px; }
.item h3 b { color: var(--accent); font-variant-numeric: tabular-nums; flex: none; }
.item p { margin: 0; font-size: 14px; }
.blur { filter: blur(4px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.locked { position: relative; }
.locked .blur { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lock-badge { position: absolute; inset: 0; display: grid; place-items: center; }
figure.shot { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.shot img, .shot-tile img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shot-tile { display: flex; flex-direction: column; gap: 4px; }
.shot-tile img, .shot-empty { aspect-ratio: 180 / 166; object-fit: cover; }
.shot-empty { border-radius: 10px; border: 1px solid var(--line); background: var(--line); }
.shot-label { font-size: 12px; font-weight: 700; color: var(--lock); background: var(--lock-soft); border-radius: 8px; padding: 4px 8px; }
.more { font-size: 14px; color: var(--muted); margin: 0; }

.form { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.form-title { font-family: var(--display); font-size: 18px; margin: 0; }
.form label { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fold summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 700; padding: 6px 0; }
.fold.small summary { font-weight: 500; }
.fold .stack { padding-top: 4px; }
.consent { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink) !important; cursor: pointer; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.lead-done { background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 16px; font-weight: 700; }
.lead-done:focus { outline: none; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45); display: grid; place-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.modal-card { width: 100%; max-width: 340px; background: var(--surface); border-radius: 20px; padding: 28px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.modal-card p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.5; text-wrap: balance; }
.modal-check { width: 52px; height: 52px; }
.modal-check circle { fill: var(--accent-soft); }
.modal-check path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .checks .now .dot { border-top-color: var(--accent); }
}

.foot { margin-top: auto; padding-top: 16px; font-size: 12px; }
.foot a, .policy-link { color: var(--muted); }
.policy h2 { font-family: var(--display); font-size: 16px; margin: 10px 0 0; }
.policy p, .policy ul { margin: 0; font-size: 14px; }
.policy ul { padding-left: 20px; }
.policy a.brand { text-decoration: none; }
