/* Snoot Boopers Inc. Restyle from the tokens below; everything else reads them. */
:root {
  --sb-brand: #1546b8;        /* primary blue: 7.6:1 on white */
  --sb-brand-hover: #0f378f;
  --sb-ink: #0b1f44;          /* headings */
  --sb-text: #2b3650;         /* body */
  --sb-muted: #4f5b75;        /* 6.6:1 on white */
  --sb-bg: #ffffff;
  --sb-bg-alt: #f2f5fb;
  --sb-line: #d8deea;
  --sb-accent: #f2b33d;       /* treat gold */
  --sb-good: #0d7a46;
  --sb-dark: #0b1f44;         /* footer */
  --sb-dark-text: #eef2fa;
  --sb-radius: 16px;
  --sb-radius-sm: 10px;
  --sb-shadow: 0 1px 2px rgb(11 31 68 / .06), 0 8px 24px rgb(11 31 68 / .08);
  --sb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sb-serif: Georgia, "Times New Roman", serif;
  --sb-max: 1160px;
  --sb-focus: #f2b33d;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sb-font); color: var(--sb-text); background: var(--sb-bg); }
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--sb-ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--sb-brand); text-underline-offset: 3px; }
a:hover { color: var(--sb-brand-hover); }
:focus-visible { outline: 3px solid var(--sb-focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--sb-max), 100% - 40px); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sb-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--sb-font); cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--sb-brand); color: #fff; }
.btn-primary:hover { background: var(--sb-brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--sb-brand); border-color: var(--sb-brand); }
.btn-ghost:hover { background: var(--sb-bg-alt); color: var(--sb-brand-hover); }
.btn-lg { font-size: 1.1rem; padding: 14px 28px; min-height: 52px; }
.btn-sm { padding: 8px 16px; }
.btn:active { transform: translateY(1px); }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--sb-line); backdrop-filter: saturate(1.4) blur(8px); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--sb-ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand .inc { color: var(--sb-muted); font-weight: 600; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--sb-text); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.nav a:hover { color: var(--sb-brand); background: var(--sb-bg-alt); }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 40px; background: radial-gradient(1200px 500px at 85% 10%, #e5edff 0, transparent 60%), var(--sb-bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--sb-brand); margin-bottom: .8em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--sb-muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.fine { font-size: .9rem; color: var(--sb-muted); }
.hero-art { position: relative; margin: 0; background: linear-gradient(160deg, #dfe8fb, #f7f0e1); border-radius: 28px; padding: 24px 12px 8px; box-shadow: var(--sb-shadow); }
.hero-badge { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 12px; padding: 8px 14px; font-size: .85rem; color: var(--sb-muted); box-shadow: var(--sb-shadow); }
.hero-badge strong { display: block; color: var(--sb-ink); font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0 0; padding: 24px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: #fff; }
.stats div { text-align: center; }
.stats dt { font-size: .85rem; color: var(--sb-muted); }
.stats dd { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--sb-ink); }
.stats small { font-size: .5em; font-weight: 600; color: var(--sb-muted); }

/* logos */
.logos { padding: 28px 0 8px; }
.logos-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sb-muted); text-align: center; font-weight: 700; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font: 700 1.15rem/1.3 var(--sb-serif); color: #5d6880; font-style: italic; }
.logo-row small { font-size: .7em; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--sb-bg-alt); }
.sub { font-size: 1.15rem; color: var(--sb-muted); max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); padding: 24px; box-shadow: var(--sb-shadow); display: flex; flex-direction: column; }
.card p:last-of-type { margin-bottom: 0; }
.tag { margin-top: auto !important; padding-top: 12px; font-size: .8rem; font-weight: 700; color: var(--sb-good); text-transform: uppercase; letter-spacing: .08em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* dashboard */
.dash { background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); box-shadow: var(--sb-shadow); padding: 16px; color: var(--sb-brand); }
.dash-head { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--sb-line); margin-bottom: 12px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sb-line); }
.dash-title { margin-left: 8px; font: 600 .8rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--sb-muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border: 1px solid var(--sb-line); border-radius: var(--sb-radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 2px; min-height: 104px; }
.kpi-label { font-size: .8rem; color: var(--sb-muted); }
.kpi-val { font-size: 1.5rem; font-weight: 800; color: var(--sb-ink); }
.kpi-val small { font-size: .55em; font-weight: 600; color: var(--sb-muted); }
.kpi-up { font-size: .8rem; font-weight: 700; color: var(--sb-good); }
.kpi-norbert { position: relative; overflow: hidden; }
.kpi-norbert .bouncer { position: absolute; right: 2px; bottom: 4px; width: 46%; animation: sb-bounce 1.1s cubic-bezier(.3,0,.4,1) infinite; transform-origin: 50% 100%; }
.kpi-norbert .kpi-val { margin-top: auto; }
@keyframes sb-bounce { 0%, 100% { transform: translateY(0) scaleY(.94); } 45% { transform: translateY(-34%) scaleY(1.03); } 55% { transform: translateY(-34%); } }
.spark { margin-top: 12px; width: 100%; }
.dash-foot { margin: 6px 0 0; font-size: .8rem; color: var(--sb-muted); }

/* film + sound toggle (same pattern as play.token-kit.dev) */
.film-wrap { position: relative; margin: 24px 0 12px; }
.film { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--sb-shadow); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the toggle sits top-right, clear of the burned-in captions (bottom centre) and the name cards (top left) */
.film-ctl { position: absolute; right: 14px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.snd { position: relative; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px; background: var(--sb-accent); color: #1a1024; font: 800 clamp(15px, 1.8vw, 18px)/1.2 var(--sb-font);
  cursor: pointer; box-shadow: 0 4px 0 #9a7420, 0 6px 18px rgb(0 0 0 / .45); }
.snd:hover { background: #ffd77a; }
.snd:focus-visible { outline: 3px solid #ffe7b0; outline-offset: 3px; box-shadow: 0 0 0 6px #120a1a, 0 4px 0 #9a7420; }
.snd:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a7420; }
.snd[aria-pressed="true"] { background: #1a1024; color: #ffd77a; box-shadow: 0 0 0 2px var(--sb-accent), 0 6px 18px rgb(0 0 0 / .45); }
/* phones: move it out of the frame entirely, under the video, so nothing ever covers a caption */
.again[hidden] { display: none; }
@media (max-width: 640px) { .film-ctl { position: static; justify-content: flex-start; margin-top: 12px; } }

/* team */
.team { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.person { background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); padding: 16px 20px 22px; box-shadow: var(--sb-shadow); }
.person img { background: linear-gradient(170deg, #e6edfb, #f8f2e6); border-radius: 12px; margin-bottom: 14px; padding: 8px 0 0; }
.person h3 { margin-bottom: 0; }
.role { font-size: .9rem; font-weight: 700; color: var(--sb-brand); margin-bottom: .6em; }
.person p:last-child { margin-bottom: 0; color: var(--sb-muted); }
.person-norbert img { background: linear-gradient(170deg, #e2e5f0, #efe8f6); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.quote { margin: 0; background: var(--sb-bg-alt); border-radius: var(--sb-radius); padding: 24px; border-left: 4px solid var(--sb-accent); }
.quote blockquote { margin: 0; font: 400 1.15rem/1.5 var(--sb-serif); color: var(--sb-ink); }
.quote figcaption { font-size: .9rem; color: var(--sb-muted); font-weight: 600; }

/* investors */
.rounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 32px 0 20px; }
.round { background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); padding: 24px; box-shadow: var(--sb-shadow); display: flex; flex-direction: column; }
.round .btn { margin-top: auto; align-self: flex-start; }
.round-feature { border: 2px solid var(--sb-brand); }
.price { font-size: 2rem; font-weight: 800; color: var(--sb-ink); margin-bottom: .3em; }
.price span { font-size: .95rem; font-weight: 600; color: var(--sb-muted); }

/* careers */
.jobs { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--sb-line); }
.job { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--sb-line); }
.job h3 { margin: 0; }
.job p { margin: 0; color: var(--sb-muted); font-size: .95rem; }

/* footer: the sincere part */
.site-foot { background: var(--sb-dark); color: var(--sb-dark-text); padding: 72px 0 32px; }
.site-foot a { color: #ffd77a; }
.letter { max-width: 720px; font: 400 1.15rem/1.7 var(--sb-serif); }
.letter h2 { color: #fff; font-family: var(--sb-serif); font-weight: 700; }
.sign { font-style: italic; color: #ffd77a; }
.foot-dogs { border-radius: 16px; margin-top: 24px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .18); font-size: .9rem; }
.foot-row p { margin: 0; }

/* treat banner */
.treats { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 32px));
  background: #fff; color: var(--sb-text); border: 1px solid var(--sb-line); border-radius: var(--sb-radius); box-shadow: 0 20px 50px rgb(11 31 68 / .25); padding: 20px; }
.treats h2 { font-size: 1.15rem; margin-bottom: .4em; }
.treats p { font-size: .95rem; }
.treat-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.treat-btns .btn { font-size: .9rem; padding: 8px 14px; }
.treat-opts fieldset { border: 1px solid var(--sb-line); border-radius: var(--sb-radius-sm); margin: 0 0 12px; padding: 8px 12px; }
.treat-opts legend { font-weight: 700; font-size: .9rem; padding: 0 4px; }
.treat-opts label { display: flex; gap: 8px; align-items: center; min-height: 36px; font-size: .92rem; }
.treat-opts input { width: 20px; height: 20px; accent-color: var(--sb-brand); }

/* ===== the break (the demo is a game) ===== */
.popzone { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.pop { position: absolute; width: min(300px, calc(100vw - 24px)); background: #fff; color: #1b1b1b; border: 2px solid #1b1b1b; border-radius: 6px;
  box-shadow: 6px 6px 0 #1b1b1b; pointer-events: auto; font: 400 .95rem/1.4 var(--sb-font); animation: sb-pop-in .18s ease-out; }
.pop-bar { display: flex; align-items: center; min-height: 44px; padding-left: 12px; background: linear-gradient(90deg, #1546b8, #6a2bd1); color: #fff; font-weight: 800; font-size: .85rem; position: relative; }
.pop-bar span { flex: 1; padding-right: 52px; }
.pop-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: #e5383b; color: #fff; font: 800 1.1rem/1 var(--sb-font); cursor: pointer; transition: transform .16s ease-out; }
.pop-x[data-dodged] { transform: translate(-180px, 0); }
.pop-tag { position: absolute; top: 46px; right: 4px; font: 800 .8rem/1 var(--sb-font); color: #e5383b; pointer-events: none; }
.pop-body { padding: 12px 14px 14px; }
.pop-body p { margin: 0 0 10px; }
.pop-body .btn { font-size: .85rem; padding: 6px 14px; min-height: 40px; }
@keyframes sb-pop-in { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

body.is-breaking main, body.is-breaking .site-head { animation: sb-jitter .32s steps(2, jump-none) infinite; }
body.is-breaking main { filter: hue-rotate(var(--sb-hue, 0deg)) saturate(1.3); transition: filter .6s linear; }
body.is-breaking::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / .06) 0 2px, transparent 2px 5px); mix-blend-mode: multiply; }
body.is-breaking h1, body.is-breaking h2 { text-shadow: 3px 0 rgb(229 56 59 / .55), -3px 0 rgb(34 230 255 / .55); }
@keyframes sb-jitter { 0% { transform: translate(0, 0) skewX(0); } 50% { transform: translate(-6px, 2px) skewX(-1.5deg); } 100% { transform: translate(5px, -2px) skewX(1deg); } }

.handoff { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgb(5 3 10 / .82); }
.handoff[hidden] { display: none; }
.handoff-card { width: min(520px, 100%); background: #05030a; color: #f4f1ff; border: 2px solid #22e6ff; box-shadow: 0 0 0 1px #ff3df2, 0 0 40px rgb(255 61 242 / .4); border-radius: 18px; padding: 28px; text-align: center; }
.handoff-card .err { font: 800 .85rem/1 ui-monospace, Menlo, Consolas, monospace; color: #22e6ff; letter-spacing: .1em; margin-bottom: 14px; }
.handoff-card h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.handoff-card img { width: 140px; margin: 0 auto 8px; }
.handoff-card .btn-primary { background: #e0b040; color: #1a1024; font-size: 1.15rem; padding: 14px 28px; }
.handoff-card .btn-primary:hover { background: #ffd77a; color: #1a1024; }
.handoff-card .linkish { color: #cfc8e8; margin-top: 10px; display: inline-block; }
.handoff-card .count { font-size: .9rem; color: #cfc8e8; min-height: 1.4em; margin: 12px 0 0; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 12px; background: #fff; text-align: center; border-top: 1px solid var(--sb-line); }

/* responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .head-row .btn { margin-left: auto; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand { font-size: 1rem; }
  .brand .inc { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .job { flex-direction: column; align-items: flex-start; }
}
@media (forced-colors: active) {
  .snd, .btn, .pop-x { border: 2px solid ButtonText; }
  body.is-breaking::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active, .snd:active { transform: none; }
}
