/* Snapback — snapback.app
   The broadcast UI from the apps, carried onto the web: Ink ground, Paper
   text, one yellow Accent, Live red only for the record dot and ROLLING tag.
   Dark only, like the apps.

   Fonts: Latin subsets of Barlow and Barlow Condensed (SIL OFL 1.1, see
   fonts/OFL.txt), self-hosted so the site makes no third-party requests. */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400.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;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500.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;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600.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;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-800-italic.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;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700.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;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-800.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;
}

:root {
  --ink: #0a0c10;
  --stage: #1a1d24;
  --surface: #1f232b;
  --frame: #2b303a;
  --line: #3a3f4a;
  --paper: #f4f5f7;
  --paper-85: rgba(244, 245, 247, 0.85);
  --paper-75: rgba(244, 245, 247, 0.75);
  --paper-60: rgba(244, 245, 247, 0.6);
  --accent: #ffd60a;
  --live: #e0322b;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --gutter: 16px;
  --max: 1120px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ── Type ─────────────────────────────────────────────────────────────── */

.display {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-wrap: balance;
}

.label {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--paper-60);
}

.lede {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--paper-75);
  max-width: 34em;
  text-wrap: pretty;
}

.accent {
  color: var(--accent);
}

/* ── Status tag: two joined blocks, skewed −10° ───────────────────────── */

.tag {
  display: inline-flex;
  margin: 0;
  align-items: stretch;
  height: 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  transform: skewX(-10deg);
}

.tag .rolling {
  background: var(--live);
  color: #fff;
}

.tag .rolling::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.2s ease-in-out infinite alternate;
}

.tag .detail {
  background: var(--surface);
  color: var(--accent);
  font-style: italic;
}

.tag .solid {
  background: var(--accent);
  color: var(--ink);
}

@keyframes pulse {
  to {
    opacity: 0.4;
  }
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img.icon {
  width: 32px;
  height: 32px;
}

.brand img.word {
  height: 22px;
  width: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--line);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 32px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(56px, 11vw, 112px);
}

.fine {
  margin: 0;
  font-size: 14px;
  color: var(--paper-60);
}

@media (min-width: 900px) {
  .hero {
    padding: 48px 0 112px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 48px;
  }
}

/* ── Store buttons (placeholders until the listings are live) ─────────── */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 120ms ease;
}

.store:active {
  transform: scale(0.96);
}

.store.secondary {
  background: var(--surface);
  color: var(--paper);
}

.store.secondary:hover {
  background: var(--line);
}

.store:not(.secondary):hover {
  background: #fff;
}

.store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

.store b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.3px;
}

/* ── Phone mock ───────────────────────────────────────────────────────────
   The recording screen from the design canvas, drawn at its 390 × 844 pt
   frame size. --u is one design point, so every number below is the
   design's own. */

.phone {
  justify-self: center;
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 54px;
  background: #15181e;
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.screen {
  container-type: inline-size;
  aspect-ratio: 390 / 844;
  border-radius: 44px;
  overflow: hidden;
}

.ui {
  --u: calc(100cqw / 390);
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--stage);
  font-family: var(--body);
}

.ui .scene {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: calc(596 * var(--u));
  object-fit: cover;
  object-position: 50% 40%;
}

.ui .tag {
  position: absolute;
  left: calc(16 * var(--u));
  top: calc(58 * var(--u));
  height: calc(32 * var(--u));
  font-size: calc(17 * var(--u));
}

.ui .tag > span {
  gap: calc(6 * var(--u));
  padding: 0 calc(10 * var(--u));
}

.ui .tag .rolling::before {
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
}

.ui .tag .detail {
  background: var(--ink);
}

.ui .watermark {
  position: absolute;
  right: calc(16 * var(--u));
  top: calc(560 * var(--u));
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: calc(16 * var(--u));
  color: var(--paper-60);
}

