/* ============================================
   StatusBar — "Mission control in daylight"
   Light macOS ground · IBM Plex Mono data voice ·
   uptime-tick signature · severity palette from the app
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Ground & surfaces (light-first) */
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --line: rgba(27, 29, 34, 0.10);
  --line-strong: rgba(27, 29, 34, 0.16);

  /* Ink */
  --text-primary: #1B1D22;
  --text-secondary: #5A6373;
  --text-tertiary: #8C94A3;

  /* Brand green (CTA/links) + status palette (from the app) */
  --accent: #0A7C3F;
  --accent-hover: #086632;
  --status-green: #34C759;
  --status-yellow: #FFD60A;
  --status-orange: #FF9F0A;
  --status-red: #FF3B30;

  /* Legacy aliases used by widget styles */
  --glass-bg: var(--surface);
  --glass-border: var(--line);
  --glass-blur: 0px;
  --glass-hover: rgba(27, 29, 34, 0.03);
  --code-bg: #EEF0F4;
  --copy-btn-bg: #E2E5EB;
  --hero-shadow: rgba(20, 25, 40, 0.16);

  /* Shadows */
  --shadow-shot: 0 24px 60px -24px rgba(20, 25, 40, 0.35), 0 0 0 0.5px var(--line);
  --shadow-card: 0 1px 2px rgba(20, 25, 40, 0.04);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', SFMono-Regular, ui-monospace, Menlo,
    Monaco, 'Cascadia Mono', monospace;

  /* Radii */
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-small: 6px;

  /* Timing */
  --timing-hover: 0.12s;
  --timing-transition: 0.15s;
  --timing-expand: 0.2s;

  /* Layout */
  --max-width: 1020px;
  --nav-height: 60px;
  --section-gap: 96px;
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1B1D21;
    --line: rgba(236, 238, 242, 0.10);
    --line-strong: rgba(236, 238, 242, 0.18);
    --text-primary: #ECEEF2;
    --text-secondary: #A3ACBB;
    --text-tertiary: #6E7684;
    --accent: #3DBE6C;
    --accent-hover: #55D084;
    --glass-hover: rgba(236, 238, 242, 0.04);
    --code-bg: #202329;
    --copy-btn-bg: #2A2E36;
    --hero-shadow: rgba(0, 0, 0, 0.5);
    --shadow-shot: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 0.5px var(--line);
    --shadow-card: none;
  }
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--timing-hover) ease-out;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h3 { font-size: 1.125rem; margin-bottom: 8px; }

code, pre, kbd {
  font-family: var(--font-mono);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-gap) 0;
}

/* Section eyebrow: mono, tick-prefixed */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 10px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    to right,
    var(--status-green) 0 3px,
    transparent 3px 7px
  );
  border-radius: 1px;
}

/* --- Cards (formerly glass) --- */
.glass-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: background var(--timing-hover) ease-out;
}

.status-item:hover,
.step:hover {
  background: var(--glass-hover);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--line);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--timing-hover) ease-out;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-button);
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    background: var(--bg);
    border-bottom: 0.5px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 84px);
  padding-bottom: 64px;
  text-align: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 0.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: pulse 3s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.45); }
  60% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
}

/* --- Uptime tick strip (signature) --- */
.tick-strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 34px;
  margin: 44px auto 10px;
  max-width: 640px;
  padding: 0 24px;
}

.tick {
  width: 5px;
  height: 22px;
  border-radius: 2px;
  background: var(--status-green);
  opacity: 0.85;
}

.tick.amber { background: var(--status-yellow); height: 30px; opacity: 1; }
.tick.orange { background: var(--status-orange); height: 30px; opacity: 1; }
.tick.red { background: var(--status-red); height: 30px; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .tick {
    animation: tick-in 0.5s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 14ms);
  }
}

@keyframes tick-in {
  from { transform: scaleY(0.2); opacity: 0; }
  to { opacity: 0.85; }
}

.tick-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-bottom: 40px;
}

.tick-caption .cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--status-yellow);
}

/* Hero screenshot */
.hero-shot {
  max-width: 380px;
  margin: 0 auto;
}

.hero-shot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-shot);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--timing-hover) ease-out,
              transform var(--timing-hover) ease-out;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 0.5px solid var(--line-strong);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

