/* macOS (Tahoe) menu bar for the homepage — the Meaningful mark sits where
   the Apple logo goes. Transparent bar, 13pt titles, bold app name, rounded
   highlight on the open menu, glass menus with blue selection, menu extras,
   locale clock, and Spotlight. */
:root { --nav-h: 30px; }

.nav.mbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(var(--nav-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 8px;
  background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.22));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  font-size: 13px; letter-spacing: -0.003em; color: #fff;
  -webkit-user-select: none; user-select: none; cursor: default;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 0; min-width: 0; height: 100%; }
.mb-menu { position: relative; display: flex; align-items: center; height: 100%; }

.mb-item {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 5px;
  font: inherit; font-size: 13px; font-weight: 400; color: #fff; background: none; border: 0; white-space: nowrap; cursor: default;
  transition: background-color 60ms;
}
.mb-item:focus-visible { outline: none; background: rgba(255, 255, 255, 0.22); }
.mb-item.is-open, .mb-ic:active, .mb-extra:active { background: rgba(255, 255, 255, 0.22); }
.mb-logo { padding: 0 12px 0 11px; }
.mb-logo img { width: 15px; height: 15px; object-fit: contain; filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.3)); }
.mb-app { font-weight: 700; margin: 0; }
.mb-ic { width: 30px; padding: 0; justify-content: center; color: #fff; }
.mb-ic svg { width: 16px; height: 16px; }
.nav.mbar .icon-btn { width: 30px; height: 22px; border-radius: 5px; color: #fff; }
.nav.mbar .icon-btn:hover { background: none; }
.nav.mbar .icon-btn:active { transform: none; background: rgba(255, 255, 255, 0.22); }
.nav.mbar .menu-btn { display: none; }
.mb-extra { gap: 5px; padding: 0 9px 0 8px; }
.mb-extra svg { width: 14px; height: 14px; flex: none; }
.mb-clock { font-variant-numeric: tabular-nums; padding: 0 8px 0 10px; }

/* Drop-down menus */
.mb-drop {
  position: absolute; left: 0; top: calc(100% + 1px); min-width: 220px; padding: 5px;
  border-radius: 11px; background: rgba(38, 38, 42, 0.7);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 14px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  text-shadow: none; visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 0s 180ms;
}
.mb-menu.open .mb-drop { visibility: visible; opacity: 1; transition: none; }
.mb-drop a { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 22px; padding: 0 10px; border-radius: 5px; font-size: 13px; color: #fff; text-decoration: none; outline: none; cursor: default; }
.mb-drop a:focus, .mb-drop a:hover { background: #0a84ff; }
.mb-drop a.blink { animation: blink 140ms steps(2) 1; }
@keyframes blink { 50% { background: transparent; } }
.mb-drop kbd { font: inherit; color: rgba(235, 235, 245, 0.45); letter-spacing: 0.06em; }
.mb-drop a:focus kbd, .mb-drop a:hover kbd { color: rgba(255, 255, 255, 0.8); }
.mb-drop hr { border: 0; height: 0.5px; margin: 5px 10px; background: rgba(255, 255, 255, 0.14); }

/* the iOS menu (phones) drops from the bar */
.menu { top: calc(var(--nav-h) + var(--safe-t) + 6px); }

/* ── Spotlight ──────────────────────────────────────────────────────────── */
.spot { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.spot.open { visibility: visible; }
.spot-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity 200ms; }
.spot.open .spot-dim { opacity: 1; }
.spot-box {
  position: absolute; left: 50%; top: 22vh; width: min(660px, calc(100vw - 32px)); transform: translate(-50%, -6px) scale(0.98); opacity: 0;
  transition: transform 340ms cubic-bezier(0.34, 1.36, 0.64, 1), opacity 160ms ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif; color: #fff;
}
.spot.open .spot-box { transform: translate(-50%, 0) scale(1); opacity: 1; }
.spot-field, .spot-results {
  background: rgba(36, 36, 40, 0.86); -webkit-backdrop-filter: blur(50px) saturate(180%); backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), inset 0 0.5px 0 rgba(255, 255, 255, 0.14), 0 24px 70px rgba(0, 0, 0, 0.5);
}
.spot-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-radius: 28px; }
.spot-field svg { width: 22px; height: 22px; flex: none; color: rgba(235, 235, 245, 0.6); }
.spot-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; caret-color: #0a84ff; }
.spot-field input::placeholder { color: rgba(235, 235, 245, 0.45); }
.spot-results { margin-top: 8px; border-radius: 22px; padding: 6px; max-height: min(420px, 56vh); overflow-y: auto; display: none; }
.spot.has .spot-results { display: block; }
.spot-g { margin: 8px 12px 4px; font-size: 11px; font-weight: 600; color: rgba(235, 235, 245, 0.45); }
.spot-row { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; color: #fff; text-decoration: none; cursor: default; }
.spot-row.is-cur { background: #0a84ff; }
.spot-row > span:not(.spot-ic) { flex: 1; min-width: 0; }
.spot-row b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-row small { display: block; font-size: 12px; color: rgba(235, 235, 245, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-row.is-cur small { color: rgba(255, 255, 255, 0.8); }
.spot-row img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.spot-ic { width: 30px; height: 30px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.spot-ic svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spot-row kbd { font: inherit; font-size: 13px; color: rgba(255, 255, 255, 0.7); visibility: hidden; }
.spot-row.is-cur kbd { visibility: visible; }

@media (max-width: 1000px) { .mb-help, .mb-clock .mb-date { display: none !important; } }
@media (max-width: 760px) {
  /* iPhone: taller bar with 44pt touch targets */
  :root { --nav-h: 44px; }
  .nav.mbar { padding: var(--safe-t) 6px 0 4px; }
  .mb-item { height: 36px; padding: 0 10px; font-size: 16px; border-radius: 9px; }
  .mb-logo { padding: 0 10px; }
  .mb-logo img { width: 19px; height: 19px; }
  .mb-ic, .nav.mbar .icon-btn { width: 44px; height: 44px; border-radius: 12px; }
  .mb-ic svg { width: 20px; height: 20px; }
  .mb-drop { min-width: 264px; padding: 6px; border-radius: 14px; background: rgba(32, 32, 36, 0.96); }
  .mb-drop a { height: 44px; font-size: 16px; border-radius: 9px; white-space: nowrap; }
  .mb-drop kbd { display: none; }
  .mb-left .mb-menu:not(:first-child):not(:nth-child(2)) { display: none; }
  .mb-extra, .mb-clock { display: none !important; }
  .nav.mbar .menu-btn { display: inline-flex; }
  .spot-box { top: calc(var(--nav-h) + var(--safe-t) + 16px); }
}
@media (prefers-reduced-transparency: reduce) { .nav.mbar, .mb-drop, .spot-field, .spot-results { background: #1c1c1e; } }

/* ── About Meaningful Recordings — macOS "About This Mac" window ───────── */
.about-win {
  position: fixed; z-index: 95; left: 50%; top: 22vh; width: 352px; transform: translateX(-50%) scale(0.96); opacity: 0;
  border-radius: 16px; overflow: hidden; color: #fff; text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  background: rgba(36, 36, 40, 0.94); -webkit-backdrop-filter: blur(50px) saturate(180%); backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.2), inset 0 0.5px 0 rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(0.34, 1.36, 0.64, 1);
}
.about-win[style*="left"] { transform: scale(0.96); }
.about-win.open { opacity: 1; transform: translateX(-50%) scale(1); }
.about-win.open[style*="left"] { transform: scale(1); }
.about-win.dragging { transition: none; }
.aw-bar { height: 34px; display: flex; align-items: center; padding: 0 12px; cursor: default; touch-action: none; }
.aw-lights { display: flex; gap: 8px; }
.aw-lights > * { width: 12px; height: 12px; border-radius: 50%; padding: 0; border: 0; background: rgba(255, 255, 255, 0.18); }
.aw-close { background: #ff5f57 !important; position: relative; cursor: default; outline: none; }
.aw-close:focus-visible { box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.8); }
.aw-lights:hover .aw-close::after { content: "×"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 10px/1 -apple-system, sans-serif; color: rgba(70, 0, 0, 0.8); }
.aw-body { padding: 6px 26px 22px; }
.aw-icon { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 22px; margin: 4px 0 14px;
  background: linear-gradient(180deg, #2e2e33, #141416); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 10px 26px rgba(0, 0, 0, 0.45); }
.aw-icon img { width: 56px; height: 56px; object-fit: contain; }
.about-win h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.aw-est { margin: 4px 0 0; font-size: 13px; color: rgba(235, 235, 245, 0.6); }
.aw-tag { margin: 10px 0 0; font-size: 14px; font-weight: 500; }
.aw-facts { margin: 16px 0 0; padding: 0; text-align: left; font-size: 12px; }
.aw-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 3px 0; }
.aw-facts dt { color: rgba(235, 235, 245, 0.55); text-align: right; }
.aw-facts dd { margin: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-more { display: inline-flex; align-items: center; height: 26px; margin-top: 16px; padding: 0 14px; border-radius: 7px; font-size: 13px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.16); cursor: default; }
.aw-more:active { filter: brightness(1.2); }
.aw-legal { margin: 14px 0 0; font-size: 10.5px; color: rgba(235, 235, 245, 0.4); }

/* ── Mail banner — macOS notification ──────────────────────────────────── */
.mail-note {
  position: fixed; z-index: 96; right: 12px; top: calc(var(--nav-h) + var(--safe-t) + 8px); width: min(360px, calc(100vw - 24px));
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif; font-size: 13px;
  background: rgba(40, 40, 44, 0.92); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateX(calc(100% + 24px)); transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mail-note.open { transform: none; }
.mn-icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #1c1c1e; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16); }
.mn-icon img { width: 22px; height: 22px; object-fit: contain; }
.mn-tx { flex: 1; min-width: 0; }
.mn-tx b { display: block; font-weight: 600; }
.mn-tx > span { display: block; color: rgba(235, 235, 245, 0.65); }
.mn-alt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mn-alt a, .mn-alt button { height: 26px; padding: 0 10px; border-radius: 13px; border: 0; display: inline-flex; align-items: center; font: inherit; font-size: 12px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.14); cursor: default; }
.mn-alt a:hover, .mn-alt button:hover { background: rgba(255, 255, 255, 0.22); }
.mn-x { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 1; cursor: default; }
@media (prefers-reduced-transparency: reduce) { .about-win, .mail-note { background: #2c2c2e; } }
.about-win { outline: none; }
.mail-note[hidden], .about-win[hidden] { display: none !important; }

.aw-dist dd { display: flex; align-items: center; }
.aw-dist img { height: 13px; width: auto; display: block; }
