/* Client Journey X-Ray — brand: Jenny Stevens / Soul-Fit Systems
   Dark teal #326273 · Secondary teal #5C9EAD · Rose/blush #DCA4A4
   Pale grey #EEEEEE (primary background) · White #FFFFFF
   Paler blush (low-visibility accents only) #EBCDCD / #FFF1F1
   Headings: Cinzel · Body: Raleway
   Per Prototype Feedback Round 1 Section B: pale grey is the primary
   background; teal is reserved for headers/buttons/accents; pink tones are
   reserved for small low-emphasis accents only, never a large background field.
*/

:root {
  --teal-primary: #326273;
  --teal-secondary: #5C9EAD;
  --teal-wash: rgba(50, 98, 115, 0.08);
  --rose: #DCA4A4;
  --rose-deep: #99525C;
  --rose-wash: rgba(220, 164, 164, 0.18);
  --blush: #FFF1F1;
  --blush-pale: #EBCDCD;
  --silver: #EEEEEE;
  --white: #FFFFFF;
  --ink: #2B3A3F;
  --danger: #B5563F;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(50, 98, 115, 0.12);
  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--silver);
  color: var(--ink);
  font-family: 'Raleway', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .heading-font {
  font-family: 'Cinzel', serif;
  color: var(--teal-primary);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.15rem; }

p { line-height: 1.6; margin: 0 0 1em; }

.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--silver);
  z-index: 50;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--rose);
  transition: width 0.3s ease;
}

#app {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 18px 64px;
  min-height: 100vh;
}

.screen {
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-primary);
  font-weight: 700;
  background: var(--rose);
  padding: 5px 12px;
  border-radius: 999px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--rose-deep);
  font-weight: 600;
  margin-bottom: 1em;
}

.btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--teal-primary);
  color: var(--white);
  width: 100%;
}
.btn-primary:hover { background: var(--teal-secondary); }
.btn-primary:disabled {
  background: var(--silver);
  color: #999;
  cursor: not-allowed;
}

.btn-lg {
  font-size: 1.2rem;
  padding: 18px 28px;
}

.btn-secondary {
  background: transparent;
  color: var(--teal-primary);
  border: 2px solid var(--teal-primary);
  width: 100%;
}
.btn-secondary:hover { background: var(--teal-wash); }

.nav-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.nav-row .btn { flex: 1; }
.back-link {
  background: none;
  border: none;
  color: var(--rose-deep);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 4px;
}

.next-indicator {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--rose-deep);
  font-weight: 600;
}

/* Option lists (Setup screen) */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.option-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silver);
  background: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-btn.selected {
  border-color: var(--teal-primary);
  background: var(--rose-wash);
  color: var(--teal-primary);
}

/* Chips */
.chip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.chip-item {
  border: 2px solid var(--silver);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.chip-item.ticked { border-color: var(--teal-primary); }

.chip-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Raleway', sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  min-height: 48px;
}
.chip-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
}
.chip-item.ticked .chip-check {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
}

.followup {
  padding: 4px 14px 16px 18px;
  background: var(--rose-wash);
  border-top: 1px solid var(--silver);
}
.followup-group { margin-top: 12px; }
.followup-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.followup-microcopy {
  font-size: 0.82rem;
  color: var(--rose-deep);
  font-style: italic;
  margin-top: 6px;
}
.followup-hint {
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
}

.effort-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.effort-btn {
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silver);
  background: var(--white);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}
.effort-btn.selected-manual { border-color: var(--danger); background: #FBEAE5; color: var(--danger); }
.effort-btn.selected-semi { border-color: #C9A227; background: #FBF3D9; color: #8A6D00; }
.effort-btn.selected-auto { border-color: #3C8562; background: #E4F2EB; color: #2A6B49; }

@media (min-width: 420px) {
  .effort-btn { font-size: 0.82rem; padding: 10px 8px; }
}

@media (max-width: 320px) {
  .effort-row { grid-template-columns: 1fr; }
}

.location-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silver);
  background: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Custom entry */
.custom-entry {
  margin-top: 20px;
  border-top: 1px dashed var(--silver);
  padding-top: 16px;
}
.custom-entry-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.custom-entry-row input[type="text"] {
  flex: 1;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silver);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
}
.custom-add-btn {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--rose-deep);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.stage-progress {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--teal-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--rose);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Numbers grid (Results screen) */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.number-tile {
  background: var(--rose-wash);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
}
.number-tile .num {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  color: var(--teal-primary);
  font-weight: 700;
  display: block;
}
.number-tile .num-label {
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  display: block;
  margin-top: 4px;
}

.email-gate {
  margin-top: 8px;
}
.email-gate input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--silver);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
.email-microcopy {
  font-size: 0.82rem;
  color: var(--rose-deep);
  margin-top: 10px;
  text-align: center;
}

/* Processing screen */
.processing {
  text-align: center;
  padding: 24px 0 8px;
}
.spinner-lg {
  width: 46px;
  height: 46px;
  border-width: 4px;
}

/* Insight card */
.insight-section {
  margin-bottom: 18px;
}
.insight-section h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.stage-possibility {
  margin-bottom: 16px;
}
.stage-possibility:last-child {
  margin-bottom: 0;
}
.stage-possibility-name {
  font-family: 'Cinzel', serif;
  color: var(--teal-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.stage-possibility p {
  margin: 0;
}
.route-badge {
  display: inline-block;
  background: var(--rose);
  color: var(--teal-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.cta-box {
  background: var(--teal-primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-top: 20px;
}
.cta-box h3 { color: var(--white); }
.cta-box .btn-primary {
  background: var(--white);
  color: var(--teal-primary);
  margin-top: 10px;
}
.cta-box .btn-primary:hover { background: var(--blush); }
.cta-secondary-link {
  display: block;
  color: var(--white);
  text-decoration: underline;
  font-size: 0.88rem;
  margin-top: 14px;
  opacity: 0.9;
}

.error-text {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: -6px;
  margin-bottom: 10px;
}

.spinner {
  border: 3px solid var(--silver);
  border-top-color: var(--teal-primary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

blockquote {
  margin: 0 0 1em;
  padding-left: 14px;
  border-left: 3px solid var(--rose);
  color: var(--ink);
}

@media (min-width: 600px) {
  #app { padding-top: 48px; }
  .card { padding: 36px 40px; }
}