/* --- Screenshot Showcase (Features) --- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.showcase-reverse .showcase-image {
  order: 2;
}

.showcase-reverse .showcase-text {
  order: 1;
}

.showcase-image {
  max-width: 380px;
  min-width: 0;
}

.showcase-reverse .showcase-image {
  justify-self: end;
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-shot);
}

.showcase-text h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.showcase-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Native integration image stack */
.native-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.native-icons {
  display: flex;
  gap: 24px;
  align-items: center;
}

.native-menubar-icon {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--hero-shadow);
}

.native-notification {
  max-width: min(380px, 100%);
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-shot);
}

@media (max-width: 768px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .showcase-reverse .showcase-image,
  .showcase-reverse .showcase-text {
    order: initial;
  }

  .showcase-image {
    max-width: 340px;
    margin: 0 auto;
  }

  .showcase-reverse .showcase-image {
    justify-self: center;
  }
}

/* --- Automate & Integrate --- */
.automate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.automate-card {
  padding: 24px;
}

.automate-card-wide {
  margin-top: 24px;
}

.automate-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.automate-card-header svg {
  color: var(--accent);
  flex-shrink: 0;
}

.automate-card-header h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.automate-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.automate-desc code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.8125rem;
  background: var(--code-bg);
  border-radius: 3px;
  padding: 1px 5px;
}

/* Webhook platform badges */
.webhook-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.webhook-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--code-bg);
  border: 0.5px solid var(--glass-border);
  color: var(--text-secondary);
}

/* URL examples (grid for wide card) */
.url-examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.url-example .code-block-wrapper {
  margin: 0;
}

.url-example .code-block-wrapper pre {
  padding: 8px 58px 8px 12px;
  font-size: 0.75rem;
}

/* Right-edge fade so scrolled code disappears cleanly behind the Copy button */
.url-example .code-block-wrapper::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 1px;
  width: 64px;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: linear-gradient(to right, transparent, var(--copy-btn-bg) 55%);
  pointer-events: none;
}

.url-example .copy-btn {
  z-index: 1;
  box-shadow: none;
}

.url-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding-left: 2px;
}

/* AppleScript card layout */
.applescript-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.applescript-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.applescript-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.applescript-examples {
  min-width: 0;
}

.applescript-examples .code-block-wrapper pre {
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Hook steps */
.hook-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.hook-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hook-step code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.8125rem;
  background: var(--code-bg);
  border-radius: 3px;
  padding: 1px 5px;
}

.hook-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Hook tables */
.hook-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 12px;
}

.hook-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--glass-border);
}

.hook-table td {
  padding: 5px 0;
  color: var(--text-secondary);
  border-bottom: 0.5px solid var(--glass-border);
}

.hook-table td:first-child {
  white-space: nowrap;
  padding-right: 16px;
}

.hook-table code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.75rem;
  background: var(--code-bg);
  border-radius: 3px;
  padding: 1px 5px;
}

.hook-table-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .automate-row {
    grid-template-columns: 1fr;
  }

  .url-examples-grid {
    grid-template-columns: 1fr;
  }

  .applescript-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Severity zones (legend on the tick signature) --- */
.severity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.severity-zone {
  min-width: 0;
}

.zone-ticks {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 26px;
  margin-bottom: 14px;
}

.zone-ticks span {
  flex: 1;
  max-width: 7px;
  height: 20px;
  border-radius: 2px;
}

.zone-ticks span:nth-child(odd) { height: 24px; }

.severity-zone.green .zone-ticks span { background: var(--status-green); }
.severity-zone.yellow .zone-ticks span { background: var(--status-yellow); }
.severity-zone.orange .zone-ticks span { background: var(--status-orange); }
.severity-zone.red .zone-ticks span { background: var(--status-red); }

.zone-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.zone-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .severity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* --- Get Started --- */
.steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.9375rem;
}

.gatekeeper-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--status-yellow);
}

/* --- Collapsible --- */
.collapsible {
  margin-top: 8px;
}

.collapsible-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
}

.collapsible-trigger svg {
  transition: transform var(--timing-expand) ease-in-out;
}

.collapsible-trigger.open svg {
  transform: rotate(90deg);
}

.collapsible-content {
  display: none;
  padding-top: 12px;
}

.collapsible-content.open {
  display: block;
}

.collapsible-note {
  margin-top: 12px;
}

/* --- Code Blocks --- */
.code-block-wrapper {
  position: relative;
  margin: 16px 0;
  max-width: 100%;
  min-width: 0;
}

