/* jackpotbet ice-blue technical editorial — Factory 102 / color 001 / type 049 */
:root {
  --primary: #1769e8;
  --primary-ink: #0d4db8;
  --accent: #0ea5a8;
  --accent-ink: #086e70;
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #e8f1ff;
  --ink: #13213a;
  --muted: #52647c;
  --border: #c9d9f2;
  --rule: #9eb6dc;
  --danger: #9b1c2c;
  --ok: #0b6b4a;
  --font: "Nunito Sans", sans-serif;
  --header-h: 64px;
  --cta-h: 64px;
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 10px 28px rgba(19, 33, 58, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/f-35169401.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
img { width: 100%; object-fit: cover; }
button, input, select, textarea { font: inherit; }

a { color: var(--primary-ink); text-underline-offset: 2px; }
a:hover { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

body {
  background-image:
    linear-gradient(rgba(201, 217, 242, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 217, 242, 0.45) 1px, transparent 1px);
  background-size: 28px 28px;
  padding-top: var(--header-h);
}

/* Docked header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  justify-self: end;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex-wrap: nowrap;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 8px 0;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
}

.header-cta:hover { color: #fff; background: var(--primary-ink); }

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

.band {
  padding: 56px 0;
  min-width: 0;
}

.band + .band { border-top: 1px solid transparent; }

.surface { background: var(--surface); }
.tint { background: var(--surface-2); }
.paper { background: transparent; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: pretty;
}

h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 16px; max-width: 70ch; }
.lede { font-size: 19px; color: var(--muted); }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn:hover { color: #fff; background: var(--primary-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--ink); background: var(--surface); }

.meta-line {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Poster hero */
.hero-poster {
  padding: 36px 0 48px;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero-poster .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: end;
  width: 100%;
}
.hero-copy { min-width: 0; }
.hero-copy h1 { margin-bottom: 16px; max-width: 16ch; }
.hero-copy .proof {
  font-size: 18px;
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 22px;
}
.hero-visual {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px;
}
.hero-visual figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px 2px;
}

/* Hairline compliance */
.compliance {
  padding: 10px 0;
  background: var(--ink);
  color: #e8f1ff;
  font-size: 13px;
  font-weight: 600;
}
.compliance .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.compliance p { margin: 0; max-width: none; color: inherit; }

/* Tabbed desk */
.desk { background: var(--surface); }
.tablist {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 18px 0 0;
}
.tablist button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tablist button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}
.tabpanel {
  display: none;
  padding: 22px 0 0;
}
.tabpanel.is-active { display: block; }
.tabpanel[hidden] { display: none; }
.bound-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bound {
  border: 1px solid var(--border);
  padding: 16px;
  background: var(--bg);
  min-width: 0;
}
.bound strong { display: block; margin-bottom: 6px; }
.bound p { margin: 0; font-size: 16px; color: var(--muted); }

/* Cutout still */
.still {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}
.still figure {
  background: var(--surface);
  border: 1px dashed var(--rule);
  padding: 14px;
  min-width: 0;
}
.still ol { margin: 0; padding-left: 18px; }
.still li { margin-bottom: 10px; }

/* Stepper */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.step {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.step:last-child { border-right: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 800;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Dense ledger */
.ledger-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.ledger {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.ledger th,
.ledger td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.ledger th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.ledger td { font-size: 16px; }
dl.ledger {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 8px 20px;
  max-width: 100%;
}
dl.ledger dt,
dl.ledger dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mark {
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Cinematic chapter */
.chapter {
  padding: 72px 0;
  background: var(--ink);
  color: #f4f8ff;
  position: relative;
}
.chapter .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.chapter-word {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin: 0;
}
.chapter p { color: #c9d9f2; }
.chapter .vs {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Process strip */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.process article {
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}
.process h3 { font-size: 16px; }
.process p { margin: 0; font-size: 15px; color: var(--muted); }

/* Gate */
.gate {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: stretch;
}
.gate-card {
  background: #fff6f4;
  border: 1px solid #efc4c4;
  padding: 22px;
}
.gate-card h2 { color: var(--danger); }

/* Control bench */
.bench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.control {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-width: 0;
}
.control h3 { font-size: 18px; }
.control p { margin: 0; color: var(--muted); font-size: 16px; }

/* Action rail */
.rail {
  background: var(--primary);
  color: #fff;
  padding: 28px 0;
}
.rail .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.rail h2, .rail p { color: #fff; margin: 0; }
.rail p { max-width: 52ch; }
.rail .btn { background: #fff; color: var(--primary-ink); }
.rail .btn:hover { background: var(--surface-2); color: var(--ink); }

/* Dated feed */
.feed { display: grid; gap: 0; }
.feed-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.feed-item time {
  font-weight: 800;
  color: var(--accent-ink);
  font-size: 14px;
  white-space: nowrap;
}
.correction {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--danger);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Brand corridor */
.corridor {
  columns: 2;
  column-gap: 40px;
}
.corridor a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  break-inside: avoid;
}
.corridor a span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
}

/* Colophon */
.colophon {
  font-size: 15px;
  color: var(--muted);
}
.colophon p { max-width: 80ch; }

/* Article / inner pages */
.page-hero {
  padding: 36px 0 28px;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: end;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb li { white-space: nowrap; }
.crumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rule); }
.prose > * { min-width: 0; }
.prose p, .prose li, .prose dd { overflow-wrap: break-word; }
.crumb a { color: inherit; text-decoration: none; }
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.prose h2 { margin-top: 8px; }
.prose figure {
  margin: 28px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
}
.prose figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 4px 2px;
}
.split-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 110px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.site-footer h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.legal-line { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* Mobile sticky CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 248, 255, 0.96);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn {
  width: 100%;
  height: 48px;
}

main > section:nth-of-type(n+4),
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* Drawer overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19, 33, 58, 0.28);
  z-index: 40;
}

@media (max-width: 1023px) {
  :root { --header-h: 56px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    transform: translateY(-120%);
    visibility: hidden;
    z-index: 45;
  }
  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .header-cta { display: none; }
  .sticky-cta { display: block; }
  body.is-nav-open { overflow: hidden; }
  .nav-backdrop.is-open { display: block; }

  .hero-poster { min-height: auto; padding: 24px 0 32px; }
  .hero-poster .wrap,
  .page-hero .wrap,
  .still,
  .chapter .wrap,
  .gate,
  .split-note {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy h1 { max-width: none; }
  .bound-grid,
  .steps,
  .process,
  .bench,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .feed-item { grid-template-columns: minmax(0, 1fr); }
  .corridor { columns: 1; }
  .rail .wrap { flex-direction: column; align-items: flex-start; }
  .tablist { overflow-x: auto; }
}

@media (max-width: 430px) {
  body { font-size: 17px; }
  .band { padding: 40px 0; }
  main > section:nth-of-type(n+4),
  .site-footer {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }
  .hero-copy .proof { font-size: 17px; }
  dl.ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }
  dl.ledger dt { margin-top: 10px; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
