:root {
  --bg: #d8e3f4;
  --bg2: #ecf2fa;
  --surface: rgba(224, 234, 248, 0.94);
  --surface-strong: #e4edf8;
  --surface-input: rgba(216, 228, 244, 0.98);
  --surface-nav: rgba(214, 226, 244, 0.88);
  --surface-panel: linear-gradient(
    148deg,
    rgba(228, 238, 252, 0.98) 0%,
    rgba(214, 228, 246, 0.96) 38%,
    rgba(226, 218, 244, 0.95) 68%,
    rgba(240, 232, 220, 0.96) 100%
  );
  --surface-panel-border: rgba(6, 182, 212, 0.22);
  --panel-wash:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(6, 182, 212, 0.16), transparent 58%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(139, 92, 246, 0.13), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 90%, rgba(249, 115, 22, 0.1), transparent 50%);
  --panel-shadow:
    inset 0 1px 0 rgba(248, 252, 255, 0.75),
    0 14px 40px rgba(6, 182, 212, 0.14),
    0 4px 16px rgba(124, 58, 246, 0.08);
  --panel-shadow-hover:
    inset 0 1px 0 rgba(248, 252, 255, 0.85),
    0 20px 48px rgba(6, 182, 212, 0.2),
    0 8px 24px rgba(124, 58, 246, 0.12);
  --btn-primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(6, 182, 212, 0.3),
    0 2px 6px rgba(124, 58, 246, 0.14);
  --btn-primary-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 28px rgba(6, 182, 212, 0.38),
    0 4px 12px rgba(124, 58, 246, 0.18);
  --btn-glass-shadow:
    inset 0 1px 0 rgba(240, 248, 255, 0.7),
    0 3px 12px rgba(6, 182, 212, 0.12),
    0 1px 4px rgba(26, 35, 64, 0.06);
  --btn-glass-shadow-hover:
    inset 0 1px 0 rgba(248, 252, 255, 0.82),
    0 8px 22px rgba(6, 182, 212, 0.2),
    0 3px 8px rgba(124, 58, 246, 0.1);
  --border: rgba(26, 35, 64, 0.12);
  --text: #1a2340;
  --muted: #5c6b8a;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --coral: #ea580c;
  --lime: #16a34a;
  --amber: #d97706;
  --rose: #db2777;
  --accent: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 52%, #f97316 100%);
  --glow: 0 12px 40px rgba(6, 182, 212, 0.22);
  --radius: 18px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', system-ui, sans-serif;
}

/* Information panels — glass gradients, accent edge, ambient colour */
.mix-info-panel,
.value-card,
.learning-featured-card,
.app-card--visual,
.demo-pick,
.demo-preview-link,
.download-card,
.download-help,
.download-apk-card,
.download-apk-legacy,
.about-closing,
.donate-card,
.pay-card,
.opts-model,
.opts-plan,
.opts-list li,
.dev-gate,
.bill-card,
.req-card,
.stat-card,
.analytics-chart-card,
.hub-compact-card,
.hub-fold,
.hub-pipeline-row,
.mail-card,
.mail-pending-card,
.mail-app,
article.prose {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-panel);
  border-color: var(--surface-panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--panel-shadow);
}

.mix-info-panel::before,
.value-card::before,
.learning-featured-card::before,
.app-card--visual::before,
.demo-pick::before,
.demo-preview-link::before,
.download-card::before,
.download-help::before,
.download-apk-card::before,
.download-apk-legacy::before,
.about-closing::before,
.donate-card::before,
.pay-card::before,
.opts-model::before,
.opts-plan::before,
.dev-gate::before,
.bill-card::before,
.req-card::before,
.stat-card::before,
.analytics-chart-card::before,
.hub-compact-card::before,
.hub-fold::before,
.hub-pipeline-row::before,
.mail-card::before,
.mail-pending-card::before,
.mail-app::before,
article.prose::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
}

