/* Quiz Funnel Draft — shared base */
:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e8e4de;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
  --font: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  appearance: none;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px 24px;
  padding-bottom: calc(24px + var(--safe-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip-bg, #efeae3);
  color: var(--chip-fg, #5a5046);
  font-size: 12px;
  font-weight: 600;
}

.hero { padding: 12px 0 8px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 14px 0;
}
.card h2, .card h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.feature-list li:first-child { border-top: none; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px; flex-shrink: 0;
  background: var(--accent, #3b5bdb);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 18px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent, #3b5bdb);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--accent, #3b5bdb);
  border: 1.5px solid var(--accent-border, color-mix(in srgb, var(--accent, #3b5bdb) 35%, white));
}
.btn-ghost {
  background: #f1eee9;
  color: var(--text);
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: grid; gap: 10px; margin-top: 16px; }
.btn-row.two { grid-template-columns: 1fr 1fr; }

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price .now { font-size: 28px; font-weight: 800; color: var(--accent, #3b5bdb); }
.price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price .tag {
  font-size: 12px;
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #3b5bdb);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.progress-wrap { margin: 8px 0 16px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-bar {
  height: 8px;
  background: #ebe6df;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent, #3b5bdb);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.question-card .q-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #3b5bdb);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.question-card h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 16px;
}
.options { display: grid; gap: 10px; }
.option {
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.12s, background 0.12s;
}
.option:hover, .option:focus-visible {
  border-color: var(--accent, #3b5bdb);
  outline: none;
}
.option.selected {
  border-color: var(--accent, #3b5bdb);
  background: var(--accent-soft, #eef2ff);
  font-weight: 600;
}

.dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.dim-chip {
  background: var(--accent-soft, #eef2ff);
  border-radius: 12px;
  padding: 12px;
}
.dim-chip .label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dim-chip .value { font-size: 16px; font-weight: 800; color: var(--accent, #3b5bdb); }

.lock-block {
  position: relative;
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed color-mix(in srgb, var(--accent, #3b5bdb) 40%, #ccc);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft, #eef2ff) 100%);
  padding: 16px;
}
.lock-block .catalog { list-style: none; padding: 0; margin: 0 0 12px; }
.lock-block .catalog li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lock-block .catalog li:last-child { border-bottom: none; }
.lock-icon {
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}
.blur-preview {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.pay-channels { display: grid; gap: 10px; margin: 12px 0; }
.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.channel.selected {
  border-color: var(--accent, #3b5bdb);
  background: var(--accent-soft, #eef2ff);
}
.channel input { accent-color: var(--accent, #3b5bdb); }
.channel .name { font-weight: 700; font-size: 15px; }
.channel .hint { font-size: 12px; color: var(--muted); }

.status-steps { list-style: none; padding: 0; margin: 12px 0 0; }
.status-steps li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  align-items: flex-start;
}
.status-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  background: #ebe6df; color: var(--muted);
}
.status-steps li.done .status-dot { background: #12b886; color: #fff; }
.status-steps li.active .status-dot { background: var(--accent, #3b5bdb); color: #fff; }

.footer-legal {
  margin-top: auto;
  padding-top: 28px;
  font-size: 11px;
  color: #8a847c;
  line-height: 1.6;
}
.footer-legal a { color: #6b6b6b; text-decoration: underline; }

.notice {
  font-size: 12px;
  color: var(--muted);
  background: #f1eee9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

/* Theme: personality */
.theme-personality {
  --accent: #3b5bdb;
  --accent-soft: #eef2ff;
  --accent-border: #b6c2f2;
  --chip-bg: #eef2ff;
  --chip-fg: #364fc7;
  --bg: #f4f6fb;
}

/* Theme: style */
.theme-style {
  --accent: #c2255c;
  --accent-soft: #fff0f6;
  --accent-border: #f5a9c0;
  --chip-bg: #fff0f6;
  --chip-fg: #a61e4d;
  --bg: #fbf6f7;
}

/* Theme: history (P3) */
.theme-history {
  --accent: #8b5a2b;
  --accent-soft: #f0e2d0;
  --accent-border: #d2b48c;
  --chip-bg: #f0e2d0;
  --chip-fg: #6b3f1d;
  --bg: #faf6f0;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.keyword {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}

.home-links { display: grid; gap: 12px; margin-top: 18px; }
.home-link {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.home-link h2 { margin: 0 0 6px; font-size: 18px; }
.home-link p { margin: 0; color: var(--muted); font-size: 13px; }
.home-link.personality { border-top: 4px solid #3b5bdb; }
.home-link.style { border-top: 4px solid #c2255c; }
.home-link.history { border-top: 4px solid #8b5a2b; }

.order-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
  background: #f1eee9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}
.alt-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.alt-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.alt-fold {
  margin-top: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.alt-fold summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  list-style: none;
}
.alt-fold summary::-webkit-details-marker { display: none; }
.btn-muted {
  background: #ebe6df !important;
  color: #8a847c !important;
  border: none !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.75;
}
.one-line {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.tip-box {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  background: #f1eee9;
  border-radius: 10px;
  padding: 10px 12px;
}
