/* ── Tokens — dark (default) ─────────────────────────────────────────────────
   Same family the desktop app uses (`src/styles.css`), so the demo widget on
   the page is pixel-identical to the actual product. Keep these in lock-step
   with the app tokens when re-tuning. */
:root {
  color-scheme: dark;

  --bg:           #0e0f12;
  --bg-raised:    #181a1f;
  --bg-elevated:  #1f2128;             /* one notch above raised — kbd / code */
  --item-hover:   rgba(255, 255, 255, 0.05);
  --item-active:  rgba(255, 255, 255, 0.10);
  --item-selected: rgba(255, 255, 255, 0.10);
  --border:       rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(255, 255, 255, 0.40);

  /* Text — calibrated for WCAG AA against `--bg`. */
  --t1:           #e8e8e6;   /* ~ 14.5 : 1  primary text */
  --t2:           #9494a0;   /* ~  6.5 : 1  secondary text */
  --t3:           #7e7e85;   /* ~  5.0 : 1  hint / footer text */

  --accent-app:        #34d399;
  --accent-app-bg:     rgba(52, 211, 153, 0.10);
  --accent-app-strong: rgba(52, 211, 153, 0.20);
  --accent-saved:      #38bdf8;
  --accent-saved-bg:   rgba(56, 189, 248, 0.10);
  --accent-text:       #60a5fa;
  --accent-text-bg:    rgba(96, 165, 250, 0.10);
  --accent-text-row:   rgba(96, 165, 250, 0.04);
  --accent-link:       #a78bfa;
  --accent-link-bg:    rgba(167, 139, 250, 0.10);
  --accent-link-row:   rgba(167, 139, 250, 0.04);
  --accent-image:      #fb7185;
  --accent-image-bg:   rgba(251, 113, 133, 0.10);
  --accent-image-row:  rgba(251, 113, 133, 0.04);

  /* Text-on-tint variants. Same hex as the base accent in dark mode (bright
     forms read on any dark surface), darker variants under `html.light`
     below where the base fails WCAG AA for small text. Use the base accent
     for graphical surfaces (icon tiles, rings, glows — 3:1 threshold) and
     the `-text` variant for text overlays (4.5:1 threshold). */
  --accent-app-text:   #34d399;
  --accent-saved-text: #38bdf8;
  --accent-text-text:  #60a5fa;
  --accent-link-text:  #a78bfa;

  --accent-highlight-bg: rgba(251, 191, 36, 0.22);

  /* Foreground colour the primary button uses. Dark green bg → black-ish
     text in both themes (white on either green fails AA). Defined as a
     token so the rule itself isn't tied to a theme. */
  --btn-primary-fg: #0c1410;

  /* Search-bar focus ring — mirrors the app token of the same name. The
     demo widget's search bar is permanently "focused-looking" so this
     value shows up on the page regardless of user interaction. */
  --focus-search:  #7dd3fc;

  /* Brand dot — the warm orange next to the "m" in the logo mark.
     mnml has a deliberate two-tier brand:
       · Full logomark — small-caps "M" + dot, used in the app icon /
         ICO / OG card / marketing surfaces (see `build/icon.svg`).
       · Compact wordmark — "•mnml" (just the dot before the lowercase
         wordmark), used inline in headers / footers where the full
         mark would carry too much visual weight.
     Both surfaces refer to `--brand-dot` so the orange stays identical
     wherever the brand surfaces. UI primary actions remain emerald
     (`--accent-app`); orange is reserved for identity. */
  --brand-dot: #fb923c;

  /* Shadows tuned per theme. Dark mode wants deep, soft, far shadows. */
  --shadow-window:
    0 0 0 1px var(--border),
    0 20px 60px -20px rgba(0, 0, 0, 0.60),
    0 60px 120px -40px rgba(0, 0, 0, 0.50);
  --shadow-btn-primary: 0 8px 22px -10px var(--accent-app);
}

