/* Snapmy.site — base, landing and shared components. Studio workspace lives in studio.css. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/studio/fonts/jetbrains-mono-latin-400-normal.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/studio/fonts/jetbrains-mono-latin-500-normal.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 {
  --paper: #f3f1ec;
  --paper-2: #eae7e0;
  --surface: #fbfaf7;
  --ink: #151513;
  --ink-2: #3a3935;
  --muted: #66635c;
  --rule: #d8d4ca;
  --tally: #e3412b;
  --tally-ink: #ffffff;
  --tally-text: #c0301c;
  --warn: #d9a441;
  --monitor: #0f0f0e;
  --on-monitor: #e9e7e1;
  --on-monitor-muted: #a8a59d;
  --font-display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --text-hero: clamp(3rem, 1.2rem + 4.9vw, 6.4rem);
  --pad: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.1, 1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --header-h: 64px;
  --tap: 44px;
  --section-pad: clamp(3rem, 6vw, 5.5rem);
  --shadow-1: 0 1px 2px #14120e0f, 0 4px 12px -4px #14120e14;
  --shadow-2: 0 24px 60px -28px #14120e59;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121211;
  --paper-2: #1b1b19;
  --surface: #191917;
  --ink: #eeece6;
  --ink-2: #cfccc4;
  --muted: #9c998f;
  --rule: #2d2c29;
  --tally: #f0553e;
  --tally-text: #ff7a66;
  --monitor: #070707;
  --shadow-1: 0 1px 2px #0000004d;
  --shadow-2: 0 24px 60px -28px #000000b3;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211;
    --paper-2: #1b1b19;
    --surface: #191917;
    --ink: #eeece6;
    --ink-2: #cfccc4;
    --muted: #9c998f;
    --rule: #2d2c29;
    --tally: #f0553e;
    --tally-text: #ff7a66;
    --monitor: #070707;
    --shadow-1: 0 1px 2px #0000004d;
    --shadow-2: 0 24px 60px -28px #000000b3;
    color-scheme: dark;
  }
}
@media (max-width: 760px) {
  :root {
    --header-h: 56px;
  }
}

/* ---------- base ---------- */
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
canvas,
svg {
  display: block;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
::selection {
  background: var(--tally);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 2px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 20;
  font-weight: 600;
}
.skip:focus {
  left: 8px;
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.small {
  font-size: var(--text-sm);
}
.muted {
  color: var(--muted);
}
.helper {
  margin: 8px 0 0;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- header ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.bar.scrolled {
  border-bottom-color: var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  justify-self: start;
}
.mark {
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--ink-2);
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.bar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
.icon-btn:hover:not(:disabled) {
  background: var(--paper-2);
  border-color: color-mix(in srgb, var(--ink) 22%, var(--rule));
}
.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.films-btn {
  height: 40px;
  padding: 0 14px;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
}
.menu-btn {
  display: none;
}
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 8px var(--pad) 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 40px -24px #0000004d;
}
.mobile-menu a,
.mobile-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  background: none;
  text-align: left;
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}
.mobile-menu hr {
  border: 0;
  height: 8px;
  margin: 0;
}
.mobile-menu button:last-child,
.mobile-menu a:last-of-type {
  border-bottom: 0;
}
.switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: var(--rule);
  transition: background 0.2s;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px #0000004d;
  transition: transform 0.2s var(--ease);
}
[aria-pressed="true"] > .switch {
  background: var(--tally);
}
[aria-pressed="true"] > .switch i {
  transform: translateX(16px);
}

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition:
    transform 0.15s var(--ease),
    background 0.2s,
    color 0.2s;
}
.btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 86%, var(--tally));
}
.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-primary:disabled {
  background: var(--paper-2);
  color: var(--muted);
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: not-allowed;
}
.btn-primary:disabled .tally {
  display: none;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--paper-2);
  border-color: color-mix(in srgb, var(--ink) 25%, var(--rule));
}
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary.small,
.btn-ghost.small {
  min-height: 40px;
  padding: 0 14px;
}
.btn-ghost.block {
  width: 100%;
}
.tally {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tally) 25%, transparent);
}
.btn-primary:hover .tally {
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.text-btn {
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.text-btn:hover {
  color: var(--ink);
}
.text-btn.small {
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) var(--pad) clamp(2rem, 4vw, 3.5rem);
  max-width: 1560px;
  margin: 0 auto;
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1.4rem;
}
.launch-word {
  color: var(--tally);
}
.lede {
  font-size: var(--text-lg);
  color: var(--ink-2);
  max-width: 38ch;
  margin: 0 0 2rem;
  line-height: 1.5;
}
.url-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  max-width: 540px;
  transition: box-shadow 0.25s var(--ease);
}
.url-form:focus-within {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tally) 22%, transparent);
}
.url-form:has(input[aria-invalid="true"]) {
  border-color: var(--tally);
}
.url-prefix {
  color: var(--muted);
  font-size: var(--text-sm);
  -webkit-user-select: none;
  user-select: none;
}
.url-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0 8px 0 2px;
}
.url-form input::placeholder {
  color: var(--muted);
}
.url-form .btn-primary {
  min-height: 46px;
}
.form-error {
  color: var(--tally-text);
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 12px 0 0;
  max-width: 540px;
}
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.try > span {
  margin-right: 2px;
}

