/* ═══════════════════════════════════════════════════════════
   BEING Portal — Stylesheet
   Mobile-first. Breakpoint: 768px → sidebar layout
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');


/* ─────────────────────────────────────────────────────────
   CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:           #F5F0EB;
  --charcoal:     #333333;

  /* Accent */
  --copper:       #B5813A;
  --copper-dark:  #9A6C2E;

  /* Text */
  --text:         #333333;
  --text-muted:   #7A726B;
  --text-faint:   #B0A89F;

  /* Borders */
  --border:       #DDD6CE;
  --border-light: #EAE4DC;

  /* BEING Pillars */
  --slate:  #7A8A96;
  --blush:  #C9A090;
  --sage:   #7A7F55;
  --amber:  #C4983A;
  --rust:   #A84F2A;

  /* Layout */
  --sidebar-width:    220px;
  --bottom-nav-h:     64px;
  --radius:           8px;

  /* Spacing */
  --space-mobile:  24px;
  --space-desktop: 40px;
}


/* ─────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}


/* ═══════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════ */

.login-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-mobile);
  padding-bottom: 72px; /* room for the pinned footer */
}

/* ── Brand + form container ── */
.login-inner {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ── Brand block ── */
.login-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.login-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(64px, 16vw, 104px);
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1;
  /* Staggered entrance */
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.5;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* ── Copper accent rule ── */
.login-accent {
  width: 36px;
  height: 1px;
  background-color: var(--copper);
  opacity: 0.55;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* ── Form ── */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background-color: #FDFAF7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.login-input::placeholder {
  color: var(--text-faint);
}

.login-input:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(181, 129, 58, 0.12);
}

.btn-copper {
  width: 100%;
  padding: 18px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #FDFAF7;
  background-color: var(--copper);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  -webkit-appearance: none;
}

.btn-copper:hover {
  background-color: var(--copper-dark);
}

.btn-copper:active {
  transform: scale(0.985);
}

/* ── Post-submit confirmation ── */
.login-confirmation {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  min-height: 1.65em;
  animation: riseIn 0.5s ease both;
}

/* ── Pinned footer ── */
.login-footer {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
}

.login-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Entrance animation ── */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════
   APP SHELL  (hidden until login)
   ═══════════════════════════════════════════════════════════ */

.app-shell {
  display: none; /* JS sets display:flex on login */
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  position: relative;
}


/* ─────────────────────────────────────────────────────────
   SIDEBAR  (desktop only — hidden on mobile)
   ───────────────────────────────────────────────────────── */

.sidebar {
  display: none; /* shown via media query */
  width: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--charcoal);
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: 52px 24px 28px;
  border-bottom: 1px solid rgba(245, 240, 235, 0.09);
}

.sidebar-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  color: var(--bg);
  letter-spacing: 0.22em;
}

/* ── Nav list ── */
.sidebar-nav {
  padding: 20px 0 32px;
  flex: 1;
}

.nav-item {
  display: block;
  padding: 14px 24px 14px 21px; /* 21px left = 24px - 3px border */
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.65);
  border-left: 3px solid transparent;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-item:hover {
  color: var(--bg);
  background-color: rgba(245, 240, 235, 0.06);
}

.nav-item.active,
.nav-item.active:hover {
  color: rgba(245, 240, 235, 0.65);
  border-left-color: var(--copper);
  background-color: transparent;
}


/* ─────────────────────────────────────────────────────────
   MAIN CONTENT AREA
   ───────────────────────────────────────────────────────── */

.main-content {
  flex: 1;
  padding: var(--space-mobile);
  /* On mobile, leave room above the bottom nav */
  padding-bottom: calc(var(--bottom-nav-h) + var(--space-mobile));
  background-color: var(--bg);
}


/* ─────────────────────────────────────────────────────────
   VIEWS
   ───────────────────────────────────────────────────────── */

.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── View accent rule (mirrors login-accent) ── */
.view-accent {
  width: 36px;
  height: 1px;
  background-color: var(--copper);
  opacity: 0.55;
  margin-top: 20px;
}

