/* ==========================================================================
   Free Focus — Direction B: Cinema-Wide Horizon × Desk Instrument Monograph
   Tokens mirrored directly from FreeFocus/Theme/Tokens.swift
   ========================================================================== */

:root {
  /* Light Foundation (Warm Alabaster) */
  --canvas: #F8F7F4;
  --sunken: #F0EEE9;
  --surface: #FFFFFF;
  --glass: rgba(248, 247, 244, 0.84);
  --fill: rgba(24, 23, 21, 0.045);
  --fill-strong: rgba(24, 23, 21, 0.08);
  --hairline: rgba(24, 23, 21, 0.09);
  --line-strong: rgba(24, 23, 21, 0.15);

  /* Light Typography */
  --ink: #181715;
  --muted: #64615B;
  --tertiary: #8E8A82;

  /* Brand Accents (Tokens.swift) */
  --accent: #2463EB;
  --accent-soft: rgba(36, 99, 235, 0.08);
  --accent-ring: rgba(36, 99, 235, 0.24);
  --priority-ring: #1E40AF;
  --sage: #3D6B5E;
  --sage-fill: rgba(61, 107, 94, 0.12);
  --sage-text: #2F5A4E;
  --danger: #B42318;
  --warning: #B45309;

  /* Dark Atelier Band (Anodized Warm Charcoal) */
  --dark-canvas: #161618;
  --dark-sunken: #111113;
  --dark-surface: #222226;
  --dark-glass: rgba(28, 28, 31, 0.84);
  --dark-fill: rgba(255, 251, 245, 0.07);
  --dark-fill-strong: rgba(255, 251, 245, 0.12);
  --dark-hairline: rgba(255, 251, 245, 0.10);
  --dark-line-strong: rgba(255, 251, 245, 0.16);
  --dark-ink: #F3F1EC;
  --dark-muted: #9C9991;
  --dark-tertiary: #6B6862;
  --dark-accent: #5B8DEF;
  --dark-accent-soft: rgba(91, 141, 239, 0.14);
  --dark-sage: #6FA898;
  --dark-sage-fill: rgba(111, 168, 152, 0.16);

  /* Fonts — Native macOS system faces first, Google Fonts fallback */
  --font-serif: "New York", "Newsreader", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Radii & Shadows */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --r-widget: 24px;
  --r-pill: 9999px;

  --shadow-window: 0 26px 64px -20px rgba(24, 23, 21, 0.22), 0 0 0 0.5px rgba(24, 23, 21, 0.12);
  --shadow-window-dark: 0 28px 68px -18px rgba(0, 0, 0, 0.72), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 12px 32px -12px rgba(24, 23, 21, 0.12), 0 0 0 0.5px rgba(24, 23, 21, 0.09);
  --shadow-pill-edge: inset 0 0.5px 0 rgba(255, 255, 255, 0.22);

  /* Spacing */
  --max-w: 1200px;
  --nav-h: 56px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--canvas);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

::selection {
  background: rgba(36, 99, 235, 0.16);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout Containers & Surfaces
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.band {
  position: relative;
  border-top: 0.5px solid var(--hairline);
  padding: 88px 0 96px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.band--hero {
  border-top: 0;
  padding: 64px 0 88px;
}

.band--sunken {
  background: var(--sunken);
}

.band--dark {
  background: var(--dark-canvas);
  color: var(--dark-ink);
  border-top-color: var(--dark-hairline);
}

.band--dark ::selection {
  background: rgba(91, 141, 239, 0.28);
  color: var(--dark-ink);
}

/* ==========================================================================
   Sticky Numbered Chapter Navigation (BetterStage × Direction B)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(248, 247, 244, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 0.5px solid var(--hairline);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(24, 23, 21, 0.14);
}

.chapter-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--fill);
  border: 0.5px solid var(--hairline);
}

.chapter-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.chapter-nav__link:hover {
  color: var(--ink);
}

.chapter-nav__link.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(24, 23, 21, 0.08), 0 0 0 0.5px rgba(24, 23, 21, 0.06);
}

.chapter-nav__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--tertiary);
}

.chapter-nav__link.is-active .chapter-nav__num {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-spec {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Buttons & Tactile Instrument Keys
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #FAF9F6;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-pill-edge), 0 8px 20px -8px rgba(24, 23, 21, 0.38);
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

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

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary--sm {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  box-shadow: var(--shadow-pill-edge);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  border: 0.5px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(24, 23, 21, 0.05);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: rgba(24, 23, 21, 0.28);
  transform: translateY(-1px);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 23px;
  padding: 0 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink);
  border: 0.5px solid var(--line-strong);
  box-shadow: 0 1.5px 0 rgba(24, 23, 21, 0.14);
  line-height: 1;
}

.band--dark .kbd {
  background: var(--dark-surface);
  color: var(--dark-ink);
  border-color: var(--dark-line-strong);
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   Chapter Bar (BetterStage Index Strip × Monograph Eyebrow)
   ========================================================================== */

.chapter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 36px;
  border-bottom: 0.5px solid var(--hairline);
}

.band--dark .chapter-bar {
  border-bottom-color: var(--dark-hairline);
}

.chapter-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.band--dark .chapter-bar__left {
  color: var(--dark-muted);
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--fill-strong);
  color: var(--ink);
  border: 0.5px solid var(--hairline);
}

