/* Insightra Field App — device frame on a light stage. No glow, one soft shadow. */
body { background: var(--canvas-2); }

.stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  gap: 72px; padding: 48px 32px;
}
.stage-side { max-width: 320px; flex-shrink: 0; }
.stage-side .stage-logo { height: 64px; width: auto; display: block; margin-bottom: 22px; }
.stage-side h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.stage-tag { margin: 2px 0 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.stage-desc { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.stage-motto { margin: 0 0 22px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); }
.stage-link { font-size: 13.5px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.stage-link:hover { text-decoration: underline; }

/* Device --------------------------------------------------- */
.phone {
  position: relative; width: 390px; height: 820px; flex-shrink: 0;
  background: #0E0E0F; border-radius: 52px; padding: 11px;
  box-shadow: 0 30px 70px rgba(20, 18, 16, 0.18), 0 2px 0 rgba(255,255,255,0.04) inset;
}
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 30px; background: #0E0E0F; border-radius: 0 0 18px 18px; z-index: 20;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--canvas); border-radius: 42px;
  display: flex; flex-direction: column;
}

/* Status bar ----------------------------------------------- */
.status-bar {
  flex-shrink: 0; height: 46px; padding: 0 26px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--ink); padding-top: 6px;
}
.status-bar .mono { font-size: 13px; letter-spacing: 0.02em; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.battery { width: 22px; height: 11px; border: 1.4px solid var(--ink); border-radius: 3px; position: relative; padding: 1.4px; }
.battery::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: var(--ink); border-radius: 0 1px 1px 0; }
.battery i { display: block; height: 100%; width: 76%; background: var(--ink); border-radius: 1px; }

/* Scroll area ---------------------------------------------- */
#app-view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
#app-view::-webkit-scrollbar { width: 0; }

/* Tab bar -------------------------------------------------- */
.tabbar {
  flex-shrink: 0; height: 74px; padding: 8px 10px 16px;
  display: flex; align-items: flex-start; justify-content: space-around;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-faint); flex: 1; padding-top: 4px;
  transition: color var(--duration) var(--ease);
}
.tab.on { color: var(--brand); }
.tab-fab { position: relative; }
.tab-fab .fab {
  width: 46px; height: 46px; border-radius: 16px; background: var(--brand); color: #fff;
  display: grid; place-items: center; margin-top: -16px;
  box-shadow: 0 6px 16px rgba(19,35,91,0.30);
}
.tab-fab.on { color: var(--brand); }

/* Bottom sheet --------------------------------------------- */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: 40; background: rgba(20,18,16,0.34);
  display: flex; align-items: flex-end; opacity: 0; transition: opacity 220ms var(--ease);
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  width: 100%; background: var(--surface); border-radius: 24px 24px 42px 42px;
  padding: 10px 22px 30px; transform: translateY(100%); transition: transform 260ms var(--ease);
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 16px; }

@media (max-width: 880px) {
  .stage { gap: 0; padding: 0; }
  .stage-side { display: none; }
  .phone { width: 100vw; height: 100vh; max-width: 430px; border-radius: 0; padding: 0; box-shadow: none; }
  .phone-notch { display: none; }
  .phone-screen { border-radius: 0; }
}