/* Grid/flex items default to min-width:auto, letting long code lines widen
   the page — allow them to shrink so pre scrolls inside its card instead. */
.url-examples-grid > *,
.automate-row > *,
.applescript-layout > *,
.showcase > *,
.glass-card,
.url-example {
  min-width: 0;
}

.code-block-wrapper pre {
  background: var(--code-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-small);
  padding: 16px;
  overflow-x: auto;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco,
    'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  /* Opaque so code scrolled beneath never shows through, with a soft
     fade on the leading edge */
  background: var(--copy-btn-bg, #1e1e22);
  box-shadow: -10px 0 10px -6px var(--copy-btn-bg, #1e1e22);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: color var(--timing-hover) ease-out,
              background var(--timing-hover) ease-out;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

/* --- Documentation --- */
.doc-section {
  margin-top: 32px;
}

.doc-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.doc-screenshot {
  max-width: 240px;
}

.doc-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.doc-desc-hint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* --- Source Directory --- */
.source-directory {
  margin-top: 32px;
}

.source-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.source-search {
  flex: 1;
  padding: 8px 12px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--timing-hover) ease-out;
}

.source-search::placeholder {
  color: var(--text-tertiary);
}

.source-search:focus {
  border-color: var(--accent);
}

.source-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.source-list {
  max-height: 460px;
  overflow-y: auto;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.source-list::-webkit-scrollbar {
  width: 6px;
}

.source-list::-webkit-scrollbar-track {
  background: transparent;
}

.source-list::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.source-category {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: var(--code-bg);
  border-bottom: 0.5px solid var(--glass-border);
}



.source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-bottom: 0.5px solid var(--glass-border);
  transition: background var(--timing-hover) ease-out;
}

.source-item:last-child {
  border-bottom: none;
}

.source-item:hover {
  background: var(--glass-hover);
}

.source-item.selected {
  background: rgba(0, 122, 255, 0.06);
}

.source-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--timing-hover) ease-out,
              border-color var(--timing-hover) ease-out;
}

.source-check svg {
  display: none;
}

.source-item.selected .source-check {
  background: var(--accent);
  border-color: var(--accent);
}

.source-item.selected .source-check svg {
  display: block;
}

.source-item-name {
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-primary);
}

.source-item-url {
  flex: 1;
  min-width: 0;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-copy-btn {
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: color var(--timing-hover) ease-out,
              background var(--timing-hover) ease-out;
}

.source-copy-btn:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.source-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.source-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.source-select-all input[type="checkbox"] {
  display: none;
}

.source-select-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--timing-hover) ease-out,
              border-color var(--timing-hover) ease-out;
}

.source-select-check .check-icon,
.source-select-check .minus-icon {
  display: none;
}

.source-select-all.checked .source-select-check {
  background: var(--accent);
  border-color: var(--accent);
}

.source-select-all.checked .source-select-check .check-icon {
  display: block;
}

.source-select-all.indeterminate .source-select-check {
  background: var(--accent);
  border-color: var(--accent);
}

.source-select-all.indeterminate .source-select-check .minus-icon {
  display: block;
}