/* the monitor */
.monitor {
  margin: 0;
  background: var(--monitor);
  border-radius: 14px;
  padding: 10px;
  color: var(--on-monitor);
  box-shadow: 0 40px 80px -40px #14120e73;
}
:root[data-theme="dark"] .monitor {
  box-shadow:
    0 0 0 1px var(--rule),
    0 40px 80px -40px #000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .monitor {
    box-shadow:
      0 0 0 1px var(--rule),
      0 40px 80px -40px #000;
  }
}
.monitor-top,
.monitor-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 10px;
}
.monitor-top {
  font-size: var(--text-xs);
}
.monitor-bottom {
  padding: 10px 4px 2px 0;
}
.monitor .muted {
  color: var(--on-monitor-muted);
}
.monitor .text-btn {
  color: var(--on-monitor);
}
#heroSound {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: var(--text-sm);
}
#heroSound:hover {
  background: #ffffff14;
}
.rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
}
.rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally);
  animation: blink 1.4s steps(2) infinite;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
#heroTc {
  font-variant-numeric: tabular-nums;
}
.mini-tl {
  position: relative;
  height: 26px;
  margin: 10px 0 0;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a18;
}
.mini-scenes {
  position: absolute;
  inset: 0;
  display: flex;
}
.mini-scenes div {
  border-right: 1px solid #0f0f0e;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1;
  color: var(--on-monitor-muted);
  padding: 5px 6px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  min-width: 0;
}
.mini-scenes div:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--c);
  opacity: 0.9;
}
.mini-head {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tally);
  left: 0;
}