.mix-info-panel::after,
.value-card::after,
.learning-featured-card::after,
.app-card--visual::after,
.demo-pick::after,
.demo-preview-link::after,
.download-card::after,
.download-help::after,
.download-apk-card::after,
.download-apk-legacy::after,
.about-closing::after,
.donate-card::after,
.pay-card::after,
.opts-model::after,
.opts-plan::after,
.opts-list li::after,
.dev-gate::after,
.bill-card::after,
.req-card::after,
.stat-card::after,
.analytics-chart-card::after,
.hub-compact-card::after,
.hub-fold::after,
.hub-pipeline-row::after,
.mail-card::after,
.mail-pending-card::after,
.mail-app::after,
article.prose::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panel-wash);
  pointer-events: none;
  z-index: 0;
}

.mix-info-panel > *,
.value-card > *,
.learning-featured-card > *,
.app-card--visual > *,
.demo-pick > *,
.demo-preview-link > *,
.download-card > *,
.download-help > *,
.download-apk-card > *,
.donate-card > *,
.pay-card > *,
.opts-model > *,
.opts-plan > *,
.dev-gate > *,
.bill-card > *,
.req-card > *,
.stat-card > *,
.analytics-chart-card > *,
.hub-compact-card > *,
.hub-fold > *,
.hub-pipeline-row > *,
.mail-card > *,
.mail-pending-card > *,
.mail-app > *,
article.prose > * {
  position: relative;
  z-index: 1;
}

.value-card:hover,
.demo-pick:hover,
.demo-preview-link:hover,
.app-card--visual:hover,
.hub-compact-card:hover,
.hub-fold:hover {
  box-shadow: var(--panel-shadow-hover);
}

article.prose {
  border: 1px solid var(--surface-panel-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 48px 36px 64px;
  margin-top: 24px;
  margin-bottom: 80px;
}

article.prose:not(.about-prose) {
  max-width: 760px;
}

.opts-list li::before {
  /* keep checkmark — panel accent uses box-shadow on li instead */
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  width: auto;
  height: auto;
  background: none;
  color: #0891b2;
  font-weight: 700;
  z-index: 3;
  opacity: 1;
}

.opts-list li {
  box-shadow: var(--panel-shadow);
}

.opts-list li::after {
  opacity: 0.65;
}

/* Beat inline page styles that still set flat white */
.donate-card,
.pay-card,
.dev-gate,
.bill-card,
.req-card,
.opts-model,
.opts-plan,
.opts-list li,
.hub-compact-card,
.hub-fold,
.hub-pipeline-row,
.stat-card,
.analytics-chart-card {
  background: var(--surface-panel) !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    linear-gradient(165deg, #d0dcf0 0%, #dce6f5 30%, #e4e8f6 55%, #ebe4f2 78%, #f0ebe3 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

#mesh-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none !important;
}

body > nav,
body > main,
body > .wrap,
body > article,
body > footer,
body > .site-promo {
  position: relative;
  z-index: 2;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav — centered link tray, always-visible pill buttons */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(222, 232, 248, 0.96) 0%, var(--surface-nav) 100%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.14);
  box-shadow:
    0 4px 28px rgba(6, 182, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 16px;
}

.logo {
  grid-column: 1;
  justify-self: start;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  padding: 6px 4px;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.logo span {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--surface-panel-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 14px rgba(6, 182, 212, 0.08);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-panel-border);
  background: var(--surface-panel);
  box-shadow: var(--btn-glass-shadow);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: rgba(6, 182, 212, 0.42);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: var(--btn-glass-shadow-hover);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--text);
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(99, 102, 241, 0.14));
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.22);
}

.nav-links a#devHubBack {
  border-style: dashed;
  color: var(--muted);
}

.nav-links a#devHubBack:hover {
  color: var(--text);
  border-style: solid;
}

.nav-rust-menu {
  position: relative;
}

.nav-rust-trigger {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-panel-border);
  background: var(--surface-panel);
  box-shadow: var(--btn-glass-shadow);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-rust-trigger:hover,