/* ── Tokens — light override ─────────────────────────────────────────────── */
html.light {
  color-scheme: light;

  /* Warm-tinted neutrals — pure #fff is in the AI-slop "don't" list.
     `--bg-raised` matches the app's value (#f0f0ec) so the demo widget
     reads identically to the actual product in light mode. */
  --bg:           #fafaf8;
  --bg-raised:    #f0f0ec;
  --bg-elevated:  #f4f4ef;
  --item-hover:   rgba(15, 18, 25, 0.04);
  --item-active:  rgba(15, 18, 25, 0.08);
  --item-selected: rgba(15, 18, 25, 0.08);
  --border:       rgba(15, 18, 25, 0.10);
  --border-strong: rgba(15, 18, 25, 0.18);
  --border-focus: rgba(15, 18, 25, 0.45);

  /* Calibrated for WCAG AA against light `--bg`. */
  --t1:           #15151a;   /* ~ 16 : 1 */
  --t2:           #565660;   /* ~ 6.9 : 1  — bumped from #5f5f66 for clearer AA on warm bg */
  --t3:           #69696f;   /* ~ 5.1 : 1 — bumped from #6c6c75 for honest margin */

  --accent-app:        #059669;
  --accent-app-bg:     rgba(5, 150, 105, 0.10);
  --accent-app-strong: rgba(5, 150, 105, 0.22);
  --accent-saved:      #0284c7;
  --accent-saved-bg:   rgba(2, 132, 199, 0.10);

  /* Slightly more saturated category tints in light mode to keep the
     row-tint perceptible against the warm `#fafaf8` bg. */
  --accent-text:           #1d4ed8;
  --accent-text-bg:        rgba(29, 78, 216, 0.10);
  --accent-text-row:       rgba(29, 78, 216, 0.05);
  --accent-link:           #6d28d9;
  --accent-link-bg:        rgba(109, 40, 217, 0.10);
  --accent-link-row:       rgba(109, 40, 217, 0.05);
  --accent-image:          #be123c;
  --accent-image-bg:       rgba(190, 18, 60, 0.10);
  --accent-image-row:      rgba(190, 18, 60, 0.05);

  /* Darker text-variants for AA on tinted backgrounds. See the comment in
     `:root` for the use rule (graphical = base, text = `-text`). */
  --accent-app-text:   #047857;   /* emerald-700 — 5.3:1 vs --bg, 4.7:1 vs tinted */
  --accent-saved-text: #075985;   /* sky-800     — 6.0:1 vs tinted bg */
  --accent-text-text:  #1e3a8a;   /* blue-900    — strong margin */
  --accent-link-text:  #5b21b6;   /* violet-800  — strong margin */

  --accent-highlight-bg:   rgba(217, 119, 6, 0.28);

  /* Primary button stays dark-text-on-green; the green is darker in light
     mode but black text still hits AAA. */
  --btn-primary-fg: #04140d;

  /* Sky-600 for non-text 3:1 contrast on the warm light bg. */
  --focus-search:  #0284c7;

  /* Brand dot — darker orange-600 in light mode for ≥3:1 contrast against
     the warm cream bg. The hue stays in the same family so the brand
     reads consistent across themes. */
  --brand-dot: #ea580c;

  --shadow-window:
    0 0 0 1px rgba(15, 18, 25, 0.07),
    0 12px 36px -16px rgba(15, 18, 25, 0.18),
    0 40px 80px -28px rgba(15, 18, 25, 0.14);
  --shadow-btn-primary: 0 8px 22px -10px rgba(5, 150, 105, 0.55);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI",
               -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background 220ms ease, color 220ms ease;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-app); }
code, kbd { font-family: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace; font-size: 0.92em; }

/* Keyboard-only focus indicator — single rule across every focusable. */
:focus-visible {
  outline: 2px solid var(--accent-app);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  /* Deliberate blur — single sticky-header use, justified by readability when
     hero content scrolls under. The design-laws ban is on glassmorphism as a
     default; one purposeful blur with a strong border-bottom is the exception.
     Falls back to a slightly more opaque bg where backdrop-filter isn't
     supported. */
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background 220ms ease, border-color 220ms ease;
}
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .page-header { background: color-mix(in oklab, var(--bg) 96%, transparent); }
}
.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t1);
}
.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-dot);
  /* Soft warm-orange halo. color-mix so the glow tints match the dot in
     both themes without needing a second per-theme token. */
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-dot) 18%, transparent);
}

