/* ============================================================
   MORTIS DESIGN TOKENS
   Exact values sourced from the iOS app (build 24) screenshots.
   Every page uses these — guarantees visual consistency.
   ============================================================ */

:root {
  /* ─── Color ─────────────────────────────────────────────── */
  --bg:              #000000;          /* base app background */
  --bg-card:         #0a0a0a;          /* raised surface, cards */
  --bg-card-2:       #111111;          /* secondary raised surface */
  --bg-input:        #1c1c1e;          /* form inputs, pill buttons */

  --ink:             #ffffff;          /* primary text */
  --ink-2:           rgba(255,255,255,0.70);  /* body text */
  --ink-3:           rgba(255,255,255,0.40);  /* dim, meta */
  --ink-4:           rgba(255,255,255,0.25);  /* very dim */

  --line:            rgba(255,255,255,0.08); /* hairline borders */
  --line-2:          rgba(255,255,255,0.14); /* stronger border */

  --accent:          #F5841F;          /* Mortis orange */
  --accent-2:        #FFB066;          /* lighter orange, hover */
  --accent-dim:      rgba(245,132,31,0.15);  /* orange tint bg */
  --accent-border:   rgba(245,132,31,0.30);

  --danger:          #ff4444;

  /* ─── Typography ────────────────────────────────────────── */
  --font-serif:      'Instrument Serif', 'Times New Roman', serif;
  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:       'Inter', ui-monospace, 'SF Mono', Monaco, monospace;

  /* Type scale — matches app hierarchy */
  --fs-title-hero:   clamp(42px, 10vw, 100px);   /* homepage MORTIS. wordmark / hero titles */
  --fs-title-xl:     clamp(36px, 8vw, 72px);     /* section heroes */
  --fs-title-lg:     clamp(28px, 5vw, 44px);     /* page title, e.g. Agni Mudra */
  --fs-title-md:     22px;                       /* card titles */
  --fs-title-sm:     17px;                       /* modal titles */
  --fs-body:         15px;                       /* body text */
  --fs-body-sm:      13px;                       /* secondary body */
  --fs-meta:         12px;                       /* meta labels */
  --fs-micro:        10px;                       /* tag chips, labels */

  --letter-tight:    -0.02em;
  --letter-title:    -0.03em;
  --letter-mono:     0.08em;                     /* mono meta labels spread */

  --lh-tight:        1.0;
  --lh-title:        1.1;
  --lh-body:         1.6;

  /* ─── Spacing scale ─────────────────────────────────────── */
  --sp-1:            4px;
  --sp-2:            8px;
  --sp-3:            12px;
  --sp-4:            16px;
  --sp-5:            20px;
  --sp-6:            24px;
  --sp-7:            32px;
  --sp-8:            40px;
  --sp-9:            56px;
  --sp-10:           80px;

  /* ─── Shape ─────────────────────────────────────────────── */
  --radius-0:        0;                          /* app is flat-rectangle */
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-pill:     999px;

  /* ─── Motion ────────────────────────────────────────────── */
  --ease-out:        cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast:        0.15s;
  --dur-med:         0.3s;
  --dur-slow:        0.5s;

  /* ─── Z-layers ──────────────────────────────────────────── */
  --z-bg:            0;   /* background canvas */
  --z-content:       2;   /* hero content, page body */
  --z-nav:           50;  /* sticky nav */
  --z-overlay:       100; /* modals, popups */
  --z-toast:         200;
}

/* ─── Base reset + defaults ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; color: inherit; border: 0; background: none; }

/* ─── Button primitives — match app's two button styles ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
  border-radius: var(--radius-0);
  transition: background var(--dur-fast), opacity var(--dur-fast);
  cursor: pointer;
  min-height: 48px; /* touch target */
}
.btn--primary {
  background: var(--accent);
  color: var(--ink);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--secondary:hover { border-color: rgba(255,255,255,0.3); }

/* ─── Card primitive — used everywhere the app shows stats/sessions ─── */
.m-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: var(--sp-6) var(--sp-5);
}

/* ─── Eyebrow / meta label (orange "POSTURE · SPIRITUAL" style) ─── */
.m-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--ink-3);
}
.m-eyebrow--accent { color: var(--accent); }

/* ─── Stat block (matches "SESSIONS 49 / ENJOYED 74%" pattern) ─── */
.m-stat { }
.m-stat__lbl {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
}
.m-stat__val {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  line-height: var(--lh-tight);
  color: var(--ink);
}

/* ─── Chip (small tag, like "41.2HZ - GAMMA") ─── */
.m-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  background: var(--bg-card);
}
.m-chip::before {
  content: '';
  width: 6px; height: 6px; background: var(--ink-2); display: inline-block;
}
.m-chip--accent { color: var(--accent); border-color: var(--accent-border); }
.m-chip--accent::before { background: var(--accent); }

/* ─── Reflection block (orange border-left quote, from IMG_9061) ─── */
.m-reflection {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.m-reflection__lbl {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.m-reflection__quote {
  font-family: var(--font-sans);
  font-size: var(--fs-title-sm);
  line-height: var(--lh-title);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.m-reflection__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── "Coming soon" page treatment ─── */
.m-coming-soon {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
  gap: var(--sp-5);
}
.m-coming-soon__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--letter-mono);
  text-transform: uppercase;
  color: var(--accent);
}
.m-coming-soon__title {
  font-family: var(--font-serif);
  font-size: var(--fs-title-xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--letter-title);
  color: var(--ink);
  max-width: 640px;
}
.m-coming-soon__sub {
  font-size: var(--fs-body);
  color: var(--ink-2);
  max-width: 480px;
  line-height: var(--lh-body);
}
