:root {
  color-scheme: light dark;
  --bg: #f7f8f8;
  --fg: #111719;
  --muted: #5f6b70;
  --line: #d9dedf;
  --accent: #087f8c;
  --accent-2: #7a4b18;
  --panel: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1112;
    --fg: #f6f8f8;
    --muted: #a8b2b6;
    --line: #2a3235;
    --accent: #34c3cf;
    --accent-2: #f0b35a;
    --panel: #171c1e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
}

.page {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 36px 0 10px;
  font-size: 24px;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.lede {
  max-width: 760px;
  font-size: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions a,
.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--panel);
  text-decoration: none;
  font-weight: 700;
}

.content,
.prose {
  border-top: 1px solid var(--line);
}

.prose h1 {
  margin-top: 40px;
  font-size: clamp(36px, 5vw, 56px);
}

.demo,
.screensaver,
.offline {
  background: #101415;
  color: #f6f8f8;
}

.demo {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.kiosk-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 16px;
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0;
}

.demo .kiosk-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template-rows: minmax(0, 1.3fr) auto minmax(0, 0.9fr);
  align-content: stretch;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(10px, 2.2vh, 28px) 0;
  overflow: hidden;
}

.kiosk-panel {
  border: 1px solid #30393c;
  border-radius: 8px;
  padding: 22px;
  background: #171d1f;
}

.primary-panel {
  min-height: 44vh;
  display: grid;
  align-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #171d1f 0%, #193130 52%, #2a2418 100%);
}

.demo .primary-panel {
  min-height: 0;
  gap: clamp(8px, 1.7vh, 18px);
  padding: clamp(14px, 2.2vh, 22px);
  overflow: hidden;
}

.demo .kiosk-panel {
  padding: clamp(12px, 1.8vh, 22px);
  overflow: hidden;
}

.primary-panel h1,
.screensaver-frame h1,
.offline-frame h1 {
  font-size: clamp(46px, 8vw, 92px);
}

.demo .primary-panel h1 {
  font-size: clamp(34px, min(7vw, 8vh), 84px);
}

.demo-copy,
.kiosk-panel p,
.screensaver-frame p,
.offline-frame p {
  max-width: 720px;
  color: #c1cacc;
}

.demo .demo-copy,
.demo .kiosk-panel p {
  margin: 0;
  font-size: clamp(13px, 1.9vh, 18px);
  line-height: 1.35;
}

.demo .eyebrow,
.demo .panel-label,
.demo .status-strip span {
  font-size: clamp(10px, 1.5vh, 14px);
}

.checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkin-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #7dcbd0;
  border-radius: 8px;
  padding: 0 18px;
  color: #f7ffff;
  background: #087f8c;
  text-decoration: none;
  font-weight: 800;
}

.checkin-actions a + a {
  border-color: #596969;
  background: #22302f;
}

.status-strip,
.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.status-strip div {
  min-height: 96px;
  border: 1px solid #30393c;
  border-radius: 8px;
  padding: 18px;
  background: #171d1f;
}

.demo .status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.2vh, 12px);
  min-height: 0;
}

.demo .status-strip div {
  min-height: 0;
  padding: clamp(8px, 1.5vh, 18px);
}

.status-strip span,
.panel-label {
  display: block;
  color: #8f9b9f;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 16px;
  color: #f6f8f8;
  font-size: 22px;
}

.demo .status-strip strong {
  margin-top: clamp(6px, 1vh, 16px);
  font-size: clamp(14px, 2.2vh, 22px);
  line-height: 1.05;
}

.kiosk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kiosk-panel h2 {
  margin: 14px 0 8px;
  color: #f6f8f8;
  font-size: 24px;
}

.demo .kiosk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vh, 12px);
  min-height: 0;
}

.demo .kiosk-panel h2 {
  margin: clamp(6px, 1vh, 14px) 0 clamp(4px, 0.8vh, 8px);
  font-size: clamp(18px, 3vh, 24px);
  line-height: 1.05;
}

.screensaver-frame,
.offline-frame {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.screensaver-stack {
  display: grid;
  gap: 18px;
  width: min(900px, 100%);
}

.screensaver-badge {
  justify-self: center;
  border: 1px solid #56706d;
  border-radius: 999px;
  padding: 8px 14px;
  color: #d8eeee;
  background: #182422;
  font-weight: 800;
}

.offline-frame a {
  color: #7dcbd0;
  font-weight: 800;
}

@media (max-width: 700px) {
  .page,
  .kiosk-shell {
    width: min(100% - 28px, 960px);
    padding: 32px 0;
  }

  .status-strip,
  .kiosk-grid {
    grid-template-columns: 1fr;
  }

  .demo .kiosk-shell {
    width: min(100% - 20px, 960px);
    padding: 10px 0;
  }

  .demo .status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .demo .kiosk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo .checkin-actions a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}