/* Replay-saved banner: lower third, skewed −6°, contents counter-skewed. */
.ui .banner {
  position: absolute;
  left: calc(12 * var(--u));
  right: calc(12 * var(--u));
  top: calc(450 * var(--u));
  height: calc(76 * var(--u));
  display: flex;
  transform: skewX(-6deg);
  animation: banner-in 200ms ease-out 900ms both;
}

.ui .banner::before {
  content: "";
  width: calc(10 * var(--u));
  background: var(--accent);
}

.ui .banner .body {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: 0 calc(12 * var(--u));
  background: var(--ink);
}

.ui .banner .body::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: calc(3 * var(--u));
  width: 100%;
  background: var(--accent);
  opacity: 0.7;
  transform-origin: left;
  animation: timer 4s linear 1.1s both;
}

.ui .banner .thumb {
  position: relative;
  flex-shrink: 0;
  width: calc(84 * var(--u));
  height: calc(52 * var(--u));
  border-radius: calc(4 * var(--u));
  background: #3a4150;
  overflow: hidden;
  transform: skewX(6deg);
}

.ui .banner .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

.ui .chip {
  position: absolute;
  right: calc(4 * var(--u));
  bottom: calc(4 * var(--u));
  padding: calc(1 * var(--u)) calc(4 * var(--u));
  border-radius: calc(3 * var(--u));
  background: rgba(10, 12, 16, 0.8);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(12 * var(--u));
  line-height: 1.2;
}

.ui .banner .text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--u));
  transform: skewX(6deg);
}

.ui .banner .title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: calc(24 * var(--u));
  line-height: 1;
  color: var(--accent);
}

.ui .banner .sub {
  font-size: calc(13 * var(--u));
  line-height: 1.2;
  color: var(--paper-75);
}

.ui .banner .view {
  display: flex;
  align-items: center;
  height: calc(40 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: calc(8 * var(--u));
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: calc(14 * var(--u));
  transform: skewX(6deg);
}

.ui .panel {
  position: absolute;
  left: 0;
  top: calc(596 * var(--u));
  width: 100%;
  height: calc(248 * var(--u));
  padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(34 * var(--u));
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
}

.ui .strip {
  display: flex;
  gap: calc(3 * var(--u));
  height: calc(40 * var(--u));
}

/* The buffer's thumbnails: crops of the same scene, panning toward the goal
   as the play runs up to NOW. */
.ui .strip i {
  flex: 1;
  border-radius: calc(3 * var(--u));
  background: var(--frame) url("/images/goal.webp") no-repeat;
  background-size: auto 320%;
}

.ui .strip i:nth-child(1) { background-position: 8% 45%; }
.ui .strip i:nth-child(2) { background-position: 16% 45%; }
.ui .strip i:nth-child(3) { background-position: 24% 44%; }
.ui .strip i:nth-child(4) { background-position: 32% 44%; }
.ui .strip i:nth-child(5) { background-position: 40% 43%; }
.ui .strip i:nth-child(6) { background-position: 46% 43%; }
.ui .strip i:nth-child(7) { background-position: 50% 42%; }
.ui .strip i:nth-child(8) { background-position: 54% 42%; }

.ui .strip b {
  width: calc(3 * var(--u));
  border-radius: calc(2 * var(--u));
  background: var(--accent);
}

.ui .strip-labels {
  display: flex;
  justify-content: space-between;
  margin-top: calc(-8 * var(--u));
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(13 * var(--u));
  letter-spacing: calc(1 * var(--u));
  color: rgba(244, 245, 247, 0.55);
}

.ui .strip-labels span:last-child {
  color: var(--accent);
}

.ui .controls {
  display: flex;
  gap: calc(10 * var(--u));
}

.ui .btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(64 * var(--u));
  height: calc(72 * var(--u));
  border-radius: calc(14 * var(--u));
  background: var(--surface);
  color: var(--paper);
}

.ui .btn .stop {
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  border-radius: calc(3 * var(--u));
  background: var(--paper);
}

.ui .btn svg {
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
}

.ui .btn.clip {
  flex-grow: 1;
  width: auto;
  gap: calc(10 * var(--u));
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: calc(30 * var(--u));
  letter-spacing: calc(0.5 * var(--u));
}