/* ── View header ── */
.view-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.view-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 7vw, 52px);
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.view-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ─────────────────────────────────────────────────────────
   MOBILE BOTTOM NAV
   ───────────────────────────────────────────────────────── */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background-color: var(--charcoal);
  display: flex;
  align-items: stretch;
  z-index: 100;
  border-top: 1px solid rgba(245, 240, 235, 0.09);
  /* Safe area for iPhone home indicator */
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 235, 0.5);
  transition: color 0.18s ease;
  position: relative;
  padding-bottom: 4px;
}

/* Copper pip above active item */
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background-color: var(--copper);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item.active {
  color: var(--bg);
}

.bottom-nav-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   WEEKLY CHECK-IN FLOW
   Full-screen charcoal overlay
   ═══════════════════════════════════════════════════════════ */

.checkin-flow {
  position: fixed;
  inset: 0;
  background-color: var(--charcoal);
  z-index: 200;
  display: none; /* JS sets display:flex to open */
  flex-direction: column;
  overflow: hidden;
}

/* ── Top bar ── */
.checkin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 18px;
  flex-shrink: 0;
}

.checkin-back-btn {
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: rgba(245, 240, 235, 0.4);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.checkin-back-btn:hover {
  color: rgba(245, 240, 235, 0.8);
}

.checkin-progress-wrap {
  flex: 1;
  height: 2px;
  background-color: rgba(245, 240, 235, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.checkin-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--copper);
  border-radius: 1px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkin-counter {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.32);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* ── Scrollable body ── */
.checkin-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 120px;
}

/* ── Individual step ── */
.checkin-step {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  padding-top: clamp(36px, 8vh, 80px);
}

.checkin-step.active {
  display: block;
  animation: checkinIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes checkinIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Question heading ── */
.checkin-question {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 4.5vw, 34px);
  color: var(--bg);
  line-height: 1.32;
  margin-bottom: 32px;
}

/* ── Italic subtitle (steps 3, 10) ── */
.checkin-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: rgba(245, 240, 235, 0.48);
  line-height: 1.6;
  margin-top: -20px;
  margin-bottom: 28px;
}

/* ── Optional hint (step 11) ── */
.checkin-optional {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.38);
  line-height: 1.6;
  margin-top: -20px;
  margin-bottom: 24px;
}

/* ── Textarea ── */
.checkin-textarea {
  width: 100%;
  min-height: 200px;
  background-color: rgba(245, 240, 235, 0.05);
  border: 1px solid rgba(245, 240, 235, 0.11);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.8;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  display: block;
}

.checkin-textarea::placeholder {
  color: rgba(245, 240, 235, 0.22);
}

.checkin-textarea:focus {
  border-color: rgba(181, 129, 58, 0.42);
  background-color: rgba(245, 240, 235, 0.07);
}

/* ── Number selector (steps 4, 5) ── */
.number-selector {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  margin-top: 8px;
}

.number-circle {
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 235, 0.2);
  background: none;
  color: rgba(245, 240, 235, 0.52);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 2vw, 15px);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.number-circle:hover {
  border-color: rgba(181, 129, 58, 0.55);
  color: var(--bg);
}

.number-circle.selected {
  background-color: var(--copper);
  border-color: var(--copper);
  color: #ffffff;
}

.number-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.32);
  letter-spacing: 0.025em;
  margin-top: 10px;
}

/* ── Multi-entry cards (steps 3, 10) ── */
.entry-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.entry-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background-color: rgba(245, 240, 235, 0.07);
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.5;
}

.entry-card span {
  flex: 1;
}

.entry-remove {
  background: none;
  border: none;
  color: rgba(245, 240, 235, 0.28);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-top: 1px;
  transition: color 0.15s ease;
}

.entry-remove:hover {
  color: rgba(245, 240, 235, 0.7);
}

