:root {
  --bg-void: #11111B;
  --bg-surface: #181825;
  --bg-notch: #1E1E2E;
  --bg-elevated: #313244;
  --border-subtle: rgba(205, 214, 244, 0.1);
  --border-strong: rgba(203, 166, 247, 0.35);
  --text-primary: #CDD6F4;
  --text-muted: #A6ADC8;
  --accent-lavender: #CBA6F7;
  --accent-periwinkle: #B4BEFE;
  --accent-pink: #F5C2E7;
  --accent-green: #A6E3A1;
  --accent-red: #F38BA8;
  --accent-peach: #FAB387;
  --accent-amber: #FBBF24;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --notch-open-spring: cubic-bezier(0.22, 1.12, 0.36, 1);
  --notch-close-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(203, 166, 247, 0.08), transparent 70%),
    var(--bg-void);
  overflow-x: clip;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(9, 9, 15, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.is-notch-open::after {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-lavender);
  outline-offset: 2px;
}

.container {
  width: min(1260px, calc(100% - 3rem));
  margin-inline: auto;
}

/* =========================================================
   SIMULATED MACOS MENU BAR
   ========================================================= */
.mac-menubar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 44px;
  background: rgba(17, 17, 27, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(205, 214, 244, 0.06);
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 44px;
}

.menubar-right {
  justify-content: flex-end;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.brand-icon {
  border-radius: 4px;
}

.top-nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.top-nav a:hover,
.gh-link:hover {
  color: var(--text-primary);
}

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.nav-download {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.36rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--accent-lavender);
  color: var(--bg-void);
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.nav-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* =========================================================
   NATIVE-FIDELITY CATNOTCH
   ========================================================= */
.notch-stage {
  --notch-width: 248px;
  --notch-height: 32px;
  --notch-ear: 8px;
  --notch-radius: 14px;
  --notch-accent: #cba6f7;
  --notch-fill: #000000;
  --notch-border: rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 200;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--font-sans);
}

.notch-stage[data-style="transparent"] {
  --notch-fill: rgba(24, 24, 38, 0.84);
}

.notch-stage[data-style="glass"] {
  --notch-fill: rgba(24, 24, 38, 0.72);
}

.notch-stage[data-state="open"] {
  --notch-ear: 19px;
  --notch-radius: 24px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.notch-shell-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.notch-shell {
  position: relative;
  width: var(--notch-width);
  height: var(--notch-height);
  background: var(--notch-fill);
  border-radius: 0 0 var(--notch-radius) var(--notch-radius);
  overflow: hidden;
  transition:
    width 0.42s var(--notch-open-spring),
    height 0.42s var(--notch-open-spring),
    border-radius 0.42s var(--notch-open-spring),
    background-color 0.25s ease,
    box-shadow 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  will-change: width, height;
}

.notch-stage[data-state="closed"] .notch-shell {
  transition:
    width 0.45s var(--notch-close-spring),
    height 0.45s var(--notch-close-spring),
    border-radius 0.45s var(--notch-close-spring),
    background-color 0.25s ease,
    box-shadow 0.35s ease;
}

.notch-stage[data-style="glass"] .notch-shell,
.notch-stage[data-style="glass"] .notch-dock-pill,
.notch-stage[data-style="glass"] .apps-tray {
  backdrop-filter: blur(34px) saturate(155%);
  -webkit-backdrop-filter: blur(34px) saturate(155%);
}

.notch-stage[data-state="open"][data-style="glass"] .notch-shell,
.notch-stage[data-state="open"][data-style="transparent"] .notch-shell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
}

.notch-stage[data-state="open"][data-style="black"] .notch-shell {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.75);
}

.notch-stage[data-state="open"][data-style="transparent"] .notch-shell,
.notch-stage[data-state="open"][data-style="glass"] .notch-shell {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

/* Concave Top Ears (NotchShape quadratic flare) */
.notch-ear {
  position: fixed;
  display: none;
}

.notch-shell-wrap::before,
.notch-shell-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: var(--notch-ear);
  height: var(--notch-ear);
  pointer-events: none;
  z-index: 2;
  transition:
    width 0.42s var(--notch-open-spring),
    height 0.42s var(--notch-open-spring),
    background 0.25s ease;
}

