/* ============================================
   APPS.CSS — Individual app/window content styles
   ============================================ */

/* ---- MEDIA PLAYER (demo.mov) ---- */
.app-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0a0a0a;
}

.app-player__viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050510;
}

/* Retro perspective grid */
.app-player__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(61, 242, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 242, 229, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(45deg) translateY(40%);
  transform-origin: center bottom;
}

.app-player__logo-wrap {
  position: relative;
  z-index: 2;
}

.app-player__logo {
  transform-style: preserve-3d;
  will-change: transform;
}

.app-player__logo-img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(61, 242, 229, 0.4));
}

.app-player__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 242, 229, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.app-player__canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CRT scanlines overlay */
.app-player__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Controls area */
.app-player__controls {
  background: var(--ink);
  border-top: 1px solid #333;
  padding: 8px 12px;
  flex-shrink: 0;
}

.app-player__progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.app-player__time {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #888;
  min-width: 28px;
  text-align: center;
}

.app-player__progress-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.app-player__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.app-player__progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.1s linear;
  box-shadow: 0 0 6px rgba(61, 242, 229, 0.5);
}

.app-player__buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-player__btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s, color 0.1s;
  line-height: 1;
}

.app-player__btn:hover {
  background: #333;
  color: #fff;
}

.app-player__btn--play {
  font-size: 20px;
  color: var(--accent);
}

.app-player__btn--play:hover {
  color: #fff;
  background: var(--accent);
}

.app-player__spacer {
  flex: 1;
}

.app-player__volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-player__volume-icon {
  font-size: 12px;
}

.app-player__volume-bar {
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.app-player__volume-fill {
  width: 75%;
  height: 100%;
  background: #888;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .app-player__logo-img {
    width: 140px;
  }
}

/* ---- TROPHY CASE (Achievements) ---- */
.app-trophies {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
}

.app-trophies__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--ink);
  border-bottom: 2px solid var(--accent);
  flex-shrink: 0;
}

.app-trophies__score {
  font-family: 'Archivo Black', sans-serif;
  flex-shrink: 0;
  text-align: center;
  min-width: 80px;
}

.app-trophies__score-num {
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}

.app-trophies__score-sep {
  font-size: 16px;
  color: #555;
  margin: 0 2px;
}

.app-trophies__score-total {
  font-size: 16px;
  color: #666;
}

.app-trophies__bar-wrap {
  flex: 1;
  min-width: 0;
}

.app-trophies__bar {
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.app-trophies__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.app-trophies__bar-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-trophies__hint-btn {
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.app-trophies__hint-btn:hover {
  border-color: var(--accent);
  background: rgba(61, 242, 229, 0.1);
}

.app-trophies__grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-content: start;
}

.app-trophies__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px 10px;
  border-radius: 8px;
  background: #E8E8E3;
  border: 1px solid #D5D5D0;
  opacity: 0.45;
  filter: grayscale(1);
  transition: all 0.2s ease;
}

.app-trophies__card--unlocked {
  opacity: 1;
  filter: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(61, 242, 229, 0.1);
}

.app-trophies__card-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.app-trophies__card-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.app-trophies__card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #888;
  line-height: 1.3;
}

.app-trophies__card--hint {
  opacity: 0.7;
  filter: none;
  background: #F0F0EC;
  border: 1px dashed var(--accent);
}

.app-trophies__card--hint .app-trophies__card-icon {
  filter: grayscale(0.5);
}

.app-trophies__card--hint .app-trophies__card-desc {
  font-style: italic;
  color: var(--accent);
}

.app-trophies__card-date {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: var(--accent);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- SHARED ---- */
.app-toolbar {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: #EAEAE5;
  border-bottom: 1px solid #D5D5D0;
  gap: 4px;
  flex-shrink: 0;
}

.app-toolbar__btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #666;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: var(--surface);
  cursor: pointer;
}

.app-toolbar__btn:hover {
  background: #E8E8E3;
}

.app-toolbar__btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.app-toolbar__separator {
  width: 1px;
  height: 16px;
  background: #D0D0CB;
  margin: 0 4px;
}

.app-toolbar__breadcrumb {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888;
  margin-left: auto;
}

/* ---- TEXT EDITOR (home.mdx) ---- */
.app-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1e1e1e;
}

.app-editor__tabs {
  display: flex;
  background: #252526;
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}

.app-editor__tab {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #999;
  padding: 6px 16px;
  background: #2d2d2d;
  border-right: 1px solid #1e1e1e;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-editor__tab--active {
  background: #1e1e1e;
  color: #fff;
  border-top: 2px solid var(--accent);
}

