:root {
  --bg: #071018;
  --panel: #0e1b26;
  --panel2: #10222e;
  --line: #223746;
  --text: #eef5f8;
  --muted: #9db0bb;
  --yellow: #f6c744;
  --green: #73d77f;
  --orange: #ef9340;
  --blue: #69b6ea;
  --red: #de655c;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #03090e;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

button { font: inherit; cursor: pointer; }

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  padding-bottom: 92px;
  background:
    linear-gradient(rgba(105, 182, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 182, 234, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at top, #0c1c28 0%, #071018 55%, #050d14 100%);
  background-size: 24px 24px, 24px 24px, auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 16, 24, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

.sign {
  background: #173260;
  border: 2px solid #e4b43e;
  color: #ffc947;
  border-radius: 8px;
  padding: 7px 9px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.sign span {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.brandtext {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.bell {
  min-width: 52px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}

.demo-banner {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px dashed rgba(246, 199, 68, 0.45);
  background: rgba(246, 199, 68, 0.1);
  color: #ffe7a0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

main { padding: 15px; }

.view { display: none; }
.view.active { display: block; }

.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 2px 12px;
}

.h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}
.h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.body { font-size: 15px; line-height: 1.5; }
.small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.card {
  background: rgba(14, 27, 38, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 12px;
}
.hero {
  background: linear-gradient(135deg, rgba(246, 199, 68, 0.09), rgba(14, 27, 38, 0.97));
  border-color: rgba(246, 199, 68, 0.3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.pill.live {
  color: #baf0c2;
  border-color: rgba(115, 215, 127, 0.35);
  background: rgba(115, 215, 127, 0.08);
}
.pill.wait {
  color: #ffd06b;
  border-color: rgba(246, 199, 68, 0.35);
  background: rgba(246, 199, 68, 0.08);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #758691;
}
.dot.live { background: var(--green); }
.dot.wait { background: var(--yellow); }

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}
.stat {
  background: rgba(14, 27, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
}
.statn {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}
.statl {
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
}

.truth {
  padding: 12px;
  border-radius: 13px;
  border: 1px dashed rgba(105, 182, 234, 0.28);
  background: rgba(105, 182, 234, 0.06);
  font-size: 13px;
  color: #bed2de;
  margin-bottom: 12px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-weight: 700;
}
.btn.primary {
  background: var(--yellow);
  color: #17150a;
  border-color: transparent;
}

.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.avatar.bob { color: var(--yellow); }
.avatar.scoop { color: #e7b83b; }
.avatar.dizzy { color: var(--orange); }
.avatar.lofty { color: var(--blue); }
.avatar.roley { color: #70bb72; }
.avatar.muck { color: var(--red); }
.avatar.run { border-color: rgba(115, 215, 127, 0.5); }
.avatar.run span { animation: jiggle 1.45s ease-in-out infinite; }
.avatar.run::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid rgba(115, 215, 127, 0.4);
  animation: halo 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .avatar.run span,
  .avatar.run::after { animation: none !important; }
}

@keyframes jiggle {
  0%, 100% { transform: rotate(0) translateY(0); }
  30% { transform: rotate(-2deg) translateY(-1px); }
  65% { transform: rotate(2deg) translateY(1px); }
}
@keyframes halo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(115, 215, 127, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(115, 215, 127, 0); }
}

.crewrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.crewrow:first-child { border-top: 0; }
.crew-blurb { margin-top: 8px; padding-left: 58px; }

.name {
  font-size: 15px;
  font-weight: 800;
}
.role {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}
.activity {
  font-size: 13px;
  margin-top: 4px;
}
.activity.live { color: #a8edb0; }
.activity.wait { color: #ffd06b; }
.time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  max-width: 88px;
}
.demo-clock { color: #c9b27a; }

.feature,
.job {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(14, 27, 38, 0.95);
  color: var(--text);
  border-radius: 15px;
  padding: 13px;
  margin-bottom: 10px;
}
.featureline,
.jobline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ftitle,
.jtitle {
  font-size: 16px;
  font-weight: 800;
}
.fdesc,
.jdesc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.jmeta-line {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.josh-need {
  font-size: 13px;
  margin-top: 6px;
  color: #ffd06b;
  font-weight: 700;
}
.josh-need.quiet {
  color: var(--muted);
  font-weight: 600;
}

.progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}
.bar {
  height: 100%;
  background: var(--yellow);
  border-radius: 99px;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-bottom: 10px;
}
.filter {
  min-height: 40px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}
.filter.active {
  background: var(--yellow);
  color: #17150a;
  border-color: transparent;
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.step { text-align: center; }
.stepc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin: auto;
  font-weight: 800;
}
.step.done .stepc {
  background: rgba(115, 215, 127, 0.12);
  border-color: rgba(115, 215, 127, 0.45);
}
.step.now .stepc {
  background: rgba(246, 199, 68, 0.12);
  border-color: rgba(246, 199, 68, 0.55);
}
.stepl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.events { margin-top: 8px; }
.event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 13px;
}
.event:first-child { border-top: 0; }

.moreitem {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.moreitem:first-child { border-top: 0; }
.moreicon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--panel2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 8px 6px max(12px, env(safe-area-inset-bottom));
  background: rgba(5, 12, 18, 0.98);
  border-top: 1px solid var(--line);
  z-index: 9;
}
.tab {
  min-height: 58px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 11px;
  font-size: 12px;
}
.tab.active {
  color: var(--yellow);
  background: rgba(246, 199, 68, 0.06);
  border-color: rgba(246, 199, 68, 0.14);
}
.tab b {
  display: block;
  font-size: 17px;
  margin-bottom: 3px;
}

.hidden { display: none !important; }
.back {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 0 0 10px;
  font-size: 15px;
}
.note {
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
}

@media (max-width: 412px) {
  .h1 { font-size: 30px; }
  .summary { gap: 7px; }
  .statn { font-size: 24px; }
}
