/* Producer — a studio at night: ink walls, warm paper, tungsten amber and one red tally light.
   Colours, radii and type roles come from Producer/Design/Theme.swift. */

:root {
  --bg: #0B0A10;
  --surface: #16141D;
  --raised: #211E2C;
  --line: rgba(255, 255, 255, .09);
  --paper: #F4EFE6;
  --muted: #A39BB5;
  --dim: #6F6884;
  --ink: #14121A;
  --tally: #FF4B3E;
  --amber: #FFB454;
  --mint: #6FE3B4;
  --violet: #9B8CFF;
  --sky: #5CC8FF;
  --rose: #FF7EB6;
  --tint: var(--amber);

  --radius: 26px;
  --small-radius: 16px;
  --gutter: 20px;

  --marquee: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --spoken: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, serif;
  --slug: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --text: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;

  --snap: cubic-bezier(.3, 1.35, .5, 1);
  --settle: cubic-bezier(.2, .9, .25, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.locked, html.locked body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
body::before {
  /* StudioBackdrop: two pools of coloured light and a little grain. */
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 18% 4%, rgba(255, 180, 84, .22), transparent 60%),
    radial-gradient(55vmax 55vmax at 95% 36%, rgba(255, 75, 62, .12), transparent 60%),
    radial-gradient(70vmax 50vmax at 30% 100%, rgba(255, 180, 84, .07), transparent 60%),
    var(--bg);
  animation: drift 40s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4vmax, 2vmax, 0); }
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type roles */
.marquee {
  font-family: var(--marquee);
  font-weight: 800;
  font-stretch: 62.5%;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .92;
}
.no-compress .marquee { letter-spacing: -.02em; }
.slug {
  font-family: var(--slug);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.ic { display: inline-grid; place-items: center; width: 1em; height: 1em; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic.dim { color: rgba(255, 255, 255, .6); }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
  max-width: 1180px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand span { font-family: var(--marquee); font-weight: 800; font-stretch: 62.5%; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; }
.badge-link { display: inline-block; flex: none; border-radius: 9px; }
.badge-link img { height: 40px; width: auto; }
.top .badge-link img { height: 40px; }

/* Hero */
main { max-width: 1180px; margin: 0 auto; }
.hero { padding: 0 var(--gutter); }
.intro { padding-top: 10px; }
.eyebrow { color: var(--amber); text-wrap: balance; }
.hero h1 {
  font-size: clamp(44px, 13.4vw, 60px);
  margin: 8px 0 10px;
  color: var(--paper);
  text-wrap: balance;
}
.no-compress .hero h1 { font-size: clamp(34px, 10vw, 52px); }
.lede { color: var(--muted); margin: 0 0 4px; font-size: 15px; max-width: 34em; }
.intro-cta { display: none; }
.steps { display: none; list-style: none; margin: 28px 0 0; padding: 0; gap: 10px; max-width: 30em; }
.steps li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; color: var(--paper); font-size: 16px; }
.steps li span { font: 700 12px var(--slug); color: var(--amber); letter-spacing: .1em; }

/* Demo surface. On a phone the page is the app; on desktop it sits in a device frame. */
.device { position: relative; }
.screen { position: relative; outline: none; }
.app-head { display: none; }

.picker { margin: 14px calc(var(--gutter) * -1) 0; }
.picker-label { padding: 0 var(--gutter); margin-bottom: 8px; }
.niches {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px var(--gutter) 6px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
}
.niches::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(33, 30, 44, .85);
  color: var(--paper);
  font-family: var(--slug);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s var(--snap);
}
.chip[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip:active { transform: scale(.96); }

.stage { padding-bottom: 8px; }
.slate-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin: 16px 0 -16px; position: relative; z-index: 3; }
.bubble {
  position: relative;
  margin: 0 0 30px;
  padding: 10px 14px;
  background: rgba(33, 30, 44, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  font-family: var(--spoken);
  font-size: 16px;
  line-height: 1.3;
  color: var(--paper);
  max-width: 250px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: opacity .2s, transform .3s var(--snap);
}
.bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, .12);
  border-top: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(45deg);
}
.bubble.pop { animation: pop .38s var(--snap); }
@keyframes pop { from { transform: scale(.92); opacity: .4; } }
.slate-btn { flex: none; width: 96px; height: 96px; padding: 0; border: 0; background: none; border-radius: 20px; }
.slate-btn svg { width: 100%; height: 100%; overflow: visible; }