.nav-rust-trigger.active,
.nav-rust-menu.open .nav-rust-trigger {
  color: var(--accent);
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(99, 102, 241, 0.14));
}

.nav-rust-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  z-index: 120;
}

.nav-rust-menu.open .nav-rust-panel {
  display: grid;
  gap: 4px;
}

.nav-rust-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.nav-rust-panel a:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.08);
  transform: none;
}

.nav-rust-panel a.active {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.12);
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--surface-panel-border);
  border-radius: 12px;
  background: var(--surface-panel);
  box-shadow: var(--btn-glass-shadow);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  padding: 88px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #0e7490;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto 36px;
  padding: 0 8px;
}

.mosaic-tile {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(26, 35, 64, 0.12);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.mosaic-tile:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mosaic-label {
  position: absolute;
  inset: auto 0 0;
  padding: 4px 6px;
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.mosaic-tile:hover .mosaic-label { opacity: 1; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stat-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.85rem; color: var(--muted); }

/* Buttons — glass surfaces, accent depth, hover lift */
.btn,
.filter-btn,
.donate-chip,
.chip-download-link,
.hub-jump a,
.mail-tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.55);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--btn-primary-shadow);
  text-shadow: 0 1px 1px rgba(26, 35, 64, 0.14);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.2) 48%,
    transparent 58%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface-panel);
  color: var(--text);
  border: 1px solid rgba(6, 182, 212, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--btn-glass-shadow);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(6, 182, 212, 0.1), transparent 55%);
  pointer-events: none;
}

.btn-secondary:hover {
  border-color: rgba(6, 182, 212, 0.55);
  transform: translateY(-2px);
  box-shadow: var(--btn-glass-shadow-hover);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-panel-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--btn-glass-shadow);
}

.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 100% 0%, rgba(139, 92, 246, 0.07), transparent 55%);
  pointer-events: none;
}

.btn-ghost:hover {
  border-color: rgba(6, 182, 212, 0.45);
  background: var(--surface-panel);
  transform: translateY(-2px);
  box-shadow: var(--btn-glass-shadow-hover);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  min-height: 36px;
  border-radius: 10px;
}

/* Filter chips, donate amount pills, download chips */
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-panel-border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--btn-glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(6, 182, 212, 0.5);
  color: #0e7490;
  background: var(--surface-panel);
  transform: translateY(-1px);
  box-shadow: var(--btn-glass-shadow-hover);
}

.filter-btn--learning {
  border-color: rgba(124, 58, 237, 0.32);
  color: #6d28d9;
}

.filter-btn--learning:hover,
.filter-btn--learning.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.08));
  border-color: rgba(124, 58, 237, 0.5);
  color: #5b21b6;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.14);
}

.donate-chip {
  border: 1px solid var(--surface-panel-border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--btn-glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.donate-chip.is-active,
.donate-chip:hover {
  border-color: rgba(6, 182, 212, 0.55);
  color: #0e7490;
  background: var(--surface-panel);
  transform: translateY(-1px);
  box-shadow: var(--btn-glass-shadow-hover);
}

.chip-download,
.chip-download-link {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(6, 182, 212, 0.08));
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.32);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(22, 163, 74, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chip-download:hover,
.chip-download-link:hover {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(6, 182, 212, 0.12));
  color: #166534;
  border-color: rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 14px rgba(22, 163, 74, 0.16);
}

.hub-jump a {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-panel-border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--btn-glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hub-jump a:hover {
  border-color: rgba(6, 182, 212, 0.45);
  color: #0e7490;
  background: var(--surface-panel);
  transform: translateY(-1px);
  box-shadow: var(--btn-glass-shadow-hover);
}

.nav-toggle {
  background: var(--surface-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--btn-glass-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--btn-glass-shadow-hover);
}

/* Sections */
section { padding: 60px 0; }

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-head p { color: var(--muted); }

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.app-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}

.app-card--visual {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.app-card--visual:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.app-card--visual[data-cat="cookbook"] { border-color: rgba(255, 107, 74, 0.35); }
.app-card--visual[data-cat="cookbook"]:hover { box-shadow: 0 0 48px rgba(255, 107, 74, 0.2); }
.app-card--visual[data-cat="guide"] { border-color: rgba(168, 85, 247, 0.35); }
.app-card--visual[data-cat="reference"] { border-color: rgba(255, 193, 77, 0.35); }
.app-card--visual[data-cat="health"] { border-color: rgba(255, 107, 157, 0.35); }
.app-card--visual[data-cat="business"] { border-color: rgba(46, 232, 255, 0.35); }
.app-card--visual[data-cat="lifestyle"] { border-color: rgba(126, 231, 135, 0.4); }
.app-card--visual[data-cat="lifestyle"]:hover { box-shadow: 0 0 48px rgba(126, 231, 135, 0.18); }

.app-card-visual {
  position: relative;
  height: 140px;
  flex-shrink: 0;
  overflow: visible;
}

.app-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.app-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.app-card-thumb.is-hidden { display: none; }

.app-card-thumb-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 232, 255, 0.2), rgba(168, 85, 247, 0.25));
}

