/* Umbral Ink Landing Page Styles
 * Dark theme matching the desktop app
 */

/* --- Base --- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Dark theme colors (grayscale with subtle warmth) */
  --bg: #1a1a1e;
  --bg-pane: #1e1e22;
  --bg-elevated: #26262c;
  --fg: #c8c8cc;
  --fg-dim: #6e6e76;
  --fg-heading: #e8e8ec;
  --accent: #716387;
  --accent-hover: #8a7a9e;
  --border: #2a2a30;
  --success: #6b9b6b;
  --error: #b86b6b;
  --warning: #b89b6b;

  /* Tunable background variables */
  --bg-overlay-opacity: 0.5;
  --bg-vignette-intensity: 0.4;
  --bg-glow-opacity: 0;
  --bg-parallax-amplitude: 20px;
  --bg-parallax-duration: 30s;
  --bg-breathe-duration: 25s;
  --bg-section-divider-color: rgba(113, 99, 135, 0.15);

  /* Spacing (8-point grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography */
  --font-heading: 'Lato', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--fg-heading);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--accent-hover);
}

/* --- Typography --- */

.display {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg-heading);
  letter-spacing: -0.02em;
}

.heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg-heading);
}

.subheading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg-heading);
}

.body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-lg {
  font-size: 20px;
  line-height: 1.7;
}

.label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.text-secondary {
  color: var(--fg-dim);
}

/* --- Layout --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Layered Background System --- */

.bg-system {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-base {
  position: absolute;
  inset: -40px;
  background-image: var(--bg-image, url('/images/bg.webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0.8px) brightness(0.92);
  will-change: transform;
  animation: bg-parallax var(--bg-parallax-duration) ease-in-out infinite alternate;
}

/* Per-page background overrides */
body.page-features { --bg-image: url('/images/alt-bg-1.webp'); }
body.page-pricing { --bg-image: url('/images/alt-bg-2.webp'); }
body.page-download { --bg-image: url('/images/alt-bg-3.webp'); }
body.page-terms,
body.page-privacy,
body.page-login,
body.page-account,
body.page-util { --bg-image: url('/images/alt-bg-4.webp'); }

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(113, 99, 135, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, rgba(12, 12, 16, var(--bg-overlay-opacity)) 0%, rgba(14, 14, 18, calc(var(--bg-overlay-opacity) + 0.05)) 100%);
  will-change: background-position;
  animation: bg-gradient-shift var(--bg-parallax-duration) ease-in-out infinite alternate;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(4, 4, 8, var(--bg-vignette-intensity)) 100%);
}

.bg-accent-glow {
  position: absolute;
  inset: 0;
  opacity: var(--bg-glow-opacity);
  background: radial-gradient(circle 600px at 30% 70%, rgba(113, 99, 135, 0.3) 0%, transparent 70%);
  animation: bg-glow-drift 35s ease-in-out infinite alternate;
}

@keyframes bg-parallax {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(var(--bg-parallax-amplitude) * -0.5), calc(var(--bg-parallax-amplitude) * -1), 0); }
}

@keyframes bg-gradient-shift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 15px; }
}

@keyframes bg-glow-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: var(--bg-glow-opacity); }
  50%  { opacity: calc(var(--bg-glow-opacity) * 1.5); }
  100% { transform: translate3d(30px, -20px, 0); opacity: var(--bg-glow-opacity); }
}

@keyframes bg-breathe {
  0%, 100% { filter: brightness(1) contrast(1); }
  50%      { filter: brightness(1.03) contrast(1.02); }
}

.bg-system {
  animation: bg-breathe var(--bg-breathe-duration) ease-in-out infinite;
}

/* --- Sections --- */

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section + .section::before,
.section + .section-alt::before,
.section-alt + .section::before,
.section-alt + .section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-section-divider-color), rgba(113, 99, 135, 0.25), var(--bg-section-divider-color), transparent);
}

.section-alt {
  position: relative;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.text-center {
  text-align: center;
}

/* --- Components --- */

/* Navigation */
.nav {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 26, 30, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg-heading);
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.logo img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 159, 219, 0.4);
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1e;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a1a1e;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--fg-dim);
  color: var(--fg-heading);
}

.btn-lg {
  padding: var(--space-sm) var(--space-lg);
  font-size: 18px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--accent-hover);
}

.btn-link:disabled {
  color: var(--fg-dim);
  cursor: not-allowed;
  text-decoration: none;
}

/* Cards */
.card {
  background: var(--bg-pane);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
}

.card .subheading {
  text-wrap: balance;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
  clip-path: circle(45%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 8px 32px rgba(113, 99, 135, 0.5));
}

.hero .display {
  margin-bottom: var(--space-md);
}

.hero .body-lg {
  margin-bottom: var(--space-xl);
  color: var(--fg-dim);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--fg-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px var(--space-sm);
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 159, 219, 0.2);
}

.form-input::placeholder {
  color: var(--fg-dim);
}

.form-error {
  color: var(--error);
  font-size: 14px;
  margin-top: var(--space-xs);
}

/* Alerts */
.alert {
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  color: #81c784;
}

.alert-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--error);
  color: #e57373;
}

.alert-warning {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid var(--warning);
  color: #ffb74d;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-link {
  color: var(--fg-dim);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--fg);
}

/* --- Utilities --- */

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }

/* --- Pricing Page --- */

