/* ── Nortefy — DESIGN SYSTEM ──────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');


/* ── DESIGN TOKENS ───────────────────────────────────── */
:root {
  --bg:        #f2f1ec;
  --surface:   #ffffff;
  --surface2:  #d8d6cc;
  --border:    #d5d3c9;
  --text:      #111118;
  --text-mid:  #3e3c42;
  --text-dim:  #747078;
  --accent:      #2d5be3;
  --accent-dim:  #6080eb;
  --accent-glow: rgba(45, 91, 227, 0.07);
  --accent-line: rgba(45, 91, 227, 0.18);
  --success:   #1a7a42;
  --warn:      #c46e0a;
  --danger:    #c03030;
  --blue:      #2d5be3;
  --purple:    #6040c0;
  --radius:    8px;
  --radius-lg: 14px;
}

/* ── RESET ───────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 24, 22, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 52px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent-dim);
  letter-spacing: 0.08em;
  opacity: 0.75;
  border-left: 1px solid var(--accent-dim);
  padding-left: 0.55rem;
  margin-left: 0.1rem;
  transition: opacity 0.2s;
}
.nav-year:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover  { color: var(--accent); background: var(--surface2); }
.nav-links a.active { color: var(--accent); background: var(--surface2); }

.nav-links a.nav-profile-icon {
  padding: 0.3rem 0.4rem;
  margin-left: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links a.nav-profile-icon:hover { background: var(--surface2); }
.nav-links a.nav-profile-icon.active {
  color: var(--accent);
  background: var(--surface2);
}

.nav-links a.nav-daily-log {
  color: var(--accent);
  border: 1px solid rgba(45, 91, 227, 0.4);
  margin: 0 0.7rem;
  animation: nav-log-pulse 1s ease-in-out infinite;
  box-shadow: inset 0 0 0 3px var(--success);
}
.nav-links a.nav-daily-log:hover,
.nav-links a.nav-daily-log.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
@keyframes nav-log-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 91, 227, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(45, 91, 227, 0.15); }
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  height: 1px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  z-index: 101;
  background: rgba(26, 24, 22, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 0.25rem 0;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-left-color 0.15s;
}

.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); background: var(--accent-glow); border-left-color: var(--accent-dim); }
.nav-mobile-menu a.active { color: var(--accent); background: var(--accent-glow); border-left-color: var(--accent); font-weight: 600; }

.nav-mobile-menu a.nav-daily-log {
  margin: 0.5rem 1rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border-bottom: none;
  border-left: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  box-shadow: inset 0 0 0 3px var(--success);
}
.nav-mobile-menu a.nav-daily-log:hover,
.nav-mobile-menu a.nav-daily-log.active {
  background: #1f40b0;
  color: #fff;
  border-left: none;
}

.nav-mobile-menu a.nav-profile-icon {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── PAGE LAYOUT ─────────────────────────────────────── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6.5rem 2.5rem 5rem;
}

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-eyebrow--flush { margin-bottom: 0; }

/* ── PAGE SECTIONS ── */
.page-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 5px 5px 0 0 var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Cancel grid bottom margin inside section padding ── */
.page-section .grid-2,
.page-section .grid-3 { margin-bottom: 0; }

.page-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.page-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.04em;
}

.page-title em { font-style: normal; color: var(--accent); }

