/* Shared by every page under apps/. Same palette and type as the portfolio,
   without the background game. */
:root {
  --bg: #07090e;
  --card-bg: rgba(13, 17, 27, 0.92);
  --card-border: rgba(0, 255, 170, 0.22);
  --accent: #00ffaa;
  --accent-glow: rgba(0, 255, 170, 0.4);
  --text: #f0f4f8;
  --muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(0, 255, 170, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

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

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.crumbs a:hover { color: var(--accent); }

.pixel-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.hero-copy { display: flex; flex-direction: column; gap: 14px; }

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.status-chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.status-live { color: #22e39a; background: rgba(34, 227, 154, 0.1); }
.status-testing { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.status-soon { color: #a5b4fc; background: rgba(165, 180, 252, 0.1); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.92rem 'Space Grotesk', sans-serif;
  padding: 10px 16px;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #05100c; }
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 0 14px var(--accent-glow); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn.is-disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn.is-copied { border-color: var(--accent); color: var(--accent); }

.live-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.6;
  word-break: break-all;
}
.live-url::before {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.live-url.is-soon { color: #a5b4fc; }

.hero-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  aspect-ratio: 16 / 9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: repeating-linear-gradient(0deg, #0b0f17 0 3px, #0d121c 3px 6px);
  font-family: 'Press Start 2P', monospace;
}
.placeholder span { color: var(--accent); font-size: 1.4rem; }
.placeholder small { color: var(--muted); font-size: 0.6rem; }

/* ---- Body sections ----------------------------------------------------- */

.about, .detail, .more {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 24px 26px;
}

h2 {
  margin: 0 0 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1.6;
}

.about p { margin: 0; font-size: 1.05rem; }

.detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail li {
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}
.detail li strong { color: var(--text); }
.detail code {
  font-size: 0.85em;
  word-break: break-all;
  color: var(--text);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.more-grid a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.more-grid a:hover { border-color: var(--accent); }
.more-grid strong { color: var(--text); }
.more-grid span { color: var(--muted); font-size: 0.85rem; }

.foot {
  border-top: 1px solid var(--card-border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---- Pricing (apps with a paid tier) ------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.plan.is-featured { border-color: var(--card-border); box-shadow: 0 0 24px rgba(0, 255, 170, 0.08); }
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .price { font-size: 2rem; font-weight: 700; line-height: 1; }
.plan .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.plan form { margin: 4px 0 0; }
.plan .btn { justify-content: center; width: 100%; }
.fine-print { margin: 14px 0 0; color: var(--muted); font-size: 0.88rem; }

.notice {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}
.notice[hidden] { display: none; }

/* A license key shown after a purchase, with a copy button. */
.key-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 255, 170, 0.05);
}
.key-box code {
  flex: 1 1 260px;
  font-size: clamp(1.05rem, 3.6vw, 1.45rem);
  letter-spacing: 1px;
  color: var(--text);
  word-break: break-all;
}

/* A small confirmation for the copy-link fallback. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: #05100c;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero-media { order: -1; }
  .about, .detail, .more { padding: 20px; }
}
