/* Receiving Love Profile — v2 LL Beta
   Palette: warm, calming, therapeutic. Off-white surfaces, muted rose accent, deep charcoal text. */

:root {
  --bg: #FAF6F1;
  --surface: #FFFFFF;
  --surface-soft: #F3ECE3;
  --border: #E4DACF;
  --border-soft: #EFE8DD;
  --text: #2A2320;
  --text-muted: #7A6F66;
  --text-faint: #B8AFA5;

  --accent: #A15C6F;      /* muted rose */
  --accent-hover: #7E4557;
  --accent-soft: #F1E1E5;

  --primary-bar: #A15C6F;
  --secondary-bar: #C89AA5;
  --other-bar: #D8CFC5;

  --shadow-sm: 0 1px 3px rgba(42, 35, 32, 0.04), 0 1px 2px rgba(42, 35, 32, 0.03);
  --shadow-md: 0 4px 12px rgba(42, 35, 32, 0.06), 0 2px 4px rgba(42, 35, 32, 0.04);

  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
}
h1 { font-size: 2.4rem; margin-bottom: 0.4em; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin-top: 2rem; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; font-family: 'DM Sans', sans-serif; font-weight: 600; margin-top: 1.6rem; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--text); }

/* ---------- VERSION BADGE ---------- */
.version-badge {
  position: fixed;
  top: 16px; right: 16px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  z-index: 100;
  font-weight: 500;
}

/* ---------- LAYOUT ---------- */
.app { min-height: 100vh; }
.screen { display: none; padding: 4rem 1.5rem 6rem; }
.screen.active { display: block; }
.container { max-width: 720px; margin: 0 auto; }
.container.narrow { max-width: 620px; }

/* ---------- INTRO ---------- */
.intro-header {
  text-align: center;
  margin-bottom: 3rem;
}
.logo {
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}
.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
}
.prose { }
.instructions {
  padding-left: 1.2rem;
  color: var(--text);
}
.instructions li {
  margin-bottom: 0.5rem;
}
.intake {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}
.intake label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.intake input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}
.intake input:focus {
  outline: none;
  border-color: var(--accent);
}
@media (max-width: 560px) {
  .intake { grid-template-columns: 1fr; }
}
.fine-print {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  padding: 0.9rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn.big {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}
.btn.primary {
  background: var(--accent);
  color: white;
}
.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn.primary:disabled {
  background: var(--border);
  color: var(--text-faint);
  cursor: not-allowed;
}
.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn.ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text-muted);
}
.btn.ghost:disabled {
  color: var(--text-faint);
  cursor: not-allowed;
}

/* ---------- QUIZ ---------- */
.progress { margin-bottom: 2.5rem; }
.progress-bar {
  height: 4px;
  background: var(--surface-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.35s ease;
  border-radius: 2px;
}
.progress-label {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.item-frame {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.item-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.option {
  display: block;
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem 1.1rem 1.15rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--surface);
}
.option:hover { border-color: var(--accent); background: var(--accent-soft); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option input:checked ~ .option-text,
.option input:checked ~ .option-text-soft { color: var(--text); }
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(161, 92, 111, 0.08);
}

.option-text {
  display: block;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.option-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--surface-soft);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.option-text-mid {
  font-style: italic;
  color: var(--text-muted);
}

.or-divider {
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.or-divider span {
  background: var(--surface);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.or-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border-soft);
  z-index: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}
.nav.center { justify-content: center; }

/* ---------- RESULT ---------- */
.intake-echo {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}
.result-headline {
  font-size: 2rem;
  margin-bottom: 0.6em;
  line-height: 1.25;
}
.result-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.result-sub strong { color: var(--text); font-weight: 600; font-family: 'DM Sans', sans-serif; }

.result-chart {
  margin: 1.5rem 0 2rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 55px;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.bar-row:last-child { border-bottom: none; }
.bar-label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}
.bar-track {
  height: 10px;
  background: var(--surface-soft);
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--other-bar);
  transition: width 0.6s ease;
  border-radius: 5px;
}
.bar-row.primary .bar-fill { background: var(--primary-bar); }
.bar-row.secondary .bar-fill { background: var(--secondary-bar); }
.bar-row.primary .bar-label { font-weight: 700; }
.bar-value {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: right;
  font-weight: 500;
}
.bar-row.primary .bar-value { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem 0;
  }
  .bar-value { text-align: left; }
}

.interp h2 { margin-top: 2.5rem; }
.interp h2 span { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1.4rem; color: var(--accent); font-style: normal; }

.notice {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.notice-warm {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--text);
}
.notice-quiet {
  background: var(--surface-soft);
  border-left: 3px solid var(--text-faint);
  color: var(--text);
}

.close-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem 0 2rem;
}
.close-block h3 { margin-top: 0; }
.close-block p { margin-bottom: 0; color: var(--text); }

.footer-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 3rem;
  font-style: italic;
  line-height: 1.6;
}
.footer-attribution {
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---------- PRINT ---------- */
@media print {
  .version-badge, .nav, .btn { display: none !important; }
  body { background: white; }
  .screen { padding: 0; }
  .screen:not(#result) { display: none !important; }
  .screen#result { display: block !important; }
  h1, h2, h3 { color: black; }
  .bar-row.primary .bar-fill { background: #666; }
  .bar-row.secondary .bar-fill { background: #999; }
  .bar-fill { background: #ccc; }
}