.notch-stage[data-state="closed"] .notch-shell-wrap::before,
.notch-stage[data-state="closed"] .notch-shell-wrap::after {
  transition:
    width 0.45s var(--notch-close-spring),
    height 0.45s var(--notch-close-spring),
    background 0.25s ease;
}

.notch-shell-wrap::before {
  right: 100%;
  background: radial-gradient(circle at 0 100%, transparent calc(var(--notch-ear) - 0.5px), var(--notch-fill) var(--notch-ear));
}

.notch-shell-wrap::after {
  left: 100%;
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--notch-ear) - 0.5px), var(--notch-fill) var(--notch-ear));
}

/* Ambient glow along bottom of Home while music plays */
.notch-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(85% 70% at 50% 105%, rgba(203, 166, 247, 0.28), transparent 70%);
  transition: opacity 0.8s ease-out;
}

.notch-stage[data-state="open"][data-page="home"][data-peek="false"] .notch-ambient.is-active {
  opacity: 1;
}

/* Top Row: Left Wing + Hardware Cutout + Right Wing */
.notch-top-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 32px;
  padding: 0 8px;
}

.notch-wing {
  display: flex;
  align-items: center;
  height: 32px;
  gap: 6px;
  transition: opacity 0.18s ease;
  min-width: 0;
}

.notch-wing-left {
  justify-content: flex-start;
  padding-left: 2px;
}

.notch-wing-right {
  justify-content: flex-end;
  padding-right: 2px;
}

.notch-stage[data-state="open"] .notch-wing {
  opacity: 0;
  pointer-events: none;
}

.wing-companion {
  display: block;
  flex-shrink: 0;
}

.wing-focus {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}

.wing-focus[hidden] {
  display: none;
}

.wing-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 2.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.wing-clock[hidden] {
  display: none;
}

.wing-clock-time {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.wing-clock-meridiem {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.wing-art {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #cba6f7 0%, #f5c2e7 50%, #313244 100%);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(203, 166, 247, 0.45);
}

.wing-art.is-playing {
  animation: wingArtPulse 1.2s ease-in-out infinite;
}

@keyframes wingArtPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 4px rgba(203, 166, 247, 0.35); }
  50% { transform: scale(1.16); box-shadow: 0 0 9px rgba(203, 166, 247, 0.8); }
}