.band--dark .chapter-badge {
  background: var(--dark-fill-strong);
  color: var(--dark-ink);
  border-color: var(--dark-hairline);
}

.chapter-bar__title {
  font-weight: 600;
  color: var(--ink);
}

.band--dark .chapter-bar__title {
  color: var(--dark-ink);
}

.chapter-bar__shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--tertiary);
}

/* ==========================================================================
   Typography Scale
   ========================================================================== */

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 0 1px 2px rgba(24, 23, 21, 0.04);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 22px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.58;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.024em;
}

.section-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
}

.band--dark .section-lead {
  color: var(--dark-muted);
}

/* ==========================================================================
   Segmented Controls (Capture | Try it, Light | Dark, Zoom Tabs)
   ========================================================================== */

.segmented {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 9px;
  background: var(--fill);
  border: 0.5px solid var(--hairline);
  gap: 2px;
}

.band--dark .segmented,
.stage-dark .segmented {
  background: var(--dark-fill);
  border-color: var(--dark-hairline);
}

.segmented__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.band--dark .segmented__btn,
.stage-dark .segmented__btn {
  color: var(--dark-muted);
}

.segmented__btn:hover {
  color: var(--ink);
}

.band--dark .segmented__btn:hover,
.stage-dark .segmented__btn:hover {
  color: var(--dark-ink);
}

.segmented__btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(24, 23, 21, 0.10);
}

.band--dark .segmented__btn.is-active,
.stage-dark .segmented__btn.is-active {
  background: #34343A;
  color: var(--dark-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.segmented__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.band--dark .segmented__dot {
  background: var(--dark-accent);
}

/* ==========================================================================
   Chapter 1: Hero & Cinema-Wide macOS Horizon Stage
   ========================================================================== */

.hero-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-meta {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meta-sep {
  color: var(--tertiary);
}

/* Cinema-Wide Horizon Stage */
.horizon-stage {
  margin-top: 52px;
  border-radius: var(--r-xl);
  border: 0.5px solid var(--line-strong);
  background: var(--sunken);
  overflow: hidden;
  box-shadow: var(--shadow-window);
  transition: background 240ms ease, border-color 240ms ease;
}

.horizon-stage.stage-dark {
  background: #141417;
  border-color: var(--dark-line-strong);
  box-shadow: var(--shadow-window-dark);
}

.macos-menubar {
  height: 34px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 247, 244, 0.88);
  border-bottom: 0.5px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink);
  user-select: none;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.stage-dark .macos-menubar {
  background: rgba(24, 24, 28, 0.90);
  border-bottom-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menubar-muted {
  color: var(--muted);
}

.stage-dark .menubar-muted {
  color: var(--dark-muted);
}

.menubar-freefocus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--fill);
  font-weight: 550;
  font-size: 12px;
}

.stage-dark .menubar-freefocus {
  background: var(--dark-fill);
}

.menubar-ring {
  width: 13px;
  height: 13px;
}

.horizon-canvas {
  position: relative;
  padding: 40px 32px 36px;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 99, 235, 0.055), transparent 58%),
    linear-gradient(180deg, rgba(240, 238, 233, 0.65) 0%, rgba(248, 247, 244, 0.92) 100%);
  transition: background 240ms ease;
}

.stage-dark .horizon-canvas {
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 141, 239, 0.11), transparent 55%),
    linear-gradient(180deg, #17171B 0%, #111114 100%);
}