/* Pricing card layout */
.grid-3 > .card {
  display: flex;
  flex-direction: column;
}

.price-block {
  min-height: 80px;
  margin-bottom: var(--space-sm);
}

.card-featured {
  border: 2px solid var(--accent);
  position: relative;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--fg-heading);
  margin: var(--space-sm) 0;
}

.price .label {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-dim);
}

.price-coming-soon {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--fg-dim);
  margin: var(--space-md) 0;
}

.feature-list {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
}

.feature-list li {
  padding: var(--space-xs) 0;
  color: var(--fg-dim);
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.trust-quote {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  color: var(--fg-heading);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
}

.trust-points {
  max-width: 600px;
  margin: 0 auto;
}

.trust-points p {
  margin: var(--space-sm) 0;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* Legal Pages */
.legal-content h2 {
  margin-top: var(--space-xl);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin-left: 24px;
}

.legal-content ul li {
  margin-bottom: var(--space-xs);
}

/* --- Checkout Test Page --- */

.test-banner {
  background: rgba(255, 152, 0, 0.1);
  border: 2px dashed var(--warning);
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 8px;
  text-align: center;
}

.test-banner strong {
  color: #ffb74d;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
  background: var(--bg-pane);
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg-heading);
}

.product-price {
  font-size: 1.25rem;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.buy-button {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.buy-button:hover {
  background: var(--accent-dim);
}

.buy-button:disabled {
  background: var(--fg-dim);
  cursor: not-allowed;
}

.auth-status {
  margin-bottom: 24px;
  padding: 12px;
  border-radius: 8px;
}

.auth-status.authenticated {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  color: #81c784;
}

.auth-status.unauthenticated {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--error);
  color: #e57373;
}

.login-link {
  color: var(--accent);
  text-decoration: underline;
}

.error-message {
  color: var(--error);
  margin-top: 12px;
}

/* Success/Cancel Pages */
.success-container,
.cancel-container {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  padding: 40px;
}

.success-icon,
.cancel-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 16px;
}

.cancel-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.success-message,
.cancel-message {
  font-size: 1.125rem;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.session-id {
  font-family: monospace;
  background: var(--bg-pane);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--fg-dim);
  margin-bottom: 32px;
  word-break: break-all;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.primary-button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-button:hover {
  background: var(--accent-dim);
  color: #fff;
}

.secondary-button {
  padding: 14px 28px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.secondary-button:hover {
  background: rgba(124, 159, 219, 0.1);
}

/* --- Responsive --- */

/* --- App Screenshot --- */

.app-screenshot {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.app-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Multi-Pane Layout (Static) --- */

.pane-layout {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  min-height: 360px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-pane);
}

.pane:last-child {
  border-right: none;
}

.pane-main {
  flex: 2;
}

.pane-header {
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.pane-body {
  padding: 16px;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

/* Outline pane */
.outline-item {
  padding: 4px 0;
  color: var(--fg);
}

.outline-part {
  color: var(--accent);
  font-weight: 700;
  margin-top: 8px;
}

.outline-part:first-child {
  margin-top: 0;
}

.outline-chapter {
  padding-left: 12px;
  font-weight: 600;
}

.outline-chapter.active {
  color: var(--fg-heading);
}

.outline-section {
  padding-left: 24px;
  color: var(--fg-dim);
}

.outline-item.dim {
  color: var(--fg-dim);
  opacity: 0.6;
}

/* Draft pane */
.draft-heading {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.draft-subheading {
  color: var(--fg-heading);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.draft-text {
  font-family: var(--font-body);
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.6;
}

.draft-error {
  text-decoration: underline wavy var(--error);
  text-underline-offset: 3px;
}

.draft-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  animation: blink 1s infinite;
}

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

/* Notes pane */
.note-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.note-label.green {
  color: #8bc9a0;
}

.note-label.purple {
  color: #c9a0dc;
}

.note-item {
  color: var(--fg);
  padding: 2px 0;
  padding-left: 8px;
}

.note-item.dim {
  color: var(--fg-dim);
  opacity: 0.6;
}

/* --- Error Page (404) --- */

.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

.error-image {
  width: 280px;
  height: 280px;
  margin: 0 auto var(--space-lg);
  border-radius: 56px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .display {
    font-size: 36px;
  }

  .heading {
    font-size: 28px;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-3 > .card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .pane-layout {
    flex-direction: column;
  }

  .pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pane:last-child {
    border-bottom: none;
  }

  .pane-main {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .display {
    font-size: 28px;
  }

  .btn-lg {
    width: 100%;
  }

  .nav {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .action-buttons {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .pane-layout {
    min-height: auto;
  }
}

/* --- Account Settings Page --- */

/* Danger zone */
.danger-zone {
  border: 1px solid var(--error);
  background: rgba(184, 107, 107, 0.05);
}

.btn-danger {
  background: var(--error);
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #c87b7b;
}

.btn-danger:disabled {
  background: #6e6e76;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-pane);
  border-radius: 8px;
  padding: var(--space-lg);
  max-width: 500px;
  width: 90%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* Nav email */
.nav-email {
  color: var(--fg-dim);
  font-size: 14px;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 200;
  padding: var(--space-md);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 32px;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-md);
  color: var(--fg);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-nav-links a:hover {
  background: var(--bg-pane);
  color: var(--fg-heading);
}

.mobile-nav.active {
  display: block;
}
