/* ============================================================
   TALA — Stylesheet
   Design system: warm Filipino-editorial aesthetic
   ============================================================ */

:root {
  /* Light theme */
  --bg: #f4ede0;
  --bg-alt: #ebe1cf;
  --bg-card: #fbf6ea;
  --ink: #1c1611;
  --ink-soft: #4a3f30;
  --ink-faint: #80715a;
  --line: #1c161122;
  --line-soft: #1c161111;
  --accent: #b8311a;
  --accent-soft: #d9c08a;
  --accent-blue: #0e3a8a;
  --gold: #f0c34f;
  --green: #0f7c4a;
  --shadow-sm: 0 1px 2px #1c161114;
  --shadow: 0 1px 0 #1c161112, 0 8px 24px -12px #1c161122;
  --shadow-lg: 0 20px 60px #1c161133;
  --radius: 10px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-alt: #1c1814;
  --bg-card: #221d18;
  --ink: #f4ede0;
  --ink-soft: #c8bca7;
  --ink-faint: #8a7d68;
  --line: #f4ede022;
  --line-soft: #f4ede011;
  --accent: #e84a30;
  --accent-soft: #6b5530;
  --accent-blue: #5b8def;
  --gold: #f0c34f;
  --green: #4ec988;
  --shadow-sm: 0 1px 2px #00000044;
  --shadow: 0 1px 0 #00000044, 0 8px 24px -12px #00000088;
  --shadow-lg: 0 20px 60px #000000aa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 0% 0%, var(--accent-soft) 0%, transparent 35%),
    radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 35%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 35%),
    radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--accent-blue) 25%, transparent) 0%, transparent 40%);
}

::selection { background: var(--gold); color: #1c1611; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============= LOGO ============= */
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.logo small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 6px;
  align-self: center;
  padding: 3px 6px;
  background: var(--accent);
  color: var(--bg-card);
  border-radius: 3px;
}
.logo-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-2px) scale(1); }
  50% { opacity: 0.6; transform: translateY(-2px) scale(0.85); }
}

/* ============= BUTTONS ============= */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fbf6ea;
  border-color: var(--accent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 80%, black); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary.big, .btn-ghost.big { padding: 14px 28px; font-size: 13px; }
.btn-primary.full, .btn-ghost.full { width: 100%; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 18px;
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ============= LANDING HEADER ============= */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  padding: 16px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.landing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.landing-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.landing-nav a:hover { color: var(--accent); }
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 28px;
  width: 40px; height: 40px;
}

/* ============= HERO ============= */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.5;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* Hero illustration — overlapping cards */
.hero-right {
  position: relative;
  height: 480px;
  perspective: 1000px;
}
.hero-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.hero-card-1 {
  top: 0; left: 0; right: 30%;
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}
.hero-card-2 {
  bottom: 80px; right: 0;
  width: 220px;
  text-align: center;
  padding: 28px 20px;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(3deg);
  animation: float 7s ease-in-out infinite -2s;
}
.hero-card-3 {
  bottom: 0; left: 30px;
  padding: 16px 20px;
  background: var(--accent);
  color: var(--bg-card);
  border-color: var(--accent);
  text-align: center;
  transform: rotate(-1deg);
  animation: float 8s ease-in-out infinite -4s;
}
@keyframes float {
  0%, 100% { transform: rotate(var(--r, -2deg)) translateY(0); }
  50% { transform: rotate(var(--r, -2deg)) translateY(-8px); }
}
.hero-card-1 { --r: -2deg; }
.hero-card-2 { --r: 3deg; }
.hero-card-3 { --r: -1deg; }

.hc-head {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.hc-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hc-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.hc-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line-soft);
}
.hc-task:last-of-type { border-bottom: none; }
.hc-task .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.hc-task .check::after {
  content: '';
  position: absolute;
  left: 4px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fbf6ea;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.hc-task .check.empty {
  background: transparent;
  border: 1.5px solid var(--ink-soft);
}
.hc-task .check.empty::after { display: none; }
.hc-task.done { color: var(--ink-faint); text-decoration: line-through; }
.hc-progress {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 8px;
}
.hc-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  animation: fill 2s ease-out;
}
@keyframes fill {
  from { width: 0; }
}
.hc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hc-time {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hc-mode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 10px;
  opacity: 0.7;
}
.hc-streak {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
.hc-streak-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 4px;
  opacity: 0.85;
}