.hardware-cutout {
  width: 168px;
  height: 32px;
  background: #000000;
  border: 0;
  border-radius: 0 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.camera-lens {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2f3352 0%, #0d0e17 65%, #000 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Open Notch Body (Top-aligned so content never squashes during spring) */
.notch-body {
  position: relative;
  z-index: 2;
  padding: 6px 12px 12px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.notch-stage[data-state="open"] .notch-body {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease-out 0.04s;
}

.mobile-notch-bar {
  display: none;
}

.notch-pages-viewport {
  position: relative;
}

.notch-stage[data-peek="true"] .notch-pages-viewport {
  display: none;
}

/* Page transitions: 0.8 scale from top + opacity over 0.35s in, 0.15s out */
.notch-page {
  display: none;
  opacity: 0;
  transform-origin: top center;
  transform: scale(0.8);
}

.notch-page.is-active {
  display: block;
  opacity: 1;
  transform: scale(1);
  animation: pageEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   LIVELY BUTTON MICRO-INTERACTIONS (1.08 hover, 0.9 press)
   ========================================================= */
.pill-btn,
.media-btn,
.tray-app-btn,
.focus-start-btn,
.focus-reset-btn,
.cal-nav-btn,
.cal-today-btn,
.ss-icon-btn,
.shelf-trash-btn,
.strip-pill,
.strip-icon-btn {
  transition: transform 0.22s cubic-bezier(0.22, 1.35, 0.36, 1), background-color 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.pill-btn:hover,
.media-btn:hover,
.tray-app-btn:hover,
.focus-start-btn:hover,
.focus-reset-btn:hover,
.cal-nav-btn:hover,
.cal-today-btn:hover,
.ss-icon-btn:hover,
.shelf-trash-btn:hover,
.strip-pill:hover,
.strip-icon-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.12);
}

.pill-btn:active,
.media-btn:active,
.tray-app-btn:active,
.focus-start-btn:active,
.focus-reset-btn:active,
.cal-nav-btn:active,
.cal-today-btn:active,
.ss-icon-btn:active,
.shelf-trash-btn:active,
.strip-pill:active,
.strip-icon-btn:active {
  transform: scale(0.9);
  opacity: 0.78;
}

/* =========================================================
   PAGE 1: HOME / GLANCE
   ========================================================= */
.home-layout {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-tiles-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.home-tile {
  position: relative;
  height: 136px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Tile 1: Companion + Clock / Day Wave */
.tile-companion {
  width: 236px;
  gap: 12px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(203, 166, 247, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.1);
  transition: width 0.42s var(--notch-open-spring);
}

.tile-companion.is-day-open {
  width: 330px;
}

.companion-btn {
  border: 0;
  background: transparent;
  padding: 0;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.clock-mode {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.clock-top-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clock-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.clock-digits {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
}

.clock-meridiem {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.clock-date-expanded {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

.tile-companion.is-day-open .clock-date-expanded {
  display: flex;
}

.tile-companion.is-day-open .clock-compact-meta {
  display: none;
}

.clock-weekday-full {
  font-size: 11px;
  font-weight: 600;
}

.clock-day-month {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
}

.clock-date {
  font-size: 11px;
  font-weight: 600;
}

.clock-light {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--notch-accent);
}

.clock-wave-wrap {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.tile-companion.is-day-open .clock-wave-wrap {
  display: flex;
}

.day-wave-svg {
  width: 100%;
  height: 42px;
  display: block;
}

.clock-wave-note {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* Tile 2: Now Playing */
.tile-music {
  width: 328px;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(203, 166, 247, 0.12), transparent 65%),
    rgba(255, 255, 255, 0.1);
}

.album-art {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #cba6f7 0%, #f5c2e7 45%, #313244 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.album-art::after {
  content: '♪';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(17, 17, 27, 0.6);
}

.music-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.music-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.music-track-meta {
  min-width: 0;
}

.music-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  flex-shrink: 0;
}

.music-eq span {
  width: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: eqBar 0.9s ease-in-out infinite;
}

.music-eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-eq span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.music-eq span:nth-child(3) { height: 8px; animation-delay: 0.4s; }
.music-eq span:nth-child(4) { height: 10px; animation-delay: 0.1s; }

.music-eq.is-paused span {
  animation-play-state: paused;
  height: 3px;
}

@keyframes eqBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.media-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  width: 34px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.media-play {
  color: #ffffff;
}

.music-scrubber {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  padding-top: 2px;
}

.scrubber-track {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  transition: height 0.15s ease;
}

.music-scrubber:hover .scrubber-track,
.music-scrubber.is-scrubbing .scrubber-track {
  height: 6px;
}

.scrubber-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent-lavender);
}

.scrubber-thumb {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.music-scrubber:hover .scrubber-thumb,
.music-scrubber.is-scrubbing .scrubber-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.scrubber-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.65);
}

/* Tile 3: AI Usage (Orbs & Activity Rings) */
.tile-usage {
  width: auto;
  min-width: 168px;
  padding: 12px;
  justify-content: center;
}

.usage-mode-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.usage-mode-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.usage-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usage-orb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 66px;
  gap: 3px;
  cursor: default;
}

.usage-orb-canvas {
  width: 58px;
  height: 58px;
  display: block;
  transition: transform 0.15s ease;
}

.usage-orb-item:hover .usage-orb-canvas {
  transform: scale(1.05);
}

.usage-pct {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--notch-accent);
}

.usage-pct span {
  font-size: 10px;
  opacity: 0.45;
}

.usage-label {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.usage-rings-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rings-svg-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}

.rings-center-readout {
  position: absolute;
  text-align: center;
  line-height: 1.05;
  pointer-events: none;
}

.rings-center-pct {
  font-size: 12px;
  font-weight: 700;
}

.rings-center-lbl {
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.rings-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 9.5px;
  white-space: nowrap;
}

.rings-legend-row {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
}

.rings-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rings-legend-reset {
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.next-event-line {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.next-event-line strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* =========================================================
   PAGE 2: DESK (FOCUS & TASKS) — 696x136 content (720px shell)
   ========================================================= */
.desk-layout {
  width: 696px;
  height: 136px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.desk-focus {
  width: 330px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
}

.focus-ring-wrap {
  width: 58px;
  height: 58px;
  color: var(--accent-lavender);
  flex-shrink: 0;
}

.focus-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
}

.focus-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.55);
}

.focus-time {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.focus-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.focus-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.focus-start-btn {
  border: 0;
  width: 68px;
  padding: 6px 0;
  border-radius: var(--radius-pill);
  background: var(--accent-lavender);
  color: #11111B;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.focus-start-btn.is-running {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.focus-reset-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  cursor: pointer;
}

.desk-tasks {
  flex: 1;
  height: 136px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tasks-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tasks-plus {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.tasks-input-row input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.tasks-input-row input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.tasks-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
}

.tasks-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.tasks-list::-webkit-scrollbar {
  display: none;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.task-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.task-check-btn {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-lavender);
  background: transparent;
  color: #11111B;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.task-row.is-done .task-check-btn {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.65);
}

.task-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
}

.task-row.is-done .task-label {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
}

.task-del-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  padding: 2px 4px;
  transition: opacity 0.15s ease;
}

.task-row:hover .task-del-btn,
.task-del-btn:focus-visible {
  opacity: 1;
}

.tasks-footer {
  display: flex;
  gap: 12px;
  font-size: 11px;
}

.tasks-footer-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
}

.tasks-footer-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   PAGE 3: CALENDAR — 556px content (580px shell)
   ========================================================= */
.calendar-layout {
  width: 556px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.cal-month-col {
  width: 168px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-month-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
}

.cal-month-title {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

.cal-month-title span {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.cal-today-btn {
  border: 0;
  background: var(--accent-lavender);
  color: #11111B;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.cal-nav-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 24px);
  gap: 0;
}

.cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  line-height: 16px;
}

.cal-cell {
  position: relative;
  width: 24px;
  height: 22px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.cal-cell.is-today {
  background: var(--accent-lavender);
  color: #11111B;
  font-weight: 700;
}

.cal-cell.is-selected:not(.is-today) {
  box-shadow: inset 0 0 0 1.5px var(--accent-lavender);
}

.cal-cell.is-busy::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-lavender);
}

.cal-cell.is-today.is-busy::after {
  background: #11111B;
}

.cal-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cal-detail-col {
  flex: 1;
  min-width: 0;
  max-height: 172px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-detail-col::-webkit-scrollbar {
  display: none;
}

.cal-group-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-lavender);
  text-transform: uppercase;
  margin-top: 2px;
}

.cal-day-title {
  font-size: 12px;
  font-weight: 600;
}

.cal-day-counts {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.cal-event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 12px;
}

.cal-event-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cal-event-row.is-past {
  opacity: 0.4;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-event-name {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.cal-join-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0;
  cursor: pointer;
}

.cal-inline-task {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
}

.cal-inline-task input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 12px;
  outline: none;
}

.cal-inline-task input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   PAGE 4: REMINDERS — 368x136 content (392px shell)
   ========================================================= */
.reminders-layout {
  width: 368px;
  height: 136px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.reminders-layout::-webkit-scrollbar {
  display: none;
}

.rem-group-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-lavender);
  margin-top: 2px;
}

.rem-group-title.is-overdue {
  color: rgba(243, 139, 168, 0.9);
}

.rem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 12px;
}