.app-editor__tab-icon {
  font-size: 12px;
}

.app-editor__content {
  display: flex;
  flex: 1;
  overflow: auto;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.app-editor__gutter {
  padding: 12px 12px 12px 16px;
  text-align: right;
  color: #555;
  background: #1e1e1e;
  user-select: none;
  flex-shrink: 0;
  min-width: 40px;
}

.app-editor__gutter span {
  display: block;
}

.app-editor__code {
  padding: 12px 16px;
  flex: 1;
  color: #d4d4d4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Syntax highlighting classes */
.syn-comment { color: #6A9955; }
.syn-keyword { color: #C586C0; }
.syn-string { color: #CE9178; }
.syn-heading { color: #569CD6; font-weight: bold; }
.syn-tag { color: #808080; }
.syn-accent { color: var(--accent); }
.syn-number { color: #B5CEA8; }
.syn-variable { color: #9CDCFE; }
.syn-bold { color: #D4D4D4; font-weight: bold; }

.app-editor__cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: #d4d4d4;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: text-bottom;
}

/* ---- FOLDER (Services) ---- */
.app-folder {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-folder__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  flex: 1;
  align-content: start;
}

.app-folder__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: default;
  user-select: none;
  transition: background-color 0.1s ease;
}

.app-folder__item:hover {
  background: rgba(61, 242, 229, 0.08);
}

.app-folder__item-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.app-folder__item-name {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--ink);
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}

.app-folder__status {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888;
  padding: 4px 12px;
  border-top: 1px solid #D5D5D0;
  background: #EAEAE5;
  flex-shrink: 0;
}

/* ---- SPREADSHEET (Pricing) ---- */
.app-spreadsheet {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-spreadsheet__formula-bar {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--surface);
  border-bottom: 1px solid #D5D5D0;
  flex-shrink: 0;
}

.app-spreadsheet__cell-ref {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccc;
  padding: 2px 8px;
  width: 60px;
  margin-right: 8px;
}

.app-spreadsheet__formula {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  flex: 1;
}

.app-spreadsheet__grid {
  flex: 1;
  overflow: auto;
}

.app-spreadsheet__table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
}

.app-spreadsheet__table th {
  background: #EAEAE5;
  border: 1px solid #D5D5D0;
  padding: 4px 8px;
  font-weight: normal;
  color: #666;
  position: sticky;
  top: 0;
  z-index: 1;
}

.app-spreadsheet__table td {
  border: 1px solid #D5D5D0;
  padding: 6px 8px;
  color: var(--ink);
  background: #fff;
  vertical-align: top;
}

.app-spreadsheet__table .row-header {
  background: #EAEAE5;
  color: #666;
  font-weight: normal;
  width: 30px;
  text-align: center;
}

.app-spreadsheet__table .col-popular {
  background: rgba(255, 215, 0, 0.08);
}

.spreadsheet__badge {
  display: inline-block;
  background: #FFD700;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.spreadsheet__price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  color: var(--ink);
}

.spreadsheet__check {
  color: var(--accent);
  font-weight: bold;
}

.spreadsheet__cross {
  color: #ccc;
}

.spreadsheet__bespoke {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 12px 8px;
}

.spreadsheet__cta-btn {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
}
.spreadsheet__cta-btn:hover {
  background: #2ad4c8;
  transform: translateY(-1px);
}
.spreadsheet__cta-btn:active {
  transform: translateY(0);
}

/* ---- DOCUMENT VIEWER (Customers/Testimonials) ---- */
.app-document {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-document__content {
  flex: 1;
  padding: 24px 32px;
  overflow: auto;
  background: #FFFDF7;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--ink);
}

.app-document__content h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-document__trusted {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.app-document__trusted-item {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
}

.app-document__quote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(61, 242, 229, 0.04);
  border-radius: 0 6px 6px 0;
}

.app-document__quote p {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 12px;
  color: #333;
}

.app-document__quote-name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-document__quote-role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #999;
}

/* ---- PORTFOLIO DOC (Customers — Retro Word) ---- */
.portfolio-doc {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #C0C0C0;
}

.portfolio-doc__toolbar {
  display: flex;
  flex-direction: column;
  background: #D4D0C8;
  border-bottom: 1px solid #808080;
  padding: 0;
}

.portfolio-doc__toolbar-group {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 1px;
  border-bottom: 1px solid #A0A0A0;
}

.portfolio-doc__toolbar-group:last-child {
  border-bottom: none;
}

.portfolio-doc__toolbar .app-toolbar__btn {
  background: #D4D0C8;
  border: 1px solid transparent;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 0;
}

.portfolio-doc__toolbar .app-toolbar__btn:hover {
  border: 1px outset #fff;
  background: #E0DCD4;
}

.portfolio-doc__ruler {
  height: 16px;
  background: #FFFDF7;
  border-bottom: 1px solid #808080;
  position: relative;
  overflow: hidden;
}

.portfolio-doc__ruler-track {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #999 0px, #999 1px,
    transparent 1px, transparent 5px
  );
}

.portfolio-doc__page {
  flex: 1;
  overflow-y: auto;
  background: #808080;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-doc__page > * {
  width: 100%;
  max-width: 540px;
  background: #fff;
  box-sizing: border-box;
}

.portfolio-doc__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 32px 20px;
  border: 1px solid #ccc;
  border-bottom: none;
}

.portfolio-doc__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.portfolio-doc__logo--dark-bg {
  background: var(--ink);
  padding: 8px;
}

.portfolio-doc__logo-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--surface);
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  flex-shrink: 0;
}

.portfolio-doc__header-text {
  flex: 1;
  min-width: 0;
}

.portfolio-doc__client-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.2;
}

.portfolio-doc__client-summary {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.portfolio-doc__divider {
  height: 3px;
  background: var(--accent);
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.portfolio-doc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px 32px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.portfolio-doc__stat {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.portfolio-doc__stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #999;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.portfolio-doc__stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.portfolio-doc__body {
  padding: 20px 32px 40px;
  border: 1px solid #ccc;
  border-top: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.portfolio-doc__body p {
  margin: 0 0 12px;
}

.portfolio-doc__body h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  color: var(--ink);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-doc__body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.portfolio-doc__body li {
  margin-bottom: 4px;
}

.portfolio-doc__statusbar {
  display: flex;
  justify-content: space-between;
  padding: 3px 8px;
  background: #D4D0C8;
  border-top: 1px solid #fff;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #555;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .portfolio-doc__header {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px 16px;
  }

  .portfolio-doc__stats {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .portfolio-doc__body {
    padding: 16px 16px 32px;
  }

  .portfolio-doc__page {
    padding: 8px;
  }

  .portfolio-doc__client-name {
    font-size: 18px;
  }
}

/* ---- HELP VIEWER (Docs) ---- */
.app-helpviewer {
  display: flex;
  height: 100%;
}

.app-helpviewer__sidebar {
  width: 200px;
  background: #F0F0EC;
  border-right: 1px solid #D5D5D0;
  overflow-y: auto;
  flex-shrink: 0;
}

.app-helpviewer__section-title {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 12px 4px;
}

.app-helpviewer__nav-item {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  padding: 6px 12px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.1s ease;
}

.app-helpviewer__nav-item:hover {
  background: rgba(61, 242, 229, 0.08);
  color: var(--ink);
}

.app-helpviewer__nav-item--active {
  border-left-color: var(--accent);
  color: var(--ink);
  background: rgba(61, 242, 229, 0.06);
}

.app-helpviewer__content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

.app-helpviewer__content h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.app-helpviewer__content h3 {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin: 20px 0 8px;
}

.app-helpviewer__content p {
  margin-bottom: 12px;
  font-size: 13px;
}

/* ---- INFO WINDOW (Why Nuvix) ---- */
.app-info {
  padding: 24px;
  overflow: auto;
  height: 100%;
}

.app-info__header {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.app-info__label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.app-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.app-info__card {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E8E8E3;
}

.app-info__card-number {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}

.app-info__card-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.app-info__card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

/* ---- COLUMNS LAYOUT (SME / Charities) ---- */
.app-columns {
  padding: 24px;
  overflow: auto;
  height: 100%;
}

.app-columns__header {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.app-columns__intro {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.app-columns__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.app-columns__col-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.app-columns__col-item {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 2px solid #E8E8E3;
}

.app-columns__col-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  font-style: italic;
}

/* ---- CONTACT FORM (Email Compose) ---- */
.app-contact {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-contact__fields {
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid #D5D5D0;
  flex-shrink: 0;
}

.app-contact__field {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #E8E8E3;
}

.app-contact__field:last-child {
  border-bottom: none;
}

.app-contact__field-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  width: 80px;
  flex-shrink: 0;
}

.app-contact__field-input {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  border: none;
  background: transparent;
  flex: 1;
  padding: 4px 0;
  outline: none;
}

.app-contact__field-input::placeholder {
  color: #ccc;
}

.app-contact__body-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-contact__textarea {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  border: none;
  background: #fff;
  flex: 1;
  padding: 16px;
  outline: none;
  resize: none;
  line-height: 1.6;
}

.app-contact__textarea::placeholder {
  color: #ccc;
}

.app-contact__actions {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #EAEAE5;
  border-top: 1px solid #D5D5D0;
  gap: 8px;
  flex-shrink: 0;
}

.app-contact__send-btn {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 20px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.app-contact__send-btn:hover {
  opacity: 0.85;
}

.app-contact__send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-contact__status {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888;
}

.app-contact__status--success {
  color: #27C93F;
}

.app-contact__status--error {
  color: #FF5F57;
}

.app-contact__error {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #FF5F57;
  padding: 0 12px 4px;
}

/* ---- TEAM ---- */
.app-team {
  padding: 24px;
  overflow: auto;
  height: 100%;
  background: #FFFDF7;
}

.app-team__header {
  margin-bottom: 28px;
}

.app-team__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.app-team__subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
}

.app-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.app-team__card {
  text-align: center;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid #E8E8E3;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.app-team__card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(61, 242, 229, 0.1);
}

.app-team__avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
}

.app-team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
  max-width: 100%;
}

.app-team__name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.app-team__role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.app-team__bio {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
  text-align: left;
  margin: 0;
}

.app-team__cta {
  text-align: center;
  margin-top: 28px;
}

.app-team__cta-btn {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 28px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.15s ease;
}

.app-team__cta-btn:hover {
  opacity: 0.85;
}

/* ---- TRASH (Easter Egg) ---- */
.app-trash__item:hover {
  background: rgba(255, 68, 68, 0.08);
}

.app-trash__toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--chrome);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 20000;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.5s forwards;
  max-width: 400px;
  text-align: center;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

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

  .app-columns__grid {
    grid-template-columns: 1fr;
  }

  .app-helpviewer {
    flex-direction: column;
  }

  .app-helpviewer__sidebar {
    width: 100%;
    height: auto;
    max-height: 120px;
    border-right: none;
    border-bottom: 1px solid #D5D5D0;
  }

  .app-document__content {
    padding: 16px;
  }

  .app-folder__grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .app-spreadsheet__table {
    font-size: 10px;
  }

  .spreadsheet__price {
    font-size: 13px;
  }
}

/* ---- BROWSER (Blog) ---- */
.app-browser {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.app-browser__toolbar {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #F0F0EC;
  border-bottom: 1px solid #D5D5D0;
  gap: 8px;
  flex-shrink: 0;
}

.app-browser__nav {
  display: flex;
  gap: 2px;
}

.app-browser__nav-btn {
  font-size: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-browser__nav-btn:hover {
  background: #E0E0DB;
}

.app-browser__nav-btn--disabled {
  opacity: 0.3;
  pointer-events: none;
}

.app-browser__url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #D5D5D0;
  border-radius: 16px;
  padding: 4px 12px;
  gap: 6px;
}

.app-browser__url-lock {
  font-size: 11px;
}

.app-browser__url-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-browser__bookmarks {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #F7F7F4;
  border-bottom: 1px solid #D5D5D0;
  flex-shrink: 0;
}

.app-browser__bookmark {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.app-browser__bookmark:hover {
  background: #E8E8E2;
}

.app-browser__bookmark--active {
  background: #fff;
  border-color: #D5D5D0;
  color: #111;
}

.app-browser__content {
  flex: 1;
  overflow-y: auto;
  background: var(--surface);
}

.app-browser__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* While dragging or resizing a window, stop iframes from swallowing the mouse
   so the window manager keeps receiving pointer events (fixes resize lag). */
body.dragging iframe,
body.resizing iframe {
  pointer-events: none;
}

/* ---- Case Studies app ---- */
.app-cases {
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  padding: 28px 32px 36px;
  font-family: 'Inter', sans-serif;
}
.app-cases__intro h1 {
  font-family: 'Space Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.app-cases__intro p {
  font-size: 13px;
  color: #777;
  margin: 6px 0 22px;
}
.app-cases__card {
  background: #fff;
  border: 1px solid #E2E2DD;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.app-cases__tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}
.app-cases__title {
  font-size: 19px;
  font-weight: 700;
  color: #111;
  margin: 4px 0 18px;
}
.app-cases__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #EDEDE8;
  border-bottom: 1px solid #EDEDE8;
}
.app-cases__metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-cases__metric-value {
  font-family: 'Space Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}
.app-cases__metric-label {
  font-size: 11px;
  color: #888;
  line-height: 1.3;
}
.app-cases__detail {
  margin-top: 14px;
}
.app-cases__detail span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}
.app-cases__detail p {
  font-size: 13px;
  color: #444;
  margin: 4px 0 0;
  line-height: 1.5;
}
.app-cases__outcome {
  margin-top: 18px;
  padding: 12px 16px;
  background: #F4F4F0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.5;
}
.app-cases__note {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 22px;
  line-height: 1.6;
}
.app-cases__cta {
  border: none;
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 4px;
}
.app-cases__cta:hover {
  background: #333;
}
@media (max-width: 600px) {
  .app-cases__metrics { grid-template-columns: repeat(2, 1fr); }
}

.app-browser__loading {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  padding: 40px;
  text-align: center;
}

.app-browser__error {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #FF5F57;
  padding: 40px;
  text-align: center;
}

/* Blog list page inside browser */
.app-browser__page {
  padding: 32px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.app-browser__page--article {
  padding: 0;
  max-width: 100%;
}

.app-browser__page--article .blog-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--ink);
}

.app-browser__page--article .blog-article__tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.app-browser__page--article .blog-article h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.app-browser__page--article .blog-article__meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #888;
  margin-bottom: 24px;
}

.app-browser__page--article .blog-article__tldr {
  background: rgba(61, 242, 229, 0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #444;
}

.app-browser__page--article .blog-article h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  margin: 32px 0 12px;
  text-transform: uppercase;
}

.app-browser__page--article .blog-article h3 {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  margin: 24px 0 8px;
}

.app-browser__page--article .blog-article p {
  font-size: 14px;
  margin-bottom: 14px;
  color: #333;
}

.app-browser__page--article .blog-article ul,
.app-browser__page--article .blog-article ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.app-browser__page--article .blog-article li {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.app-browser__page--article .blog-article .formula {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  background: var(--ink);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 14px 0;
  text-align: center;
}

.app-browser__page--article .blog-article__cta {
  background: var(--ink);
  padding: 20px;
  border-radius: 8px;
  margin-top: 32px;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.app-browser__page--article .blog-article__cta a {
  color: var(--accent);
  text-decoration: none;
}

/* Prominent CTA button injected by blog.js at the end of each article */
.blog-article__cta-btn {
  display: block;
  margin: 18px auto 0;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.blog-article__cta-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.app-browser__page-header {
  margin-bottom: 32px;
}

.app-browser__page-header h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.app-browser__page-header p {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
}

.app-browser__posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-browser__post-card {
  background: #fff;
  border: 1px solid #E8E8E3;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-browser__post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(61, 242, 229, 0.1);
}

.app-browser__post-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.app-browser__post-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.3;
}

.app-browser__post-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.app-browser__post-meta {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #999;
}

/* ============================================
   TOOLS — free tools "App Store" window
   ============================================ */
.app-tools {
  padding: 24px 28px 28px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}
.app-tools__intro h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  margin-bottom: 4px;
}
.app-tools__intro p {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
}
.app-tools__hero {
  background: var(--ink);
  color: #eee;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.app-tools__hero-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.app-tools__hero h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  margin-bottom: 2px;
}
.app-tools__kind {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #888;
  margin-bottom: 8px;
}
.app-tools__hero .app-tools__kind { color: #aaa; }
.app-tools__tagline {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.app-tools__detail {
  font-size: 12px;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 14px;
}
.app-tools__get {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-tools__get:hover { background: var(--ink); color: var(--accent); }
.app-tools__get--hero {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  padding: 9px 18px;
}
.app-tools__get--hero:hover { background: #fff; border-color: #fff; color: var(--ink); }
.app-tools__grid { display: flex; flex-direction: column; gap: 10px; }
.app-tools__card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e4e0d6;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.app-tools__card--soon { opacity: 0.55; }
.app-tools__emoji { font-size: 26px; }
.app-tools__meta { flex: 1; min-width: 0; }
.app-tools__meta h3 { font-size: 14px; margin-bottom: 1px; }
.app-tools__meta p { font-size: 12px; color: #666; line-height: 1.4; }
.app-tools__soon-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #999;
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 4px 10px;
}
.app-tools__note {
  margin-top: 18px;
  font-size: 12px;
  color: #666;
}
.app-tools__cta {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  border: none;
  background: none;
  color: var(--accent-on-light);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