/* ---------- posters (hero, reel, before/after) ---------- */
.poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: clamp(14px, 3.5%, 28px) clamp(16px, 4%, 32px);
  border: 0;
  border-radius: 0;
  text-align: left;
  color: var(--pfg, #fff);
  background: var(--pbg, #111);
  font: inherit;
  line-height: 1.2;
  transition: opacity 0.35s;
}
button.poster {
  cursor: pointer;
}
.poster .poster-tile {
  position: absolute;
  right: clamp(12px, 3.5%, 24px);
  top: clamp(12px, 3.5%, 24px);
  width: 30px;
  height: 30px;
  border-radius: 30%;
  background: var(--pc);
}
.poster .poster-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  opacity: 0.78;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.poster .poster-head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.95rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 88%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-poster .poster-head {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  max-width: 70%;
}
.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  color: #fff;
  background: #0000004d;
  border: 1px solid #ffffff4d;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.play-circle svg {
  margin-left: 3px;
}
button.poster:hover .play-circle {
  transform: scale(1.08);
  background: var(--tally);
  border-color: transparent;
}
.screen .hfp {
  position: absolute;
  inset: 0;
}
.hfp {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.screen.playing .hero-poster {
  opacity: 0;
  pointer-events: none;
}

/* ---------- sections ---------- */
main > section:not(.hero):not(.studio) {
  max-width: 1560px;
  margin: 0 auto;
  padding: var(--section-pad) var(--pad) 0;
}
.section-head {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 60ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.section-head p {
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

/* how it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.steps li {
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--rule);
  margin-right: 28px;
}
.steps li:last-child {
  border-right: 0;
  margin-right: 0;
}
.step-n {
  display: block;
  font-size: var(--text-xs);
  color: var(--tally-text);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.steps h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
  max-width: 38ch;
}
.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr);
  align-items: stretch;
  gap: 16px;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.ba-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.ba-label {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ba-headline {
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ba-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.ba-features li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.ba-features li:before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tally);
  transform: translateY(-2px);
}
.ba-stat {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.ba-stat b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-right: 4px;
}
.ba-swatches {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.ba-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px #0000001f;
}
.ba-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.ba-poster {
  position: relative;
  inset: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #0000001a;
}
.ba-made .btn-ghost {
  align-self: flex-start;
}

/* reel */
.reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
.reel figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.reel .frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--monitor);
  cursor: pointer;
}
.reel .frame .hfp {
  position: absolute;
  inset: 0;
}
.reel .frame.playing .poster {
  opacity: 0;
  pointer-events: none;
}
.reel .frame .play-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1;
  color: #fff;
  background: #000000a6;
  padding: 7px 10px;
  border-radius: 6px;
  transition:
    opacity 0.3s,
    background 0.3s;
}
.reel .frame .play-hint .open {
  display: none;
}
.reel .frame.playing .play-hint .play {
  display: none;
}
.reel .frame.playing .play-hint .open {
  display: inline;
}
.reel .frame.playing .play-hint {
  opacity: 0;
}
.reel .frame.playing:hover .play-hint,
.reel .frame.playing:focus-visible .play-hint {
  opacity: 1;
  background: var(--tally);
}
.reel figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  font-size: var(--text-sm);
}
.reel figcaption b {
  font-weight: 700;
}
.reel-more {
  display: none;
  width: 100%;
  margin-top: 20px;
}
.reel-note {
  margin: 20px 0 0;
}

/* what goes into every film */
.rows {
  border-top: 1px solid var(--ink);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 2rem;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.row p {
  margin: 0;
  color: var(--ink-2);
  max-width: 52ch;
}
.row .row-val {
  color: var(--ink);
  line-height: 1.6;
}
.swatch-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.swatch-line i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px #0000001f;
}

/* sound */
.sound-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sound-grid .sig {
  width: 120px;
  height: 36px;
  color: var(--tally);
  margin-bottom: 18px;
}
.sound-grid h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.sound-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 34ch;
}

/* pricing */
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.seg button {
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-right: 1px solid var(--rule);
  transition:
    background 0.2s,
    color 0.2s;
}
.seg button:last-child {
  border-right: 0;
}
.seg button:hover:not([aria-checked="true"]) {
  background: var(--paper-2);
}
.seg button[aria-checked="true"] {
  background: var(--ink);
  color: var(--paper);
}
.seg.billing {
  display: inline-flex;
  margin-top: 4px;
}
.seg.billing button {
  padding: 0 16px;
  color: var(--ink);
}
.seg.billing button[aria-checked="true"] {
  color: var(--paper);
}
.billing .save {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--tally-text);
  margin-left: 4px;
}
.billing button[aria-checked="true"] .save {
  color: inherit;
  opacity: 0.85;
}
.beta-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--tally);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tally) 6%, var(--surface));
}
.beta-banner p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.beta-banner b {
  color: var(--ink);
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px 24px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}
.plan header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.plan header p {
  margin: 0;
}
.plan .price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.plan .amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .per {
  font-size: var(--text-sm);
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
  font-size: var(--text-sm);
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.plan li:before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tally);
  transform: translateY(-2px);
}
.plan > button {
  width: 100%;
}
.plan.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.plan.featured ul {
  border-color: color-mix(in srgb, var(--paper) 18%, transparent);
}
.plan.featured .badge {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: var(--text-xs);
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tally);
  color: var(--tally-ink);
}
.plan.featured .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.plan.featured .btn-primary:hover {
  background: var(--surface);
}
.plans-note {
  margin: 18px 0 0;
}

