/* ============================================================
   IDENTITY JOURNEY MAPPER — styles.css
   Aesthetic: Refined editorial warmth / organic minimal luxury
   ============================================================ */

/* --- CSS VARIABLES --- */
:root {
  --bg:           #F7F4EF;
  --bg-card:      #FFFFFF;
  --bg-card-alt:  #F2EDE6;
  --ink:          #1C1814;
  --ink-soft:     #5A5248;
  --ink-muted:    #9C9087;
  --accent:       #C96A3A;
  --accent-light: #F2C4A8;
  --accent-dim:   #FAEEE6;
  --gold:         #C9A84C;
  --teal:         #3A8C8C;
  --teal-light:   #D4EEEE;
  --shadow-sm:    0 2px 12px rgba(28,24,20,0.07);
  --shadow-md:    0 6px 28px rgba(28,24,20,0.11);
  --shadow-lg:    0 16px 56px rgba(28,24,20,0.14);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- TOP BAR --- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28,24,20,0.08);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.lang-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-select {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid rgba(28,24,20,0.14);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.lang-select:hover,
.lang-select:focus { border-color: var(--accent); }

/* --- MAIN CONTAINER --- */
#app-root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- SCREEN SYSTEM --- */
.screen {
  display: none;
  flex: 1;
  width: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.screen-inner {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ============================================================
   SCREEN 0 — WELCOME
   ============================================================ */
#screen-welcome {
  position: relative;
  overflow: hidden;
}

.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.welcome-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-light);
  border-radius: 100px;
  padding: 5px 16px;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 80px);
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.welcome-title em {
  color: var(--accent);
  font-style: italic;
}

.welcome-title small {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-top: 10px;
  font-style: normal;
}

That gives you on mobile:

Am I Gay,
Bi or Straight?
Your Identity Journey

All stacked vertically, readable on any screen size, with the subtitle sitting clearly below in a smaller softer style so it does not compete with the main title..welcome-sub {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}

/* INTAKE CARD */
.intake-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(28,24,20,0.06);
}

.intake-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field-select,
.field-input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid rgba(28,24,20,0.13);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.field-select:focus,
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,106,58,0.13);
}

.intake-note {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
}

/* ORB DECORATIONS */
.welcome-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,106,58,0.14) 0%, transparent 70%);
  top: -100px; right: -120px;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(58,140,140,0.10) 0%, transparent 70%);
  bottom: 0; left: -80px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 14px rgba(201,106,58,0.32);
}

.btn-primary:hover {
  background: #b85a2c;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201,106,58,0.38);
}

.btn-primary:active { transform: translateY(0); }

.btn-arrow { font-size: 17px; transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid rgba(28,24,20,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   SCREEN 1 — QUESTIONS
   ============================================================ */
.questions-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 36px;
}

/* PROGRESS */
.progress-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(28,24,20,0.10);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 100px;
  width: 10%;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* QUESTION CARD */
.question-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 36px 32px;
  border: 1px solid rgba(28,24,20,0.06);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: cardIn 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.5vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
}

/* LIKERT GRID */
.likert-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.likert-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(28,24,20,0.11);
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  text-align: left;
  transition: all var(--transition);
  line-height: 1.45;
  width: 100%;
}

.likert-btn:hover {
  border-color: var(--accent-light);
  background: var(--accent-dim);
  color: var(--ink);
  transform: translateX(3px);
}

.likert-btn.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(201,106,58,0.13);
}

.likert-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28,24,20,0.07);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.likert-btn.selected .likert-score {
  background: var(--accent);
  color: #fff;
}

/* QUESTION NAV */
.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

/* ============================================================
   SCREEN 2 — RESULTS
   ============================================================ */
.results-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 40px;
}

.results-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  color: var(--ink);
  line-height: 1.1;
}

.results-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: -20px;
}

/* STORMS MATRIX */
.storms-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28,24,20,0.07);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storms-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  font-weight: 400;
}

.storms-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.storms-grid-wrapper {
  position: relative;
  width: 100%;
  padding-top: 28px;
  padding-bottom: 28px;
}

.storms-axis-label {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  z-index: 2;
}

.axis-top    { top: 4px;    left: 50%; transform: translateX(-50%); }
.axis-bottom { bottom: 4px; left: 50%; transform: translateX(-50%); }
.axis-left   { left: -10px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.axis-right  { right: -10px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.storms-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    linear-gradient(rgba(58,140,140,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,140,140,0.08) 1px, transparent 1px),
    linear-gradient(to bottom right, rgba(201,106,58,0.04), rgba(58,140,140,0.04));
  background-size: 20% 20%, 20% 20%, 100% 100%;
  border: 1.5px solid rgba(28,24,20,0.1);
}

.storms-grid::before,
.storms-grid::after {
  content: '';
  position: absolute;
  background: rgba(28,24,20,0.12);
  z-index: 1;
}

.storms-grid::before {
  width: 1px; height: 100%; left: 50%; top: 0;
}

.storms-grid::after {
  height: 1px; width: 100%; top: 50%; left: 0;
}

.storms-quadrant-label {
  position: absolute;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-muted);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.q-tl { top: 8px;    left: 8px;   }
.q-tr { top: 8px;    right: 8px;  text-align: right; }
.q-bl { bottom: 8px; left: 8px;   }
.q-br { bottom: 8px; right: 8px;  text-align: right; }

.storms-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 3px 14px rgba(201,106,58,0.45);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  transition: left 1.1s cubic-bezier(0.4, 0, 0.2, 1),
              top  1.1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

/* INSIGHT CARDS */
.insight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid rgba(28,24,20,0.07);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.insight-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.insight-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.insight-value.accent { color: var(--accent); }
.insight-value.teal   { color: var(--teal); }

/* CRISIS BLOCK */
.crisis-block {
  background: linear-gradient(135deg, #EDF6F9, #d4eeee);
  border: 1.5px solid var(--teal-light);
  border-radius: var(--radius);
  padding: 24px 22px;
  animation: fadeUp 0.4s ease;
}

.crisis-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.crisis-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.crisis-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crisis-text strong {
  font-size: 15px;
  color: var(--ink);
}

.crisis-text p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.crisis-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.crisis-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.crisis-link:hover { color: var(--ink); }
.crisis-link::before { content: '→ '; }

/* SAVE BLOCK */
.save-block {
  text-align: center;
  padding: 20px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
}

.save-note {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.save-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.save-status.ok      { color: var(--teal); }
.save-status.err     { color: #c0392b; }
.save-status.pending { color: var(--ink-muted); }

.retake-btn { align-self: center; }

/* FOOTER */
.app-footer {
  border-top: 1px solid rgba(28,24,20,0.09);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal,
.footer-privacy {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer-refs { margin-top: 4px; }

.ref-tag {
  font-size: 10px;
  color: var(--ink-muted);
  opacity: 0.7;
  font-style: italic;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .top-bar { padding: 12px 16px; }
  .logo-text { display: none; }
  .screen-inner { padding: 28px 16px 48px; }
  .intake-card { padding: 24px 18px; }
  .question-card { padding: 28px 18px 22px; }
  .insight-row { grid-template-columns: 1fr; }
  .storms-grid-wrapper { padding-top: 30px; padding-bottom: 30px; }
  .axis-left, .axis-right { display: none; }
  .welcome-inner { padding-top: 48px; }
}

@media (max-width: 400px) {
  .question-nav { flex-direction: column-reverse; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; }
}