:root {
  --ink: #0B2540;
  --muted: #5A6B7B;
  --brand: #0E7C86;
  --brand-2: #0B2540;
  --accent: #1D4ED8;
  --bg: #F4F7F9;
  --card: #FFFFFF;
  --line: #E2E9F0;
  --teal-soft: #E6F3F4;
  --blue-soft: #EAF0FE;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --slate: #94A3B8;
  --shadow: 0 1px 2px rgba(11, 37, 64, .04), 0 8px 24px rgba(11, 37, 64, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* beat element-specific display rules below */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #0B2540 0%, #0E7C86 100%);
  color: #fff; padding: 40px 0 44px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.brandrow { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; position: relative; z-index: 1; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brandname { font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.hero h1 { font-size: clamp(24px, 4.4vw, 34px); font-weight: 800; letter-spacing: -.01em; max-width: 16em; position: relative; z-index: 1; }
.hero .lede { margin-top: 10px; margin-bottom: 10px; color: #DCEAF0;  position: relative; z-index: 1; }

/* ---------- cards / sections ---------- */
main { padding: 28px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
.muted { color: var(--muted); }

.sec-h { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; }
.sec-h h2 { font-size: 18px; font-weight: 800; }
.sec-h .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- control card ---------- */
.control { margin-top: -48px; position: relative; z-index: 2; }
.control-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.control-head h2 { font-size: 18px; font-weight: 800; }
#status-line { margin-top: 3px; font-size: 13.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px;
  border: 1px solid var(--line); background: #fff; white-space: nowrap;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); }
.pill[data-state="running"] { color: var(--green); border-color: #BBF7D0; background: #F0FDF4; }
.pill[data-state="running"] .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.pill[data-state="stopped"] { color: var(--red); border-color: #FECACA; background: #FEF2F2; }
.pill[data-state="stopped"] .dot { background: var(--red); }
.pill[data-state="pending"] { color: var(--amber); border-color: #FDE68A; background: #FFFBEB; }
.pill[data-state="pending"] .dot { background: var(--amber); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.control-actions { display: flex; align-items: flex-end; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.pin { display: flex; flex-direction: column; gap: 5px; }
.pin span { font-size: 12px; font-weight: 600; }
.pin input {
  width: 120px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; letter-spacing: .25em; font-family: inherit;
}
.pin input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--teal-soft); }
.btns { display: flex; gap: 10px; }
.btn {
  padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: inherit; transition: transform .04s, filter .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-start { background: var(--brand); color: #fff; }
.btn-start:not(:disabled):hover { filter: brightness(1.06); }
.btn-stop { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-stop:not(:disabled):hover { border-color: #FECACA; color: var(--red); }

.app-link {
  display: inline-block; margin-top: 18px; padding: 11px 16px; border-radius: 9px;
  background: var(--teal-soft); color: var(--brand-2); font-weight: 600; text-decoration: none;
  border: 1px solid #CFE7E8;
}
.app-link:hover { filter: brightness(.98); }
.note { margin-top: 14px; font-size: 12.5px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tile video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0B2540; object-fit: cover; }
.tile .meta { padding: 12px 14px 14px; }
.tile .meta .t { font-weight: 700; font-size: 14.5px; }
.tile .meta .b { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tile.missing { display: flex; align-items: center; justify-content: center; min-height: 200px; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- pitch sections ---------- */
.grid { display: grid; gap: 16px; }
.caps { grid-template-columns: repeat(4, 1fr); }
.vals { grid-template-columns: repeat(2, 1fr); }
.challenge { grid-template-columns: repeat(3, 1fr); }
.flow { grid-template-columns: repeat(4, 1fr); }
.flow5 { grid-template-columns: repeat(5, 1fr); }
.kpis { grid-template-columns: repeat(4, 1fr); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.stat { background: var(--teal-soft); border: 1px solid #D3E7E8; border-radius: 12px; padding: 16px; }
.stat .n { font-size: 28px; font-weight: 800; color: var(--brand-2); line-height: 1; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 600; line-height: 1.35; }

/* capability + value cards */
.cap, .cel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.cap .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cap .t, .val .t { font-weight: 700; font-size: 14.5px; }
.cap .d, .val .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.42; }
.val { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.val .ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }

/* challenge cards */
.challenge .cel { border-left: 3px solid var(--brand); }
.challenge .t { font-weight: 700; font-size: 14px; }
.challenge .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.42; }

/* compliance band */
.band { background: var(--brand-2); color: #fff; border-radius: 14px; padding: 22px; }
.band .bh { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.band .bh h3 { font-size: 16px; font-weight: 800; }
.band .bh .p { margin-left: auto; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #BFE0E3; font-weight: 700; }
.clist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.ci { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #E7F1F2; line-height: 1.4; }
.ci b { color: #fff; }
.ci .tick { flex: 0 0 16px; margin-top: 1px; }

/* rollout steps */
.step { padding-right: 10px; }
.step .num { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1.5px solid #CBE4E5; }
.step .t { font-weight: 700; font-size: 14px; margin-top: 10px; }
.step .d { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* KPI tiles */
.kpi { background: var(--blue-soft); border: 1px solid #D3DEFB; border-radius: 12px; padding: 16px; }
.kpi .k { font-size: 11px; font-weight: 800; letter-spacing: .05em; color: var(--accent); }
.kpi .t { font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* CTA */
.cta { margin: 8px 0 4px; background: linear-gradient(135deg, #0E7C86 0%, #0B2540 100%); color: #fff; border-radius: 14px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta .h { font-size: 20px; font-weight: 800; }
.cta .s { color: #D5EAEC; margin-top: 4px; font-size: 14px; }
.cta .contact { text-align: right; font-size: 13.5px; line-height: 1.75; }
.cta .contact b { color: #fff; }
.cta a { color: #fff; }

@media (max-width: 820px) {
  .caps, .flow, .flow5, .kpis { grid-template-columns: repeat(2, 1fr); }
  .clist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .control-head { flex-direction: column; }
  .gallery, .stats, .caps, .vals, .challenge, .flow, .flow5, .kpis, .clist { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .contact { text-align: left; }
}