/* faq */
.faq-list {
  border-top: 1px solid var(--ink);
  max-width: 880px;
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:hover {
  color: var(--tally-text);
}
.faq-list p {
  margin: 0 0 20px;
  max-width: 62ch;
  color: var(--ink-2);
}
.chev {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease);
  opacity: 0.7;
}
details[open] > summary .chev {
  transform: translateY(2px) rotate(225deg);
}

/* ---------- footer ---------- */
.foot {
  max-width: 1560px;
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
}
.foot p {
  margin: 0;
}
.foot-brand {
  display: grid;
  gap: 2px;
}
.foot-brand .brand {
  font-size: 1.1rem;
  gap: 8px;
}
.foot-brand .mark {
  width: 22px;
  height: 22px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
}
.foot-nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

/* ---------- dialog + toast ---------- */
.dialog {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  width: min(640px, 94vw);
  max-height: min(720px, 86vh);
  box-shadow: var(--shadow-2);
}
.dialog::backdrop {
  background: #0a0a0973;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%);
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) 0;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 8px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.5rem;
}
.legal p,
.legal li {
  color: var(--ink-2);
  max-width: 68ch;
}
.legal ul {
  padding-left: 1.2rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero .monitor {
    max-width: 760px;
  }
  .reel,
  .plans,
  .sound-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li {
    border-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
  }
  .steps li .step-n {
    grid-row: span 2;
    margin: 6px 0 0;
  }
  .before-after {
    grid-template-columns: 1fr 1fr;
  }
  .ba-arrow {
    display: none;
  }
  .foot {
    grid-template-columns: 1fr auto;
  }
  .foot-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-left: -10px;
  }
}
@media (max-width: 760px) {
  .bar {
    grid-template-columns: 1fr auto;
  }
  .nav,
  .films-btn {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
  .brand {
    font-size: 1.2rem;
  }
  .display {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    margin-bottom: 1rem;
  }
  .lede {
    font-size: var(--text-base);
    margin-bottom: 1.5rem;
  }
  .url-form {
    flex-wrap: wrap;
    padding: 6px;
  }
  .url-prefix {
    padding-left: 10px;
  }
  .url-form input {
    flex: 1 1 60%;
  }
  .url-form .btn-primary {
    flex: 1 1 100%;
    margin-top: 6px;
  }
  .monitor {
    padding: 8px;
  }
  #heroMeta,
  .monitor-bottom .muted {
    display: none;
  }
  .hero-poster .poster-head {
    font-size: 1.35rem;
    max-width: 80%;
  }
  .play-circle {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
  .reel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reel:not(.expanded) figure:nth-child(n + 5) {
    display: none;
  }
  .reel-more {
    display: flex;
  }
  .reel.expanded + .reel-more {
    display: none;
  }
  .before-after {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 20px 0;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .sound-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sound-grid .sig {
    width: 90px;
    height: 27px;
    margin-bottom: 12px;
  }
  .sound-grid h3 {
    font-size: 1.1rem;
  }
  .plan {
    gap: 14px;
    padding: 22px 20px 20px;
  }
  .plan ul {
    gap: 8px;
  }
  .ba-card {
    padding: 18px;
    gap: 12px;
  }
  .steps li {
    padding: 14px 0;
  }
  main > section:not(.hero):not(.studio) {
    padding-top: 3rem;
  }
  .plan.featured {
    order: -1;
  }
  .beta-banner {
    align-items: flex-start;
  }
  .beta-banner .tally {
    margin-top: 6px;
  }
  .foot {
    grid-template-columns: 1fr;
    margin-top: 3rem;
    padding-bottom: 32px;
  }
  .foot-nav {
    grid-row: auto;
  }
}
@media (pointer: coarse) {
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .chip,
  .btn-primary.small,
  .btn-ghost.small,
  .films-btn,
  .seg button,
  #heroSound,
  .nav a,
  .brand,
  .text-btn.small {
    min-height: 44px;
  }
  .films-btn {
    height: 44px;
  }
}

/* ---------- landing: trust lines, pricing detail, closing call to action ---------- */
.hero-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.hero-assure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-assure li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    var(--tally);
}

.plan .price-note {
  margin: -6px 0 0;
  font: 500 var(--text-xs) / 1.4 var(--font-mono);
  color: var(--tally-text);
}
.plan.featured .price-note {
  color: color-mix(in srgb, var(--tally) 70%, var(--paper));
}
.plan .price-note[hidden] {
  display: none;
}

.plan-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  list-style: none;
  color: var(--ink-2);
}
.plan-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.plan-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tally);
}
.plan-trust b {
  color: var(--ink);
}