.page-subtitle {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ── INSIGHT BLOCK ───────────────────────────────────── */
.insight-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* ── GROUP LABEL (section sub-group labels) ───────────── */
.group-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

/* ── GRID ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }

/* ── TABLE DATE CELL ─────────────────────────────────── */
/* Used in pitfalls, sleep, momentum, admin log tables   */
.td-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.td-date-num { color: var(--text); }

/* ── STAT NOTE — small mono footnote below a stat ─────── */
.stat-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── TABLES ──────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
  background: var(--surface2);
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

/* ── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-danger  { background: rgba(192, 64, 64, 0.1);  color: var(--danger);  border: 1px solid rgba(192, 64, 64, 0.25); }
.badge-warn    { background: rgba(196, 122, 40, 0.1); color: var(--warn);    border: 1px solid rgba(196, 122, 40, 0.25); }
.badge-ok      { background: rgba(45, 138, 85, 0.1);  color: var(--success); border: 1px solid rgba(45, 138, 85, 0.25); }
.badge-neutral { background: var(--surface2);          color: var(--text-dim); border: 1px solid var(--border); }
.badge-accent    { background: var(--accent-glow);         color: var(--accent);    border: 1px solid var(--accent-dim); }

/* ── TEXT COLOR UTILITIES ────────────────────────────── */
.text-warn    { color: var(--warn); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-accent    { color: var(--accent); }
.text-dim     { color: var(--text-dim); }

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

/* ── SCORE BAR ───────────────────────────────────────── */
.score-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

/* ── Taller score bar variant for distribution rows ── */
.score-bar--dist { height: 4px; }

.score-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

/* ── DIVIDER ─────────────────────────────────────────── */
.divider {
  border: 2px solid var(--border);
  margin-bottom: 5rem;
}

/* ── QUOTE BLOCK ─────────────────────────────────────── */
.quote-block {
  border-left: 2px solid var(--accent-dim);
  padding: 0.75rem 1.5rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 1.5rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── SELECT ──────────────────────────────────────────── */
.month-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.month-select:focus { border-color: var(--accent); }

/* ── FORM ────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus { border-color: var(--accent); }
select.form-input:invalid { color: var(--text-dim); }

/* ── TOGGLE BUTTONS ──────────────────────────────────── */
.toggle-group { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.toggle-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: all 0.15s;
  flex-shrink: 0;
}

.toggle-btn:hover  { color: var(--text); border-color: var(--text-dim); }
.toggle-btn.yes   { background: rgba(45, 138, 85, 0.08);  color: var(--success); border-color: rgba(45, 138, 85, 0.3); }
.toggle-btn.no    { background: rgba(192, 64, 64, 0.08);  color: var(--danger);  border-color: rgba(192, 64, 64, 0.3); }
.toggle-btn.empty { background: rgba(74, 74, 90, 0.1);    color: var(--text-mid); border-color: rgba(74, 74, 90, 0.35); }
/* ── disabled state — sub-toggles locked by parent module ── */
.toggle-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── SUBMIT BUTTON ───────────────────────────────────── */
.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.submit-btn:hover    { background: rgba(45, 91, 227, 0.14); }
.submit-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── STATUS BOX ──────────────────────────────────────── */
.status-box {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  display: none;
}

.status-box.loading { display: block; background: var(--accent-glow);            border: 1px solid var(--accent-dim); color: var(--accent); }
.status-box.success { display: block; background: rgba(45, 138, 85, 0.08);     border: 1px solid var(--success);  color: var(--success); }
.status-box.error   { display: block; background: rgba(192, 64, 64, 0.08);     border: 1px solid var(--danger);   color: var(--danger); }

.spinner {
  display: inline-block;
  width: 9px; height: 9px;
  border: 1.5px solid var(--accent-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

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

/* ── LOG CONTROLS ────────────────────────────────────── */
.log-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 24, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 1.5rem;
  max-width: 380px;
  width: calc(100% - 3rem);
  box-shadow: 0 32px 80px rgba(17, 17, 24, 0.16), 0 4px 20px rgba(17, 17, 24, 0.08);
  transform: translateY(10px) scale(0.97);
  transition: transform 0.2s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(192, 64, 64, 0.07);
  border: 1px solid rgba(192, 64, 64, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--danger);
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.modal-body {
  font-size: 0.825rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-habit-name {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--danger);
}

.modal-footer {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.modal-btn-cancel {
  background: var(--surface2);
  color: var(--text-dim);
  border-color: var(--border);
}

.modal-btn-cancel:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.modal-btn-danger {
  background: rgba(192, 64, 64, 0.07);
  color: var(--danger);
  border-color: rgba(192, 64, 64, 0.28);
}

.modal-btn-danger:hover {
  background: rgba(192, 64, 64, 0.13);
  border-color: var(--danger);
}

.modal-btn-add {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent-dim);
}
.modal-btn-add:hover {
  background: rgba(45, 91, 227, 0.12);
  border-color: var(--accent);
}

/* ── PILLAR ADD BUTTON (shared: direction, things, admin) ── */
.pillar-add-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  opacity: 0.4;
  align-self: center;
}

.pillar-add-btn:hover {
  opacity: 1;
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── PILLAR ADD BUTTON — disabled at item limit ──────── */
.pillar-add-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── INLINE ADD FORM (shared: direction, things, admin) ── */
.add-form-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-form-text { flex: 1; }

.add-form-row .form-input,
.first-item-row .form-input { height: 2.5rem; }

.add-form-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

/* ── NO DATA ALERT ───────────────────────────────────── */
.no-data-alert {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 2rem 2rem;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--surface);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 0;
}

/* ── Footer body — brand + columns grid ─────────────── */
.footer-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

/* ── Footer brand column ─────────────────────────────── */
.footer-brand-col .footer-wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.footer-brand-col .footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 22ch;
}

.footer-brand-col .footer-made {
  margin-top: 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.footer-brand-col .footer-made span {
  color: var(--accent);
}

/* ── Footer nav columns ──────────────────────────────── */
.footer-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col ul a {
  font-size: 0.82rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: var(--accent);
}

/* ── Footer bottom bar ───────────────────────────────── */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ── Footer responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .footer-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1280px) and (min-width: 769px) {
  .nav-inner { padding: 0 1.5rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.35rem 0.45rem; font-size: 0.72rem; }
  .nav-links a.nav-daily-log { margin: 0 0.3rem; }
  .nav-links a.nav-profile-icon { margin-left: 0.3rem; }
}

@media (max-width: 920px) and (min-width: 769px) {
  .nav-inner { padding: 0 1rem; }
  .nav-links a { padding: 0.35rem 0.3rem; font-size: 0.68rem; }
  .nav-links a.nav-daily-log { margin: 0 0.15rem; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .page { padding: 72px 1.25rem 3rem; }
  .page-title { font-size: 2.2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── BENEFITS PAGE ───────────────────────────────────── */
.wrap { max-width: 820px; margin: 0 auto; padding: 5rem 2.5rem 8rem; }

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent-dim);
  padding-left: 1.5rem;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--accent-dim);
  margin: 3rem 0;
}

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-eyebrow.spaced { margin-top: 2.5rem; }

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.section-title em { font-style: italic; color: var(--accent); }

.section-lead {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 2rem;
}

section { margin-bottom: 5rem; }

.manifesto {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.manifesto p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
}

.manifesto p + p { margin-top: 1.25rem; }
.manifesto strong { font-weight: 400; color: var(--text); }
.manifesto em { font-style: italic; color: var(--accent); }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.audience-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
}

.audience-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.75rem;
}

.audience-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.audience-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.audience-traits {
  list-style: none;
  margin-top: 1rem;
}

.audience-traits li {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.55;
}

.audience-traits li:last-child { border-bottom: none; }

.trait-dot {
  color: var(--accent);
  font-size: 0.55rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.feature-card:hover { background: var(--surface2); }

.feature-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.feature-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
}

.feature-icon { font-size: 1.2rem; line-height: 1; }

.feature-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-why {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.feature-insight {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
}

.science-block {
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.science-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.science-text { font-size: 0.82rem; color: var(--text-mid); line-height: 1.75; }
.science-text strong { color: var(--text); font-weight: 500; }

.pull-quote { text-align: center; padding: 3rem 2rem; }

.pull-quote-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.pull-quote-text em { color: var(--accent); font-style: normal; }

.pull-quote-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ideas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.idea-card { background: var(--surface); padding: 1.5rem; }

.idea-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}

.idea-tag.social    { background: rgba(45, 91, 227, 0.12); color: var(--blue);    border: 1px solid rgba(45, 91, 227, 0.3); }
.idea-tag.community { background: rgba(144,112,200,0.12); color: var(--purple);  border: 1px solid rgba(144,112,200,0.3); }
.idea-tag.product   { background: var(--accent-glow);       color: var(--accent);    border: 1px solid var(--accent-line); }
.idea-tag.partner   { background: rgba(45,138,85,0.1);    color: var(--success); border: 1px solid rgba(45,138,85,0.25); }
.idea-tag.copy      { background: rgba(196,122,40,0.1);   color: var(--warn);    border: 1px solid rgba(196,122,40,0.25); }

.idea-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.idea-desc { font-size: 0.77rem; color: var(--text-dim); line-height: 1.65; }

.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.contrast-col { background: var(--surface); padding: 1.75rem; }
.contrast-col.bad  { border-left: 3px solid var(--danger); }
.contrast-col.good { border-left: 3px solid var(--success); }

.contrast-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.contrast-col.bad  .contrast-label { color: var(--danger); }
.contrast-col.good .contrast-label { color: var(--success); }

.contrast-list { list-style: none; }

.contrast-list li {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.contrast-list li:last-child { border-bottom: none; }

.tagline-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tagline-item {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tagline-item:last-child { border-bottom: none; }

.tagline-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent-dim);
  min-width: 20px;
  flex-shrink: 0;
}

.tagline-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
}

.tagline-text em { color: var(--accent); font-style: normal; }

.page-footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .wrap { padding: 3rem 1.25rem 5rem; }
  .audience-grid,
  .contrast-row,
  .ideas-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
}

