/* =============================================
   CAP SÉRÉNITÉ — STYLES
   Premium clinical-wellness quiz funnel
   Mobile-first responsive design
   ============================================= */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Brand palette derived from logo */
  --navy: #162B4D;
  --navy-soft: #1E3A5F;
  --blue-mid: #3A7CA5;
  --blue-light: #7FB8D0;
  --blue-pale: #B8D8E8;
  --blue-whisper: #E8F2F8;
  --ice: #F4F9FC;
  --white: #FFFFFF;

  /* Accents */
  --emerald: #2D9B7A;
  --emerald-soft: #D0F0E4;
  --amber: #E89B3E;
  --amber-soft: #FFF3E0;
  --coral: #D95A5A;
  --coral-soft: #FDEAEA;
  --violet: #6C5CE7;

  /* Neutrals */
  --gray-900: #1A1F2E;
  --gray-700: #3D4663;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(22,43,77,0.06);
  --shadow-md: 0 4px 16px rgba(22,43,77,0.08);
  --shadow-lg: 0 8px 32px rgba(22,43,77,0.1);
  --shadow-xl: 0 16px 48px rgba(22,43,77,0.12);
  --shadow-glow: 0 0 40px rgba(58,124,165,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 200ms;
  --dur-mid: 400ms;
  --dur-slow: 600ms;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--ice);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Decorative Background Orbs --- */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.4;
}
.bg-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
  top: -100px;
  right: -150px;
}
.bg-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--emerald-soft) 0%, transparent 70%);
  bottom: -80px;
  left: -120px;
}

/* --- Header --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,249,252,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22,43,77,0.06);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity var(--dur-fast) ease;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue-mid) 50%, var(--blue-light) 100%);
  transition: width var(--dur-slow) var(--ease-out);
  border-radius: 0 3px 3px 0;
}

/* --- Main --- */
.app-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  position: relative;
  z-index: 1;
}

.screen-container {
  width: 100%;
  max-width: 560px;
  position: relative;
}

/* --- Footer --- */
.app-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--gray-200);
  background: rgba(244,249,252,0.6);
}

.footer-text {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* =============================================
   SCREEN CARD
   ============================================= */
.screen {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(22,43,77,0.04);
  animation: screenIn var(--dur-slow) var(--ease-out) both;
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue-mid), var(--blue-light));
  opacity: 0.7;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.screen--exit {
  animation: screenOut 300ms var(--ease-out) both;
}

@keyframes screenOut {
  to { opacity: 0; transform: translateY(-12px) scale(0.98); }
}

/* --- Phase badge --- */
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-whisper);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.phase-badge--col { background: #EEF4FF; color: #3B6DD6; }
.phase-badge--imp { background: #FFF5EB; color: #C47B28; }
.phase-badge--agr { background: #FEECEC; color: #C4503D; }
.phase-badge--res { background: var(--emerald-soft); color: var(--emerald); }

/* --- Screen step counter --- */
.step-counter {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

/* --- Typography --- */
.screen-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: var(--space-md);
  font-optical-sizing: auto;
}

.screen-desc {
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.screen-desc strong {
  color: var(--navy);
  font-weight: 600;
}

.screen-micro {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: var(--space-lg);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  width: 100%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(22,43,77,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,43,77,0.3);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22,43,77,0.2);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn--secondary:hover {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
  background: var(--blue-whisper);
}

.btn--emergency {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(217,90,90,0.3);
}
.btn--emergency:hover {
  background: #C44D4D;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-500);
  padding: 10px 20px;
  font-weight: 500;
}
.btn--ghost:hover { color: var(--navy); background: var(--gray-50); }

.btn--disabled, .btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-row--inline {
  flex-direction: row;
}

.btn .btn-arrow {
  transition: transform var(--dur-fast) ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =============================================
   FORM ELEMENTS
   ============================================= */
/* --- Option Cards (single / multi select) --- */
.options-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.option-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--white);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  border-color: var(--blue-mid);
  background: var(--blue-whisper);
}

.option-card:focus-within {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}

.option-card.selected {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--blue-whisper) 0%, rgba(232,242,248,0.5) 100%);
  box-shadow: var(--shadow-sm);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) ease;
}