.compare {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.compare summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.compare summary::-webkit-details-marker {
  display: none;
}
.compare-scroll {
  overflow-x: auto;
  padding-bottom: 18px;
}
.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.compare th,
.compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  vertical-align: top;
}
.compare thead th {
  font: 600 var(--text-xs) / 1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare thead th:nth-child(4),
.compare tbody td:nth-child(4) {
  background: color-mix(in srgb, var(--tally) 6%, transparent);
}
.compare tbody th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.compare td {
  color: var(--ink-2);
}
.compare td.yes {
  color: var(--ink);
  font-weight: 600;
}
.compare td.no {
  color: var(--muted);
}

main > section.final-cta {
  max-width: none;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding: 0 var(--pad);
}
.final-inner {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem);
  border-radius: 24px;
  background:
    radial-gradient(90% 120% at 85% 0%, color-mix(in srgb, var(--tally) 26%, transparent), transparent 55%),
    radial-gradient(70% 100% at 0% 100%, #ffffff10, transparent 60%),
    var(--monitor);
  color: var(--on-monitor);
  overflow: hidden;
}
/* A timeline strip along the bottom edge, like the studio monitor. */
.final-inner::after {
  content: "";
  position: absolute;
  left: clamp(1.25rem, 5vw, 4.5rem);
  right: clamp(1.25rem, 5vw, 4.5rem);
  bottom: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tally) 0 32%, #ffffff1f 32%);
}
.final-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-monitor-muted);
}
.final-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tally) 25%, transparent);
  animation: blink 1.6s steps(2) infinite;
}
.final-inner .h2 {
  max-width: 16ch;
  margin: 0;
  color: #fff;
}
.final-sub {
  margin: 14px 0 28px;
  max-width: 44ch;
  color: var(--on-monitor-muted);
  font-size: var(--text-lg);
}
.final-inner .url-form {
  max-width: 600px;
  background: #fff;
  border-color: #fff;
  color: #151513;
}
.final-inner .url-form input {
  color: #151513;
}
.final-inner .form-error {
  color: #ff8a78;
}
/* A fan of sample posters on the right of the closing band. */
.final-reel {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4.5rem);
  top: 50%;
  width: min(38%, 460px);
  aspect-ratio: 16 / 11;
  transform: translateY(-54%);
  pointer-events: none;
}
.final-reel .poster {
  position: absolute;
  inset: auto;
  width: 78%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 24px 50px -20px #000000b3, 0 0 0 1px #ffffff14;
  overflow: hidden;
  font-size: 0.8em;
  transition: transform 0.6s var(--ease);
}
.final-reel .poster:nth-child(1) {
  left: 0;
  top: 0;
  transform: rotate(-6deg);
}
.final-reel .poster:nth-child(2) {
  right: 0;
  top: 8%;
  transform: rotate(5deg);
}
.final-reel .poster:nth-child(3) {
  left: 11%;
  bottom: 0;
  transform: rotate(-1deg);
}
.final-inner:hover .final-reel .poster:nth-child(1) {
  transform: rotate(-9deg) translate(-8px, -6px);
}
.final-inner:hover .final-reel .poster:nth-child(2) {
  transform: rotate(8deg) translate(8px, -4px);
}
@media (max-width: 980px) {
  .final-reel {
    display: none;
  }
}