/* ============= AD SLOT ============= */
.ad-slot {
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, color-mix(in srgb, var(--bg-alt) 80%, var(--ink)) 10px, color-mix(in srgb, var(--bg-alt) 80%, var(--ink)) 20px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ad-banner { min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 24px 0; }

/* ============= SECTIONS ============= */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.section-head h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

.features {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  background: var(--c, var(--accent));
  filter: blur(40px);
  opacity: 0.3;
  border-radius: 50%;
}
.feature-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c, var(--accent));
  color: #fbf6ea;
  border-radius: 14px;
  font-size: 24px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}
.feature h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* ============= WHY ============= */
.why {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.why h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.why h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.why-points {
  display: grid;
  gap: 20px;
}
.why-point {
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.why-point strong {
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 700;
}

/* ============= FAQ ============= */
.faq { padding: 80px 0; border-top: 1px solid var(--line); }
.faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ============= LANDING FOOTER ============= */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
  margin-top: 40px;
  background: var(--bg-alt);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-grid > div p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.5;
}
.foot-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.foot-grid a {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.foot-grid a:hover { color: var(--accent); }
.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ============= MODAL ============= */
.modal-bg {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.modal-bg.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  font-size: 22px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.modal-close:hover { background: var(--accent); color: white; }

/* ============= AUTH MODAL ============= */
.auth-modal { padding: 0; }
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.auth-panel {
  padding: 32px;
  display: none;
}
.auth-panel.active { display: block; }
.auth-panel h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.auth-sub {
  color: var(--ink-soft);
  margin: 8px 0 24px;
}
.auth-panel form { display: grid; gap: 12px; }
.auth-panel label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 6px;
}
.auth-panel input {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.auth-panel input:focus { border-color: var(--accent); }
.auth-panel button[type=submit] { margin-top: 14px; }
.auth-error {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  min-height: 20px;
}
.auth-foot {
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

/* ============= APP SHELL ============= */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar-nav {
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-nav .logo {
  margin-bottom: 24px;
  padding: 0 8px;
  font-size: 24px;
}
.side-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.side-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
}
.side-tab:hover { background: var(--bg-card); color: var(--ink); }
.side-tab.active {
  background: var(--accent);
  color: #fbf6ea;
}
.side-tab .ico {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.side-foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.user-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .hamburger { display: none; }
.search { flex: 1; max-width: 480px; }
.search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.search input:focus { border-color: var(--accent); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
}

.view-container { padding: 32px; }

/* ============= VIEWS — common ============= */
.view-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.view-head h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.view-head h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.view-head .lead { font-size: 16px; margin-top: 6px; margin-bottom: 0; }

/* ============= DASHBOARD ============= */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.dash-card .dc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  font-weight: 600;
}
.dash-card .dc-value {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.dash-card .dc-sub {
  font-size: 13px;
  color: var(--ink-soft);
}
.dash-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dash-panel h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.quote-author {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ============= TASKS ============= */
.task-input-row {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.task-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-family: 'Newsreader', serif;
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.task-input-row input::placeholder { color: var(--ink-faint); font-style: italic; }
.task-input-row select {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}
.task-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  align-items: center;
}
.task-filter {
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.task-filter:hover { border-color: var(--accent); color: var(--accent); }
.task-filter.active { background: var(--accent); border-color: var(--accent); color: white; }
.task-count {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.task-list {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
  cursor: grab;
}
.task-item:last-child { border-bottom: none; }
.task-item:hover { background: var(--bg); }
.task-item.dragging { opacity: 0.4; }
.task-item.drag-over { border-top: 2px solid var(--accent); }
.task-check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.task-check:hover { border-color: var(--accent); }
.task-check.done {
  background: var(--accent);
  border-color: var(--accent);
}
.task-check.done::after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.task-text-wrap { flex: 1; min-width: 0; }
.task-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}
.task-item.done .task-text {
  color: var(--ink-faint);
  text-decoration: line-through;
}
.task-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.priority-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.priority-high { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.priority-low { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.task-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.task-item:hover .task-actions { opacity: 1; }
.task-action {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: 16px;
}
.task-action:hover { background: var(--bg-alt); color: var(--accent); }

/* ============= NOTES ============= */
.notes-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.note-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.note-card[data-color="yellow"] { background: #fef4cf; border-color: #ecd97c; }
.note-card[data-color="pink"] { background: #fbe3e9; border-color: #f2bcc9; }
.note-card[data-color="blue"] { background: #d9e9ff; border-color: #a8c8ec; }
.note-card[data-color="green"] { background: #d6efdc; border-color: #a3d4ad; }
.note-card[data-color="purple"] { background: #ebe0f4; border-color: #c8b2dc; }
[data-theme="dark"] .note-card[data-color="yellow"] { background: #3a3318; border-color: #6b5a2a; color: var(--ink); }
[data-theme="dark"] .note-card[data-color="pink"] { background: #3a1f24; border-color: #6b3845; color: var(--ink); }
[data-theme="dark"] .note-card[data-color="blue"] { background: #1c2a40; border-color: #36476b; color: var(--ink); }
[data-theme="dark"] .note-card[data-color="green"] { background: #1f2f24; border-color: #3a5e44; color: var(--ink); }
[data-theme="dark"] .note-card[data-color="purple"] { background: #2a1f33; border-color: #4a3a5e; color: var(--ink); }

.note-pin {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 14px;
  opacity: 0.6;
}
.note-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.25;
  word-break: break-word;
  padding-right: 24px;
}
.note-preview {
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
}
.note-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.note-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.note-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-soft);
}

/* Note editor */
.note-editor {
  max-width: 760px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.note-editor input.note-title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  outline: none;
  padding: 4px 0;
  margin-bottom: 12px;
}
.note-editor textarea {
  width: 100%;
  min-height: 320px;
  border: none;
  background: transparent;
  font-family: 'Newsreader', serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  outline: none;
  resize: vertical;
}
.note-editor-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.note-color {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
}
.note-color[data-color="default"] { background: var(--bg-card); }
.note-color[data-color="yellow"] { background: #fef4cf; }
.note-color[data-color="pink"] { background: #fbe3e9; }
.note-color[data-color="blue"] { background: #d9e9ff; }
.note-color[data-color="green"] { background: #d6efdc; }
.note-color[data-color="purple"] { background: #ebe0f4; }
.note-color.active { border-color: var(--accent); transform: scale(1.15); }
.note-tag-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  outline: none;
}
.note-editor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.note-editor-foot button {
  background: none;
  border: none;
  color: var(--ink-faint);
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.note-editor-foot button:hover { color: var(--accent); }

/* ============= HABITS ============= */
.habit-list {
  display: grid;
  gap: 14px;
}
.habit-row {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}
.habit-emoji {
  font-size: 28px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 12px;
}
.habit-info h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.habit-info .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.habit-streak {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--ink-soft);
  margin-left: 12px;
}
.habit-streak strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}
.habit-week {
  display: flex;
  gap: 6px;
}
.habit-day {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.habit-day:hover { border-color: var(--accent); color: var(--accent); }
.habit-day.done { background: var(--accent); border-color: var(--accent); color: white; }
.habit-day.today { box-shadow: 0 0 0 2px var(--gold); }
.habit-actions { display: flex; gap: 4px; }

/* ============= POMODORO ============= */
.pomo-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pomo-modes {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}
.pomo-mode-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.pomo-mode-btn.active { background: var(--accent); color: white; }
.pomo-time {
  font-family: 'Fraunces', serif;
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 16px 0 8px;
}
.pomo-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 600;
}
.pomo-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pomo-task-input {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  outline: none;
}
.pomo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pomo-stats > div .num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}
.pomo-stats > div .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ============= BUDGET ============= */
.budget-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.bs-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.bs-card .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}
.bs-card .val {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.bs-card.income .val { color: var(--green); }
.bs-card.expense .val { color: var(--accent); }
.bs-card.net .val { color: var(--ink); }

.budget-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: auto 120px 130px 1fr 130px auto;
  gap: 8px;
  align-items: stretch;
}
.budget-form select, .budget-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.budget-form select:focus, .budget-form input:focus { border-color: var(--accent); }

.budget-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.budget-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.budget-row:last-child { border-bottom: none; }
.budget-row .type {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
}
.budget-row .type.income { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.budget-row .type.expense { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.budget-row .desc { font-size: 15px; }
.budget-row .desc small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.budget-row .amt {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.budget-row.income .amt { color: var(--green); }
.budget-row.expense .amt { color: var(--accent); }

/* ============= MOOD ============= */
.mood-today {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}
.mood-faces {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.mood-face {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--line);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mood-face:hover { transform: scale(1.1); border-color: var(--accent); }
.mood-face.selected { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.mood-note {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: none;
  min-height: 60px;
  font-family: 'Newsreader', serif;
}

.mood-history {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.mood-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  cursor: help;
  transition: transform 0.15s;
}
.mood-cell:hover { transform: scale(1.3); border-color: var(--accent); z-index: 1; }
.mood-cell[data-mood="1"] { background: #b8311a; }
.mood-cell[data-mood="2"] { background: #d97a30; }
.mood-cell[data-mood="3"] { background: #f0c34f; }
.mood-cell[data-mood="4"] { background: #8ec25f; }
.mood-cell[data-mood="5"] { background: #4aa86a; }

/* ============= SETTINGS ============= */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  max-width: 720px;
}
.settings-section h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
}
.setting-row:last-child { border-bottom: none; }
.setting-row .label { font-size: 15px; color: var(--ink); }
.setting-row .label small { display: block; color: var(--ink-faint); font-size: 13px; margin-top: 2px; }
.setting-row input[type=text], .setting-row select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

/* ============= EMPTY STATE ============= */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-faint);
}
.empty .ico {
  font-family: 'Fraunces', serif;
  font-size: 80px;
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.empty .title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  max-width: 400px;
  margin: 0 auto;
  font-style: italic;
}

/* ============= TOAST ============= */
.toast-stack {
  position: fixed;
  bottom: 20px; right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn 0.25s, toastOut 0.25s 2.7s forwards;
  max-width: 360px;
}
.toast.success { background: var(--green); color: white; }
.toast.error { background: var(--accent); color: white; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }

/* ============= COMMAND PALETTE ============= */
.palette {
  background: var(--bg-card);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.palette input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 22px;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  border-bottom: 1px solid var(--line);
}
.palette-results {
  max-height: 60vh;
  overflow-y: auto;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.palette-item:hover, .palette-item.active { background: var(--bg); }
.palette-item .ico {
  width: 24px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--accent);
}
.palette-item .kind {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { height: 380px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 800px) {
  .landing-nav a, .landing-nav button:not(.btn-primary) { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }

  .app { grid-template-columns: 1fr; }
  .sidebar-nav {
    position: fixed;
    left: 0; top: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.25s;
    z-index: 100;
  }
  .sidebar-nav.open { transform: translateX(0); }
  .topbar .hamburger { display: inline-flex; }
  .view-container { padding: 20px 16px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .budget-summary { grid-template-columns: 1fr; }
  .budget-form { grid-template-columns: 1fr 1fr; }
  .budget-form > *:nth-child(4) { grid-column: 1 / -1; }
  .budget-form > *:last-child { grid-column: 1 / -1; }
  .mood-grid { grid-template-columns: repeat(10, 1fr); }
  .pomo-card { padding: 32px 20px; }
}
@media (max-width: 500px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .features, .why, .faq { padding: 50px 0; }
  .notes-grid { grid-template-columns: 1fr; }
  .pomo-stats { grid-template-columns: 1fr; }
}

/* Hide mobile-only on desktop */
.app .topbar .hamburger { display: none; }
@media (max-width: 800px) {
  .app .topbar .hamburger { display: inline-flex; }
}

/* Animations */
.fade-in { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
