/* ── Fautor Interactive Demo ─────────────────────────────── */

.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.demo-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* macOS Window */
.demo-window {
  width: 700px;
  max-width: 100%;
  background: #F2F0EA;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 48px 96px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.15);
  transform: scale(0.93) translateY(24px);
  transition: transform 280ms cubic-bezier(0.34,1.4,0.64,1);
  font-family: 'Inter', sans-serif;
}
.demo-overlay.open .demo-window {
  transform: scale(1) translateY(0);
}

/* Title bar */
.demo-titlebar {
  height: 42px;
  background: #E8E5DE;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}
.demo-dots {
  display: flex;
  gap: 7px;
}
.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.demo-dot--red   { background: #FF5F57; cursor: pointer; }
.demo-dot--yellow{ background: #FEBC2E; }
.demo-dot--green { background: #28C840; }
.demo-dot--red:hover { filter: brightness(0.85); }
.demo-titlebar__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
}

/* Screen container */
.demo-body {
  position: relative;
  height: 490px;
  overflow: hidden;
}

/* Screens */
.demo-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.demo-screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ── App home header ─── */
.app-header {
  padding: 18px 22px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.app-header__brand {
  display: flex;
  flex-direction: column;
}
.app-header__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.app-header__title span { color: #C9A020; }
.app-header__sub {
  font-size: 0.75rem;
  color: #999;
  margin-top: 1px;
}
.app-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-btn-new {
  background: #1c1c1e;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: default;
  font-family: 'Inter', sans-serif;
}
.app-icon-sm {
  font-size: 0.9rem;
  color: #888;
  cursor: default;
}
.app-lang {
  font-size: 0.7rem;
  color: #888;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 5px;
}

/* ── Sub-screen header ─── */
.app-subheader {
  padding: 14px 22px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.app-back {
  background: none;
  border: none;
  font-size: 1rem;
  color: #555;
  cursor: pointer;
  padding: 2px 6px 2px 0;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
}
.app-back:hover { color: #1a1a1a; }
.app-subheader__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

/* ── Tile grid ─── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 22px;
  flex: 1;
  align-content: center;
}
.app-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.app-tile {
  background: #fff;
  border-radius: 11px;
  padding: 18px 14px 16px;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.07);
  transition: border-color 130ms, box-shadow 130ms, transform 130ms;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.app-tile:hover {
  border-color: rgba(201,160,32,0.5);
  box-shadow: 0 4px 16px rgba(201,160,32,0.18);
  transform: translateY(-2px);
}
.app-tile--soon {
  opacity: 0.55;
  cursor: default;
}
.app-tile--soon:hover {
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transform: none;
}
.app-tile__icon {
  width: 36px;
  height: 36px;
  color: #C9A020;
  flex-shrink: 0;
}
.app-tile__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}
.app-tile__desc {
  font-size: 0.7rem;
  color: #999;
  line-height: 1.4;
}
.app-tile__soon-badge {
  font-size: 0.65rem;
  background: #f0f0f0;
  color: #888;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
}

/* ── Action buttons (Offline Filing) ─── */
.app-exhibit-bar {
  margin: 10px 22px 4px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  flex-shrink: 0;
}
.app-exhibit-bar__icon { color: #C9A020; font-size: 0.85rem; }
.app-exhibit-bar__label { color: #888; }
.app-exhibit-bar__value { color: #1a1a1a; font-weight: 600; }
.app-exhibit-bar__actions { margin-left: auto; display: flex; gap: 6px; }
.app-tag {
  font-size: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 7px;
  color: #666;
  cursor: default;
}

.app-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 22px 14px;
  flex: 1;
}
.app-action-btn {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 130ms, background 130ms;
  text-align: left;
}
.app-action-btn:hover {
  border-color: rgba(201,160,32,0.45);
  background: #FFFCF0;
}
.app-action-btn.running {
  border-color: #C9A020;
  background: #FFFCF0;
}
.app-action-btn.done {
  border-color: #4CAF50;
  background: #F6FFF6;
}
.app-action-btn__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-action-btn__icon {
  width: 18px;
  height: 18px;
  color: #C9A020;
  flex-shrink: 0;
}
.app-action-btn.done .app-action-btn__icon {
  color: #4CAF50;
}
.app-action-btn__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
}
.app-action-btn__status {
  margin-left: auto;
  font-size: 0.7rem;
  color: #bbb;
}
.app-action-btn.running .app-action-btn__status { color: #C9A020; }
.app-action-btn.done    .app-action-btn__status { color: #4CAF50; }

.app-progress {
  height: 3px;
  background: rgba(201,160,32,0.15);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  display: none;
}
.app-action-btn.running .app-progress { display: block; }
.app-progress__bar {
  height: 100%;
  background: #C9A020;
  border-radius: 2px;
  width: 0;
  transition: width 1.4s ease;
}

/* ── Footer ─── */
.app-footer {
  padding: 8px 22px;
  border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 0.68rem;
  color: #bbb;
  text-align: center;
  flex-shrink: 0;
}

/* ── Demo trigger button (on landing page) ─── */
.demo-trigger-section {
  text-align: center;
  padding: 0 0 72px;
}
.btn--demo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.35);
  color: #D4AF37;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, box-shadow 160ms;
  text-decoration: none;
}
.btn--demo:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 0 24px rgba(212,175,55,0.15);
}
.btn--demo svg {
  flex-shrink: 0;
}