.source-export-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.source-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .source-item {
    flex-wrap: wrap;
  }

  .source-item-url {
    width: 100%;
    padding-left: 26px;
  }

  .source-copy-btn {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .doc-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doc-screenshot {
    max-width: 220px;
    margin: 0 auto;
  }

  .doc-content {
    text-align: left;
  }
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 0.5px solid var(--glass-border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-attr {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --- Responsive Utilities --- */
@media (max-width: 640px) {
  :root {
    --section-gap: 56px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
  }

}

/* --- FAQ Grid --- */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.status-card {
  padding: 20px;
}

.status-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.status-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.status-card a {
  color: var(--accent, #2f81f7);
}

@media (max-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* Reserve room for the floating Copy button so scrolled code never
   slides underneath it */
.code-block-wrapper pre {
  padding-right: 64px;
}

/* Reduced motion: no smooth scrolling or animated transforms */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero support note */
.hero-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.45));
}

/* --- Install section --- */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

.install-card {
  padding: 24px;
  min-width: 0;
}

.install-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.install-card .code-block-wrapper {
  margin: 12px 0 0;
}

.install-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

@media (max-width: 720px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Support band --- */
.support-band {
  margin-top: var(--section-gap);
  padding: 40px 32px;
  text-align: center;
}

.support-band h2 {
  margin-bottom: 10px;
}

.support-band p {
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
}

/* --- Docs page --- */
.page-head {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 20px;
}

.page-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.page-head p {
  color: var(--text-secondary);
  max-width: 560px;
}

.toc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.toc-chips a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 0.5px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color var(--timing-hover) ease-out, border-color var(--timing-hover) ease-out;
}

.toc-chips a:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

/* Cross-page doc chips (Docs ↔ CLI) */
.toc-chips .toc-chip-page {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.toc-chips .toc-chip-page[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: var(--accent);
}

/* Content tabs on doc pages */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-bar a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--timing-hover) ease-out, border-color var(--timing-hover) ease-out;
}

.tab-bar a:hover {
  color: var(--text-primary);
}

.tab-bar a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* With JS enabled only the active panel is shown; without JS the page
   degrades to all sections stacked with the tab bar as anchor links */
.tabs-js .tab-panel {
  display: none;
}

.tabs-js .tab-panel.active {
  display: block;
}

/* Docs page: tighter section rhythm */
.docs-page section {
  padding: 48px 0;
}

/* Section subhead */
.section-sub {
  color: var(--text-secondary);
  max-width: 540px;
  font-size: 0.95rem;
  margin-top: -6px;
}

/* ============ Live App Mocks (coded, not screenshots) ============ */
/* The app is rendered in its own dark theme in both site color schemes,
   exactly like a real dark-mode Mac screenshot would be. */

.app-mock {
  --m-bg: #1c1e22;
  --m-chrome: #24262b;
  --m-row: rgba(255, 255, 255, 0.04);
  --m-text: #ececf0;
  --m-text2: rgba(255, 255, 255, 0.55);
  --m-text3: rgba(255, 255, 255, 0.35);
  --m-line: rgba(255, 255, 255, 0.08);
  background: var(--m-bg);
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-shot);
  overflow: hidden;
  font-family: var(--font-sans);
  text-align: left;
}

.mock-popover {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* --- Mock header --- */
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 0.5px solid var(--m-line);
}

.mock-head-icon {
  font-size: 20px;
  line-height: 1;
}

.mock-head-text {
  flex: 1;
  min-width: 0;
}

.mock-head-title {
  color: var(--m-text);
  font-size: 0.82rem;
  font-weight: 600;
}

.mock-head-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--m-text2);
  margin-top: 1px;
}

.mock-agg {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  margin-top: 4px;
  height: 12px;
}

.mock-agg span {
  width: 4px;
  border-radius: 1.5px;
  height: 9px;
  background: var(--status-green);
  opacity: 0.85;
}

.mock-agg span.warn {
  height: 12px;
  background: var(--status-yellow);
  opacity: 1;
}

.mock-toolbar {
  display: flex;
  gap: 8px;
  color: var(--m-text3);
}

/* --- Mock rows --- */
.mock-rows {
  padding: 8px;
}

.mock-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
  color: var(--m-text3);
  font-size: 0.68rem;
  font-weight: 600;
}

.mock-group .mock-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--m-text2);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
}

.mock-row.indent { margin-left: 12px; }

.mock-row.warn-row {
  background: rgba(255, 214, 10, 0.07);
}

.mock-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: #fff;
}

.mock-dot.ok { background: rgba(52, 199, 89, 0.28); color: var(--status-green); }
.mock-dot.warn { background: rgba(255, 214, 10, 0.22); color: var(--status-yellow); }

.mock-row-text {
  flex: 1;
  min-width: 0;
}

.mock-row-name {
  color: var(--m-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

.mock-row-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--m-text2);
  white-space: nowrap;
}

.mock-row.warn-row .mock-row-status { color: rgba(255, 214, 10, 0.85); }

.mock-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--status-yellow);
  background: rgba(255, 214, 10, 0.15);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}

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

.mock-spark span {
  width: 3px;
  border-radius: 1.5px;
  height: 7px;
  background: var(--status-green);
  opacity: 0.85;
}

.mock-spark span.w { height: 10px; background: var(--status-yellow); opacity: 1; }
.mock-spark span.ph { background: rgba(255, 255, 255, 0.12); }

.mock-chev {
  color: var(--m-text3);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-top: 0.5px solid var(--m-line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--m-text3);
}

/* Spark tick entrance */
@media (prefers-reduced-motion: no-preference) {
  .mock-spark span,
  .mock-agg span {
    animation: tick-in 0.45s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 22ms);
  }

  .mock-row.warn-row .mock-dot,
  .mock-spark span.w {
    animation: amber-pulse 3s ease-in-out infinite;
  }
}

