/* LiteEntry live demo.
   Layered on landing.css for tokens and buttons. Same constraint as everywhere
   else: strict `default-src 'self'`, so no fonts, no CDN, no inline styles. */

/* The banner is the demo's own navigation: the two halves and the way out.
   It sits above the product's chrome because it is not part of the product. */

/* Which half you are looking at, marked rather than guessed at. */

.demo-main { padding: 40px 0 80px; }

/* ── the two halves ───────────────────────────────────────────────────── */
/* Three columns: the location's rules, the code, the person scanning it.
   The employer's side and the employee's side, with the thing they meet at
   in between. */
.demo-grid {
  display: grid; gap: 32px; align-items: start;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 320px);
}
.demo-scan { justify-self: center; text-align: center; }
.demo-scan .tablet { margin: 0 auto; }
.demo-scan .kicker, .demo-scan h1 { text-align: center; }

/* Two columns first: the code keeps the top spot, and the rules that shape it
   come before the situation you invent. */
@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
  .demo-scan { grid-row: span 2; order: -1; }
}
@media (max-width: 800px) {
  .demo-grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-scan { grid-row: auto; }
}

.demo-scan h1 { font-size: 1.9rem; margin: 4px 0 20px; }
.kicker {
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  font-weight: 700; color: var(--brand);
}

.scan-form .btn { margin-bottom: 8px; }
.btn.big { padding: 14px 26px; font-size: 1.02rem; }

/* ── control summary ──────────────────────────────────────────────────── */
.demo-box {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; background: var(--wash);
}
.demo-box h2 { font-size: 1.05rem; margin-bottom: 6px; }
.demo-box > .muted { margin-bottom: 14px; }

.ctl-note { margin-top: 12px; }

/* A way back, beside the primary action rather than buried in the settings:
   a visitor who needs it is looking at the button that just surprised them. */
.scan-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.scan-actions form { margin: 0; }
.btn-reset {
  font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px;
}
.btn-reset:hover { border-color: var(--brand); color: var(--brand); }

/* ── scenarios ────────────────────────────────────────────────────────── */
.demo-more { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.demo-more h2 { font-size: 1.35rem; margin-bottom: 8px; }
.demo-more > .muted { max-width: 62ch; margin-bottom: 24px; }

.scenarios { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .scenarios { grid-template-columns: 1fr; } }
.scenario {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.btn-ghost {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ── call to action ───────────────────────────────────────────────────── */
.demo-cta {
  margin-top: 56px; padding: 32px; border-radius: 16px;
  background: var(--wash); border: 1px solid var(--line); text-align: center;
}
.demo-cta h2 { font-size: 1.3rem; margin-bottom: 18px; }
.cta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-form input[type="email"] {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .97rem; min-width: 260px;
}
.cta-form input[type="email"]:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.demo-cta .muted { margin-top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.demo-thanks { padding: 64px 0; }
.demo-thanks h1 { margin-bottom: 16px; }
.demo-thanks p { margin-bottom: 14px; }

/* ── the simulated situation ──────────────────────────────────────────────
   Policies say what is checked; these say what to check. The demo is the
   product of the two, which is the thing a list of fixed scenarios cannot
   show. */
.situation { display: grid; gap: 10px; }
.situation label {
  display: grid; gap: 4px; font-size: .82rem; color: var(--muted);
}
.situation select {
  font: inherit; font-size: .92rem; color: var(--ink);
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff;
}
.situation select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ── the tablet by the door ───────────────────────────────────────────────
   A QR floating on a web page does not read as the object it is on the wall.
   Drawn in CSS: the strict CSP allows no images beyond our own, and a photo
   would be a lie about the hardware anyway. */
.tablet {
  position: relative; width: 300px; padding: 34px 22px;
  border-radius: 26px; background: #111827;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .1), 0 18px 40px rgba(15, 23, 42, .22);
}
.tablet-screen {
  background: #fff; border-radius: 8px; padding: 16px 12px 12px;
  display: grid; justify-items: center; gap: 10px;
}
.tablet-screen img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.tablet-site {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand);
}
.tablet-tick { font-size: .8rem; color: var(--muted); }
.tablet-tick strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tablet-cam {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: #374151;
}
.tablet-caption { margin: 12px 0 20px; }