.option-card.selected .option-radio {
  border-color: var(--navy);
  background: var(--navy);
}

.option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.option-card.selected .option-radio::after {
  transform: scale(1);
}

.option-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) ease;
}
.option-card.selected .option-check {
  border-color: var(--navy);
  background: var(--navy);
}
.option-check::after {
  content: '✓';
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: all var(--dur-fast) var(--ease-spring);
}
.option-card.selected .option-check::after {
  opacity: 1;
  transform: scale(1);
}

.option-label {
  font-size: var(--fs-base);
  color: var(--gray-700);
  line-height: 1.4;
  flex: 1;
}
.option-card.selected .option-label { color: var(--navy); font-weight: 500; }

/* --- Likert Scale --- */
.likert-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--white);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.likert-option:hover { border-color: var(--blue-mid); }

.likert-option:focus-within {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}

.likert-option input { position: absolute; opacity: 0; width: 0; height: 0; }

.likert-option.selected {
  border-color: var(--navy);
  background: var(--blue-whisper);
  box-shadow: var(--shadow-sm);
}

.likert-value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--gray-400);
  transition: color var(--dur-fast) ease;
}
.likert-option.selected .likert-value { color: var(--navy); }

.likert-label {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  line-height: 1.3;
  font-weight: 500;
}
.likert-option.selected .likert-label { color: var(--navy); }

/* --- Checkbox consent --- */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease;
}
.consent-row:hover { border-color: var(--blue-mid); }
.consent-row.checked { border-color: var(--navy); background: var(--blue-whisper); }

.consent-checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--gray-400);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: all var(--dur-fast) ease;
}
.consent-row.checked .consent-checkbox {
  background: var(--navy); border-color: var(--navy);
}
.consent-checkbox::after {
  content: '✓'; color: var(--white); font-size: 13px; font-weight: 700;
  opacity: 0; transform: scale(0);
  transition: all var(--dur-fast) var(--ease-spring);
}
.consent-row.checked .consent-checkbox::after { opacity: 1; transform: scale(1); }

.consent-text {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  line-height: 1.55;
}

/* --- Text Inputs --- */
.input-group {
  margin-bottom: var(--space-md);
}

.input-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  outline: none;
}

.input-field::placeholder { color: var(--gray-400); }
.input-field:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(58,124,165,0.15);
}

/* =============================================
   SPECIAL SCREENS
   ============================================= */

/* --- Hero screen --- */
.hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-whisper), var(--emerald-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-lg);
}

/* --- Emergency alert --- */
.alert-box {
  background: var(--coral-soft);
  border: 1px solid rgba(217,90,90,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.alert-box__title {
  font-weight: 700;
  color: var(--coral);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.alert-box__text {
  color: var(--gray-700);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.alert-box__number {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--coral);
  margin: var(--space-md) 0;
}

/* --- Info card --- */
.info-card {
  background: var(--blue-whisper);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--blue-mid);
}
.info-card p {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  line-height: 1.6;
}

/* --- Resource cards (victimes) --- */
.resource-card {
  background: var(--amber-soft);
  border: 1px solid rgba(232,155,62,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.resource-card__title { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.resource-card__number { font-size: var(--fs-lg); font-weight: 700; color: var(--amber); }

/* --- Loading screen --- */
.loading-container {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy);
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-xl);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--space-md);
}
.loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-mid);
  animation: dotPulse 1.4s ease-in-out infinite both;
}
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* --- Result mirror screen --- */
.mirror-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.mirror-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.mirror-card--before {
  background: linear-gradient(135deg, var(--coral-soft) 0%, #FFF0F0 100%);
  border: 1px solid rgba(217,90,90,0.15);
}
.mirror-card--after {
  background: linear-gradient(135deg, var(--emerald-soft) 0%, #E8FFF5 100%);
  border: 1px solid rgba(45,155,122,0.15);
}

.mirror-card__icon { font-size: 32px; margin-bottom: var(--space-sm); }
.mirror-card__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.mirror-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
}
.mirror-card--before .mirror-card__value { color: var(--coral); }
.mirror-card--after .mirror-card__value { color: var(--emerald); }

/* --- Results profile --- */
.result-gauge {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-xl);
}