/* Theme toggle — round, ghost, swaps icons on theme. 34 px at desktop is
   comfortable for mouse; bumped to 40 px on narrow viewports where the
   primary input is a thumb (above WCAG 2.5.8 24×24 baseline at both sizes). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--t2);
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
@media (max-width: 600px) {
  .theme-toggle { width: 40px; height: 40px; border-radius: 10px; }
}
.theme-toggle:hover {
  color: var(--t1);
  background: var(--item-hover);
  border-color: var(--border-strong);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
html.light .theme-toggle .icon-sun  { display: inline-block; }
html.light .theme-toggle .icon-moon { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(48px, 9vw, 140px) clamp(20px, 5vw, 60px) clamp(48px, 9vw, 120px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 28px;
}
.hero .lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--t2);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero .lede .num {
  font-variant-numeric: tabular-nums;
  color: var(--t1);
  white-space: nowrap;
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-foot {
  margin-top: 24px;
  color: var(--t3);
  font-size: 13px;
  max-width: 50ch;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms ease;
  cursor: pointer;
}
.btn-label { display: block; }
.btn-meta {
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
  color: inherit;
  /* No opacity — opacity-blending with the button bg made the effective
     contrast theme-sensitive (failed AA in light mode at 0.72). The size +
     weight contrast vs `.btn-label` is enough hierarchy without dropping
     contrast. */
}
.btn.primary {
  background: var(--accent-app);
  color: var(--btn-primary-fg);
  box-shadow: var(--shadow-btn-primary);
}
.btn.primary:hover {
  background: color-mix(in oklab, var(--accent-app) 90%, white 10%);
  color: var(--btn-primary-fg);
  transform: translateY(-1px);
}
.btn.primary:active { transform: translateY(0); }
.btn.big {
  padding: 16px 28px;
  font-size: 16px;
}

/* ── Demo window (mirrors the actual product) ───────────────────────────────── */
.demo {
  display: flex;
  justify-content: center;
  position: relative;
}
.demo::before {
  /* Soft emerald glow behind the window. */
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(closest-side, var(--accent-app-bg), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
html.light .demo::before {
  /* Slightly stronger glow in light mode so the colour reads against the
     warm-white surface. */
  background: radial-gradient(closest-side, var(--accent-app-strong), transparent 72%);
}
.window {
  width: min(420px, 100%);
  background: var(--bg-raised);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
  font-size: 13px;
  user-select: none;
  transition: background 220ms ease, box-shadow 220ms ease;
}
.window .search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 8px 10px;
  padding: 0 12px;
  background: var(--bg);
  border-radius: 8px;
  /* The demo widget shows the search bar in its focused state — 1 px
     light-blue ring, mirroring the actual app's `--focus-search` token. */
  box-shadow: 0 0 0 1px var(--focus-search);
  color: var(--t1);
}
html.light .window .search-bar { background: var(--bg-elevated); }
.window .search-bar .dim { color: var(--t3); }
.window .query { flex: 1; }
.window .caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--t1);
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink {
  to { opacity: 0; }
}
.window .x {
  background: none;
  border: 0;
  color: var(--t3);
  padding: 2px;
  cursor: pointer;
}
.window .tabs {
  display: flex;
  gap: 2px;
  padding: 4px 10px 0;
  border-bottom: 1px solid var(--border);
}
.window .tab {
  background: transparent;
  border: 0;
  color: var(--t2);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}
.window .tab.on {
  color: var(--t1);
  background: var(--item-active);
  border-bottom-color: var(--t2);
}
.window .rows { padding: 4px 6px; }
.window .rows.tight { padding-top: 0; }
.window .section-h {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t3);
  font-weight: 600;
  margin: 8px 14px 0;
}

.window .row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  border-bottom: 1px solid var(--border);
}
.window .row:last-child { border-bottom: 0; }
.window .row.text  { background: var(--accent-text-row); }
.window .row.link  { background: var(--accent-link-row); }
.window .row.image { background: var(--accent-image-row); }
.window .row.saved,
.window .row.app   { background: transparent; }

.window .row.selected {
  background: var(--item-selected);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}
.window .ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.window .ico[data-kind="text"]  { background: var(--accent-text-bg);  color: var(--accent-text);  }
.window .ico[data-kind="link"]  { background: var(--accent-link-bg);  color: var(--accent-link);  }
.window .ico[data-kind="image"] { background: var(--accent-image-bg); color: var(--accent-image); }
.window .ico[data-kind="saved"] { background: var(--accent-saved-bg); color: var(--accent-saved); }
.window .ico[data-kind="app"]   { background: var(--accent-app-bg);   color: var(--accent-app);   }

/* Faux image thumbnail — a small gradient that reads as "an image is here"
   without shipping a real asset. */
.window .image-thumb {
  background:
    linear-gradient(135deg, var(--accent-image) 0%, var(--accent-saved) 100%) !important;
  position: relative;
}
.window .image-thumb::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.20);
}