@keyframes amber-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

/* --- Detail mock --- */
.mock-detail {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.mock-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--m-text3);
  padding: 12px 14px 6px;
}

.mock-eyebrow.warn { color: var(--status-orange); }

.mock-incident {
  margin: 0 12px;
  border: 0.5px solid rgba(255, 214, 10, 0.3);
  background: rgba(255, 214, 10, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}

.mock-incident-title {
  color: var(--m-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.mock-incident-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.mock-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
}

.mock-tag.red { color: #ff6b61; background: rgba(255, 59, 48, 0.15); }
.mock-tag.green { color: var(--status-green); background: rgba(52, 199, 89, 0.15); }

.mock-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--m-text3);
}

.mock-components {
  margin: 8px 12px;
  border: 0.5px solid var(--m-line);
  border-radius: 10px;
  overflow: hidden;
}

.mock-comp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 0.5px solid var(--m-line);
}

.mock-comp:last-child { border-bottom: none; }

.mock-comp i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-comp i.g { background: var(--status-green); }
.mock-comp i.o { background: var(--status-orange); }

.mock-comp-name {
  flex: 1;
  color: var(--m-text);
  font-size: 0.72rem;
}

.mock-comp-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
}

.mock-comp-status.g { color: var(--status-green); }
.mock-comp-status.o { color: var(--status-orange); }

.mock-uptime {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 14px;
}

.mock-uptime .mock-eyebrow { padding: 0; flex: 1; }

.mock-up-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--status-green);
  background: rgba(52, 199, 89, 0.13);
  border-radius: 999px;
  padding: 2px 8px;
}

.mock-up-pill b { font-weight: 600; }
.mock-up-pill span { color: var(--m-text3); font-weight: 400; }

@media (prefers-reduced-motion: no-preference) {
  .mock-comp {
    animation: comp-in 0.5s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
}

@keyframes comp-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

/* --- Native integration mock --- */
.mock-native {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
}

.mock-menubar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1a1c20;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.5);
}

.mb-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 34px;
  justify-content: center;
}

/* Monochrome by default — like the app */
.mb-check { color: rgba(255, 255, 255, 0.88); }

.mb-alert {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
}

.mb-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
}

.mock-notification {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 100%);
  background: #26282e;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.mock-notification img {
  border-radius: 8px;
}

.mock-notif-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mock-notif-text strong {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-notif-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.mock-notif-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  align-self: flex-start;
}

/* The story loop: all clear → incident (symbol flips, count appears)
   → notification → recovered */
@media (prefers-reduced-motion: no-preference) {
  .mb-check { animation: mb-check-loop 9s ease-in-out infinite; }
  .mb-alert { animation: mb-alert-loop 9s ease-in-out infinite; }
  .mock-notification { animation: notif-loop 9s ease-in-out infinite; }
}

@keyframes mb-check-loop {
  0%, 30%, 92%, 100% { opacity: 1; }
  34%, 88% { opacity: 0; }
}

@keyframes mb-alert-loop {
  0%, 30%, 92%, 100% { opacity: 0; }
  34%, 88% { opacity: 1; }
}

@keyframes notif-loop {
  0%, 34% { opacity: 0; transform: translateY(-14px) scale(0.97); }
  40%, 80% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .mb-alert { opacity: 1; }
  .mb-check { opacity: 0; }
}

/* --- Desktop widget mock --- */
.mock-widgets {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 10px 0;
}

.widget {
  text-align: left;
  background: #1a1c21;
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  transition: transform var(--timing-hover) ease, box-shadow var(--timing-hover) ease;
}

.widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}

.widget-small {
  width: 172px;
  height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.w-ticks {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.w-ticks span {
  width: 4px;
  height: 10px;
  border-radius: 1.5px;
  background: var(--status-green);
  opacity: 0.85;
}

.w-small-state { position: relative; min-height: 44px; }

.w-clear,
.w-issue {
  position: absolute;
  inset: auto 0 0 0;
  font-family: var(--font-mono);
}

.w-clear {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.w-issue { opacity: 0; }

.w-issue b {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--status-yellow);
}

.w-issue i {
  font-style: normal;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.55);
}

.w-tick-flip { animation: none; }

.widget-medium {
  width: min(384px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 172px;
}

.w-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  transition: background var(--timing-hover) ease;
}

.w-row:hover { background: rgba(255, 255, 255, 0.05); }

.w-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  flex: none;
}

