:root {
  --bg: #0f1115;
  --bg-elev: #1a1d24;
  --bg-card: #22262f;
  --line: rgba(255,255,255,0.08);
  --text: #f4f1ea;
  --muted: #9aa0ab;
  --accent: #ff6b4a;
  --accent-2: #ffc857;
  --mint: #5eead4;
  --mild: #7dd3c0;
  --roast: #ffb020;
  --chaos: #ff5c7a;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: #07080a;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex;
  justify-content: center;
  padding: 12px 0 40px;
}
button, input { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--mint); }

.phone {
  width: min(390px, 100vw);
  min-height: 100vh;
  background: linear-gradient(180deg, #141820 0%, #0f1115 40%);
  position: relative;
  overflow-x: hidden;
  box-shadow: var(--shadow);
}

.screen { display: none; padding: 20px 16px 48px; animation: fade .28s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.badge-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
}
.badge.age { background: var(--accent); color: #fff; }
.badge.ai { background: rgba(255,200,87,0.15); color: var(--accent-2); border: 1px solid rgba(255,200,87,0.35); }
.badge.sm { font-size: 10px; padding: 3px 8px; }

.hero-title {
  font-size: 32px; line-height: 1.2; font-weight: 800;
  letter-spacing: 0.02em; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, #ffc857 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 14px; line-height: 1.65; color: var(--muted); margin-bottom: 16px; }

.anti-claim {
  background: rgba(255,92,122,0.08);
  border: 1px solid rgba(255,92,122,0.28);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  margin-bottom: 20px;
}
.anti-label { font-size: 13px; margin-bottom: 8px; color: #ffb4c0; }
.anti-claim ul { list-style: none; font-size: 13px; line-height: 1.7; color: var(--text); }
.anti-yes { margin-top: 10px; font-size: 13px; color: var(--mint); }

.cta-strip { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px; font-size: 16px; font-weight: 700;
  transition: transform .15s ease, opacity .15s;
}
.cta:active { transform: scale(0.98); }
.cta.primary { background: linear-gradient(135deg, #ff6b4a, #ff8f3c); color: #fff; }
.cta.secondary { background: var(--bg-card); border: 1px solid rgba(255,200,87,0.4); color: var(--accent-2); }
.cta.ghost { background: transparent; border: 1px dashed var(--line); color: var(--text); }
.cta-hint { font-size: 11px; font-weight: 400; opacity: 0.85; line-height: 1.4; }

.section-head h2 { font-size: 20px; margin-bottom: 4px; }
.section-head p { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.intensity-legend { display: flex; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
}
.tag.mild { color: var(--mild); background: rgba(125,211,192,0.12); }
.tag.roast { color: var(--roast); background: rgba(255,176,32,0.14); }
.tag.chaos { color: var(--chaos); background: rgba(255,92,122,0.14); }

.topic-grid { display: flex; flex-direction: column; gap: 10px; }
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  transition: border-color .15s, transform .15s;
}
.topic-card:active { transform: scale(0.99); }
.topic-card:hover { border-color: rgba(255,107,74,0.45); }
.topic-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.topic-card .title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.topic-card .hook { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.topic-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-card .role-chip {
  font-size: 10px; color: var(--muted);
  background: rgba(255,255,255,0.05); padding: 2px 7px; border-radius: 999px;
}
.topic-card .demo-flag {
  font-size: 10px; font-weight: 700; color: var(--mint);
  background: rgba(94,234,212,0.12); padding: 2px 7px; border-radius: 999px;
}
.topic-card.locked .title { opacity: 0.85; }
.topic-card .soon {
  margin-top: 8px; font-size: 11px; color: var(--accent-2);
}

.page-footer {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; line-height: 1.6; color: var(--muted);
}
.page-footer.compact { margin-top: 20px; }
.page-footer .muted { margin-top: 8px; opacity: 0.7; }

/* Meeting */
.meet-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; position: sticky; top: 0; z-index: 5;
  background: rgba(15,17,21,0.92); backdrop-filter: blur(8px);
  padding: 8px 0;
}
.back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-card); font-size: 18px; flex-shrink: 0;
}
.meet-meta { flex: 1; min-width: 0; }
.meet-meta h2 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.seats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px;
  margin-bottom: 8px; scrollbar-width: none;
}
.seats::-webkit-scrollbar { display: none; }
.seat {
  flex: 0 0 auto; text-align: center; width: 64px;
}
.seat .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  margin: 0 auto 4px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #111;
}
.seat .name { font-size: 10px; color: var(--muted); line-height: 1.2; }
.seat.you .avatar { box-shadow: 0 0 0 2px var(--accent); }

.transcript {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 14px 12px;
  min-height: 280px; max-height: 48vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
}
.bubble { max-width: 92%; animation: fade .2s ease; }
.bubble .who { font-size: 11px; font-weight: 700; margin-bottom: 4px; opacity: 0.9; }
.bubble .text {
  font-size: 14px; line-height: 1.55;
  background: var(--bg-card); padding: 10px 12px; border-radius: 12px 12px 12px 4px;
}
.bubble.narrator { max-width: 100%; }
.bubble.narrator .text {
  background: transparent; border-left: 3px solid var(--accent-2);
  border-radius: 0; padding: 4px 0 4px 10px; color: var(--muted); font-size: 13px;
}
.bubble.boss .text { background: rgba(255,107,74,0.18); border-radius: 12px 12px 4px 12px; }
.bubble.boss { align-self: flex-end; text-align: right; }

.meet-actions { margin-top: 12px; }
.btn-next {
  width: 100%; padding: 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600;
}
.btn-next:active { background: #2a2f3a; }

.decide-panel {
  margin-top: 14px; padding: 14px;
  background: rgba(255,107,74,0.08);
  border: 1px solid rgba(255,107,74,0.35);
  border-radius: var(--radius);
}
.decide-panel.hidden, .hidden { display: none !important; }
.decide-label { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.disclaimer-inline { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.decide-options { display: flex; flex-direction: column; gap: 8px; }
.decide-btn {
  text-align: left; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.45; font-weight: 600;
}
.decide-btn:hover { border-color: var(--accent); }
.decide-btn .opt-key { color: var(--accent); margin-right: 6px; }

/* Outcome */
.outcome-head { margin-bottom: 16px; }
.outcome-head h2 { font-size: 22px; margin: 8px 0; }
.outcome-text { font-size: 14px; line-height: 1.6; color: var(--muted); }

.share-card {
  background: linear-gradient(145deg, #2a1f18 0%, #1a222c 100%);
  border: 1px solid rgba(255,200,87,0.3);
  border-radius: 18px; padding: 20px 16px;
  margin-bottom: 10px; position: relative; overflow: hidden;
}
.share-card::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,107,74,0.15);
}
.share-brand { font-size: 12px; font-weight: 800; color: var(--accent-2); letter-spacing: 0.1em; margin-bottom: 10px; }
.share-body { font-size: 14px; line-height: 1.7; white-space: pre-wrap; position: relative; z-index: 1; }
.share-url { margin-top: 14px; font-size: 11px; color: var(--muted); }

.share-actions { display: flex; gap: 8px; margin-bottom: 24px; }
.btn-outline {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 600;
  background: var(--bg-elev);
}
.btn-outline:active { background: var(--bg-card); }

.wtp-block { margin-bottom: 20px; }
.wtp-block h3 { font-size: 15px; margin-bottom: 10px; line-height: 1.4; }
.wtp-options { display: flex; flex-direction: column; gap: 8px; }
.wtp-btn {
  text-align: left; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.4;
}
.wtp-btn.selected { border-color: var(--mint); background: rgba(94,234,212,0.1); color: var(--mint); }

.aux-q { margin-bottom: 20px; }
.aux-q h4 { font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; padding: 7px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
}
.chip.selected { border-color: var(--accent-2); color: var(--accent-2); }

.lead-form {
  background: var(--bg-elev); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--line); margin-bottom: 16px;
}
.lead-form h3 { font-size: 15px; margin-bottom: 6px; }
.form-hint { font-size: 11px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.lead-form label, .modal-card label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.lead-form input, .modal-card input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; color: var(--text); font-size: 14px;
}
.lead-form input:focus, .modal-card input:focus { outline: 1px solid var(--accent); }
.check {
  flex-direction: row !important; align-items: center; gap: 8px !important;
  font-size: 13px !important; color: var(--text) !important;
}
.check input { width: auto; accent-color: var(--accent); }
.form-msg { margin-top: 10px; font-size: 13px; color: var(--mint); }
.post-cta { margin-bottom: 8px; }
.post-cta .btn-outline { width: 100%; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: flex-end; justify-content: center; z-index: 50;
  padding: 16px;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(390px, 100%); background: var(--bg-elev);
  border-radius: 20px 20px 16px 16px; padding: 20px 16px 24px;
  border: 1px solid var(--line); position: relative;
}
.modal-card h3 { font-size: 17px; margin-bottom: 6px; padding-right: 28px; }
.modal-close {
  position: absolute; right: 12px; top: 12px;
  width: 32px; height: 32px; font-size: 22px; color: var(--muted);
}

@media (min-width: 480px) {
  body { padding: 24px 0 60px; background: radial-gradient(ellipse at top, #1a1520, #07080a 60%); }
  .phone { border-radius: 24px; border: 1px solid var(--line); min-height: 780px; }
}