/* Subtle architectural coordinate grid inside horizon canvas */
.horizon-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(24, 23, 21, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 23, 21, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.stage-dark .horizon-canvas::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Direction B Sculptural Triptych of REAL Captures */
.hero-triptych {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.hero-flank {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-flank--left {
  align-items: flex-end;
}

.hero-flank--right {
  align-items: flex-start;
}

.capture-plate {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-window);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.stage-dark .capture-plate {
  box-shadow: var(--shadow-window-dark);
}

.capture-plate--center {
  width: 344px;
  max-width: 100%;
  z-index: 3;
}

.capture-plate--flank-break {
  width: 248px;
  opacity: 0.94;
  transform: translateY(-10px);
}

.capture-plate--flank-break:hover {
  opacity: 1;
  transform: translateY(-14px);
}

.capture-plate--mini {
  width: 320px;
  max-width: 100%;
  border-radius: var(--r-pill);
  box-shadow: 0 22px 48px -14px rgba(24, 23, 21, 0.28);
}

.stage-dark .capture-plate--mini {
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.78);
}

.plate-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  border: 0.5px solid var(--hairline);
  backdrop-filter: blur(8px);
}

.stage-dark .plate-caption {
  background: rgba(34, 34, 38, 0.86);
  color: var(--dark-muted);
  border-color: var(--dark-hairline);
}

.plate-caption--sage {
  background: var(--sage-fill);
  color: var(--sage-text);
  border-color: rgba(61, 107, 94, 0.22);
}

.stage-dark .plate-caption--sage {
  background: var(--dark-sage-fill);
  color: var(--dark-sage);
  border-color: rgba(111, 168, 152, 0.28);
}

.plate-caption__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Stage Footer Toolbar (BetterStage Capture | Try it bar) */
.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border-top: 0.5px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
}

.stage-dark .stage-toolbar,
.band--dark .stage-toolbar {
  background: #1B1B1F;
  border-top-color: var(--dark-hairline);
  color: var(--dark-muted);
}

.stage-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   4-Column Fact Strip (BetterStage Rhythm × Dieter Rams Hairlines)
   ========================================================================== */

.fact-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
}

.fact-cell {
  padding: 26px 24px 26px 0;
  border-right: 0.5px solid var(--hairline);
}

.fact-cell:not(:first-child) {
  padding-left: 24px;
}

.fact-cell:last-child {
  border-right: 0;
  padding-right: 0;
}

.fact-cell__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.fact-cell__num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.fact-cell__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.fact-cell__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================================
   Interactive Hero Popover Playground (Try it mode)
   ========================================================================== */

.live-popover {
  position: relative;
  z-index: 3;
  width: 360px;
  max-width: 100%;
  border-radius: var(--r-xl);
  background: var(--canvas);
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  color: var(--ink);
  transition: background 200ms ease, color 200ms ease;
}

.stage-dark .live-popover {
  background: #1E1E22;
  border-color: var(--dark-line-strong);
  color: var(--dark-ink);
  box-shadow: var(--shadow-window-dark);
}

.live-popover__top {
  padding: 12px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 550;
}