/* ---------- landing: live films ---------- */
/* Sample chips play a film, so they carry a play mark. */
.chip.is-sample {
  gap: 7px;
}
.chip.is-sample::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid var(--tally);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

/* Hero reel: films crossfade, dots pick one. */
.screen .hfp {
  transition: opacity 0.35s var(--ease);
}
.screen.switching .hfp {
  opacity: 0;
}
.hero-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 14px;
}
.hero-dots button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #ffffff40;
  transition:
    width 0.3s var(--ease),
    background 0.3s;
}
.hero-dots button[aria-pressed="true"] i {
  width: 18px;
  background: var(--tally);
}
.hero-dots button:hover i {
  background: #ffffffa0;
}
.hero-dots button:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 1px;
  border-radius: 6px;
}

/* How it works, played on a small monitor. */
.how-demo {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.hd-stage {
  border-radius: 18px;
  background: var(--monitor);
  color: var(--on-monitor);
  padding: 10px 10px 12px;
  box-shadow: var(--shadow-2);
}
.hd-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px 10px;
  font-size: var(--text-xs);
  color: var(--on-monitor-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hd-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hd-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tally);
  animation: blink 1.4s steps(2) infinite;
}
.hd-view {
  position: relative;
  height: clamp(250px, 26vw, 330px);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 20% 0%, #ffffff0d, transparent 60%),
    #161614;
}
.hd-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 0.55s var(--ease),
    transform 0.7s var(--ease);
  pointer-events: none;
}
.hd-stage[data-step="0"] .hd-type,
.hd-stage[data-step="1"] .hd-read,
.hd-stage[data-step="2"] .hd-film {
  opacity: 1;
  transform: none;
}
/* 01: the link is typed and sent. */
.hd-type {
  align-content: center;
  gap: 14px;
}
.hd-url {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(560px, 86%);
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: #fff;
  color: #151513;
  font-size: var(--text-sm);
  box-shadow: 0 20px 40px -18px #000;
}
.hd-typed {
  font-weight: 600;
}
.hd-caret {
  width: 2px;
  height: 18px;
  background: var(--tally);
  animation: blink 1s steps(2) infinite;
}
.hd-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: #151513;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-xs);
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.3s;
}
.hd-stage.pressed .hd-go {
  transform: scale(0.94);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tally) 40%, transparent);
}
.hd-note {
  margin: 0;
  color: var(--on-monitor-muted);
}
/* 02: the page is read into what matters. */
.hd-read {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 36px);
  padding: 0 clamp(16px, 4vw, 44px);
}
.hd-page {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: #f6f4ee;
  color: #151513;
  overflow: hidden;
}
.hd-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.hd-nav i {
  width: 34px;
  height: 6px;
  border-radius: 3px;
  background: #d8d4ca;
}
.hd-h {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hd-l {
  width: var(--w);
  height: 7px;
  border-radius: 4px;
  background: #e2ded4;
}
.hd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.hd-cards span {
  padding: 8px 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2ded4;
  font-size: 10px;
  line-height: 1.25;
}
.hd-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tally) 30%, transparent), transparent);
  border-bottom: 2px solid var(--tally);
  opacity: 0;
}
.hd-stage[data-step="1"] .hd-scan {
  animation: hd-scan 2.2s var(--ease) 0.2s both;
}
@keyframes hd-scan {
  from {
    opacity: 1;
    transform: translateY(-36px);
  }
  90% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(260px);
  }
}
.hd-found {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px;
}
.hd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 9px;
  background: #ffffff12;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  font-size: var(--text-xs);
  color: #fff;
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease);
}
.hd-chip em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tally);
}
.hd-chip i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.hd-stage[data-step="1"] .hd-chip {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.5s + var(--k) * 0.28s);
}
/* 03: the film cuts together. */
.hd-film {
  align-content: center;
  gap: 10px;
  padding: 0 clamp(16px, 4vw, 44px);
}
.hd-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  width: min(620px, 100%);
  aspect-ratio: 16 / 6;
  padding: 16px 20px;
  border-radius: 10px;
  background:
    radial-gradient(60% 90% at 80% 20%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 70%),
    var(--pbg);
  color: var(--pfg);
}
.hd-screen .poster-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hd-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 1.2s var(--ease) 0.3s,
    opacity 0.6s var(--ease) 0.3s;
}
.hd-stage[data-step="2"] .hd-title {
  transform: none;
  opacity: 1;
}
.hd-tl {
  position: relative;
  width: min(620px, 100%);
}
.hd-shots {
  display: flex;
  gap: 2px;
}
.hd-shots span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 5px 6px;
  border-radius: 3px;
  background: #ffffff10;
  box-shadow: inset 0 -2px 0 var(--c);
  font: 10px / 1 var(--font-mono);
  color: var(--on-monitor-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hd-head {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0;
  width: 2px;
  background: var(--tally);
}
.hd-stage[data-step="2"] .hd-head {
  animation: hd-play 3.2s linear both;
}
@keyframes hd-play {
  to {
    left: 100%;
  }
}
/* The step below the monitor follows along. */
#howSteps li {
  transition: box-shadow 0.4s var(--ease);
}
#howSteps li.active {
  box-shadow: inset 0 3px 0 var(--tally);
}
#howSteps li.active h3 {
  color: var(--tally-text);
}
@media (max-width: 760px) {
  .hd-read {
    grid-template-columns: 1fr;
    align-content: center;
  }
  .hd-page {
    display: none;
  }
  .hd-url {
    width: 92%;
    padding-left: 12px;
  }
  .hd-url > .muted {
    display: none;
  }
  .hd-go {
    padding: 8px 9px;
    font-size: 10px;
  }
  .hd-go .tally {
    display: none;
  }
}