/* The deck */
.deck { position: relative; padding-bottom: 24px; touch-action: pan-y; }
.back {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(#3A3549, #2A2638);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .35);
  overflow: hidden;
  transition: transform .35s var(--settle);
}
.back::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: repeating-linear-gradient(-55deg, var(--ink) 0 11px, var(--amber) 11px 22px); opacity: .35; }
.back-1 { transform: translateY(13px) scaleX(.95) rotate(-1.6deg); }
.back-2 { transform: translateY(26px) scaleX(.9) rotate(2deg); background: linear-gradient(#2C2839, #1F1C2A); border-color: rgba(255,255,255,.12); }
.back-2::before { opacity: .18; }
.release { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: var(--amber); opacity: 0; }

.card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(280px 280px at 90% 105%, var(--tint-pool, rgba(255, 180, 84, .22)), transparent 70%),
    radial-gradient(240px 240px at 10% 0%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(#37324A, #28243A 55%, #1E1B2A);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .6), 0 24px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transform-origin: 50% 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.card.dragging { cursor: grabbing; }
.card.entering { animation: enter .42s var(--settle); }
@keyframes enter { from { transform: translateY(12px) scale(.94); filter: brightness(.85); } }
.card.fade-in { animation: fadein .2s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.card.nudge { animation: nudge .45s var(--snap); }
@keyframes nudge { 30% { transform: translateX(-10px) rotate(-.6deg); } 60% { transform: translateX(6px); } }
.stripes { height: 18px; background: repeating-linear-gradient(-55deg, var(--ink) 0 11px, var(--amber) 11px 22px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.clap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px 18px 10px;
  background:
    radial-gradient(220px 120px at 20% 0, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(#FFFBF4, var(--paper) 50%, #E6DCCB);
  border-bottom: 2px solid rgba(20, 18, 26, .85);
  color: var(--ink);
}
.clap .slug { color: rgba(20, 18, 26, .55); font-size: 10px; }
.clap .v { font-family: var(--marquee); font-weight: 800; font-stretch: 62.5%; text-transform: uppercase; font-size: 19px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 0; }
.clap > div:nth-child(2) { text-align: center; min-width: 0; }
.clap > div:last-child { text-align: right; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.card-meta { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.card-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 8px var(--tint); flex: none; }
.card-meta .slug { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta .grow { flex: 1; }
.hook {
  margin: 0;
  font-family: var(--spoken);
  font-weight: 600;
  font-size: clamp(26px, 7.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  text-wrap: pretty;
}
.premise { margin: 0; font-size: 15px; color: var(--muted); }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(163, 155, 181, .14);
  color: var(--muted);
  font: 600 11px var(--slug);
  letter-spacing: .04em;
}
.tag .ic { font-size: 11px; }
.pips { display: inline-flex; gap: 3px; margin-left: auto; }
.pips i { width: 5px; height: 11px; border-radius: 1.5px; background: rgba(111, 104, 132, .45); }
.pips i.on { background: var(--amber); }
.stamp {
  color: var(--mint);
  border: 2px solid var(--mint);
  border-radius: 5px;
  padding: 3px 9px 1px;
  font-size: 17px;
  letter-spacing: .1em;
  transform: rotate(-5deg);
  display: inline-block;
  margin: 0;
}

/* Under the card */
.row-actions { display: flex; justify-content: space-between; gap: 8px; margin: 4px -6px 10px; }
.mini {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 6px;
  background: none; border: 0;
  font: 600 12px var(--slug); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.mini .ic { font-size: 15px; }
.mini.out { color: var(--dim); }
.mini[aria-expanded="true"] { color: var(--amber); }

.marquee-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 64px;
  border: 0; border-radius: 20px;
  font-family: var(--marquee); font-weight: 800; font-stretch: 62.5%; text-transform: uppercase;
  font-size: 25px; letter-spacing: .03em;
  color: var(--ink);
  background: linear-gradient(#FFCB87, var(--amber) 50%, #FF9A4E);
  box-shadow: 0 8px 18px rgba(255, 180, 84, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .2s var(--snap), box-shadow .2s, filter .2s;
}
.marquee-btn:active { transform: scale(.97); filter: brightness(.94); box-shadow: 0 6px 8px rgba(255, 180, 84, .25), inset 0 1px 0 rgba(255,255,255,.5); }
.marquee-btn .ic { font-size: 24px; }

.comfort { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(33, 30, 44, .9); border: 1px solid var(--line); }
.segmented button {
  min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
  font: 600 11px var(--slug); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: background .2s, color .2s;
}
.segmented button[aria-checked="true"] { background: var(--raised); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.segmented, .segmented button { position: relative; }
.segmented button::after { content: ""; position: absolute; inset: -4px 0; }

/* Shot list sheet */
.sheet { margin-top: 18px; display: grid; gap: 14px; }
.sheet.open { animation: sheetin .35s var(--settle); }
@keyframes sheetin { from { opacity: 0; transform: translateY(10px); } }
.panel { background: rgba(22, 20, 29, .92); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.copy {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 4px; margin: -8px -4px;
  background: none; border: 0;
  font: 600 12px var(--slug); letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
}
.copy .ic { font-size: 14px; }
.copy.done { color: var(--mint); }
.beats { list-style: none; margin: 0; padding: 0; }
.beats li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.beats li:first-child { border-top: 0; }
.beat-n { font: 700 12px var(--slug); color: var(--amber); padding-top: 4px; }
.beat-label { font-family: var(--marquee); font-weight: 800; font-stretch: 62.5%; text-transform: uppercase; font-size: 19px; line-height: 1.1; color: var(--paper); margin: 0; }
.beat-dir { margin: 3px 0 0; font-size: 15px; color: var(--muted); }
.beat-s { margin-top: 4px; color: var(--dim); }
.caption { margin: 6px 0 8px; font-size: 16px; color: var(--paper); }
.hashtags { margin: 0; font: 500 12px var(--slug); color: var(--sky); word-spacing: .4em; }
.why { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; padding: 2px 2px 0; }
.why svg { width: 54px; height: 54px; overflow: visible; }
.why p:last-child { margin: 4px 0 0; font-family: var(--spoken); font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--paper); }

/* Conversion moment after a rehearsal */
.wrapcard {
  margin-top: 18px;
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start;
  padding: 18px;
  border-radius: 22px;
  background: radial-gradient(260px 200px at 0 0, rgba(111, 227, 180, .16), transparent 70%), rgba(22, 20, 29, .94);
  border: 1px solid rgba(111, 227, 180, .35);
}
.wrapcard.open { animation: sheetin .45s var(--settle); }
.wrapcard h2 { font-size: 34px; margin: 6px 0 8px; }
.wrapcard p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.wrapcard .badge-link img { height: 48px; }
.wrap-slate svg { width: 72px; height: 72px; overflow: visible; }

/* Teleprompter */
.prompter {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  color: #fff;
  overflow: hidden;
  touch-action: none;
  --fs: 38px;
  --line-y: 32%;
}
.prompter[hidden] { display: none; }
.prompter.opening { animation: fadein .22s ease-out; }
.p-view { position: absolute; inset: 0; cursor: pointer; }
.p-mirror { position: absolute; inset: 0; }
.p-mirror.flipped { transform: scaleX(-1); }
.p-text {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 0 28px;
  font-family: var(--rounded);
  font-weight: 600;
  font-size: var(--fs);
  line-height: 1.28;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  will-change: transform;
}
.p-band {
  position: absolute; left: 0; right: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,180,84,.04), rgba(255,180,84,.13), rgba(255,180,84,.04));
  border-top: 1px solid rgba(255, 180, 84, .35);
  border-bottom: 1px solid rgba(255, 180, 84, .35);
}
.p-marks { position: absolute; left: 6px; right: 6px; pointer-events: none; display: flex; justify-content: space-between; }
.p-marks span { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--amber); }
.p-marks span:last-child { border-left: 0; border-right: 10px solid var(--amber); }
.p-progress { position: absolute; right: 8px; top: 18%; height: 40%; width: 3px; border-radius: 3px; background: rgba(255,255,255,.1); pointer-events: none; }
.p-progress span { display: block; width: 3px; min-height: 6px; border-radius: 3px; background: var(--amber); }
.p-top {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: max(16px, env(safe-area-inset-top)) 16px 0;
  transition: opacity .25s, transform .35s var(--settle);
}
.p-top .grow { flex: 1; }
.round-ic { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 15px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff;
  font: 600 12px var(--slug); letter-spacing: .06em; text-transform: uppercase;
}
.pill .ic { font-size: 13px; }
.pill[aria-pressed="true"], .pill.on { background: var(--amber); color: var(--ink); }
.pill.quiet { height: 32px; padding: 0 12px; background: rgba(255,255,255,.1); color: var(--muted); font-size: 11px; }
.prompter.rolling .p-top { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.p-controls {
  position: absolute; left: 16px; right: 16px;
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 16px;
  border-radius: 28px;
  background: rgba(40, 38, 48, .78);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  display: grid; gap: 14px;
  transition: opacity .25s, transform .35s var(--settle);
}
.prompter.rolling .p-controls { opacity: 0; transform: translateY(30px); pointer-events: none; }
.p-speed { display: flex; align-items: center; gap: 10px; }
.p-speed .ic { font-size: 15px; }
.p-speed input { flex: 1; min-width: 0; height: 44px; accent-color: var(--amber); background: transparent; -webkit-appearance: none; appearance: none; }
.p-speed input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber) var(--pct, 30%), rgba(255,255,255,.2) var(--pct, 30%)); }
.p-speed input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.p-speed input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
.p-speed input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--amber); }
.p-speed input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; }
.pace {
  min-width: 58px; min-height: 32px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,180,84,.35); background: rgba(255,180,84,.14); color: var(--amber);
  font: 600 12px var(--slug); font-variant-numeric: tabular-nums;
  position: relative;
}
.pace::after { content: ""; position: absolute; inset: -6px -2px; }
.p-buttons { display: grid; grid-template-columns: 52px 52px 1fr 52px 52px; gap: 10px; }
.sq { height: 60px; border: 0; border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 17px; }
.sq[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.aa { font: 800 13px var(--rounded); }
.aa:not(.small) { font-size: 19px; }
.play { height: 60px; border: 0; border-radius: 20px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 24px; }
.sq:active, .play:active, .pill:active, .round-ic:active { transform: scale(.95); }
.p-hint {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.5);
  color: rgba(244,239,230,.62);
  white-space: nowrap;
}
.tally { width: 7px; height: 7px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 8px var(--tally); animation: tally 1.1s ease-in-out infinite alternate; }
.p-hint.counting .tally { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
@keyframes tally { from { box-shadow: 0 0 2px var(--tally); } }
.p-count { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; background: rgba(0,0,0,.42); pointer-events: none; }
.p-count::before { content: ""; position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: radial-gradient(rgba(255,180,84,.32), rgba(255,180,84,.06) 50%, transparent 70%); }
.p-ring { position: absolute; left: 50%; top: 50%; width: 152px; height: 152px; margin: -76px 0 0 -76px; border-radius: 50%; border: 3px solid rgba(255,180,84,.78); }
.p-ring.pulse { animation: ring .65s ease-out forwards; }
@keyframes ring { from { transform: scale(.84); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }
.p-num {
  position: relative; margin: 0;
  font-size: 132px; line-height: .9;
  background: linear-gradient(#fff, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,180,84,.65));
}
.p-num.tick { animation: numin .3s var(--snap); }
@keyframes numin { from { transform: scale(1.32); opacity: 0; } }
.p-count .slug { position: relative; }
.p-edit { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(max(16px, env(safe-area-inset-top)) + 60px) 22px max(16px, env(safe-area-inset-bottom)); background: #000; }
.prompter.editing .p-controls, .prompter.editing .p-band, .prompter.editing .p-marks, .prompter.editing .p-progress { display: none; }
.p-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.p-edit textarea {
  flex: 1; margin-top: 10px; width: 100%;
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  background: rgba(255,255,255,.04); color: #fff;
  padding: 14px;
  font: 500 20px/1.4 var(--rounded);
  resize: none;
}
.p-edit textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; }
.p-end { position: absolute; inset: 0; display: grid; place-items: end center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent 20%, rgba(0,0,0,.85) 60%); }
.p-end-card {
  width: 100%; max-width: 420px;
  padding: 22px 20px 18px;
  border-radius: 28px;
  background: radial-gradient(300px 220px at 50% 0, rgba(111,227,180,.16), transparent 70%), #16141D;
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  display: grid; justify-items: center; gap: 10px;
  animation: sheetin .45s var(--settle);
}
.p-end-slate svg { width: 92px; height: 92px; overflow: visible; }
.p-end-line { margin: 0; font-family: var(--spoken); font-size: 24px; font-weight: 600; }
.p-end-copy { margin: 0 0 4px; color: var(--muted); font-size: 15px; max-width: 30em; }
.p-end .badge-link img { height: 48px; }
.p-end-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.quiet-btn {
  min-height: 52px; border-radius: 18px; border: 1px solid var(--line); background: var(--raised); color: var(--paper);
  font-family: var(--marquee); font-weight: 800; font-stretch: 62.5%; text-transform: uppercase; font-size: 18px; letter-spacing: .03em;
}

/* The rest of the page */
.more { padding: 56px var(--gutter) 8px; }
.more h2, .final h2 { font-size: clamp(36px, 10.5vw, 56px); margin: 8px 0 22px; text-wrap: balance; }
.shots {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: center; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid rgba(255,255,255,.1); background: var(--surface); aspect-ratio: 600 / 1304; }
.shots p { margin: 12px 2px 0; font-size: 14px; color: var(--muted); }
.shots b { color: var(--paper); font-weight: 650; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; color: var(--paper); }
.facts li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.final { padding: 64px var(--gutter) 56px; text-align: center; display: grid; justify-items: center; }
.final-slate { width: 150px; height: 150px; margin-bottom: 4px; }
.final-slate svg { width: 100%; height: 100%; overflow: visible; }
.final h2 { margin: 6px 0 8px; max-width: 12em; }
.final > p:not(.fine) { margin: 0 0 22px; font-family: var(--spoken); font-size: 20px; color: var(--paper); }
.final .badge-link img { height: 54px; }
.foot {
  max-width: 1180px; margin: 0 auto;
  padding: 24px var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* Small phones */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .top .badge-link img { height: 40px; }
  .brand span { font-size: 21px; }
  .slate-btn { width: 80px; height: 80px; }
  .bubble { font-size: 15px; }
  .clap { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .clap .v { font-size: 17px; }
  .card-body { padding-left: 14px; padding-right: 14px; }
  .segmented button { padding: 0 9px; letter-spacing: .04em; }
  .p-buttons { grid-template-columns: 44px 44px 1fr 44px 44px; gap: 8px; }
  .p-text { padding: 0 22px; }
}

/* Desktop: the demo lives in a phone, the pitch sits beside it. */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .top { padding-top: 22px; padding-left: 32px; padding-right: 32px; }
  .top .badge-link { display: none; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 64px;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 40px;
  }
  .steps { display: grid; }
  .intro { padding-top: 0; }
  .hero h1 { font-size: clamp(76px, 7.6vw, 108px); margin: 14px 0 20px; }
  .lede { font-size: 19px; line-height: 1.55; max-width: 30em; }
  .intro-cta { display: block; margin-top: 30px; }
  .intro-cta .badge-link img { height: 50px; }
  .device {
    width: 410px; height: 780px;
    border-radius: 62px;
    padding: 12px;
    background: linear-gradient(145deg, #2E2B37, #121117 40%, #26232E);
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06), 0 50px 90px rgba(0,0,0,.6), 0 0 120px rgba(255,180,84,.08);
  }
  .device::before { content: ""; position: absolute; top: 24px; left: 50%; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #000; z-index: 45; }
  .screen {
    height: 100%;
    border-radius: 50px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 64px 18px 24px;
    --gutter: 18px;
    background:
      radial-gradient(420px 380px at 18% 0, rgba(255,180,84,.2), transparent 70%),
      radial-gradient(380px 380px at 100% 40%, rgba(255,75,62,.1), transparent 70%),
      var(--bg);
  }
  .screen::-webkit-scrollbar { display: none; }
  .app-head { display: block; margin-bottom: 2px; }
  .app-title { font-size: 38px; margin: 4px 0 0; }
  .screen .picker { margin-top: 8px; }
  .screen .slate-row { margin-top: 10px; }
  .screen .slate-btn { width: 84px; height: 84px; }
  .screen .bubble { font-size: 15px; margin-bottom: 26px; }
  .screen .hook { font-size: 27px; }
  .screen .card-body { gap: 10px; padding: 14px 16px 16px; }
  .screen .premise { font-size: 14px; }
  .screen .row-actions { margin-bottom: 6px; }
  .prompter { position: absolute; inset: 12px; border-radius: 50px; z-index: 44; --fs: 34px; }
  .p-top { padding-top: 64px; }
  .p-controls { bottom: 18px; }
  .p-hint { bottom: 24px; }
  .p-edit { padding-top: 124px; }
  .p-end { padding-bottom: 18px; border-radius: 50px; }
  .more { padding-top: 72px; }
  .more h2 { max-width: 14em; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .final { padding-top: 96px; padding-bottom: 88px; }
  .final h2 { font-size: 72px; }
}

/* Short desktop windows: shrink the whole phone rather than hide the demo's main button. */
@media (min-width: 960px) and (max-height: 880px) { .device { zoom: .88; } }
@media (min-width: 960px) and (max-height: 780px) { .device { zoom: .78; } }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .card.entering, .card.nudge, .bubble.pop, .sheet.open, .wrapcard.open, .p-end-card, .p-num.tick { animation: none; }
  .card.fade-in { animation: fadein .2s ease-out; }
  .tally { animation: none; }
  .p-ring.pulse { animation: none; opacity: .55; }
  .back, .p-top, .p-controls { transition: opacity .2s; }
  .prompter.rolling .p-top, .prompter.rolling .p-controls { transform: none; }
  .chip, .marquee-btn { transition: none; }
}