.traffic-lights {
  display: inline-flex;
  gap: 6px;
  margin-right: 10px;
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tl--red { background: #FF5F57; }
.tl--yellow { background: #FEBC2E; }

.live-popover__hero {
  padding: 12px 18px 18px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 0.5px solid var(--hairline);
}

.stage-dark .live-popover__hero {
  border-bottom-color: var(--dark-hairline);
}

.dial-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-svg {
  width: 118px;
  height: 118px;
  transform: rotate(-90deg);
}

.dial-track {
  fill: none;
  stroke: rgba(24, 23, 21, 0.09);
  stroke-width: 3;
}

.stage-dark .dial-track {
  stroke: rgba(255, 251, 245, 0.12);
}

.dial-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 320ms ease, stroke 240ms ease;
}

.live-popover.is-break .dial-progress {
  stroke: var(--sage);
}

.stage-dark .live-popover.is-break .dial-progress {
  stroke: var(--dark-sage);
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dial-time {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.dial-status {
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-dark .dial-status {
  color: var(--dark-muted);
}

.live-popover.is-break .dial-status {
  color: var(--sage);
}

.stage-dark .live-popover.is-break .dial-status {
  color: var(--dark-sage);
}

.cycle-dots {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.cycle-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(24, 23, 21, 0.16);
}

.stage-dark .cycle-dot {
  background: rgba(255, 255, 255, 0.2);
}

.cycle-dot.is-done {
  background: var(--ink);
}

.stage-dark .cycle-dot.is-done {
  background: var(--dark-ink);
}

.live-task-meta {
  min-width: 0;
}

.live-task-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-task-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.stage-dark .live-task-sub {
  color: var(--dark-muted);
}

.live-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.play-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #FAF9F6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(24, 23, 21, 0.45);
  transition: transform 120ms ease, opacity 120ms ease;
}

.stage-dark .play-disc {
  background: var(--dark-ink);
  color: var(--dark-canvas);
}

.play-disc:hover { transform: scale(1.04); }
.play-disc:active { transform: scale(0.96); }

.inst-key {
  height: 30px;
  min-width: 32px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--fill);
  border: 0.5px solid var(--hairline);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease;
}

.stage-dark .inst-key {
  background: var(--dark-fill);
  border-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.inst-key:hover {
  background: var(--fill-strong);
}

.stage-dark .inst-key:hover {
  background: var(--dark-fill-strong);
}

.live-queue {
  padding: 12px 14px 14px;
}

.live-queue__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.live-queue__toast {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  min-height: 16px;
}

.stage-dark .live-queue__toast {
  color: var(--dark-accent);
}

.live-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 120ms ease;
}

.live-row:hover {
  background: var(--fill);
}

.stage-dark .live-row:hover {
  background: var(--dark-fill);
}

.live-row.is-active {
  background: var(--fill);
}

.stage-dark .live-row.is-active {
  background: var(--dark-fill);
}

.live-row.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}

.stage-dark .live-row.is-active::before {
  background: var(--dark-accent);
}

.live-row.is-done {
  opacity: 0.48;
}

.live-row.is-done .live-row__title {
  text-decoration: line-through;
}

.check-ring {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(24, 23, 21, 0.34);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease;
}

.stage-dark .check-ring {
  border-color: rgba(255, 255, 255, 0.36);
}

.check-ring--p1 {
  border-width: 2.5px;
  border-color: var(--priority-ring);
  background: rgba(30, 64, 175, 0.12);
}

.check-ring--p2 {
  border-width: 2px;
  border-color: var(--priority-ring);
}

.live-row.is-done .check-ring {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.live-row__main {
  flex: 1;
  min-width: 0;
}

.live-row__title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-row__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.stage-dark .live-row__meta {
  color: var(--dark-muted);
}

.live-row__time {
  font-size: 11.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.live-popover__foot {
  padding: 10px 16px;
  border-top: 0.5px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.stage-dark .live-popover__foot {
  border-top-color: var(--dark-hairline);
  color: var(--dark-muted);
}

.live-try-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(260px, 340px);
  gap: 36px;
  align-items: center;
  max-width: 780px;
}

.try-guide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.try-guide__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage-dark .try-guide__eyebrow {
  color: var(--dark-accent);
}

.try-guide__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.try-guide__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.stage-dark .try-guide__list {
  color: var(--dark-muted);
}

.try-guide__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ==========================================================================
   Feature Split Layouts & Studio Frames
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}

.split--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.feature-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 0.5px solid var(--hairline);
}

.band--dark .feature-points {
  border-top-color: var(--dark-hairline);
}

.feature-points li {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--hairline);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.band--dark .feature-points li {
  border-bottom-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.feature-points strong {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.feature-points span {
  color: var(--muted);
  font-size: 13.5px;
}

.band--dark .feature-points span {
  color: var(--dark-muted);
}

/* Studio Showcase Frame */
.studio-frame {
  border-radius: var(--r-xl);
  border: 0.5px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.band--dark .studio-frame {
  background: #1B1B1F;
  border-color: var(--dark-line-strong);
  box-shadow: var(--shadow-window-dark);
}

.studio-frame__viewport {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(240, 238, 233, 0.55), rgba(248, 247, 244, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.studio-frame.stage-dark .studio-frame__viewport,
.band--dark .studio-frame__viewport {
  background: linear-gradient(180deg, #17171B, #121215);
}

.studio-img {
  border-radius: 14px;
  box-shadow: var(--shadow-window);
  max-height: 540px;
  width: auto;
  object-fit: contain;
}

.studio-frame.stage-dark .studio-img,
.band--dark .studio-img {
  box-shadow: var(--shadow-window-dark);
}

/* Source badges strip */
.source-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.source-chip {
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-chip__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.source-chip__logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.source-chip__sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   Chapter 3: Workspaces (Split Popover + Calendar / 6-Column Table)
   ========================================================================== */

.workspace-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.split-app-pair {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-window);
  max-height: 540px;
  background: var(--canvas);
}

.stage-dark .split-app-pair {
  background: #1C1C20;
  box-shadow: var(--shadow-window-dark);
}

.split-app-pair img {
  height: 520px;
  width: auto;
  object-fit: cover;
  object-position: top;
}

.split-app-pair__divider {
  width: 1px;
  background: var(--hairline);
  flex-shrink: 0;
}

/* Interactive Calendar Planner Demo */
.demo-panel {
  width: 100%;
  border-radius: 14px;
  background: var(--surface);
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  color: var(--ink);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.stage-dark .demo-panel {
  background: #1E1E22;
  border-color: var(--dark-line-strong);
  color: var(--dark-ink);
  box-shadow: var(--shadow-window-dark);
}

.demo-planner {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 410px;
}

.demo-planner__left {
  padding: 16px;
  border-right: 0.5px solid var(--hairline);
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-dark .demo-planner__left {
  background: #17171B;
  border-right-color: var(--dark-hairline);
}

.demo-planner__right {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-planner__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--hairline);
  font-size: 12.5px;
}

.stage-dark .demo-planner__hdr {
  border-bottom-color: var(--dark-hairline);
}

.free-pill {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--sage-fill);
  color: var(--sage-text);
  font-size: 11.5px;
  font-weight: 550;
}

.stage-dark .free-pill {
  background: var(--dark-sage-fill);
  color: var(--dark-sage);
}

.planner-task-btn {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 140ms ease, background 140ms ease;
}

.stage-dark .planner-task-btn {
  background: var(--dark-surface);
  border-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.planner-task-btn:hover {
  border-color: var(--accent);
}

.stage-dark .planner-task-btn:hover {
  border-color: var(--dark-accent);
}

.planner-task-btn.is-scheduled {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.stage-dark .planner-task-btn.is-scheduled {
  border-color: var(--dark-accent);
  background: var(--dark-accent-soft);
}

.timeline-slot {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 0.5px solid var(--hairline);
  padding: 4px 0;
}

.stage-dark .timeline-slot {
  border-bottom-color: var(--dark-hairline);
}

.timeline-hour {
  font-size: 11px;
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
}

.stage-dark .timeline-hour {
  color: var(--dark-tertiary);
}

.cal-block {
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cal-block--event {
  background: rgba(36, 99, 235, 0.08);
  border-left: 2.5px solid rgba(36, 99, 235, 0.45);
  color: var(--ink);
}

.stage-dark .cal-block--event {
  background: rgba(91, 141, 239, 0.14);
  border-left-color: var(--dark-accent);
  color: var(--dark-ink);
}

.cal-block--task {
  background: var(--surface);
  border: 1px solid var(--ink);
  font-weight: 550;
}

.stage-dark .cal-block--task {
  background: #27272C;
  border-color: rgba(243, 241, 236, 0.65);
  color: var(--dark-ink);
}

.cal-block--empty {
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.stage-dark .cal-block--empty {
  border-color: var(--dark-line-strong);
  color: var(--dark-muted);
}

.cal-block--empty:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.stage-dark .cal-block--empty:hover {
  border-color: var(--dark-accent);
  color: var(--dark-accent);
  background: var(--dark-accent-soft);
}

.slot-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-chip-btn {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--fill);
  border: 0.5px solid var(--hairline);
  font-size: 11px;
  font-weight: 550;
  color: var(--ink);
}

.stage-dark .mini-chip-btn {
  background: var(--dark-fill);
  border-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.mini-chip-btn:hover {
  background: var(--fill-strong);
}

.stage-dark .mini-chip-btn:hover {
  background: var(--dark-fill-strong);
}

/* Interactive Task Table Demo */
.demo-table-bar {
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--canvas);
}

.stage-dark .demo-table-bar {
  background: #17171B;
  border-bottom-color: var(--dark-hairline);
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.demo-table th {
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 0.5px solid var(--hairline);
  cursor: pointer;
  user-select: none;
}

.stage-dark .demo-table th {
  color: var(--dark-muted);
  border-bottom-color: var(--dark-hairline);
}

.demo-table th:hover {
  color: var(--ink);
}

.stage-dark .demo-table th:hover {
  color: var(--dark-ink);
}

.demo-table td {
  padding: 9px 12px;
  border-bottom: 0.5px solid var(--hairline);
  vertical-align: middle;
}

.stage-dark .demo-table td {
  border-bottom-color: var(--dark-hairline);
}

.demo-table tr:hover td {
  background: rgba(24, 23, 21, 0.02);
}

.stage-dark .demo-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.demo-add-row {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--canvas);
}

.stage-dark .demo-add-row {
  background: #17171B;
}

.demo-input {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 0.5px solid var(--line-strong);
  background: var(--surface);
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
}

.stage-dark .demo-input {
  background: var(--dark-surface);
  border-color: var(--dark-line-strong);
  color: var(--dark-ink);
}

.demo-input--grow {
  flex: 1;
  min-width: 150px;
}

.demo-input--date {
  width: 120px;
}

.date-preview {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 500;
}

.stage-dark .date-preview {
  color: var(--dark-accent);
}

.done-today-bar {
  padding: 8px 14px;
  border-top: 0.5px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-dark .done-today-bar {
  border-top-color: var(--dark-hairline);
  color: var(--dark-muted);
}

.popover-add-form {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.popover-add-input {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 0.5px solid var(--hairline);
  background: var(--fill);
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
}

.stage-dark .popover-add-input {
  background: var(--dark-fill);
  border-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.scope-pill-bar {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}

.stage-dark .scope-pill-bar {
  border-bottom-color: var(--dark-hairline);
  color: var(--dark-muted);
}

.scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--fill);
  border: 0.5px solid var(--hairline);
  font-size: 11.5px;
  color: var(--muted);
  transition: all 120ms ease;
}

.stage-dark .scope-toggle {
  background: var(--dark-fill);
  border-color: var(--dark-hairline);
  color: var(--dark-muted);
}

.scope-toggle.is-on {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--accent);
}

.stage-dark .scope-toggle.is-on {
  background: #2C2C32;
  color: var(--dark-ink);
  border-color: var(--dark-accent);
}

/* ==========================================================================
   Chapter 4: Dark Atelier — Mini HUD Snap, Vision Auto-Pause, Desktop Widgets
   ========================================================================== */

.snap-stage {
  position: relative;
  width: 100%;
  min-height: 290px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(91, 141, 239, 0.12), transparent 65%),
    #111114;
  border: 0.5px solid var(--dark-hairline);
  overflow: hidden;
  padding: 20px;
}

.snap-anchors {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  pointer-events: none;
}

.snap-anchor {
  pointer-events: auto;
  display: flex;
  padding: 8px;
}

.snap-anchor[data-pos="tl"] { align-items: flex-start; justify-content: flex-start; }
.snap-anchor[data-pos="tc"] { align-items: flex-start; justify-content: center; }
.snap-anchor[data-pos="tr"] { align-items: flex-start; justify-content: flex-end; }
.snap-anchor[data-pos="bl"] { align-items: flex-end; justify-content: flex-start; }
.snap-anchor[data-pos="bc"] { align-items: flex-end; justify-content: center; }
.snap-anchor[data-pos="br"] { align-items: flex-end; justify-content: flex-end; }

.snap-dot-btn {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  color: var(--dark-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px dashed rgba(255, 255, 255, 0.16);
  transition: all 140ms ease;
}

.snap-dot-btn:hover,
.snap-dot-btn.is-active {
  color: var(--dark-ink);
  border-style: solid;
  border-color: var(--dark-accent);
  background: var(--dark-accent-soft);
}

.floating-mini-hud {
  position: absolute;
  width: 344px;
  max-width: calc(100% - 32px);
  height: 60px;
  padding: 0 12px 0 14px;
  border-radius: 30px;
  background: rgba(34, 34, 38, 0.92);
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-ink);
  transition: top 380ms cubic-bezier(0.22, 1, 0.36, 1), left 380ms cubic-bezier(0.22, 1, 0.36, 1), transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 4;
}

.floating-mini-hud[data-pos="tl"] { top: 20px; left: 20px; transform: translate(0, 0); }
.floating-mini-hud[data-pos="tc"] { top: 20px; left: 50%; transform: translate(-50%, 0); }
.floating-mini-hud[data-pos="tr"] { top: 20px; left: calc(100% - 20px); transform: translate(-100%, 0); }
.floating-mini-hud[data-pos="bl"] { top: calc(100% - 80px); left: 20px; transform: translate(0, 0); }
.floating-mini-hud[data-pos="bc"] { top: calc(100% - 80px); left: 50%; transform: translate(-50%, 0); }
.floating-mini-hud[data-pos="br"] { top: calc(100% - 80px); left: calc(100% - 20px); transform: translate(-100%, 0); }
.floating-mini-hud[data-pos="center"] { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.mini-hud__time {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.mini-hud__task {
  font-size: 11px;
  color: var(--dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 116px;
}

.mini-hud__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-hud__key {
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  color: var(--dark-ink);
}

.mini-hud__key:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mini-hud__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-ink);
  color: var(--dark-canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dark Atelier Lower 2-Column Grid */
.atelier-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.atelier-card {
  border-radius: var(--r-xl);
  background: #1B1B1F;
  border: 0.5px solid var(--dark-hairline);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.atelier-card__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.atelier-card__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--dark-muted);
}

.vision-sim {
  padding: 18px;
  border-radius: 14px;
  background: #131316;
  border: 0.5px solid var(--dark-hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vision-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vision-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 550;
}

.vision-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark-sage);
  box-shadow: 0 0 0 4px rgba(111, 168, 152, 0.16);
}

.vision-sim.is-away .vision-dot {
  background: #F2B465;
  box-shadow: 0 0 0 4px rgba(242, 180, 101, 0.18);
}

.vision-sim.is-paused .vision-dot {
  background: var(--dark-accent);
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.18);
}

.vision-log {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dark-muted);
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--dark-hairline);
}

.privacy-seal {
  font-size: 12px;
  color: var(--dark-muted);
  padding-top: 12px;
  border-top: 0.5px solid var(--dark-hairline);
}

/* Native macOS Desktop Widgets (Faithful to Tokens.Widget) */
.widgets-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.mac-widget {
  border-radius: var(--r-widget);
  background: rgba(34, 34, 38, 0.88);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.7), inset 0 0.5px 0 rgba(255, 255, 255, 0.14);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mac-widget--small {
  width: 170px;
  height: 170px;
}

.mac-widget--medium {
  flex: 1;
  min-width: 240px;
  height: 170px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
}

.widget-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dark-accent);
}

.widget-ring-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-ring-wrap--md {
  width: 106px;
  height: 106px;
}

.widget-time {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 300;
  color: var(--dark-ink);
}

.widget-time--md {
  font-size: 24px;
}

.widget-task {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-total {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.1;
  margin: 4px 0 10px;
}

.widget-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
}

.widget-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 3px;
}

.widget-bar {
  width: 100%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.widget-bar--today {
  background: var(--dark-ink);
}

.widget-stats {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  font-size: 10.5px;
  color: var(--dark-muted);
}

.widget-stats strong {
  color: var(--dark-ink);
  font-weight: 600;
  margin-right: 3px;
}

/* ==========================================================================
   Chapter 5: Interactive Report Demo
   ========================================================================== */

.demo-report {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  background: var(--canvas);
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-window);
  padding: 20px;
  color: var(--ink);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.stage-dark .demo-report {
  background: #1E1E22;
  border-color: var(--dark-line-strong);
  color: var(--dark-ink);
  box-shadow: var(--shadow-window-dark);
}

.demo-report__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.demo-report__total {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.demo-report__sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.stage-dark .demo-report__sub {
  color: var(--dark-muted);
}

.report-bars {
  margin: 22px 0 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  height: 124px;
  align-items: end;
}

.report-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.report-bar-fill {
  width: 100%;
  border-radius: 6px;
  background: rgba(24, 23, 21, 0.14);
  transition: background 140ms ease, height 220ms ease;
}

.stage-dark .report-bar-fill {
  background: rgba(255, 255, 255, 0.16);
}

.report-bar-btn:hover .report-bar-fill {
  background: rgba(24, 23, 21, 0.28);
}

.stage-dark .report-bar-btn:hover .report-bar-fill {
  background: rgba(255, 255, 255, 0.30);
}

.report-bar-btn.is-selected .report-bar-fill {
  background: var(--accent);
}

.stage-dark .report-bar-btn.is-selected .report-bar-fill {
  background: var(--dark-accent);
}

.report-bar-lbl {
  font-size: 11px;
  color: var(--muted);
}

.stage-dark .report-bar-lbl {
  color: var(--dark-muted);
}

.report-bar-btn.is-selected .report-bar-lbl {
  color: var(--accent);
  font-weight: 600;
}

.stage-dark .report-bar-btn.is-selected .report-bar-lbl {
  color: var(--dark-accent);
}

.share-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.share-row {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  display: grid;
  grid-template-columns: 110px 1fr 56px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink);
  text-align: left;
  transition: border-color 140ms ease, opacity 140ms ease;
}

.stage-dark .share-row {
  background: var(--dark-surface);
  border-color: var(--dark-hairline);
  color: var(--dark-ink);
}

.share-row:hover {
  border-color: var(--accent);
}

.stage-dark .share-row:hover {
  border-color: var(--dark-accent);
}

.share-row.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.stage-dark .share-row.is-selected {
  border-color: var(--dark-accent);
  background: var(--dark-accent-soft);
}

.share-row.is-dimmed {
  opacity: 0.45;
}

.share-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(24, 23, 21, 0.07);
  overflow: hidden;
}

.stage-dark .share-track {
  background: rgba(255, 255, 255, 0.09);
}

.share-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
  transition: width 260ms ease, background 160ms ease;
}

.stage-dark .share-fill {
  background: var(--dark-ink);
}

.share-row.is-selected .share-fill {
  background: var(--accent);
}

.stage-dark .share-row.is-selected .share-fill {
  background: var(--dark-accent);
}

/* ==========================================================================
   Chapter 6: Keyboard & macOS Automation Ledger (BetterStage Controls)
   ========================================================================== */

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
}

.shortcut-group {
  padding: 24px;
  border-right: 0.5px solid var(--hairline);
}

.shortcut-group:first-child { padding-left: 0; }
.shortcut-group:last-child { border-right: 0; padding-right: 0; }

.shortcut-group__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shortcut-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  font-size: 13.5px;
  text-align: left;
  transition: background 120ms ease;
}

.shortcut-row:hover {
  background: var(--fill);
}

.shortcut-row__keys {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.automation-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.auto-card {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
}

.auto-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.auto-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.url-copy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.url-copy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--canvas);
  border: 0.5px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  transition: border-color 140ms ease;
}

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

.url-copy-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   Chapter 7: Privacy Datasheet, Comparison Table & FAQ Accordion
   ========================================================================== */

.spec-sheet {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 0.5px solid var(--line-strong);
  border-bottom: 0.5px solid var(--line-strong);
}

.spec-cell {
  padding: 26px 18px;
  border-right: 0.5px solid var(--hairline);
}

.spec-cell:first-child { padding-left: 0; }
.spec-cell:last-child { border-right: 0; padding-right: 0; }

.spec-cell__val {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.spec-cell__desc {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--muted);
}

/* Comparison Table */
.compare-wrap {
  margin-top: 56px;
  border-radius: var(--r-lg);
  border: 0.5px solid var(--hairline);
  background: var(--surface);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 0.5px solid var(--hairline);
}

.compare-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--canvas);
}