.entry-input {
  width: 100%;
  background-color: rgba(245, 240, 235, 0.05);
  border: 1px solid rgba(245, 240, 235, 0.11);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--bg);
  outline: none;
  display: block;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
}

.entry-input::placeholder {
  color: rgba(245, 240, 235, 0.22);
}

.entry-input:focus {
  border-color: rgba(181, 129, 58, 0.42);
  background-color: rgba(245, 240, 235, 0.07);
}

.entry-add-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.entry-add-btn:hover {
  opacity: 0.7;
}

/* ── Fixed bottom actions bar ── */
.checkin-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--charcoal) 55%, transparent);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  z-index: 210;
}

.checkin-continue-btn {
  background-color: var(--copper);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.1s ease;
}

.checkin-continue-btn:hover {
  background-color: var(--copper-dark);
}

.checkin-continue-btn:active {
  transform: scale(0.985);
}

.checkin-skip-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.38);
  display: none; /* shown only on step 11 */
  transition: color 0.18s ease;
}

.checkin-skip-btn:hover {
  color: rgba(245, 240, 235, 0.7);
}

/* ── Completion screen ── */
.checkin-complete {
  display: none; /* JS sets display:flex */
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
  text-align: center;
}

.checkin-complete.visible {
  animation: checkinIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkin-complete-inner {
  width: 100%;
  max-width: 440px;
}

.checkin-complete-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 8vw, 54px);
  color: var(--bg);
  line-height: 1.15;
  margin-bottom: 14px;
}

.checkin-complete-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: rgba(245, 240, 235, 0.52);
  line-height: 1.55;
  margin-bottom: 36px;
}

.checkin-complete-divider {
  width: 40px;
  height: 1px;
  background-color: var(--copper);
  opacity: 0.55;
  margin: 0 auto 36px;
}

.checkin-summary {
  background-color: rgba(245, 240, 235, 0.06);
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
  text-align: left;
}

.checkin-summary-item {
  margin-bottom: 20px;
}

.checkin-summary-item:last-child {
  margin-bottom: 0;
}

.checkin-summary-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 6px;
}

.checkin-summary-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--bg);
  line-height: 1.55;
}

/* ── Save status (shown after completion POST) ── */
.checkin-save-status {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(245, 240, 235, 0.38);
  letter-spacing: 0.02em;
  min-height: 1.4em;
}

/* ── Desktop overrides ── */
@media (min-width: 768px) {
  .checkin-topbar {
    padding: 24px 48px 20px;
  }

  .checkin-body {
    padding: 0 48px 120px;
  }

  .checkin-actions {
    padding: 20px 48px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}


/* ═══════════════════════════════════════════════════════════
   HOME SCREEN
   ═══════════════════════════════════════════════════════════ */

/* ── Week / phase meta line ── */
.view-meta {
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.015em;
}

/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg);
  border: 1px solid #C8BFB5;
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 2.8vw, 28px);
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 8px;
}

.stat-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-sub--positive {
  color: #5C8A6E;
}

/* ── Shared content card ── */
.content-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  margin-bottom: 20px;
}

.content-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.content-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.content-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Session excerpt ── */
.session-excerpt {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ── Copper link ── */
.link-copper {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.link-copper:hover {
  opacity: 0.7;
}

/* ── Wins list ── */
.wins-list {
  margin-bottom: 14px;
}

.wins-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
}

.wins-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wins-list li::before {
  content: '\2013'; /* en dash */
  color: var(--copper);
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.6;
}

.card-footer-right {
  text-align: right;
}

/* ── Check-in prompt ── */
.checkin-prompt {
  background-color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.checkin-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--bg);
  line-height: 1.3;
}

/* Non-full-width button variant */
.btn-inline {
  width: auto;
  white-space: nowrap;
  padding: 13px 24px;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────
   SHARED — loading / empty states (used by wins.js, audit.js)
   ───────────────────────────────────────────────────────── */

.page-loading,
.page-empty {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 8px 0;
}


/* ═══════════════════════════════════════════════════════════
   MY WINS PAGE
   ═══════════════════════════════════════════════════════════ */

.page-counter {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.wins-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.win-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.win-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}

.win-date {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}


/* ═══════════════════════════════════════════════════════════
   SESSION NOTES PAGE
   ═══════════════════════════════════════════════════════════ */

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.session-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
}