.w-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
}

.w-state {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.45);
}

.w-state.warn { color: var(--status-yellow); }

.w-state-pair {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  min-width: 42px;
}

.w-state-pair .w-state { margin-left: 0; }

.w-state-pair .w-state.warn {
  position: absolute;
  right: 0;
  opacity: 0;
}

/* Same 9s story loop as the menu bar mock: all clear → one issue → recovered.
   Text swaps use non-overlapping windows so the two labels never blend. */
@media (prefers-reduced-motion: no-preference) {
  .w-clear,
  .w-state-pair .w-state:not(.warn) { animation: w-out-loop 9s ease-in-out infinite; }
  .w-issue,
  .w-state-pair .w-state.warn { animation: w-in-loop 9s ease-in-out infinite; }
  .w-tick-flip { animation: w-tick-loop 9s ease-in-out infinite; }
  .w-dot-flip { animation: w-dot-loop 9s ease-in-out infinite; }
}

@keyframes w-out-loop {
  0%, 28% { opacity: 1; }
  32%, 90% { opacity: 0; }
  94%, 100% { opacity: 1; }
}

@keyframes w-in-loop {
  0%, 32% { opacity: 0; }
  36%, 86% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@keyframes w-tick-loop {
  0%, 30%, 92%, 100% { background: var(--status-green); height: 10px; opacity: 0.85; }
  34%, 88% { background: var(--status-yellow); height: 14px; opacity: 1; }
}

@keyframes w-dot-loop {
  0%, 30%, 92%, 100% { background: var(--status-green); }
  34%, 88% { background: var(--status-yellow); }
}

@media (prefers-reduced-motion: reduce) {
  .w-clear { opacity: 0; }
  .w-issue { opacity: 1; }
  .w-tick-flip { background: var(--status-yellow); height: 14px; opacity: 1; }
  .w-dot-flip { background: var(--status-yellow); }
  .w-state-pair .w-state:not(.warn) { opacity: 0; }
  .w-state-pair .w-state.warn { opacity: 1; }
}

/* --- Terminal mock: the CLI and status line --- */
.mock-terminal {
  width: min(440px, 100%);
  margin: 0 auto;
  background: #16181d;
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: left;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
}

.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.term-bar em {
  margin-left: auto;
  margin-right: auto;
  transform: translateX(-22px);
  font-style: normal;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.35);
}

.term-body {
  padding: 12px 14px 10px;
  color: rgba(255, 255, 255, 0.85);
}

.term-line {
  padding: 1.5px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--timing-hover) ease;
}

.term-line:hover { background: rgba(255, 255, 255, 0.04); }

.t-prompt { color: rgba(255, 255, 255, 0.4); }
.t-dim { color: rgba(255, 255, 255, 0.42); }
.t-ok { color: var(--status-green); }
.t-warn { color: var(--status-yellow); }

.t-name {
  display: inline-block;
  min-width: 12ch;
  color: rgba(255, 255, 255, 0.85);
}

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 0.95em;
  background: rgba(255, 255, 255, 0.7);
  vertical-align: text-bottom;
}

.term-tmux {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.055);
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.45);
}

.t-tmux-right { color: rgba(255, 255, 255, 0.55); }

@media (prefers-reduced-motion: no-preference) {
  .term-line {
    opacity: 0;
    animation: comp-in 0.3s ease forwards;
    animation-delay: calc(var(--i) * 0.28s);
  }
  .t-cursor { animation: term-blink 1.1s steps(1) infinite; }
}

@keyframes term-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* --- Mock interactivity: behaves like the app under the cursor --- */
.app-mock,
.mock-native {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.mock-row,
.mock-comp,
.mock-incident,
.mock-toolbar svg {
  transition: background 0.12s ease-out, border-color 0.12s ease-out,
    color 0.12s ease-out;
}

.mock-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mock-row.warn-row:hover {
  background: rgba(255, 214, 10, 0.11);
}

.mock-comp:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mock-incident:hover {
  border-color: rgba(255, 214, 10, 0.5);
}

.mock-toolbar svg:hover {
  color: var(--m-text);
}

.mock-foot span:last-child {
  transition: color 0.12s ease-out;
}

.mock-foot span:last-child:hover {
  color: var(--m-text2);
}