.app-card-thumb-fallback.is-visible { display: block; }

.app-card--visual:hover .app-card-thumb { transform: scale(1.06); }

.app-card-icon {
  position: absolute;
  left: 14px;
  bottom: -26px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--bg2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.app-info {
  position: relative;
  z-index: 2;
  padding: 36px 18px 18px;
}

.app-info h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.app-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chip-cat { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.chip-free { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.chip-freemium { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.chip-soon { background: rgba(26, 35, 64, 0.06); color: var(--muted); }

/* Filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--surface-panel-border);
  background: var(--surface-input);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(26, 35, 64, 0.04);
}

.search-input:focus { border-color: var(--cyan); }

/* Legal / prose pages */
.prose {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.prose h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.prose .effective { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }

.prose h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--cyan);
}

.prose p, .prose li { color: #3d4a66; margin-bottom: 12px; }

.prose ul { padding-left: 24px; }

.prose a { color: var(--cyan); }

.about-prose p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-closing {
  padding: 20px 22px;
  border-left: 3px solid var(--cyan);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-weight: 500;
}

/* App detail */
.app-detail {
  position: relative;
  z-index: 1;
  padding: 0 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.app-detail-cover-wrap {
  position: relative;
  margin: 0 -24px 28px;
  height: clamp(200px, 32vw, 320px);
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.app-detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-detail-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(238, 243, 255, 0.92) 100%
  );
}

.app-detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.app-detail-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.app-detail h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.app-detail-tagline {
  color: var(--muted);
  margin-bottom: 12px;
}

.app-gallery {
  margin-bottom: 36px;
}

.app-gallery h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--cyan);
}

.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: zoom-in;
  position: relative;
}

.gallery-item:hover,
.gallery-item.is-previewing {
  transform: translateY(-3px);
  border-color: rgba(46, 232, 255, 0.45);
  box-shadow: 0 8px 28px rgba(46, 232, 255, 0.12);
}

.gallery-item img {
  width: 100%;
  min-height: 160px;
  max-height: 240px;
  object-fit: contain;
  display: block;
  background: rgba(10, 14, 28, 0.04);
  padding: 10px;
}

@media (hover: hover) {
  .gallery-item::after {
    content: 'Hover to enlarge';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: rgba(10, 14, 28, 0.72);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
  }

  .gallery-item:hover::after,
  .gallery-item.is-previewing::after {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-preview {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.gallery-preview.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(6px);
}

.gallery-preview-stage {
  position: relative;
  z-index: 1;
  max-width: min(1280px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gallery-preview-img {
  display: block;
  max-width: min(1280px, 96vw);
  max-height: calc(92vh - 36px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(46, 232, 255, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  background: #0f1528;
  padding: 8px;
}

.gallery-preview-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(238, 243, 255, 0.75);
  text-align: center;
}

.gallery-preview--admin .gallery-preview-stage {
  max-width: min(1440px, 98vw);
}

.gallery-preview--admin .gallery-preview-img {
  max-width: min(1440px, 98vw);
  max-height: calc(94vh - 36px);
}

.app-detail-prose {
  padding: 0;
  max-width: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

footer {
  border-top: 1px solid var(--surface-panel-border);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(200, 216, 238, 0.55) 100%);
}

footer a { color: var(--cyan); text-decoration: none; }

.ngrok-banner {
  position: relative;
  z-index: 200;
  padding: 12px 20px;
  background: rgba(255, 193, 77, 0.12);
  border-bottom: 1px solid rgba(255, 193, 77, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
}

.ngrok-banner--sticky {
  position: sticky;
  top: 0;
}

.ngrok-banner strong {
  color: var(--amber);
}

.ngrok-inline-note {
  color: var(--amber);
  font-size: 0.88rem;
  margin-top: 10px;
}

.app-card-hit {
  display: block;
  text-decoration: none;
  color: inherit;
}

.app-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 16px;
  margin-top: -4px;
}

.btn-primary.btn-download-lg,
.download-actions .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 12px;
  margin-top: 12px;
}

.download-actions .btn-primary {
  display: inline-block;
  width: auto;
  margin-top: 0;
}

.download-apk-page {
  max-width: 520px;
  margin: 48px auto 64px;
  padding: 0 20px;
}

.download-apk-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.download-apk-filename {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
  margin: 8px 0 16px;
}

.download-apk-actions {
  margin: 20px 0 12px;
}

.download-apk-hint {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 16px;
}

.download-apk-legacy {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
}

.download-apk-steps {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.download-apk-steps li + li {
  margin-top: 8px;
}

.download-apk-back {
  margin-top: 20px;
}

.download-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.download-option-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.download-compat-footnote {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 0;
  padding: 0;
}

.download-compat-icon {
  color: var(--accent);
  font-weight: 700;
}

.download-option--legacy .btn-secondary.btn-download-lg {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-radius: 12px;
  border-width: 2px;
}

.download-compat-guide {
  margin: 32px 0 24px;
  padding: 20px 18px;
  border: 1px solid var(--surface-panel-border);
  border-radius: var(--radius);
  background: var(--surface-panel);
  box-shadow: var(--panel-shadow);
}

.download-compat-guide h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.download-compat-guide dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.download-compat-guide dt {
  font-weight: 600;
  margin: 0;
}

.download-compat-guide dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.download-compat-guide .compat-check {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Card-based downloads list — works on Chrome Android 10+ without table hacks */
.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.download-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.download-card-title {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.download-card-title a {
  color: var(--text);
  text-decoration: none;
}

.download-card-title a:hover {
  color: var(--cyan);
}

.download-card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.download-count {
  color: var(--cyan);
  font-weight: 500;
  white-space: nowrap;
}

.download-banner {
  padding: 12px 20px;
  font-size: 0.9rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
}

.download-banner--warn {
  background: rgba(251, 191, 36, 0.15);
  border-bottom-color: rgba(251, 191, 36, 0.35);
}

.download-banner--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.bug-report-banner {
  padding: 12px 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(232, 168, 56, 0.35);
  background: rgba(232, 168, 56, 0.14);
  color: var(--text);
  text-align: center;
}

.bug-report-banner a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
}

.bug-report-banner--sticky {
  position: sticky;
  top: 0;
  z-index: 99;
}

.btn-download-offline {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 12px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--muted);
  border: 1px dashed var(--border);
}

.download-inline-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.download-help {
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.download-help summary {
  font-family: var(--display);
  font-weight: 600;
  color: var(--amber);
  cursor: pointer;
  list-style-position: outside;
}

.download-help ul {
  margin: 14px 0 0 1.2rem;
  color: var(--muted);
}

.download-help li {
  margin-bottom: 6px;
}

.install-steps {
  margin: 0 0 24px 1.2rem;
  color: var(--muted);
}

.install-steps li { margin-bottom: 8px; }

.download-intro {
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}

.downloads-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 32px;
}

.downloads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.downloads-table th,
.downloads-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.downloads-table th {
  color: var(--cyan);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.downloads-table tr:last-child td { border-bottom: none; }

.downloads-table a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.downloads-table a:hover { color: var(--cyan); }

.dl-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.dl-action { white-space: nowrap; }

.dl-action .btn-download {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.download-warning {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.download-warning h3 {
  font-family: var(--display);
  color: var(--amber);
  margin-bottom: 12px;
}

.download-warning ul {
  margin-left: 1.2rem;
  color: var(--muted);
}

.download-warning li { margin-bottom: 6px; }

/* Site-wide promo */
.site-promo {
  position: relative;
  z-index: 50;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.16), rgba(139, 92, 246, 0.12), rgba(249, 115, 22, 0.14));
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.site-promo strong { color: #0e7490; }

/* Website-focused hero — faded background image */
.hero--site-focus {
  position: relative;
  isolation: isolate;
}

.hero--site-focus::before {
  content: "";
  position: absolute;
  inset: -20px 0 auto 0;
  height: min(520px, 72vh);
  background: url("/assets/img/hero/hero-home-banner.jpg") center 35% / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  border-radius: calc(var(--radius) + 8px);
  filter: saturate(0.85);
}

.hero--site-focus > * {
  position: relative;
  z-index: 1;
}

/* Hero visuals */
.hero-banner {
  max-width: 960px;
  margin: 0 auto 32px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(26, 35, 64, 0.1);
}

.hero-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 180px;
}

.tool-platforms {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.pctools-promise,
.windows-tools-promise {
  margin-bottom: 28px;
}

.pctools-free-note,
.windows-free-note {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
}

.pctools-spotlight,
.windows-tools-spotlight {
  margin: 0 auto 40px;
  max-width: 720px;
  text-align: center;
}

.pctools-card-download {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.pctools-card-download .btn-download-lg {
  margin-top: 0;
}

.value-props { padding: 20px 0 48px; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

@media (min-width: 560px) {
  .value-grid--2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.value-card-body { padding: 22px 24px 26px; }

.value-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.value-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.promise-strip {
  text-align: center;
  padding: 28px 32px;
  margin: 0 0 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(22, 163, 74, 0.2);
  font-size: 1.05rem;
  color: var(--text);
}

.promise-strip strong { color: #15803d; }

/* MiX Learning spotlight */
.learning-spotlight {
  margin: 8px 0 56px;
  padding: 36px 32px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.14) 0%,
    rgba(6, 182, 212, 0.16) 42%,
    rgba(228, 218, 240, 0.92) 72%,
    rgba(236, 228, 210, 0.9) 100%
  );
  border: 2px solid rgba(124, 58, 237, 0.22);
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.14);
}

.learning-spotlight--compact {
  margin: 0 0 28px;
  padding: 28px 24px;
}

.learning-spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.learning-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.learning-spotlight h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}

.learning-spotlight h2 em {
  font-style: normal;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.learning-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.learning-promise-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.learning-promise-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: #334155;
}

.learning-promise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-future {
  font-size: 0.92rem;
  color: var(--muted);
}

.learning-featured-card {
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
}

.learning-featured-card .learning-app-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.learning-featured-card .learning-app-body {
  padding: 20px 22px 24px;
}

.learning-featured-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.learning-featured-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.learning-featured-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-learning {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.chip-kids-free {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

@media (max-width: 860px) {
  .learning-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  padding: 48px 0 24px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.page-hero--compact { padding: 36px 0 12px; }

.app-card-icon {
  border: 3px solid var(--bg2);
  box-shadow: 0 6px 20px rgba(26, 35, 64, 0.15);
}

.ngrok-banner {
  background: rgba(217, 119, 6, 0.1);
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
}

.downloads-table-wrap,
.download-warning,
.gallery-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-panel);
  border: 1px solid var(--surface-panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--panel-shadow);
}

.about-closing {
  border-left: 3px solid var(--cyan);
}

.monetization-note {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  margin: 16px 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Demo websites showcase */
.demo-showcase {
  padding: 28px 20px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.demo-showcase .page-hero {
  text-align: center;
  margin-bottom: 32px;
}

.demo-showcase .page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 10px 0 12px;
}

.demo-showcase .lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.demo-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e7490;
  margin: 0 0 6px;
}

.demo-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 14px;
  flex: 1;
  min-height: 3.2em;
  line-height: 1.45;
}

.demo-pick-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.demo-pick .demo-pick-btn {
  margin-top: auto;
  flex-shrink: 0;
}

/* Three demo pickers side by side */
.demo-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
  align-items: stretch;
}

.demo-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.demo-pick:hover {
  transform: translateY(-3px);
}

.demo-pick--garage { border-top: 4px solid #ea580c; }
.demo-pick--golden { border-top: 4px solid #d97706; }
.demo-pick--scifi { border-top: 4px solid #7c3aed; }

.demo-pick-new {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.demo-pick-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.demo-pick-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s;
}

.demo-pick-thumb:hover img {
  transform: scale(1.04);
}

.demo-pick h2 {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0 0 4px;
  line-height: 1.2;
}

.demo-pick-blurb {
  flex: 1;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.demo-pick-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--btn-primary-shadow);
  text-shadow: 0 1px 1px rgba(26, 35, 64, 0.14);
}

.demo-pick-btn:hover {
  box-shadow: var(--btn-primary-shadow-hover);
}

.demo-pick--garage .demo-pick-btn { background: linear-gradient(135deg, #ea580c, #c2410c); }
.demo-pick--golden .demo-pick-btn { background: linear-gradient(135deg, #f59e0b, #d97706); }
.demo-pick--scifi .demo-pick-btn { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

/* Screenshot preview rows — 3 columns aligned to demos above */
.demo-preview {
  margin-bottom: 32px;
}

.demo-preview h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 6px;
}

.demo-preview-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.demo-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.demo-preview-link {
  display: block;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.demo-preview-link:hover {
  transform: translateY(-2px);
}

.demo-preview-link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.demo-preview-link span {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.demo-preview-link--garage:hover { border-color: rgba(234, 88, 12, 0.45); }
.demo-preview-link--golden:hover { border-color: rgba(217, 119, 6, 0.45); }
.demo-preview-link--scifi:hover { border-color: rgba(124, 58, 237, 0.45); }

.demo-preview-link--garage span { color: #c2410c; }
.demo-preview-link--golden span { color: #b45309; }
.demo-preview-link--scifi span { color: #6d28d9; }

.demo-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Tablet portrait: compact 3-column, no horizontal scroll */
@media (min-width: 768px) and (max-width: 1100px) {
  .demo-pick-grid {
    gap: 10px;
  }

  .demo-pick {
    padding: 10px 8px 12px;
  }

  .demo-pick-new {
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    padding: 4px 7px;
  }

  .demo-pick-thumb {
    margin-bottom: 8px;
  }

  .demo-eyebrow {
    font-size: 0.68rem;
  }

  .demo-pick h2 {
    font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  }

  .demo-tagline {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }

  .demo-pick-blurb {
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .demo-pick-btn {
    font-size: 0.78rem;
    padding: 10px 12px;
  }

  .demo-preview-row {
    gap: 8px;
  }

  .demo-preview-link span {
    font-size: 0.68rem;
    padding: 6px 8px;
  }
}

/* Phone: swipe carousel */
@media (max-width: 767px) {
  .demo-pick-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .demo-pick-grid::-webkit-scrollbar {
    display: none;
  }

  .demo-pick {
    flex: 0 0 min(88vw, 320px);
    scroll-snap-align: start;
  }
}

.demo-pick-scroll-hint {
  display: none;
}

@media (max-width: 767px) {
  .demo-pick-scroll-hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin: -28px 0 28px;
  }
}

@media (max-width: 768px) {
  .wrap,
  .prose {
    padding-left: 16px;
    padding-right: 16px;
  }

  article.prose {
    padding: 32px 20px 48px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .logo {
    grid-column: auto;
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: auto;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    grid-column: auto;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    order: 3;
  }

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

  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .hero {
    padding: 60px 0 32px;
  }

  .hero-badge {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero p {
    font-size: 1.05rem;
    padding: 0 4px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    justify-items: center;
    margin-top: 32px;
  }

  .mosaic-tile {
    width: 64px;
    height: 64px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .learning-spotlight,
  .learning-spotlight--compact {
    padding: 24px 18px;
    margin-left: 0;
    margin-right: 0;
  }

  .toolbar {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .search-input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 10px 18px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .chip,
  .chip-download-link {
    font-size: 0.82rem;
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-card-chips {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
  }

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

  .btn-download-lg {
    font-size: 0.9rem;
    padding: 12px 16px;
    line-height: 1.35;
  }

  .app-detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-detail-cover-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .app-detail-header {
    flex-direction: column;
    margin-top: -32px;
  }

  .demo-showcase {
    padding: 20px 14px 64px;
  }

  .demo-preview-rows {
    overflow-x: visible;
  }

  .demo-preview-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .downloads-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .downloads-table {
    min-width: 520px;
  }

  section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .hero .btn {
    width: 100%;
    max-width: 340px;
  }

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

  .stat-num {
    font-size: 1.65rem;
  }
}

@media (hover: none) {
  .mosaic-label {
    opacity: 1;
    font-size: 0.5rem;
  }
}

/* Developer billing sub-nav + invoices/reports */
.bill-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.bill-subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-panel);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--panel-shadow);
}
.bill-subnav-link.is-active {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}
.bill-page--wide { max-width: 1080px; }
.inv-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .inv-filters { grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; }
}
.inv-filter label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.inv-filter select, .inv-filter input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.inv-filter-check { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; padding-bottom: 2px; }
.inv-table-scroll { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.inv-table th, .inv-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.inv-table th { color: var(--muted); font-weight: 600; }
.inv-table tr.is-highlight { background: rgba(6, 182, 212, 0.08); }
.inv-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 180px; }
.btn-xs { padding: 6px 10px; font-size: 0.76rem; }
.inv-status { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.inv-status--paid { color: #4ade80; }
.inv-status--pending { color: #fbbf24; }
.inv-status--cancelled { color: #f87171; }
.inv-toast {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.inv-toast.is-ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.inv-toast.is-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); color: #f87171; }
.rep-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.rep-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-panel);
  box-shadow: var(--panel-shadow);
}
.rep-card-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.rep-card-value { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.rep-card-note { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin-top: 8px; }
.rep-table th, .rep-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.rep-table th { color: var(--muted); }
.rep-empty { color: var(--muted); font-size: 0.9rem; }
.rep-bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 0.84rem; }
.rep-bar-track { height: 8px; border-radius: 999px; background: rgba(6, 182, 212, 0.12); overflow: hidden; }
.rep-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(6, 182, 212, 0.55), rgba(99, 102, 241, 0.55)); }
.rep-channel-row { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.rep-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* MiX Website owner hub — marketing screenshots */
.admin-showcase {
  margin: 36px 0 12px;
  scroll-margin-top: 80px;
}
.admin-showcase h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin-bottom: 8px;
  text-align: center;
}
.admin-showcase > p {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.55;
  margin: 0 auto 20px;
  text-align: center;
}
.admin-showcase-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .admin-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-showcase-grid .admin-showcase-shot:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    justify-self: center;
  }
}
.admin-showcase-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--glow);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.admin-showcase-shot:hover {
  border-color: rgba(6, 182, 212, 0.35);
}
.admin-showcase-shot.is-previewing {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 14px 40px rgba(6, 182, 212, 0.14);
  transform: translateY(-2px);
}
.admin-showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.admin-showcase-shot figcaption {
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
}
.admin-showcase-shot strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.admin-showcase-note {
  margin: 14px auto 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.5;
  text-align: center;
}