/* Phone frame & in-app UI mockups (pure CSS) */

.phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.mockup-caption {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.phone-frame {
  width: 260px;
  background: #1e293b;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #334155,
    0 24px 48px rgba(15, 23, 42, 0.28);
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .phone-frame {
    box-shadow:
      0 0 0 2px #475569,
      0 24px 48px rgba(0, 0, 0, 0.5);
  }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #1e293b;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  font-size: 11px;
  color: #0f172a;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.m-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 14px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.m-status-icons {
  display: flex;
  gap: 4px;
  letter-spacing: 1px;
}

/* App bar */
.m-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
}

.m-appbar h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.m-appbar-icons {
  display: flex;
  gap: 2px;
}

.m-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
}

.m-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: #0284c7;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.m-body {
  flex: 1;
  padding: 0 12px 52px;
  overflow: hidden;
}

/* Banner */
.m-banner {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.m-banner-icon { font-size: 14px; line-height: 1; }
.m-banner strong { display: block; font-size: 10px; color: #0369a1; }
.m-banner span { font-size: 9px; color: #0c4a6e; }

/* Stats row */
.m-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.m-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
}

.m-stat-num {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.m-stat-num.warn { color: #d97706; }
.m-stat-num.bad { color: #dc2626; }

.m-stat-label {
  font-size: 8px;
  color: #64748b;
  line-height: 1.2;
}

/* Section title */
.m-section-title {
  font-size: 11px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: #0f172a;
}

/* Space cards */
.m-spaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.m-space-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
}

.m-space-card .icon { font-size: 16px; margin-bottom: 2px; }
.m-space-card strong { display: block; font-size: 10px; }
.m-space-card span { font-size: 8px; color: #64748b; }

.m-space-card.accent-blue { border-color: #7dd3fc; background: #f0f9ff; }
.m-space-card.accent-green { border-color: #86efac; background: #f0fdf4; }

/* List rows */
.m-list-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.m-list-item strong { font-size: 10px; display: block; }
.m-list-item small { font-size: 8px; color: #64748b; }

.m-pill {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.m-pill.ok { background: #dcfce7; color: #166534; }
.m-pill.warn { background: #fef3c7; color: #92400e; }
.m-pill.bad { background: #fee2e2; color: #991b1b; }

/* FAB */
.m-fab {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

/* Scanner screen */
.phone-screen--scanner {
  background: #0f172a;
  color: #e2e8f0;
}

.m-scanner-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.m-viewfinder {
  width: 180px;
  height: 120px;
  border: 2px solid rgba(56, 189, 248, 0.8);
  border-radius: 12px;
  position: relative;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.6)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 8px,
      rgba(255,255,255,0.03) 8px,
      rgba(255,255,255,0.03) 9px
    );
}

.m-viewfinder::before,
.m-viewfinder::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #38bdf8;
}

.m-viewfinder::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
  border-radius: 8px 0 0 0;
}

.m-viewfinder::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
  border-radius: 0 0 8px 0;
}

.m-barcode {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0 2px,
    transparent 2px 4px,
    #fff 4px 5px,
    transparent 5px 8px
  );
  opacity: 0.85;
}

.m-scanner-hint {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.m-scanner-result {
  margin-top: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  text-align: left;
}

.m-scanner-result strong {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
}

.m-scanner-result span {
  font-size: 9px;
  color: #94a3b8;
}

/* Items screen header */
.m-subtitle {
  font-size: 9px;
  color: #64748b;
  margin: -4px 0 8px;
  padding-left: 2px;
}

/* Screenshot gallery */
.screenshots-section {
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--bg));
  border-block: 1px solid var(--border);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  align-items: end;
  justify-items: center;
}

@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

.screenshots-grid .phone-mockup:nth-child(2) .phone-frame {
  transform: translateY(-12px);
}

@media (max-width: 900px) {
  .screenshots-grid .phone-mockup:nth-child(2) .phone-frame {
    transform: none;
  }
}

/* Hero phone */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone .phone-frame {
  width: 280px;
  transform: rotate(-2deg);
}

.hero-phone .phone-screen {
  min-height: 540px;
}

@media (max-width: 860px) {
  .hero-phone .phone-frame {
    transform: none;
    width: 260px;
  }
}