/* Cards answer the pointer. */
.plan,
.ba-card {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s;
}
@media (hover: hover) {
  .plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
  .plan:not(.featured):hover {
    border-color: color-mix(in srgb, var(--tally) 45%, var(--rule));
  }
  .ba-card:hover {
    box-shadow: var(--shadow-1);
  }
}

/* One film, every format: laptop, phone and a social post. */
.devices {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 0.78fr) minmax(0, 1.25fr);
  align-items: end;
  gap: clamp(16px, 3vw, 40px);
}
.dev {
  margin: 0;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.dev figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.dev figcaption b {
  font-size: var(--text-xs);
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.dev-screen {
  position: relative;
  overflow: hidden;
  background: var(--monitor);
}
.dev-screen .hfp {
  position: absolute;
  inset: 0;
}
.dev-screen .dev-poster {
  transition: opacity 0.5s var(--ease);
}
.dev-screen.playing .dev-poster {
  opacity: 0;
  pointer-events: none;
}
.dev-poster .poster-head {
  font-size: clamp(1rem, 0.7rem + 1.2vw, 1.8rem);
}
.dev-laptop .dev-body {
  padding: 12px 12px 14px;
  border-radius: 16px 16px 6px 6px;
  background: #1c1c1a;
  box-shadow: inset 0 0 0 1px #ffffff14, var(--shadow-2);
}
.dev-laptop .dev-screen {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
}
.dev-base {
  display: block;
  height: 14px;
  margin: -14px -4% 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #d6d2c8, #b9b4a8);
  box-shadow: 0 16px 24px -16px #00000073;
}
.dev-phone .dev-body {
  padding: 9px;
  border-radius: 30px;
  background: #151513;
  box-shadow: inset 0 0 0 1px #ffffff1a, var(--shadow-2);
}
.dev-phone .dev-screen {
  aspect-ratio: 9 / 16;
  border-radius: 22px;
}
.dev-phone .dev-screen::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 16px;
  border-radius: 99px;
  background: #151513;
  transform: translateX(-50%);
}
.dev-phone .dev-poster .poster-head {
  font-size: clamp(0.9rem, 0.6rem + 0.7vw, 1.2rem);
}
.dev-post .dev-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-1);
}
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
}
.post-head i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--tally), #fbbc05, var(--tally));
}
.post-head span {
  display: grid;
  line-height: 1.2;
}
.post-head small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.post-text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink);
}
.dev-post .dev-screen {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}
.post-foot {
  display: flex;
  gap: 18px;
  font-size: var(--text-xs);
  color: var(--muted);
}
.uses {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.uses li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.uses li:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tally) 50%, var(--rule)), var(--shadow-1);
}
.use-tag {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tally) 12%, transparent);
  color: var(--tally-text);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.uses h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.uses p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 1100px) {
  .uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .devices {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    align-items: start;
  }
  .dev-laptop {
    grid-column: 1 / -1;
  }
  .dev figcaption {
    font-size: var(--text-xs);
  }
  .uses {
    grid-template-columns: 1fr;
  }
}