.compare-table thead th.col-ff {
  color: var(--ink);
}

.compare-table td.col-ff {
  font-weight: 600;
  color: var(--ink);
  background: rgba(36, 99, 235, 0.035);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.mark-yes { color: var(--accent); font-weight: 700; }
.mark-no { color: var(--tertiary); }

/* FAQ Accordion */
.faq-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  border-top: 0.5px solid var(--hairline);
}

.faq-item {
  border-bottom: 0.5px solid var(--hairline);
}

.faq-trigger {
  width: 100%;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 550;
  text-align: left;
  color: var(--ink);
}

.faq-plus {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-panel {
  display: none;
  padding: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* ==========================================================================
   Closing CTA & Architectural Footer
   ========================================================================== */

.closing-cta {
  text-align: center;
  padding: 96px 0 88px;
  border-top: 0.5px solid var(--hairline);
}

.closing-cta__title {
  margin: 0 0 26px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.site-footer {
  border-top: 0.5px solid var(--hairline);
  padding: 36px 0 44px;
  background: var(--canvas);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--hairline);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-disclaimer {
  margin: 20px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--tertiary);
}

/* ==========================================================================
   Download Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 23, 21, 0.45);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  border-radius: var(--r-xl);
  background: var(--canvas);
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-window);
  padding: 28px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--fill-strong);
  color: var(--ink);
}

/* ==========================================================================
   Utilities & Reveal Animation
   ========================================================================== */

[hidden] {
  display: none !important;
}

.fade-in {
  animation: fadeSlide 240ms ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

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

  .hero-triptych {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .capture-plate--center {
    order: -1;
  }

  .hero-flank--left,
  .hero-flank--right {
    align-items: center;
  }

  .capture-plate--flank-break {
    transform: none;
  }

  .split,
  .split--reverse,
  .split--equal,
  .atelier-grid,
  .shortcut-grid,
  .automation-strip,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-cell:nth-child(2n) {
    border-right: 0;
  }

  .fact-cell:nth-child(n+3) {
    border-top: 0.5px solid var(--hairline);
    padding-left: 0;
  }

  .fact-cell:nth-child(4) {
    padding-left: 24px;
  }

  .spec-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-cell:nth-child(2n) {
    border-right: 0;
  }

  .spec-cell {
    border-bottom: 0.5px solid var(--hairline);
    padding: 20px 14px;
  }

  .shortcut-group {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 0.5px solid var(--hairline);
  }

  .shortcut-group:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .band {
    padding: 64px 0 72px;
  }

  .band--hero {
    padding: 40px 0 64px;
  }

  .header-spec {
    display: none;
  }

  .horizon-canvas {
    padding: 24px 16px;
    min-height: 0;
  }

  .live-try-layout,
  .demo-planner {
    grid-template-columns: 1fr;
  }

  .demo-planner__left {
    border-right: 0;
    border-bottom: 0.5px solid var(--hairline);
  }

  .source-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-app-pair {
    flex-direction: column;
    max-height: none;
  }

  .split-app-pair img {
    height: auto;
    width: 100%;
  }

  .fact-strip,
  .spec-sheet {
    grid-template-columns: 1fr;
  }

  .fact-cell,
  .fact-cell:not(:first-child),
  .spec-cell {
    border-right: 0;
    padding: 18px 0;
    border-bottom: 0.5px solid var(--hairline);
  }

  .fact-cell:last-child,
  .spec-cell:last-child {
    border-bottom: 0;
  }

  .mac-widget--medium {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chapter-bar__shortcut {
    display: none;
  }

  .menubar-muted {
    display: none;
  }
}