.window .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.window .title {
  font-size: 13px;
  font-weight: 500;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window mark {
  background: var(--accent-highlight-bg);
  color: var(--t1);
  padding: 0 1px;
  border-radius: 2px;
}
.window .sub {
  font-size: 11px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window .when {
  font-size: 11px;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
}
.window .window-foot {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--t3);
}

/* ── Keyboard pill ──────────────────────────────────────────────────────────── */
.kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-elevated);
  box-shadow:
    inset 0 0 0 1px var(--border-strong),
    0 1px 0 var(--border);
  font: 600 12px ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--t1);
  letter-spacing: 0.02em;
}
.kbd.inline { font-size: 0.85em; padding: 1px 6px; vertical-align: 1px; }

/* ── Sections ──────────────────────────────────────────────────────────────── */
section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 60px);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--t2);
  font-weight: 600;
  margin: 0 0 28px;
}

/* ── Principles list ───────────────────────────────────────────────────────── */
.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 72px);
}
@media (max-width: 720px) {
  .principle-list { grid-template-columns: 1fr; }
}
.principle-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.principle-list .n {
  font: 600 13px ui-monospace, Consolas, monospace;
  /* `--accent-app-text` is the darker emerald in light mode for AA on the
     tinted bg; same bright value as `--accent-app` in dark mode. */
  color: var(--accent-app-text);
  background: var(--accent-app-bg);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  align-self: start;
  margin-top: 3px;
}
.principle-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--t1);
}
.principle-list p {
  margin: 0;
  color: var(--t2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42ch;
}

/* ── Features (varied, NOT a uniform card grid) ────────────────────────────── */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}
.feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: 0; padding-bottom: 0; }
.feature:nth-child(odd)  .feature-head { padding-top: 6px; }
.feature:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
.feature:nth-child(even) .feature-head { order: 2; }

@media (max-width: 720px) {
  .feature, .feature:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature:nth-child(even) .feature-head { order: 0; }
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.tag-clipboard { background: var(--accent-text-bg);  color: var(--accent-text-text); }
.tag-saved     { background: var(--accent-saved-bg); color: var(--accent-saved-text); }
.tag-app       { background: var(--accent-app-bg);   color: var(--accent-app-text); }
.tag-sync      { background: var(--accent-link-bg);  color: var(--accent-link-text); }
.feature h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--t1);
}
.feature p {
  margin: 0;
  color: var(--t2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 56ch;
}
.feature code {
  background: var(--bg-elevated);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--t1);
  border: 1px solid var(--border);
}

/* ── Specs ─────────────────────────────────────────────────────────────────── */
.specs { border-top: 1px solid var(--border); }
.spec-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 36px;
}
.spec-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-grid dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
}
.spec-grid dd {
  margin: 0;
  font-size: 15px;
  color: var(--t1);
}
.spec-grid dd code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  color: var(--t2);
  border: 1px solid var(--border);
}

/* ── Install ───────────────────────────────────────────────────────────────── */
.install {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(60px, 9vw, 120px);
}
.install h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--t1);
}
.install-lede {
  color: var(--t2);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.install .btn { margin: 0 auto; }
.install-alt {
  margin-top: 28px;
  color: var(--t3);
  font-size: 13px;
}
.install-alt a { color: var(--t1); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.page-foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  font-size: 12px;
  color: var(--t2);
}
.page-foot .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-dot);
  margin-right: 6px;
  vertical-align: 1px;
}
.page-foot .dim { color: var(--t3); }
.page-foot .dim a { color: var(--t2); text-decoration: none; }
.page-foot .dim a:hover { color: var(--accent-app); }

/* ── Legal / prose pages (privacy) ─────────────────────────────────────────── */
.legal {
  max-width: 68ch;
}
.legal h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 800;
  margin: 6px 0 8px;
  color: var(--t1);
}
.legal h2 {
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  color: var(--t1);
}
.legal p,
.legal li {
  color: var(--t2);
  font-size: 15px;
  line-height: 1.65;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin: 0 0 6px; }
.legal a { color: var(--accent-app); text-underline-offset: 3px; }
.legal code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--t1);
  border: 1px solid var(--border);
}
.legal .updated {
  color: var(--t3);
  font-size: 13px;
  margin: 0 0 28px;
}
.legal strong { color: var(--t1); font-weight: 600; }

/* ── Reveal-on-scroll ──────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .window .caret { animation: none; }
  body, .page-header, .window, .theme-toggle, .btn {
    transition: none;
  }
}