.session-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}

.session-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.45;
  margin-bottom: 12px;
}

.session-note-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}


/* ═══════════════════════════════════════════════════════════
   TASKS PAGE
   ═══════════════════════════════════════════════════════════ */

/* Add task row */
.task-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.task-add-input {
  flex: 1;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.task-add-input::placeholder {
  color: var(--text-faint);
}

.task-add-input:focus {
  border-color: var(--copper);
}

.task-add-btn {
  padding: 13px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: var(--copper);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}

.task-add-btn:hover {
  background-color: var(--copper-dark);
}

/* Task section */
.task-section {
  margin-bottom: 36px;
}

.task-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.task-section-label--completed {
  color: var(--text-faint);
}

/* Task rows */
.task-list {
  display: flex;
  flex-direction: column;
}

.task-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.task-row:last-child {
  border-bottom: none;
}

/* Checkbox */
.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #C8BFB5;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.task-checkbox:hover {
  border-color: var(--copper);
}

.task-checkbox--checked {
  background-color: var(--copper);
  border-color: var(--copper);
}

.task-checkbox--checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;
  border: 1.5px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Task text and source */
.task-text {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

.task-row--completed .task-text {
  text-decoration: line-through;
  color: var(--text-faint);
}

.task-source {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}


/* ═══════════════════════════════════════════════════════════
   BEING AUDIT PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Programme timeline ── */
.audit-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 48px;
}

.audit-timeline::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: 4px; /* centre of 10px dot */
  height: 1px;
  background-color: var(--border);
  z-index: 0;
}

.audit-tl-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.audit-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.audit-tl-point--done .audit-tl-dot {
  background-color: var(--copper);
}

.audit-tl-point--pending .audit-tl-dot {
  background-color: var(--bg);
  border: 1.5px solid #C8BFB5;
}

.audit-tl-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.audit-tl-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
}

/* ── Pillar list ── */
.audit-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.audit-pillar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.audit-pillar:first-child {
  padding-top: 0;
}

.audit-pillar:last-child {
  border-bottom: none;
}

.audit-pillar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.audit-pillar-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audit-pillar-change {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ── Score bars ── */
.audit-bar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.audit-bar-group:last-child {
  margin-bottom: 0;
}

.audit-bar-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  width: 30px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.audit-bar-track {
  flex: 1;
  height: 8px;
  background-color: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.audit-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.audit-bar-fill--muted {
  opacity: 0.38;
}

.audit-bar-score {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Overall score card ── */
.audit-score-card {
  background-color: #EDE7DE;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.audit-score-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.audit-score-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  color: var(--charcoal);
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.audit-score-note {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & DESKTOP (≥ 768px)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

  /* Show sidebar */
  .sidebar {
    display: flex;
  }

  /* App shell becomes a flex row */
  .app-shell {
    flex-direction: row;
  }

  /* Push main content past the sidebar */
  .main-content {
    margin-left: var(--sidebar-width);
    padding: var(--space-desktop);
    /* Remove mobile bottom-nav offset */
    padding-bottom: var(--space-desktop);
  }

  /* Hide mobile bottom nav */
  .bottom-nav {
    display: none;
  }

  /* Stat grid — wider on desktop */
  .stat-grid {
    gap: 20px;
  }

  .stat-card {
    padding: 24px 22px 20px;
  }

  /* Content cards — wider on desktop */
  .content-card {
    padding: 26px 28px 22px;
    margin-bottom: 24px;
  }

  .checkin-prompt {
    padding: 28px 32px;
  }

}

/* Narrow mobile: stack check-in prompt vertically */
@media (max-width: 480px) {
  .checkin-prompt {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-inline {
    width: 100%;
  }
}