@media print {
  body { background: #fff; color: #111; }
  .feature-card, .audience-card, .idea-card { break-inside: avoid; }
}

/* ── BENEFITS PAGE — WEB CONTENT SECTION ────────────── */
.web-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.web-option { background: var(--surface); padding: 2rem; }
.web-option--compact { padding: 1.5rem 2rem; }

.web-option-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.web-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.web-headline em { color: var(--accent); font-style: italic; }

.web-headline-sm {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.web-sub { font-size: 0.88rem; color: var(--text-mid); line-height: 1.8; max-width: 560px; margin-bottom: 1.25rem; }
.web-sub-sm { font-size: 0.82rem; color: var(--text-dim); line-height: 1.75; max-width: 580px; }

.web-cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.web-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-weight: 400;
}

.web-cta-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.web-snippets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.web-snippet { background: var(--surface); padding: 1.5rem 1.25rem; }

.web-snippet-icon { font-size: 1.1rem; margin-bottom: 0.6rem; line-height: 1; color: var(--accent-dim); }

.web-snippet-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.web-snippet-body { font-size: 0.74rem; color: var(--text-dim); line-height: 1.65; }

.web-cta-bank { background: var(--surface); display: flex; flex-direction: column; gap: 0; }

.web-cta-row-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.web-cta-row-item:last-child { border-bottom: none; }

.web-cta-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 130px;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.web-cta-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.web-pill {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

.web-pill--dim { color: var(--text-dim); }
.web-pill--accent { border-color: var(--accent-line); color: var(--accent); background: var(--accent-glow); }

.web-quote {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

.web-quote-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.web-faq-list { background: var(--surface); display: flex; flex-direction: column; }

.web-faq-item { padding: 1.25rem 2rem; border-bottom: 1px solid var(--border); }
.web-faq-item:last-child { border-bottom: none; }

.web-faq-q {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.web-faq-a { font-size: 0.8rem; color: var(--text-dim); line-height: 1.75; }

.web-micro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.web-micro-item { background: var(--surface); padding: 1.25rem 1.5rem; }

.web-micro-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
}

.web-micro-val { font-size: 0.82rem; color: var(--text); line-height: 1.5; margin-bottom: 0.35rem; font-style: italic; }
.web-micro-alt { font-size: 0.75rem; color: var(--text-dim); line-height: 1.45; font-style: italic; }

@media (max-width: 640px) {
  .web-snippets-grid { grid-template-columns: 1fr 1fr; }
  .web-micro-grid { grid-template-columns: 1fr; }
  .web-cta-row-item { flex-direction: column; gap: 0.6rem; }
}

@media (max-width: 420px) {
  .web-snippets-grid { grid-template-columns: 1fr; }
}


/* ── STONE × ELECTRIC BLUE — ACTIVE THEME ───────────── */
/* Light mode, high contrast, warm off-white + electric blue */
:root {
  --bg:        #f2f1ec;
  --surface:   #ffffff;
  --surface2:  #d8d6cc;
  --border:    #1a1816;
  --text:      #111118;
  --text-mid:  #3e3c42;
  --text-dim:  #747078;
  --accent:      #2d5be3;
  --accent-dim:  #6080eb;
  --accent-glow: rgba(45, 91, 227, 0.07);
  --accent-line: rgba(45, 91, 227, 0.18);
  --success:   #1a7a42;
  --warn:      #c46e0a;
  --danger:    #c03030;
  --blue:      #2d5be3;
  --purple:    #6040c0;
  --radius:    0px;
  --radius-lg: 0px;
}

/* ── BASE ────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
}

.group-label, .page-eyebrow, .stat-label, .form-label,
.toggle-btn, .submit-btn, .badge, .status-box,
.no-data-alert, th, .nav-year, .month-select,
.section-heading {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
}

/* ── NAV — dark warm bar, electric blue highlights ───── */
nav {
  background: #1a1816;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 56px;
}

.nav-mobile-menu {
  background: #1a1816;
  top: 56px;
  border-top: 3px solid var(--accent);
  border-bottom: none;
}

.nav-brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav-year {
  color: #9a9486;
  border-left-color: #4a4440;
  opacity: 1;
}

.nav-links a {
  color: #9a9486;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
}

.nav-links a:hover  { color: #fff; background: #2a2824; }
.nav-links a.active { color: #fff; background: #2a2824; }

.nav-links a.nav-profile-icon { border-radius: 0; }
.nav-links a.nav-profile-icon svg { width: 20px; height: 20px; }
.nav-links a.nav-profile-icon:hover { background: #2a2824; }
.nav-links a.nav-profile-icon.active { color: var(--accent); background: var(--surface2); }

.nav-links a.nav-daily-log {
  color: #fff;
  background: var(--success);
  border: none;
  border-radius: 0;
  animation: none;
}
.nav-links a.nav-daily-log:hover {
  background: #009950;
  color: #fff;
  border: none;
}
.nav-links a.nav-daily-log.active {
  background: var(--accent);
  color: #fff;
  border: none;
}

#nav-purpose-li a, #nav-direction-li a, #nav-things-li a {
  border-bottom: 3px solid var(--purple);
}

#nav-things-li {
  margin-right: 1rem;
}

#nav-pitfalls-li a, #nav-momentum-li a, #nav-milestones-li a, #nav-sleep-li a {
  border-bottom: 3px solid var(--success);
}

.nav-mobile-menu a {
  color: #9a9486;
  font-size: 0.95rem;
  border-bottom-color: #2a2824;
  border-left: 3px solid transparent;
}
.nav-mobile-menu a:hover  { color: #fff; background: #2a2824; border-left-color: #4a4440; }
.nav-mobile-menu a.active { color: #fff; background: var(--accent); border-left-color: var(--accent); font-weight: 700; }
.nav-mobile-menu a.nav-daily-log {
  background: var(--success); color: #fff;
  margin: 0.5rem 1rem; border-radius: 0; border-left: none;
}
.nav-mobile-menu a.nav-daily-log:hover {
  background: #009950; color: #fff; border-left: none;
}
.nav-mobile-menu a.nav-daily-log.active {
  background: var(--accent); color: #fff; border-left: none;
}

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header {
  border-bottom: 3px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  font-weight: 700;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.page-title em {
  font-style: normal;
  background: var(--accent);
  color: #fff;
  padding: 0 0.1em;
}

.page-subtitle { color: var(--text-dim); font-size: 0.9rem; }

/* ── TABLES ──────────────────────────────────────────── */
th {
  background: var(--surface2);
  color: var(--text);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-bottom: none;
}

td { border-bottom: 1px solid #d5d3c9; background: var(--bg); }

.table-wrap {
  border: 2px solid var(--border);
  border-radius: 0;
}

/* ── BADGES ──────────────────────────────────────────── */
.badge {
  border-radius: 0;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  border-width: 2px;
}

.badge-danger  { background: #ffe0e0; color: #990000; border-color: #990000; }
.badge-warn    { background: #fff3cc; color: #7a4800; border-color: #7a4800; }
.badge-ok      { background: #d0f5e0; color: #005a2b; border-color: #005a2b; }
.badge-neutral { background: var(--surface2); color: var(--text-dim); border-color: var(--border); }
.badge-accent    { background: var(--accent); color: #fff; border-color: var(--border); }

/* ── STAT BLOCK ──────────────────────────────────────── */
.stat-value {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
}

.stat-label {
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--text-dim);
}

/* ── SCORE BAR — segmented strip ────────────────────── */
.score-bar {
  height: 10px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--surface2) 0px, var(--surface2) 7px,
    var(--bg)       7px, var(--bg)       9px
  );
  overflow: hidden;
}

.score-bar-fill {
  background: var(--accent);
  border-radius: 0;
  height: 100%;
}

/* ── QUOTE BLOCK ─────────────────────────────────────── */
.quote-block {
  border-left: 5px solid var(--accent);
  border-radius: 0;
  background: var(--accent-glow);
}

/* ── SELECT ──────────────────────────────────────────── */
.month-select {
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.month-select:focus {
  border-color: var(--border);
  box-shadow: 3px 3px 0 0 var(--accent);
  outline: none;
}

/* ── FORM ────────────────────────────────────────────── */
.form-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-mid);
}

.form-input {
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

.form-input:focus {
  border-color: var(--border);
  box-shadow: 3px 3px 0 0 var(--accent);
  outline: none;
}

select.form-input:invalid { color: var(--text-dim); }

/* ── TOGGLE BUTTONS ──────────────────────────────────── */
.toggle-btn {
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text-mid);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.1s;
}

.toggle-btn:hover  { background: var(--surface2); color: var(--text); }
.toggle-btn.yes   { background: #d0f5e0; color: #005a2b; border-color: #005a2b; }
.toggle-btn.no    { background: #ffe0e0; color: #990000; border-color: #990000; }
.toggle-btn.empty { background: #dedad2; color: var(--text-mid); border-color: #8a8478; }
.toggle-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── SUBMIT BUTTON — press effect ────────────────────── */
.submit-btn {
  background: var(--accent);
  border: 2px solid var(--border);
  color: #fff;
  border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.08s, box-shadow 0.08s;
}

.submit-btn:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--border);
  background: var(--accent);
}

.submit-btn:active:not(:disabled) {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 0 var(--border);
}

.submit-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── STATUS BOX ──────────────────────────────────────── */
.status-box {
  border-radius: 0;
  border-width: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-box.loading { background: #e8ecfc; border-color: #2d5be3; color: #1a3bbb; }
.status-box.success { background: #d0f5e0; border-color: #007a40; color: #005a2b; }
.status-box.error   { background: #ffe0e0; border-color: #dd0000; color: #990000; }

/* ── MODAL ───────────────────────────────────────────── */
.modal {
  background: var(--surface);
  border: 2px solid var(--border);
  border-top: 5px solid var(--danger);
  border-radius: 0;
  box-shadow: 8px 8px 0 0 var(--border);
}

.modal-title { font-weight: 700; letter-spacing: -0.01em; }

.modal-btn {
  border-radius: 0;
  border-width: 2px;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.08s, box-shadow 0.08s;
}

.modal-btn-cancel {
  background: var(--surface2);
  color: var(--text-mid);
  border-color: var(--border);
}

.modal-btn-cancel:hover { background: var(--surface2); color: var(--text); }

.modal-btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: #880000;
  box-shadow: 3px 3px 0 0 #880000;
}

.modal-btn-danger:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 #880000;
  background: #bb0000;
}

.modal-btn-add {
  background: var(--accent);
  color: #fff;
  border-color: var(--border);
  box-shadow: 3px 3px 0 0 var(--border);
}

.modal-btn-add:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--border);
}

/* ── PANEL GRID — gap-border layout used across data pages ── */
.panel-grid {
  gap: 1px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── SHARED CHAR BUTTONS ─────────────────────────────── */
/* Small single-char action buttons used across all pages  */
.item-del-btn,
.cat-del-btn,
.habit-reset-btn,
.item-drag-handle {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  padding: 0.22rem 0.45rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s, color 0.12s, border-color 0.12s, background 0.12s;
  user-select: none;
}

.item-del-btn,
.cat-del-btn,
.habit-reset-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.cat-del-btn {
  background-color: var(--text-dim);
}

.item-drag-handle {
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: grab;
  font-size: 0.85rem;
  line-height: 1;
  max-width: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  transition: max-width 0.15s ease, opacity 0.15s ease, padding-left 0.15s ease, padding-right 0.15s ease, color 0.12s, border-color 0.12s, background 0.12s;
}

.item-drag-handle:hover {
  opacity: 1;
  color: var(--text);
  background: transparent;
}

.pillar-item:hover .item-drag-handle {
  max-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  opacity: 1;
}

/* ── CAT-DEL-BTN — category delete, slides in from left on hover ── */
.cat-del-btn {
  max-width: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  transition: max-width 0.15s ease, opacity 0.15s ease, padding-left 0.15s ease, padding-right 0.15s ease, color 0.12s, border-color 0.12s, background 0.12s;
}

.category-header:hover .cat-del-btn {
  max-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  opacity: 0.55;
}

.category-header:hover .cat-del-btn:hover { opacity: 1; color: var(--danger); border-color: rgba(239,83,80,0.4); background: rgba(239,83,80,0.08); }

/* ── PILLAR ADD BUTTON ───────────────────────────────── */
.pillar-add-btn {
  border: 2px solid var(--border);
  border-radius: 0;
  color: var(--text-mid);
  opacity: 1;
}

.pillar-add-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--border);
  opacity: 1;
  box-shadow: 2px 2px 0 0 var(--border);
}

/* ── NO DATA ALERT ───────────────────────────────────── */
.no-data-alert {
  border: 2px solid var(--border);
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer { border-top: 2px solid var(--border); }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }

/* ── BENEFITS PAGE ───────────────────────────────────── */
.hero-title,
.section-title,
.audience-name,
.feature-name,
.pull-quote-text,
.idea-title,
.tagline-text,
.web-headline,
.web-headline-sm,
.web-snippet-title,
.web-faq-q,
.manifesto p {
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.manifesto {
  border-left: 5px solid var(--accent);
  border-radius: 0;
  box-shadow: 5px 5px 0 0 var(--border);
}

.manifesto p { font-size: 0.95rem; font-weight: 400; line-height: 1.85; }

.feature-cards,
.audience-grid,
.contrast-row,
.ideas-grid,
.tagline-list {
  border-radius: 0;
  box-shadow: 5px 5px 0 0 var(--border);
}

.web-block { border-radius: 0; box-shadow: 4px 4px 0 0 var(--border); }

.web-cta {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 0;
  box-shadow: 3px 3px 0 0 var(--border);
  font-family: 'DM Mono', monospace;
}

/* ── TIP BUTTON + MODAL ──────────────────────────────── */
.info-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
  animation: info-blink 1.8s ease-out 0.5s 2;
}
.info-toggle:hover { border-color: var(--accent); color: var(--accent); }

@keyframes info-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.tip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 24, 0.45);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.tip-overlay.open { display: flex; }

.tip-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(420px, 92vw);
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(17, 17, 24, 0.55), 0 4px 16px rgba(17, 17, 24, 0.35);
}

.tip-modal-header {
  background: var(--warn);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tip-modal-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.tip-modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.tip-modal-close:hover { border-color: var(--danger); color: var(--danger); }

.tip-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tip-modal-body p:not([class]) {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.tip-modal-body p:not([class]):first-child { color: var(--text); }
.tip-modal-body p:not([class]) strong { color: var(--text); }

.page-header { position: relative; }
.page-header .info-toggle {
  position: absolute;
  bottom: 0.75rem;
  right: 0;
}

/* ── AUTH FORM LAYOUT ────────────────────────────────── */
/* Shared across login, signup, forgot-password, reset-password */
body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-wrap {
  width: 100%;
  max-width: 380px;
}

.login-brand {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.login-title em { font-style: normal; color: var(--accent); }

.login-subtitle {
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.login-footer a {
  color: var(--accent);
  text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

/* ── FIELD HINT ───────────────────────────────────────── */
/* Subtle helper text below form fields */
.field-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ── TABLE ROW STATES ─────────────────────────────────── */
/* Dims a table row to indicate missing/empty data; keeps date column readable */
.row-missing td, td.row-missing { opacity: 0.5; }
.row-missing td:first-child { opacity: 1; }

/* ── RENDER GATE ─────────────────────────────────────── */
body[data-loading] .page { visibility: hidden; }
