/*
 * Brightstar Field — pitch deck
 * Palette and type are Brightstar Lottery's own, taken from brightstarlottery.com.
 * Prepared by ZenHammer; the byline is on every slide by design.
 */

:root {
  /* Brightstar's own star-named palette */
  --vega: #002ee5;
  --vega-deep: #0024b4;
  --vega-bg: #e8edff;
  --reach: #050533;
  --reach-soft: #141461;
  --dust: #f7ede5;
  --betel: #ff7a00;
  --aldebaran: #fccf0d;
  --procyon: #54f2a3;
  --arcturus: #e73443;
  --achernar: #dededb;

  --ink: var(--reach);
  --muted: #4c5566;
  --paper: var(--dust);
  --card: #ffffff;
  --line: var(--achernar);
  --green: #17724a;
  --green-bg: #ddfced;
  --amber: #7a6206;
  --amber-bg: #fef5cf;
  --red: #c42430;
  --red-bg: #fad6d9;

  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --pad: clamp(24px, 5vw, 84px);
  --maxw: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── slide system ──────────────────────────────────────────────────────── */
.deck { scroll-snap-type: y proximity; }

.slide {
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: clamp(44px, 6.5vh, 84px) var(--pad);
  position: relative;
  border-bottom: 1px solid rgba(5, 5, 51, 0.06);
}
.slide > .inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.slide.dark { background: var(--reach); color: #fff; border-bottom-color: rgba(255,255,255,.08); }
.slide.blue { background: var(--vega); color: #fff; border-bottom-color: rgba(255,255,255,.14); }
.slide.dark .muted, .slide.blue .muted { color: rgba(255,255,255,.72); }
.slide.dark .eyebrow, .slide.blue .eyebrow { color: var(--aldebaran); }

/* ── type ──────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vega);
  margin: 0 0 18px;
  font-weight: 500;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 62ch; line-height: 1.5; }
.slide.dark .lede, .slide.blue .lede { color: rgba(255,255,255,.78); }
.mono { font-family: var(--mono); }
strong { font-weight: 700; }

/* ── brand furniture ───────────────────────────────────────────────────── */
.mark { display: flex; align-items: center; gap: 10px; }
.mark svg { width: 1.5em; height: 1.5em; }
.mark .name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.mark .sub {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: .62; padding-left: 10px; border-left: 1px solid currentColor;
}

/* The byline and counter float over slides of every colour, so they carry
   their own ground rather than trying to blend with an unknown one. */
.byline, .nav {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(5, 5, 51, .08);
  border-radius: 999px;
  padding: 6px 14px;
}
.byline {
  position: fixed; left: var(--pad); bottom: 16px; z-index: 40;
  font-size: 11px; letter-spacing: .04em; color: var(--muted);
  pointer-events: none;
}
.byline b { font-family: var(--display); font-weight: 700; }

/* progress rail */
.rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: transparent; }
.rail i { display: block; height: 100%; width: 0; background: var(--vega); transition: width .12s linear; }

/* slide counter + hint */
.nav {
  position: fixed; right: var(--pad); bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
@media (max-width: 720px) { .nav span:last-child { display: none; } }

/* On narrow screens the fixed byline and counter sit over the content, so
   slides reserve a strip for them. */
@media (max-width: 720px) {
  .slide { padding-bottom: 96px; }
  .byline { font-size: 10px; padding: 5px 10px; max-width: 62vw; }
  .row { gap: 26px !important; }
}
.nav kbd {
  font-family: var(--mono); font-size: 10px; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; background: rgba(255,255,255,.6);
}

/* ── layout helpers ────────────────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cols.narrow-left { grid-template-columns: 0.85fr 1.15fr; }
.cols.narrow-right { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 900px) { .cols, .cols.narrow-left, .cols.narrow-right { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── screenshots ───────────────────────────────────────────────────────── */
figure { margin: 0; }
.shot {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(5, 5, 51, .16);
  background: var(--card);
}
.slide.dark .shot, .slide.blue .shot { border-color: rgba(255,255,255,.16); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.slide.dark figcaption, .slide.blue figcaption { color: rgba(255,255,255,.6); }

/* browser chrome around console shots */
.browser { border-radius: 12px; overflow: hidden; box-shadow: 0 26px 70px rgba(5,5,51,.20); background: #fff; }
.browser .bar {
  height: 30px; background: #e9e5dd; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c3b8; display: block; }
.browser .shot { border: 0; border-radius: 0; box-shadow: none; }
/* Console shots are wide and tall; cap them so a slide stays one screen.
   Cropping from the bottom keeps the header and the first rows, which is
   where the story is. */
.browser .shot { max-height: 56vh; object-fit: cover; object-position: top center; }

/* phone bezel */
.phone {
  --w: clamp(190px, 21vw, 268px);
  width: var(--w); flex: none;
  border-radius: calc(var(--w) * .12);
  padding: calc(var(--w) * .028);
  background: #0b0b16;
  box-shadow: 0 22px 54px rgba(5,5,51,.30);
}
.phone img, .phone video {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--w) * .095);
  background: #000;
}
.phones { display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: flex-start; flex-wrap: wrap; }
/* For slides where the phones sit under a block of content, so the slide still
   fits one viewport without scrolling inside itself. */
.phones.compact .phone { --w: clamp(128px, 12vw, 176px); }
.phones.compact .phone-label { font-size: 11px; margin-top: 7px; }
.phone-label { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; font-weight: 600; }
.slide.dark .phone-label, .slide.blue .phone-label { color: rgba(255,255,255,.7); }

/* ── cards, chips, lists ───────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.slide.dark .card, .slide.blue .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.card p:last-child { margin-bottom: 0; }
.card .rule { width: 30px; height: 3px; background: var(--vega); border-radius: 2px; margin-bottom: 14px; }
.slide.dark .card .rule, .slide.blue .card .rule { background: var(--aldebaran); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.chip {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.chip.ok { background: var(--green-bg); color: var(--green); }
.chip.warn { background: var(--amber-bg); color: var(--amber); }
.chip.bad { background: var(--red-bg); color: var(--red); }
.chip.neutral { background: #efece6; color: var(--muted); }

.stat { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.slide.dark .stat-label, .slide.blue .stat-label { color: rgba(255,255,255,.6); }

ul.ticks, ul.arrows { list-style: none; padding: 0; margin: 0; }
ul.ticks li, ul.arrows li {
  padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); font-size: 15.5px;
}
.slide.dark ul.ticks li, .slide.dark ul.arrows li { border-top-color: rgba(255,255,255,.14); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
ul.arrows li::before { content: "→"; position: absolute; left: 0; color: var(--vega); font-weight: 700; }
.slide.dark ul.arrows li::before { color: var(--aldebaran); }

/* ── the equipment label plate ─────────────────────────────────────────── */
.plate {
  background: #e4e2dc; border: 1px solid #b9b6ad; border-radius: 10px;
  padding: 26px 24px; font-family: var(--mono); font-size: clamp(13px, 1.2vw, 16px);
  color: #1b1b1a; line-height: 2.1; box-shadow: 0 20px 46px rgba(5,5,51,.22);
}
.plate .head { font-size: 11px; letter-spacing: .16em; color: #6e6b63; text-transform: uppercase; margin-bottom: 14px; }
.plate .r { display: flex; gap: 12px; white-space: nowrap; }
.plate .k { color: #6e6b63; min-width: 64px; }
.plate .adopt { background: rgba(23,114,74,.16); box-shadow: inset 0 -2px 0 rgba(23,114,74,.6); padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.plate .no { color: #8a8781; text-decoration: line-through; text-decoration-color: var(--arcturus); text-decoration-thickness: 2px; }

/* ── live serial checker ───────────────────────────────────────────────── */
.checker { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .checker { grid-template-columns: 1fr; } }
.try { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.try button {
  font-family: var(--mono); font-size: 12.5px; padding: 9px 13px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff;
  cursor: pointer; transition: background .14s, border-color .14s, transform .1s;
}
.try button:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.try button:active { transform: translateY(1px); }
.try button.on { background: var(--aldebaran); border-color: var(--aldebaran); color: var(--reach); font-weight: 600; }
.slot-note { font-size: 12.5px; opacity: .68; margin-bottom: 14px; }

.verdict-card {
  border-radius: 14px; padding: 22px; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); min-height: 240px;
}
.verdict-card.is-ok { border-color: var(--procyon); background: rgba(84,242,163,.1); }
.verdict-card.is-bad { border-color: var(--arcturus); background: rgba(231,52,67,.12); }
.verdict-head { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; font-weight: 600; }
.verdict-card.is-ok .verdict-head { color: var(--procyon); }
.verdict-card.is-bad .verdict-head { color: #ff9aa3; }
.verdict-value { font-family: var(--mono); font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 600; margin: 8px 0 12px; word-break: break-all; }
.verdict-why { font-size: 14.5px; line-height: 1.5; opacity: .9; }
.refused { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12.5px; }
.refused .t { font-family: var(--mono); text-decoration: line-through; text-decoration-color: var(--arcturus); }
.refused .p { opacity: .6; font-family: var(--mono); }

/* ── route map ─────────────────────────────────────────────────────────── */
.routebox { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.routebox svg { width: 100%; height: auto; display: block; }
.route-line { fill: none; stroke: var(--vega); stroke-width: 2; stroke-dasharray: 5 5; opacity: .5; }
.route-stop circle { fill: #fff; stroke: var(--vega); stroke-width: 2.5; }
.route-stop.done circle { fill: var(--green); stroke: var(--green); }
.route-stop.now circle { fill: var(--betel); stroke: var(--betel); }
.route-stop text { font-family: var(--mono); font-size: 9px; fill: var(--reach); font-weight: 600; }
.route-stop.done text, .route-stop.now text { fill: #fff; }

/* ── sequence ──────────────────────────────────────────────────────────── */
.seq { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
@media (max-width: 1000px) { .seq { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .seq { grid-template-columns: 1fr; } }
.seq .s { padding: 15px 16px; background: rgba(255,255,255,.06); border-radius: 10px; }
.seq .s::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--aldebaran); display: block; margin-bottom: 8px;
}
.seq .s h3 { font-size: .98rem; margin-bottom: 5px; }
.seq .s p { font-size: 13.5px; margin: 0; opacity: .75; line-height: 1.45; }

/* ── reveal ────────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  .rail, .nav { display: none !important; }
  .byline { position: static; background: none; border: 0; padding: 0; }
  body { background: #fff; }
  .deck { scroll-snap-type: none; }
  .slide {
    min-height: auto; page-break-after: always; break-after: page;
    padding: 22mm 16mm; border: 0;
  }
  .slide.dark, .slide.blue { background: #fff !important; color: #000 !important; }
  .slide.dark .lede, .slide.blue .lede, .slide.dark .muted, .slide.blue .muted { color: #444 !important; }
  .slide.dark .eyebrow, .slide.blue .eyebrow { color: var(--vega) !important; }
  .slide.dark .card, .slide.blue .card { background: #fff !important; border-color: #ccc !important; }
  .seq .s { background: #f4f2ee !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .shot { box-shadow: none; }
  .try, .checker button { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