/* What goes into every film: the values drawn, not listed. */
#reads .row {
  align-items: start;
}
#readsStory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scene-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 5px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--c);
  font-size: 11px;
  color: var(--ink);
}
.scene-chip em {
  font-style: normal;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--c);
  color: #fff;
  font-size: 10px;
  mix-blend-mode: normal;
}
#readsBrand {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.brand-swatch {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.brand-swatch i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #0000001f, 0 8px 18px -10px #00000066;
  transition: transform 0.35s var(--ease);
}
.brand-swatch code {
  font-size: 10px;
  color: var(--muted);
}
.swatch-from {
  align-self: center;
  margin-left: 4px;
  color: var(--muted);
}
.row:hover .brand-swatch i {
  transform: translateY(-3px);
}
.claim-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--tally);
  font-family: var(--font-body);
}
.claim-card q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.claim-card small {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
}
#readsProof {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-body);
}
.proof-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tally-text);
  font-variant-numeric: tabular-nums;
}
#readsProof span {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* Sections rise into view once (never on screen at load, never with reduced motion). */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Score cards: press to hear that part of the sample score. */
.sound-grid article {
  display: flex;
  flex-direction: column;
}
.sound-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: auto;
  min-height: 38px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.sound-grid article p {
  margin-bottom: 14px;
}
.sound-play:hover {
  border-color: var(--tally);
}
.sound-play:focus-visible {
  outline: 2px solid var(--tally);
  outline-offset: 2px;
}
.sp-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tally);
}
.sp-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 7px solid #fff;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.sound-play[aria-pressed="true"] .sp-icon::before {
  width: 7px;
  height: 7px;
  margin: 0;
  border: 0;
  background: #fff;
  border-radius: 1px;
}
.sp-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: calc(var(--sp, 0) * 100%);
  background: var(--tally);
}
.sound-grid article.is-playing {
  border-color: color-mix(in srgb, var(--tally) 60%, transparent);
  background: var(--surface);
}
.sound-grid article.is-playing::after {
  opacity: 1;
  animation: blink 0.9s steps(2) infinite;
}
.sound-grid article.is-playing .sig path {
  stroke-dasharray: 260;
  animation: sig-draw 1.1s linear infinite;
}
@keyframes sig-draw {
  from {
    stroke-dashoffset: 260;
  }
  to {
    stroke-dashoffset: -260;
  }
}

/* Before/after: the film plays in place of the poster. */
.ba-poster .hfp {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ba-poster > :not(.hfp) {
  transition: opacity 0.4s var(--ease);
}
.ba-poster.playing > :not(.hfp) {
  opacity: 0;
}
.ba-sync {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.ba-sync i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tally) 22%, transparent);
}
.ba-sync[hidden] {
  display: none;
}
.ba-read .ba-headline,
.ba-read .ba-features li,
.ba-read .ba-stat {
  border-radius: 8px;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.ba-read .ba-features li {
  margin: 0 -8px;
  padding: 4px 8px;
}
.ba-read .lit {
  background: color-mix(in srgb, var(--tally) 13%, transparent);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--tally);
  transform: translateX(4px);
}

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