/* Sentinel MX booth demo. Always dark: it runs on booth screens, matching the existing
   Sentinel MX booth kiosk (/demo/problems) tokens. Large type and targets for standing readers. */
:root {
  --bg: #0a0f1a; --panel: #121a2b; --panel-2: #172238; --ink: #eef2f7; --muted: #a9b5c7; --rule: #2a3752;
  --gold: #e0b93a; --gold-deep: #c9a227; --gold-soft: rgba(201,162,39,.12); --danger: #ff8a7a;
  --display: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 19px/1.5 var(--body); -webkit-tap-highlight-color: transparent; }
h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
a { color: var(--gold); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.app { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; max-width: 1280px; margin: 0 auto; padding: 20px 16px; gap: 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 40px; width: auto; display: block; }
main, main:focus, main:focus-visible { outline: none; }

.primary { background: var(--gold); color: #10131a; border: 0; border-radius: 12px; padding: 16px 26px; font-weight: 700; font-size: 20px; min-height: 60px; }
.primary:hover { background: #ecc64a; }
.primary:active { transform: translateY(1px); }
.primary[disabled] { opacity: .6; cursor: progress; }
.ghost { background: none; border: 2px solid var(--rule); color: var(--ink); border-radius: 12px; padding: 12px 22px; font-weight: 600; min-height: 56px; }
.ghost:hover { border-color: var(--gold-deep); }
.reset { background: var(--gold); color: #10131a; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: 19px; min-height: 52px; }
.link { background: none; border: 0; padding: 10px 4px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: 18px; min-height: 44px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.row.end { justify-content: flex-end; }
.help { color: var(--muted); font-size: 17px; }
.error { color: var(--danger); font-weight: 600; font-size: 18px; }
.eyebrow { font: 600 15px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Entry */
.entry { display: grid; gap: 22px; padding: clamp(8px, 4vh, 64px) 0 0; }
.entry h1 { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.03; }
.urlform { display: grid; gap: 10px; max-width: 980px; }
.urlform label, .manual label { font-weight: 700; font-size: 21px; }
.urlform input { flex: 1 1 320px; min-width: 0; min-height: 64px; font-size: 24px; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--rule); background: var(--panel); }
.urlform input:focus { border-color: var(--gold); outline: none; }
.urlform input[aria-invalid="true"] { border-color: var(--danger); }
.alt { color: var(--muted); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }

/* Manual */
.manual { display: grid; gap: 12px; max-width: 760px; background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.manual h2 { font-size: 32px; }
.manual form { display: grid; gap: 10px; }
.manual input, .manual textarea { width: 100%; font-size: 20px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--rule); background: var(--bg); }
.manual input:focus, .manual textarea:focus { border-color: var(--gold); outline: none; }

/* Working / failed */
.working { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 12vh 0; }
.working p { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); }
.working .sub { font-family: var(--body); font-size: 19px; color: var(--muted); }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--rule); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.failed { display: grid; gap: 16px; max-width: 820px; background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.failed h2 { font-size: 32px; }

/* Result */
.result { display: grid; gap: 22px; }
.sample-banner { background: var(--gold-soft); border: 2px dashed var(--gold-deep); color: var(--gold); font-weight: 700; padding: 12px 16px; border-radius: 12px; font-size: 20px; }
.company { display: grid; gap: 10px; }
.company h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; overflow-wrap: anywhere; }
.summary { font-size: clamp(20px, 1.9vw, 25px); max-width: 64ch; }
.summary .src, .source a, .source span { font-size: 15px; color: var(--muted); }
.basis { color: var(--muted); font-size: 16px; }
.nofit, .more { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; display: grid; gap: 12px; justify-items: start; }
.nofit h2 { font-size: 30px; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.rec { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; }
.rec:first-child { border-color: var(--gold-deep); }
.rec-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.num { font-family: var(--display); font-size: 30px; line-height: 1; color: #10131a; background: var(--gold); border-radius: 12px; min-width: 48px; height: 48px; display: grid; place-items: center; }
.rec-title { font-size: clamp(26px, 2.7vw, 36px); line-height: 1.15; }
.rec-body { display: grid; gap: 10px; font-size: clamp(19px, 1.6vw, 21px); max-width: 78ch; }
.rec-body strong { color: var(--gold); font-weight: 700; }
.check { color: var(--muted); font-size: 16px; font-style: italic; }
.source { font-size: 15px; color: var(--muted); }
.source a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Video */
.player { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; max-width: 960px; border: 1px solid var(--rule); }
.player video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #000; display: grid; place-items: center; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.poster .play { position: relative; display: inline-flex; align-items: center; gap: 12px; background: var(--gold); color: #10131a; font-weight: 700; font-size: clamp(18px, 2vw, 24px); padding: 14px 24px; border-radius: 999px; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.poster .play::before { content: ''; width: 0; height: 0; border-left: 16px solid #10131a; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.poster:hover .play { background: #ecc64a; }
.vmeta { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 15px; margin-top: 8px; }
.vmeta button { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; color: var(--ink); font-weight: 600; min-height: 44px; }
.live { background: var(--panel-2); border: 2px dashed var(--gold-deep); border-radius: 14px; padding: 18px; display: grid; gap: 6px; max-width: 960px; }
.live b { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--gold); }
.notes { color: var(--muted); font-size: 16px; }
.overview { display: grid; gap: 12px; }
.overview h2 { font-size: 30px; }
.disclaimer { color: var(--muted); font-size: 15px; border-top: 1px solid var(--rule); padding-top: 14px; }

.foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; border-top: 1px solid var(--rule); padding-top: 14px; }
.foot b { color: var(--gold); font-weight: 600; }

@media (min-width: 1024px) {
  .app { padding: 28px 32px; }
  .logo { height: 48px; }
  /* Laptop / landscape tablet: text beside its video so each idea and its demo stay together. */
  .rec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head head" "body media" "source media"; column-gap: 28px; align-items: start; }
  .rec-head { grid-area: head; }
  .rec-body { grid-area: body; }
  .media { grid-area: media; }
  .source { grid-area: source; align-self: end; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .logo { height: 30px; }
  .reset { padding: 10px 16px; font-size: 16px; min-height: 48px; }
  .primary { width: 100%; }
  .urlform input { font-size: 20px; }
  .rec-head { grid-template-columns: 1fr; }
  .num { min-width: 40px; height: 40px; font-size: 24px; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
