:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-2: #10b981;
  --danger: #ef4444;
  --shadow: 0 1px 3px rgba(15,23,42,0.04);
  --shadow-lg: 0 8px 24px rgba(15,23,42,0.08);
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 30% 10%, rgba(16,185,129,0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 90%, rgba(37,99,235,0.04) 0%, transparent 50%);
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Onboarding screens ─────────────────────────────────── */

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-mark::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  border-radius: 2px;
  margin: 16px auto 0;
}
.logo-sub {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  margin-top: 22px;
}

.welcome-title {
  font-size: 28px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.welcome-text {
  color: var(--ink-2);
  max-width: 380px;
  font-size: 16px;
  line-height: 1.55;
}
.welcome-promise {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  color: #065f46;
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
}

.step-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}
.step-dot {
  width: 28px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.2s;
}
.step-dot.active { background: var(--accent); }
.step-dot.done   { background: var(--accent-2); }

.step-question {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 8px;
  letter-spacing: -0.01em;
}
.step-help {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 360px;
}

.input-block {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 14px 18px;
  font-size: 17px;
  border-radius: var(--radius);
  font-family: inherit;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  text-align: center;
}
input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

.choice-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
  max-width: 320px;
}
.choice-btn {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.choice-btn:hover { border-color: var(--accent); color: var(--ink); }
.choice-btn.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.unit-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  margin-top: 14px;
}
.unit-toggle button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.unit-toggle button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.height-row {
  display: flex;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.height-row .field {
  flex: 1;
  position: relative;
}
.height-row label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.disclaimer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}
.disclaimer-card strong { color: var(--ink); }
.disclaimer-card ul { padding-left: 20px; margin: 8px 0; }

.nav-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  width: 100%;
  max-width: 320px;
}

button.primary {
  background: var(--ink);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  flex: 1;
}
button.primary:hover:not(:disabled) {
  background: #1e293b;
  transform: translateY(-1px);
}
button.primary:disabled { opacity: 0.4; cursor: not-allowed; }

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
button.secondary:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}

/* ── Dashboard (placeholder for Session 1) ─────────────── */

.dash-header {
  padding: 24px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dash-header .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.dash-header .who {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.dash-body {
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-state .big {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-state .small {
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.profile-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.profile-grid .row { font-size: 14px; }
.profile-grid .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.profile-grid .value { color: var(--ink); font-weight: 600; margin-top: 2px; }

footer.app-footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
footer.app-footer .heb {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
