/* The app mockup: a small fake "window" drawn only with HTML and CSS.
   It is a picture, so the HTML gives it role="img" and a text description. */

.app {
  /* The mockup reacts to ITS OWN width, not to the screen width
     (see @container at the bottom). WHY: the same mockup is used in the
     wide hero and in the narrower demo tabs. */
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* The title bar with three "window buttons". */
.app-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem var(--space-3);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.app-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--color-border-strong);
  opacity: 0.55;
}

.app-bar-title {
  flex: 1;
  /* Same width as the three dots, so the title looks centered. */
  margin-right: 2.5rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-align: center;
}

/* Narrow mockup: two columns (note list + open note). */
.app-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 19rem;
}

.app-side {
  display: none;
  padding: var(--space-3);
  border-right: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.app-list {
  padding: var(--space-2);
  border-right: 1px solid var(--color-border);
}

.app-editor {
  padding: var(--space-4);
}

.app-label {
  margin-bottom: var(--space-1);
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-label:not(:first-child) {
  margin-top: var(--space-4);
}

.app-nav-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.app-nav-item.is-active {
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
  font-weight: 700;
}

/* Wide mockup: the sidebar appears as a third column. */
@container (min-width: 34rem) {
  .app-body {
    grid-template-columns: 8.5rem 12.5rem minmax(0, 1fr);
  }

  .app-side {
    display: block;
  }
}