.result-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 10;
}
.gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.gauge-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.gauge-score__num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.gauge-score__label {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  font-weight: 500;
}

.result-level {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.result-level__badge {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 4px;
}

.result-level__text {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  line-height: 1.6;
}

.result-level--low { background: var(--emerald-soft); }
.result-level--low .result-level__badge { color: var(--emerald); }
.result-level--mod { background: var(--amber-soft); }
.result-level--mod .result-level__badge { color: var(--amber); }
.result-level--high { background: #FFF0F0; }
.result-level--high .result-level__badge { color: #D46A26; }
.result-level--vhigh { background: var(--coral-soft); }
.result-level--vhigh .result-level__badge { color: var(--coral); }

/* --- Dimension bars --- */
.dim-bar-group {
  margin-bottom: var(--space-xl);
}

.dim-bar {
  margin-bottom: var(--space-md);
}

.dim-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dim-bar__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}

.dim-bar__value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-500);
}

.dim-bar__track {
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
  overflow: hidden;
}

.dim-bar__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s var(--ease-out);
}

.dim-bar__fill--col { background: linear-gradient(90deg, #3B6DD6, #6B9CF0); }
.dim-bar__fill--imp { background: linear-gradient(90deg, #C47B28, #F0B86B); }
.dim-bar__fill--agr { background: linear-gradient(90deg, #C4503D, #F08070); }

/* --- Legal block --- */
.legal-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.legal-block p {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  line-height: 1.55;
}

/* --- Coach cards --- */
.coach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.coach-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--white);
}

.coach-card:hover { border-color: var(--blue-mid); background: var(--blue-whisper); }

.coach-card.selected {
  border-color: var(--navy);
  background: var(--blue-whisper);
  box-shadow: var(--shadow-sm);
}

.coach-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-whisper));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: var(--fs-sm);
}

.coach-name {
  font-weight: 600;
  color: var(--navy);
  font-size: var(--fs-base);
}

.coach-card.selected .coach-avatar {
  background: var(--navy);
  color: var(--white);
}

/* --- Motivation chips (multi-select) --- */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.chip {
  padding: 10px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--dur-fast) var(--ease-out);
  background: var(--white);
  -webkit-tap-highlight-color: transparent;
}

.chip:hover { border-color: var(--blue-mid); color: var(--blue-mid); }

.chip.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* --- STOP method card --- */
.stop-card {
  background: linear-gradient(135deg, var(--blue-whisper), var(--emerald-soft));
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.stop-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-md);
  font-size: var(--fs-lg);
}

.stop-steps {
  display: grid;
  gap: var(--space-sm);
}

.stop-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.stop-step__letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.stop-step__text {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  line-height: 1.5;
  padding-top: 3px;
}

/* --- Confirmation animation --- */
.confetti-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-soft), var(--blue-whisper));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto var(--space-xl);
  animation: popIn 0.6s var(--ease-spring) both;
}

@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 480px) {
  .coach-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  :root {
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
  }

  .screen {
    padding: var(--space-2xl) var(--space-2xl);
  }

  .btn { width: auto; min-width: 220px; }
  .btn-row { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
  .app-main { padding-top: var(--space-2xl); }
  .logo { height: 44px; }
}

@media (min-width: 1024px) {
  .screen-container { max-width: 600px; }

  .bg-orb--1 { width: 500px; height: 500px; }
  .bg-orb--2 { width: 450px; height: 450px; }
}

/* --- Focus / Accessibility --- */
:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