.ui .btn.clip svg {
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
}

.ui .badge {
  position: absolute;
  top: calc(-6 * var(--u));
  right: calc(-6 * var(--u));
  min-width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  padding: 0 calc(6 * var(--u));
  border-radius: calc(12 * var(--u));
  border: calc(2 * var(--u)) solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(14 * var(--u));
  animation: badge-pop 250ms ease-out 900ms both;
}

@keyframes banner-in {
  from {
    opacity: 0;
    translate: 0 calc(16 * var(--u));
  }
}

@keyframes timer {
  to {
    transform: scaleX(0.35);
  }
}

@keyframes badge-pop {
  50% {
    scale: 1.25;
  }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

section {
  padding: 72px 0;
}

@media (min-width: 900px) {
  section {
    padding: 112px 0;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 760px;
}

.section-head .display {
  font-size: clamp(40px, 6.4vw, 72px);
}

.rule {
  border-top: 1px solid var(--surface);
}

/* Three ways to get the moment: the job, framed against its alternatives. */
.ways {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.way {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
}

.way h3 {
  font-size: 32px;
}

.way p {
  margin: 0;
  color: var(--paper-75);
}

.way .verdict {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--paper-60);
}

.way.win {
  background: var(--accent);
  color: var(--ink);
}

.way.win p,
.way.win .label,
.way.win .verdict {
  color: rgba(10, 12, 16, 0.8);
}

/* Replay buffer: frames roll in at NOW and fall off the far end. */
.buffer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 56px;
}

.buffer-track {
  --frame-w: 56px;
  position: relative;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
  mask-image: linear-gradient(to right, transparent, #000 18%);
}

.buffer-frames {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  gap: 4px;
  animation: roll 6s linear infinite;
}

.buffer-frames i {
  flex-shrink: 0;
  width: var(--frame-w);
  border-radius: 4px;
  background: var(--frame);
}

.buffer-frames i:nth-child(4n + 1) { background: #343a46; }
.buffer-frames i:nth-child(4n + 2) { background: #2f3540; }
.buffer-frames i:nth-child(4n + 3) { background: #3a4150; }

.buffer-now {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

@keyframes roll {
  to {
    transform: translateX(calc(-4 * (var(--frame-w) + 4px)));
  }
}

.buffer-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--paper-60);
}

.buffer-labels span:last-child {
  color: var(--accent);
}

.steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 3px solid var(--line);
}

.steps li:last-child {
  border-top-color: var(--accent);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--paper-60);
}

.steps h3 {
  font-size: 36px;
}

.steps p {
  margin: 0;
  color: var(--paper-75);
}

/* Outcomes */
.outcomes {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.outcome {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 14px;
  background: var(--surface);
}

.outcome svg {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  color: var(--accent);
}

.outcome h3 {
  font-size: 28px;
  line-height: 0.95;
}

.outcome p {
  margin: 0;
  color: var(--paper-75);
}

/* Occasions: a row of skewed tags. */
.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
}

.occasions li {
  padding: 8px 16px;
  transform: skewX(-10deg);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.occasions li:nth-child(3n + 1) {
  background: var(--line);
}

/* Closing call */
.cta {
  text-align: left;
}

.cta .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 24px;
  border-radius: 24px;
  background: var(--stage);
  border: 1px solid var(--surface);
}

@media (min-width: 720px) {
  .cta .inner {
    padding: 72px 64px;
  }
}

.cta .display {
  font-size: clamp(44px, 7.4vw, 88px);
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--surface);
  font-size: 14px;
  color: var(--paper-60);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer p {
  margin: 0;
}

.site-footer img.word {
  height: 20px;
  width: auto;
  opacity: 0.8;
}

/* 404 */
.lost {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.lost .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.lost .empty {
  width: min(100%, 520px);
  height: 56px;
  border: 2px dashed var(--frame);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-60);
}

.lost .display {
  font-size: clamp(56px, 11vw, 112px);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