.rem-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rem-ring {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}

.rem-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.rem-when {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* =========================================================
   PAGE 5: FILES (SHELF + SCREENSHOTS) — 616px content (640px shell)
   ========================================================= */
.files-layout {
  width: 616px;
  height: 136px;
  display: flex;
  gap: 10px;
  transition: height 0.35s var(--notch-open-spring);
}

.files-layout.is-show-all {
  height: 240px;
}

.shelf-well {
  flex: 1;
  min-width: 0;
  border-radius: 22px;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.shelf-well.is-drag-over {
  border-color: var(--accent-lavender);
  background: rgba(203, 166, 247, 0.14);
}

.files-layout.is-show-all .shelf-well {
  display: none;
}

.shelf-items {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 4px;
}

.shelf-items::-webkit-scrollbar {
  display: none;
}

.shelf-empty {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.file-tile {
  position: relative;
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.15s ease;
}

.file-tile:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

.file-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.file-tile.is-selected .file-thumb {
  border: 2px solid var(--accent-lavender);
}

.file-remove-x {
  position: absolute;
  top: 0;
  right: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #2b2b36;
  color: #ffffff;
  font-size: 9px;
  display: grid;
  place-items: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.file-tile:hover .file-remove-x {
  opacity: 1;
}

.file-name {
  width: 68px;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-clear-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.shelf-trash-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.shelf-count {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}

.screenshots-card {
  width: 216px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.files-layout.is-show-all .screenshots-card {
  width: 100%;
}

.ss-header {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
}

.ss-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
}

.ss-sel-count {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.ss-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ss-icon-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.ss-list {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ss-list::-webkit-scrollbar {
  display: none;
}

.files-layout.is-show-all .ss-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 74px);
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
}

/* =========================================================
   PAGE 6: AI SESSIONS — 396px content (420px shell)
   ========================================================= */
.claude-sessions-layout {
  width: 396px;
  display: flex;
  flex-direction: column;
}

.cs-heading {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-lavender);
}

.cs-list {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: none;
}

.cs-list::-webkit-scrollbar {
  display: none;
}

.cs-row {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-glyph {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-lavender);
  flex-shrink: 0;
}

.cs-dot-waiting {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.cs-dot-compacting {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lavender);
  animation: squeezeDot 0.6s ease-in-out infinite;
}

.cs-dot-idle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes squeezeDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.5); }
}

.cs-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cs-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-title {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-project {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.cs-activity {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-badge {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cs-action-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.cs-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   CLAUDE / CODEX / ANTIGRAVITY PEEK STRIP
   ========================================================= */
.claude-strip-host {
  margin-bottom: 10px;
}

.notch-stage[data-peek="true"] .claude-strip-host {
  margin-bottom: 0;
}

.claude-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.strip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
}

.strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  flex-shrink: 0;
}

.strip-tool {
  font-size: 11px;
  font-weight: 600;
}

.strip-project {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.strip-cmd-box {
  background: rgba(0, 0, 0, 0.42);
  border-radius: 8px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.strip-cmd-box.is-expanded {
  white-space: pre-wrap;
  max-height: 92px;
  overflow-y: auto;
  line-height: 1.45;
}

.strip-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.strip-pill {
  height: 26px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.strip-pill.is-solid {
  background: var(--accent-lavender);
  color: #11111B;
  font-weight: 600;
}

.strip-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.strip-q-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 104px;
  overflow-y: auto;
}

.strip-q-opt {
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strip-q-opt:hover {
  background: rgba(255, 255, 255, 0.14);
}

.strip-q-opt.is-picked {
  background: rgba(203, 166, 247, 0.34);
}

.strip-q-opt strong {
  font-size: 11px;
}

.strip-q-opt span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.strip-q-input {
  width: 100%;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11px;
  padding: 0 8px;
  outline: none;
}

.strip-finished {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   EXTERNAL APPS TRAY & FLOATING PILL DOCK
   ========================================================= */
.apps-tray {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 6px;
  border-radius: 0 0 12px 12px;
  background: var(--notch-fill);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px) scale(0.92);
  transform-origin: top left;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.notch-stage[data-state="open"][data-peek="false"] .apps-tray {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition: opacity 0.32s var(--notch-open-spring) 0.06s, transform 0.32s var(--notch-open-spring) 0.06s;
}

.tray-app-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.notch-dock-pill {
  margin-top: 4px;
  height: 32px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--notch-fill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.92);
  transform-origin: top center;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.notch-stage[data-state="open"][data-peek="false"] .notch-dock-pill {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.32s var(--notch-open-spring) 0.04s, transform 0.32s var(--notch-open-spring) 0.04s;
}

/* Locked & pointer away: dock steps away like native NotchView */
.notch-stage[data-state="open"][data-locked="true"][data-pointer-inside="false"] .notch-dock-pill {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.94);
}

.pill-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.pill-btn.is-active,
.pill-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #000000;
}

.pill-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

/* =========================================================
   HERO & PAGE SECTIONS (PRESERVED CATPPUCCIN MOCHA THEME)
   ========================================================= */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 2.5rem;
  align-items: center;
}

.version-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(203, 166, 247, 0.08);
  color: var(--accent-lavender);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--accent-lavender);
  color: var(--bg-void);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-try-notch {
  border-color: rgba(203, 166, 247, 0.25);
  color: var(--accent-lavender);
}

.hero-hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Showcase */
.hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.showcase-tabs {
  display: inline-flex;
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  gap: 0.2rem;
}

.showcase-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.showcase-tab.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.showcase-frame {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.showcase-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0d0d14;
}

.showcase-img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.showcase-img.is-active {
  display: block;
  animation: fadeSlide 0.28s ease both;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-caption {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(24, 24, 37, 0.55);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 58ch;
  margin-bottom: 2.25rem;
}

.section-head h2,
.claude-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-wide {
  grid-column: span 2;
}

.card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.clean-list strong {
  color: var(--text-primary);
}

.companion-stage {
  display: grid;
  place-items: center;
  height: 112px;
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 27, 0.65);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.bento-interactive-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.bento-chip {
  border: 1px solid var(--border-subtle);
  background: rgba(49, 50, 68, 0.55);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.bento-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.bento-chip.is-active {
  background: var(--accent-lavender);
  color: var(--bg-void);
  border-color: var(--accent-lavender);
  font-weight: 600;
}

/* AI Integration & Interactive Demo */
.claude-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.claude-copy > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.sim-note {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.claude-demo-panel {
  background: var(--bg-notch);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.claude-demo-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.claude-demo-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-lavender);
}

.claude-demo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.claude-triggers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.demo-trigger-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.demo-trigger-btn:hover {
  border-color: var(--accent-lavender);
  background: rgba(49, 50, 68, 0.75);
  transform: translateY(-1px);
}

.demo-trigger-btn strong {
  font-size: 0.84rem;
}

.demo-trigger-btn span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.claude-inline-mirror {
  background: #0d0d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  min-height: 92px;
}

.mirror-status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Install & Footer */
.install-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.steps-list {
  margin: 0;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps-list li strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.steps-list li p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sub-step {
  margin-top: 0.5rem !important;
}

.inline-download {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--accent-lavender);
  font-weight: 600;
  font-size: 0.92rem;
}

.inline-download:hover {
  text-decoration: underline;
}

.code-box {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}

.code-box code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}

.copy-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--accent-lavender);
}

.privacy-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.privacy-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.privacy-box p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--accent-periwinkle);
}

