/* Tally site. Compact: the first screen is the product, and scrolling plays a real
   edit. --p (0..1) is how far the reader is through an act, set by main.js. */
:root {
  --paper: #efefec;
  --tone: #e2e2de;
  --tone-2: #d3d3ce;
  --ink: #161615;
  --muted: #55554f;
  --dark: #1c1c1b;
  --dark-2: #2a2a28;
  --on-dark: #f3f3f0;
  --on-dark-muted: #b9b9b2;
  --red: #e2262b;
  --m: clamp(16px, 2.4vw, 36px);
  --pad: clamp(72px, 9vw, 136px);
  --s-hero: clamp(42px, min(6.6vw, 12.5vh), 108px);
  --s-h2: clamp(32px, 4vw, 60px);
  --s-st: clamp(19px, 1.6vw, 25px);
  --s-body: 18px;
  --s-small: 14px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@font-face { font-family: "Instrument Sans"; src: url("assets/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1 { font-size: var(--s-hero); font-weight: 700; line-height: 0.93; letter-spacing: -0.04em; }
h2 { font-size: var(--s-h2); font-weight: 700; line-height: 1; letter-spacing: -0.032em; text-wrap: balance; }
.fine { font-size: var(--s-small); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }

.btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.15s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn.big { height: 62px; padding: 0 34px; font-size: 19px; }
.btn.light { background: var(--on-dark); color: var(--ink); }
.btn span { font-weight: 400; opacity: 0.6; }

/* ── 1 the take: one pinned screen, the scroll is the playhead ── */
.take { height: 420vh; --p: 0; }
.stage { position: sticky; top: 0; height: 100svh; padding: 0 var(--m) 16px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 14px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 33px; width: auto; }
.head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--m); align-items: end; margin-bottom: 6px; }
.pitch { display: grid; gap: 10px; }
.status { font-size: var(--s-st); line-height: 1.25; letter-spacing: -0.012em; font-weight: 500; min-height: 2.5em; display: flex; align-items: flex-end; text-wrap: balance; }
.hint { font-size: var(--s-small); color: var(--muted); opacity: calc(1 - var(--p) * 40); }
.body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--m); min-height: 0; }
.program { position: relative; border-radius: 22px; overflow: hidden; background: var(--dark); min-height: 0; }
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.program img.on { opacity: 1; }
.program::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); /* taste-skill-ignore: neutral scrim under captions on a photograph */ }
.program figcaption { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(22, 22, 21, 0.8); color: #fff; font-size: 14px; font-weight: 500; }
.said { position: absolute; z-index: 1; left: 6%; right: 6%; bottom: 8%; text-align: center; color: #fff; font-weight: 700; font-size: clamp(18px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.01em; min-height: 1.2em; }
.readout { display: grid; align-content: center; gap: clamp(8px, 2.2vh, 24px); background: var(--tone); border-radius: 22px; padding: clamp(14px, 2.6vh, 32px) clamp(14px, 2.2vw, 32px); min-height: 0; }
.readout b { display: block; font-size: clamp(30px, min(4.6vw, 6.6vh), 80px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.readout span { font-size: var(--s-small); color: var(--muted); }
.readout i { font-style: normal; }
.timeline { width: 100%; height: clamp(112px, 20vh, 180px); background: var(--tone); border-radius: 18px; }
.note { text-align: right; }

/* ── 2 reels ── */
.reels { background: var(--dark); color: var(--on-dark); padding: var(--pad) var(--m); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(18px, 3vw, 48px); align-items: center; }
.reels-copy p { margin-top: 22px; max-width: 24em; }
.reels-copy .fine { margin-top: 14px; color: var(--on-dark-muted); }
.phone { width: min(23vw, 37vh, 300px); }
.phone video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; background: #000; }

/* ── 3 in Premiere ── */
.how { padding: var(--pad) var(--m); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.how-copy p { margin: 22px 0 32px; max-width: 25em; }
.panel { width: min(100%, 340px); background: #1d1d1d; border-radius: 18px; padding: 16px; font-size: 13px; color: #f2f2ef; }
.panel-head { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 14px; }
.panel-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.panel-kpis { display: flex; background: rgba(255, 255, 255, 0.06); border-radius: 14px; margin-bottom: 10px; }
.panel-kpis div { flex: 1; padding: 11px 10px; }
.panel-kpis div + div { border-left: 1px solid rgba(255, 255, 255, 0.08); /* taste-skill-ignore: divider inside the product's own panel */ }
.panel-kpis b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.panel-kpis span { font-size: 11px; color: #a3a39d; }
.panel-lanes { background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 12px; margin-bottom: 12px; display: grid; gap: 7px; }
.pl { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a3a39d; }
.pl span { width: 58px; flex: none; }
.pl div { flex: 1; display: flex; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pl i { flex-basis: 0; }
.pl i.on { background: #c9c9c3; border-radius: 2px; }
.pl i.live { background: var(--red); }
.panel-btn { height: 42px; border-radius: 21px; background: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.versus { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.versus th, .versus td { text-align: left; vertical-align: baseline; padding: 20px 22px; font-weight: 400; }
.versus thead th { padding-block: 0 4px; font-size: var(--s-small); font-weight: 500; color: var(--muted); }
.versus tbody th, .versus tbody td { background: var(--tone); }
.versus tbody th { width: 19%; border-radius: 14px 0 0 14px; font-size: var(--s-small); font-weight: 500; color: var(--muted); }
.versus .hand { width: 31%; color: var(--muted); }
.versus .tally { border-radius: 0 14px 14px 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; }
.versus .tally::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 12px; vertical-align: 0.12em; }

/* ── 4 download: the lamp ── */
.download { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: var(--pad) var(--m); min-height: 84svh; display: grid; align-items: center; --p: 0; }
.dl-lamp { position: absolute; right: -10vh; top: 50%; width: min(92vh, 64vw); transform: translateY(-50%) scale(calc(0.72 + clamp(0, var(--p) * 2, 1) * 0.28)); will-change: transform; }
.dl-lamp svg { display: block; width: 100%; overflow: visible; }
.lamp-body, .lamp-slice { fill: var(--red); }
.lamp-slice { transform: translate(calc(4.5px + (1 - clamp(0, var(--p) * 2, 1)) * 16px), calc(-5px - (1 - clamp(0, var(--p) * 2, 1)) * 18px)); }
.dl-copy { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; max-width: 560px; }
.dl-copy h2 { font-size: var(--s-hero); letter-spacing: -0.04em; line-height: 0.93; margin-bottom: 8px; }
.dl-copy .fine { color: var(--on-dark-muted); }
.steps { display: grid; gap: 8px; margin-top: 6px; counter-reset: step; }
.steps li { position: relative; padding-left: 30px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--on-dark); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

/* ── 5 questions ── */
.faq { padding: var(--pad) var(--m); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq details { background: var(--tone); border-radius: 14px; margin-bottom: 6px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; cursor: pointer; list-style: none; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 38em; }

footer { background: var(--dark); color: var(--on-dark-muted); padding: 40px var(--m) 36px; display: grid; gap: 12px; font-size: var(--s-small); }
footer img { height: 33px; width: auto; margin-bottom: 6px; }
footer p { max-width: 46em; }

/* ── the not-found page ── */
.lost { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 30px; padding: var(--m); }

/* ── entrances for the sections that do not move ── */
.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }

/* ── reduced motion, and no script: the take shows its finished state, unpinned ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.still .take { height: auto; }
.still .stage { position: relative; height: auto; min-height: 100svh; }
.still .hint { display: none; }
.still .rise { opacity: 1; transform: none; }

/* ── tablet and phone: its own composition ── */
@media (max-width: 900px) {
  .take { height: 380vh; }
  .stage { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
  .nav { height: 58px; flex: none; }
  .head { grid-template-columns: 1fr; gap: 10px; margin: 0; flex: none; }
  .status { font-size: 17px; min-height: 2.5em; align-items: flex-start; }
  .hint { display: none; }
  .body { display: flex; flex-direction: column; gap: 10px; flex: 0 1 auto; }
  .program { aspect-ratio: 16 / 9; flex: 0 1 auto; border-radius: 16px; }
  .program figcaption { left: 12px; top: 12px; }
  .readout { grid-template-columns: repeat(3, 1fr); padding: 12px 14px; border-radius: 16px; gap: 8px; flex: none; }
  .readout b { font-size: 28px; }
  .readout i { display: none; }
  .timeline { flex: 1 1 112px; min-height: 104px; max-height: 220px; height: auto; border-radius: 16px; }
  .note { display: none; }

  .reels { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .reels-copy { grid-column: 1 / -1; }
  .phone { width: 100%; }
  .phone video { border-radius: 18px; }

  .how, .faq { grid-template-columns: 1fr; gap: 36px; }
  .versus thead { display: none; }
  .versus, .versus tbody { display: grid; gap: 6px; }
  .versus tbody tr { display: grid; gap: 2px; background: var(--tone); border-radius: 14px; padding: 16px 18px; }
  .versus tbody th, .versus tbody td { padding: 0; width: auto; background: none; border-radius: 0; }
  .versus .hand { order: 3; width: auto; font-size: var(--s-small); }
  .versus .hand::before { content: "By hand: "; }

  .download { min-height: 0; padding-bottom: 74vw; }
  .dl-lamp { right: -12vw; top: auto; bottom: -34vw; width: 112vw; transform: none; }
  .lamp-slice { transform: translate(4.5px, -5px); }
}
