*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0eeea;
  --muted: #666;
  --muted2: #3a3a3a;
  --green: #4caf7d;
  --red: #c96060;
  --amber: #c4963a;
}
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem 5rem;
}
.app { width: 100%; max-width: 520px; }

.wordmark {
  font-family: "DM Serif Display", serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.screen { display: none; width: 100%; }
.screen.active { display: block; }

h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
h2 em { font-style: italic; color: var(--muted); }

.sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.65;
}

.options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.option-row { display: flex; gap: 8px; align-items: center; }
.option-input {
  flex: 1;
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.option-input::placeholder { color: var(--muted2); }
.option-input:focus { border-color: rgba(255,255,255,0.22); }
.remove-btn {
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  width: 36px; height: 36px;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.remove-btn:hover { border-color: var(--red); color: var(--red); }

.add-btn {
  background: none;
  border: 0.5px dashed var(--border2);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 16px;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer; width: 100%;
  text-align: left;
  transition: all 0.2s;
  margin-bottom: 2rem;
}
.add-btn:hover { color: var(--text); background: var(--surface); }

.primary-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  cursor: pointer; width: 100%;
  transition: opacity 0.2s;
}
.primary-btn:hover { opacity: 0.85; }
.primary-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.ghost-btn {
  background: none;
  border: 0.5px solid var(--border2);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}
.ghost-btn:hover { color: var(--text); background: var(--surface); border-color: rgba(255,255,255,0.18); }
.btn-row { display: flex; gap: 8px; margin-top: 0.75rem; }

.thinking-screen { text-align: center; padding: 4rem 0; }
.thinking-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.5rem; }
.dot {
  width: 7px; height: 7px;
  background: var(--muted);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 80%, 100% { opacity: 0.15; transform: scale(0.75); }
  40% { opacity: 1; transform: scale(1); }
}
.thinking-line { font-size: 13px; color: var(--muted); font-weight: 300; font-style: italic; }

.pick-card {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1rem;
}
.pick-label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; }
.pick-choice {
  font-family: "DM Serif Display", serif;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.pick-reason {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 0.5px solid var(--border);
  font-style: italic;
}
.pick-reason span { color: rgba(255,255,255,0.35); }

.mirror-prompt {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-weight: 300;
  line-height: 1.5;
}
.mirror-sub {
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.reaction-btns { display: flex; flex-direction: column; gap: 7px; }
.reaction-btn {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reaction-btn .r-left { display: flex; align-items: center; gap: 12px; }
.reaction-btn .r-icon { font-size: 13px; color: var(--muted); width: 16px; }
.reaction-btn .r-label { font-weight: 400; font-size: 14px; }
.reaction-btn .r-sub { font-size: 11px; color: var(--muted); font-style: italic; }
.reaction-btn:hover { background: var(--surface2); border-color: rgba(255,255,255,0.16); }
.reaction-btn.good:hover { border-color: var(--green); }
.reaction-btn.bad:hover { border-color: var(--red); }
.reaction-btn.unsure:hover { border-color: var(--amber); }

.reflection-block {
  margin-bottom: 1.25rem;
}
.reflection-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.reflection-main {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.reflection-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}
.reflection-body strong { color: rgba(255,255,255,0.7); font-weight: 400; }

.observation-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.observation {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.obs-dot {
  width: 4px; height: 4px;
  background: var(--muted2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.meter-wrap { margin-bottom: 1.75rem; }
.meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.meter-title { font-size: 12px; color: var(--muted); }
.meter-pct { font-size: 22px; font-family: "DM Serif Display", serif; color: var(--text); }
.meter-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.meter-fill {
  height: 100%; border-radius: 10px; width: 0%;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.meter-fill.good { background: var(--green); }
.meter-fill.bad { background: #555; }
.meter-fill.unsure { background: var(--amber); }
.meter-caption { font-size: 11px; color: var(--muted2); font-style: italic; }

.divider-line { border: none; border-top: 0.5px solid var(--border); margin: 1.5rem 0; }

.values-section-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 300;
}
.values-hint { font-size: 11px; color: var(--muted2); margin-bottom: 0.9rem; font-style: italic; }
.values-grid {
  display: flex; flex-wrap: wrap;
  gap: 7px; margin-bottom: 0.75rem;
}
.value-btn {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.value-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.value-btn.selected { color: var(--text); border-color: rgba(255,255,255,0.28); background: var(--surface2); }

.value-insight {
  font-size: 13px;
  color: var(--muted);
  border-left: 1.5px solid var(--muted2);
  padding-left: 12px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: none;
}

.back-link {
  background: none; border: none;
  color: var(--muted); font-size: 12px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer; padding: 0;
  margin-bottom: 2rem;
  display: inline-block;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.unsure-q-label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted2); text-transform: uppercase; margin-bottom: 1.25rem; }
.unsure-question {
  border-bottom: 0.5px solid var(--border);
  padding: 1.1rem 0;
}
.unsure-question:last-of-type { border-bottom: none; margin-bottom: 1rem; }
.uq-text { font-size: 14px; color: var(--text); margin-bottom: 0.75rem; line-height: 1.5; font-weight: 300; }
.uq-text em { color: var(--muted); font-style: italic; }
.yesno-row { display: flex; gap: 7px; }
.yesno-btn {
  flex: 1; background: none;
  border: 0.5px solid var(--border2);
  border-radius: 7px; padding: 8px;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.yesno-btn:hover { color: var(--text); background: var(--surface2); }
.yesno-btn.picked { color: var(--text); background: var(--surface2); border-color: rgba(255,255,255,0.22); }

.analysis-card {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.analysis-eyebrow { font-size: 10px; letter-spacing: 0.12em; color: var(--amber); text-transform: uppercase; margin-bottom: 0.75rem; }
.analysis-headline {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem; line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 0.75rem;
}
.analysis-body { font-size: 13px; color: var(--muted); line-height: 1.75; font-weight: 300; }
.analysis-body strong { color: rgba(255,255,255,0.65); font-weight: 400; }

.share-box {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 1rem 1.25rem;
  margin-top: 1rem; font-size: 12px; color: var(--muted);
  line-height: 1.65; font-style: italic; display: none;
}
.pattern-note {
  font-size: 12px; color: var(--muted2); margin-top: 1.75rem;
  padding-top: 1.25rem; border-top: 0.5px solid var(--border);
  font-style: italic; line-height: 1.65;
}

@media (max-width: 480px) {
  h2 { font-size: 1.6rem; }
  .pick-choice { font-size: 2rem; }
  body { padding: 2rem 1rem 4rem; }
}