.meta-links a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0 calc(3rem + env(safe-area-inset-bottom));
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
}

.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-credits p,
.footer-meta {
  margin: 0;
}

.site-footer a {
  color: var(--text-primary);
}

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

.footer-meta code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIVE: TABLET (<= 1024px) & MOBILE (<= 768px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* Decouple expanded notch from header grid so it never collides with nav/buttons */
  .notch-stage[data-state="open"] {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
  }

  .notch-stage[data-state="open"] .notch-shell {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .notch-stage[data-state="open"] .apps-tray {
    display: none;
  }
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
  }

  .bento-grid,
  .claude-layout,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .mac-menubar {
    padding: 0 0.75rem;
  }

  .brand-name,
  .gh-link {
    display: none;
  }

  .notch-stage[data-state="closed"] {
    --notch-width: 196px;
  }

  .hardware-cutout {
    width: 104px;
  }

  /* Touch-friendly adaptive notch sheet on mobile */
  .notch-stage[data-state="open"] {
    width: min(calc(100vw - 16px), 440px);
  }

  .notch-stage[data-state="open"] .notch-shell {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .notch-stage[data-state="open"] .notch-top-row {
    display: none;
  }

  .notch-stage[data-state="open"] .mobile-notch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
  }

  .mobile-notch-title {
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-close-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
  }

  .home-tiles-row,
  .desk-layout,
  .calendar-layout,
  .files-layout,
  .claude-sessions-layout,
  .reminders-layout {
    width: 100% !important;
    height: auto !important;
    flex-direction: column;
  }

  .home-tile,
  .tile-companion,
  .tile-companion.is-day-open,
  .tile-music,
  .tile-usage,
  .desk-focus,
  .cal-month-col,
  .screenshots-card {
    width: 100% !important;
    height: auto !important;
    min-height: 112px;
  }

  .cal-divider {
    width: 100%;
    height: 1px;
  }

  .cal-grid {
    justify-content: center;
  }

  .claude-triggers {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.75rem 0 2.25rem;
  }
}

@media (max-width: 390px) {
  .notch-stage[data-state="closed"] {
    --notch-width: 168px;
  }

  .hardware-cutout {
    width: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
