/* Cuttle, usecuttle.com. The app's own world: graphite surfaces, one clay accent, Archivo for
   display (the heading face of Cuttle's videos), Inter to read, JetBrains Mono for times and sizes. */

@font-face { font-family: 'Archivo'; src: url(/fonts/archivo-var.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-symbols.woff2) format('woff2'); font-weight: 400 600; unicode-range: U+b7, U+d7, U+2190, U+2192, U+21ba, U+21e7, U+2303, U+2318, U+2325; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-symbols.woff2) format('woff2'); font-weight: 400 500; unicode-range: U+b7, U+d7, U+203a, U+2190, U+2192, U+21ba, U+21e7, U+2212, U+2303, U+2318, U+2325, U+27e6-27e7; }

@property --s { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --e { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
@property --x { syntax: '<percentage>'; inherits: true; initial-value: 0%; }

:root {
  --bg: #0c0c0f;
  --stage: #08080a;
  --panel: #131317;
  --raised: #1b1b21;
  --raised-hover: #22222a;
  --raised-active: #2b2b33;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #ececf1;
  --text-2: #c9c9d1;
  --muted: #9a9aa5;
  --faint: #85858f;
  --accent: #d97757;
  --accent-hover: #e2876a;
  --accent-text: #1b0f0a;
  --accent-soft: rgba(217, 119, 87, 0.14);
  --zoom: #5aa2ff;
  --mask: #a77bff;
  --caption: #4fd1a1;
  --ok: #4fd1a1;

  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 11vw, 160px);
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; scrollbar-color: #2b2b33 var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: rgba(217, 119, 87, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: 0.86em; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
pre code { background: none; border: 0; padding: 0; white-space: pre; }
.dim { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--accent); color: var(--accent-text); padding: 8px 12px; border-radius: var(--r-md); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

h1, h2 {
  font-family: var(--display);
  font-weight: 640;
  font-stretch: 108%;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.125rem, 1.35rem + 2.6vw, 3.75rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font: 500 1.125rem/1.35 var(--font); margin: 0; letter-spacing: -0.005em; }
.h2-s { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 3rem); }
.trio-item h3, .film-ask h3 { font-family: var(--display); font-weight: 600; font-stretch: 108%; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
.body { color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.body + .body { margin-top: 16px; }
.lede { color: var(--text-2); font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 34rem; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 10px;
  font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { color: var(--text); border: 1px solid var(--line-strong); background: transparent; }
.btn-quiet:hover { background: var(--raised); }
.btn-quiet .mono { font-size: 13px; }
.btn-s { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-l { height: 52px; padding: 0 24px; font-size: 17px; }
/* the system a download is for: its mark, in the button's own ink */
.btn .os-icon { width: 18px; height: 18px; flex: none; }
.btn .os-icon-apple { width: 19px; height: 19px; margin-top: -3px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(12, 12, 15, 0.9); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
@supports (backdrop-filter: blur(1px)) { .top { background: rgba(12, 12, 15, 0.78); backdrop-filter: blur(14px) saturate(1.2); } }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--font); letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav a:hover { color: var(--text); background: var(--raised); }
.menu-btn { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: grid; }
.menu[hidden] { display: none; }
.menu a { padding: 12px 0; text-decoration: none; color: var(--text-2); border-bottom: 1px solid var(--line); font-weight: 500; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .top-row { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 3.2vw, 40px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  grid-template-areas: 'copy viewer' 'timeline timeline';
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: 16px;
  align-items: center;
}
.hero-copy { grid-area: copy; display: grid; gap: 24px; align-content: center; padding-bottom: 8px; container-type: inline-size; }
/* Set as a title card: two lines that fill the column */
.hero-copy h1 { font-size: clamp(2.25rem, 10.2cqi, 4.75rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.viewer-panel { grid-area: viewer; width: 100%; max-width: calc((100svh - 450px) * 16 / 9 + 26px); min-width: min(100%, 480px); justify-self: end; }
.timeline-panel { grid-area: timeline; }
.demo-note { margin-top: 12px; font-size: 13px; color: var(--faint); }

.viewer-panel, .timeline-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl); }
.viewer-panel { padding: 0 12px 4px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; font-size: 13px; }
.file { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; }
.file-name { font-weight: 500; color: var(--text); }
.file .mono { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmt-now { font-size: 12px; white-space: nowrap; }
.fmt-now .a11 { display: none; }

/* The stage: a 16:9 video (1:1 on a phone), its background and the take's window */
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--stage); container-type: inline-size; isolation: isolate; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.backdrop { position: absolute; inset: 0; background:
  linear-gradient(160deg, #46261b 0%, #2a1915 28%, #17121a 62%, #0f0f14 100%); }
.backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, 0.35), transparent 50%); }

.win { position: absolute; border-radius: 1.1cqw; overflow: hidden; background: #111115; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07); }
.win-bar { display: flex; align-items: center; gap: 0.6em; height: 2.2em; padding: 0 0.9em; background: #1c1c22; color: #8b8b96; font: 500 1em/1 var(--font); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.win-bar i { width: 0.75em; height: 0.75em; border-radius: 50%; background: #ff5f57; flex: none; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { flex: 1; text-align: center; margin-right: 3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.term { left: 7%; top: 8%; width: 86%; height: 84%; font-size: 1.72cqw; }
.term-body { padding: 1.4em 1.6em; font: 400 1em/1.62 var(--mono); color: #d6d6dd; }
.term-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-welcome { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.5em 0.9em; margin-bottom: 1.1em; border: 1px solid rgba(217, 119, 87, 0.5); border-radius: 0.45em; color: #ececf1; }
.t-dim { color: #85858f; margin-left: 0.4em; }
.spark { width: 0.95em; height: 0.95em; color: var(--accent); flex: none; }
.t-prompt { color: #ececf1; border: 1px solid rgba(255, 255, 255, 0.16); padding: 0.45em 0.8em; margin: 0 0 1em; border-radius: 0.45em; min-height: 2.3em; white-space: normal !important; }
.caret-mark { color: #85858f; }
.t-status { display: none; align-items: center; gap: 0.6em; margin-top: 0.8em; color: #c9c9d1; }
.t-status.shown { display: flex; }
.t-status .spark { color: var(--accent); }
.t-status [data-elapsed] { color: #85858f; font-variant-numeric: tabular-nums; }
.t-prompt [data-typed]::after { content: ''; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 0.1em; vertical-align: -0.18em; background: rgba(236, 236, 241, 0.75); }
.t-line { color: #ececf1; }
.t-line .arg { color: #9a9aa5; }
.t-out { padding-left: 1.6em; color: #b9b9c3; }
.dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: #9a9aa5; margin: 0 0.75em 0.08em 0.1em; }
.dot-ok { background: var(--ok); }
.diff { color: var(--ok); }
.ok { color: var(--ok); }
.t-answer { margin-top: 0.9em; color: #ececf1; white-space: normal !important; max-width: 38em; }
.demo-live .term-body [data-line]:not(.shown) { display: none; }

/* A mask, as Cuttle draws one: the text blurred under a quiet hatch */
.secret { position: relative; display: inline-block; vertical-align: top; border-radius: 0.3em; transition: filter 300ms var(--ease); }
.secret::after { content: ''; position: absolute; inset: -0.1em -0.3em; border-radius: 0.35em; background: repeating-linear-gradient(135deg, rgba(167, 123, 255, 0.28) 0 0.35em, rgba(167, 123, 255, 0.12) 0.35em 0.7em); box-shadow: inset 0 0 0 1px rgba(167, 123, 255, 0.55); opacity: 0; transition: opacity 300ms var(--ease); }
.masked .secret { filter: blur(0.32em); }
.masked .secret::after { opacity: 1; filter: blur(0); }

.result { left: 14%; top: 11%; width: 72%; height: 78%; font-size: 1.72cqw; background: #16161b; transform: translateY(12%); opacity: 0; transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.show-result .result { opacity: 1; transform: none; }
.result-body { padding: 2em 2.4em; display: grid; gap: 1.2em; align-content: start; }
.r-title { font: 600 1.9em/1.1 var(--font); color: #ececf1; }
.r-note { font: 400 1.1em/1.3 var(--font); color: #9a9aa5; margin-top: -0.6em; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: #0c0c0f; border-radius: 0.6em; padding: 0.25em; font: 500 1.05em/1 var(--font); color: #9a9aa5; text-align: center; }
.seg3 span { padding: 0.75em 0; border-radius: 0.45em; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.cursor { position: absolute; left: 0; top: 0; width: 1.5cqw; height: auto; opacity: 0; transition: opacity 200ms var(--ease), scale 120ms var(--ease); transform-origin: 2px 2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); pointer-events: none; }
.cursor.shown { opacity: 1; }
.cursor.click { scale: 0.82; }
.seg3 .on { background: #2b2b33; color: #ececf1; }
.r-rows { display: grid; font: 400 1.05em/1 var(--font); color: #c9c9d1; }
.r-rows p { display: flex; justify-content: space-between; align-items: center; padding: 0.8em 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.r-rows i { width: 2.2em; height: 1.3em; border-radius: 0.65em; background: #3a3a44; position: relative; }
.r-rows i::after { content: ''; position: absolute; left: 0.15em; top: 0.15em; width: 1em; height: 1em; border-radius: 50%; background: #c9c9d1; }
.r-rows i.sw-on { background: var(--accent); }
.r-rows i.sw-on::after { left: auto; right: 0.15em; background: #fff; }

.speed-badge { position: absolute; right: 2.4cqw; bottom: 2.4cqw; font-size: max(12px, 1.9cqw); font-weight: 500; color: #ececf1; background: rgba(12, 12, 15, 0.72); border: 1px solid rgba(255, 255, 255, 0.12); padding: 0.35em 0.6em; border-radius: 0.5em; opacity: 0; transform: translateY(-4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.speed-badge.on { opacity: 1; transform: none; }

.transport { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 4px; }
.play { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ececf1; color: #0c0c0f; cursor: pointer; flex: none; transition: background-color 160ms var(--ease), transform 120ms var(--ease); }
.play:hover { background: #fff; }
.play:active { transform: scale(0.96); }
.play .i-pause { display: none; }
.play[data-playing='true'] .i-play { display: none; }
.play[data-playing='true'] .i-pause { display: block; }
.tc { font-size: 14px; color: var(--text); }
.into { font-size: 13px; margin-left: 4px; }
.rate { font-size: 12px; margin-left: auto; color: var(--faint); }

/* ---------- The timeline ---------- */
.timeline-panel { padding: 8px 16px 16px; overflow: hidden; }
.tl-tools { display: flex; align-items: center; gap: 12px; min-height: 52px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.tl-tab { font-size: 13px; font-weight: 500; color: var(--text); background: var(--raised-active); padding: 6px 10px; border-radius: 7px; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.tog { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: 500 13px/1 var(--font); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.tog:hover { background: var(--raised); color: var(--text); }
.tog .sw { position: relative; width: 24px; height: 14px; border-radius: 7px; background: #3a3a44; transition: background-color 160ms var(--ease); flex: none; }
.tog .sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #c9c9d1; transition: transform 200ms var(--ease), background-color 160ms var(--ease); }
.tog[aria-pressed='true'] .sw { background: var(--text); }
.tog[aria-pressed='true'] .sw::after { transform: translateX(10px); background: var(--bg); }
.tog[aria-pressed='false'] { color: var(--muted); }
.readout { margin-left: auto; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.readout .big { font-size: 22px; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.readout .dim { font-size: 12px; }

.tl { position: relative; display: grid; gap: 6px; }
.tl-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; }
.lane-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.kind { display: inline-block; width: 3px; height: 14px; border-radius: 2px; background: var(--muted); }
.kind-zoom { background: var(--zoom); }
.kind-mask { background: var(--mask); }
.track { position: relative; height: 28px; }
.tl-markers .track { height: 22px; }
.tl-ruler .track { height: 18px; border-bottom: 1px solid var(--line); }
.lane-video { height: 36px; }

/* Every item spans the whole track and is clipped to its own stretch: --s and --e animate */
.seg, .item {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--e) + 1px) 0 calc(var(--s) + 1px) round 6px);
  transition: --s 900ms var(--ease), --e 900ms var(--ease), opacity 300ms var(--ease);
}
.seg { background: linear-gradient(#2d2d36, #24242c); }
.seg::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 55px, rgba(0, 0, 0, 0.28) 55px 56px); }
.seg .lab, .item .lab { position: absolute; inset: 0; transform: translateX(var(--s)); display: flex; align-items: center; padding-left: 10px; font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; transition: transform 900ms var(--ease); }
.seg .lab .mono { font-size: 11px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.seg.k-work { background: linear-gradient(#33303a, #2a2730); }
.seg.idle { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 5px, rgba(255, 255, 255, 0.02) 5px 10px); }
.seg.idle::before { display: none; }
.seg.idle .lab { color: var(--muted); font-weight: 400; }
.seg.idle.flag { background: repeating-linear-gradient(135deg, rgba(217, 119, 87, 0.42) 0 5px, rgba(217, 119, 87, 0.16) 5px 10px); }
.seg.idle.flag .lab { color: #f3c9b8; }
.item { opacity: 0; }
.item.in { opacity: 1; }
.item.z { background: rgba(90, 162, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(90, 162, 255, 0.65); }
.item.m { background: rgba(167, 123, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(167, 123, 255, 0.65); }
.item.off { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 5px, transparent 5px 10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.item.off .lab { color: var(--faint); text-decoration: line-through; }
/* clip-path round with a 1px inset draws the item's ring inside the clip */
.item.z, .item.m, .item.off { clip-path: inset(2px calc(100% - var(--e) + 2px) 2px calc(var(--s) + 2px) round 6px); }

.mk { position: absolute; inset: 0; transform: translateX(var(--x)); transition: transform 900ms var(--ease), opacity 300ms var(--ease); pointer-events: none; }
.mk span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--text-2); white-space: nowrap; transform: translateX(-10px); opacity: 0; transition: opacity 250ms var(--ease); }
.mk span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }
.mk.m-answer span::before { background: var(--ok); }
.mk.in span { opacity: 1; }

.tick { position: absolute; bottom: 0; left: 0; height: 100%; transform: translateX(var(--x)); width: 100%; pointer-events: none; }
.tick::before { content: ''; position: absolute; left: 0; bottom: 0; width: 1px; height: 5px; background: rgba(255, 255, 255, 0.18); }
.tick span { position: absolute; left: 4px; top: 0; font: 400 11px/1 var(--mono); color: var(--faint); }
.ruler-set { position: absolute; inset: 0; transition: opacity 400ms var(--ease); }
.ruler-set.out { opacity: 0; }

.playhead-layer { position: absolute; inset: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; pointer-events: none; }
.playhead-layer .track { grid-column: 2; height: auto; }
.playhead { position: absolute; inset: 0; transform: translateX(var(--p, 0%)); }
.playhead::before { content: ''; position: absolute; left: -1px; top: 26px; bottom: -4px; width: 2px; background: var(--accent); border-radius: 1px; }
.playhead::after { content: ''; position: absolute; left: -6px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.split-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head .body { padding-bottom: 6px; }

/* The real editor, with pins */
.shot { margin: 0; }
.shot-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--stage); }
.shot-frame img { width: 100%; }
.pin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-text); font: 600 12px/1 var(--mono); box-shadow: 0 0 0 4px rgba(12, 12, 15, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4); }
.pin-1 { left: 18.75%; top: 69.8%; }
.pin-2 { left: 26.1%; top: 75.6%; }
.pin-3 { left: 13.9%; top: 83.3%; }
.pin-4 { left: 42.4%; top: 88.0%; }
.pin-5 { left: 81.6%; top: 26.7%; }
.pins-legend { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.pins-legend li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pins-legend b { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.pin-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(217, 119, 87, 0.6); }

/* Claude Code */
.claude-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.claude-copy { display: grid; gap: 24px; }
.console { border-radius: var(--r-xl); background: #101014; border: 1px solid var(--line); overflow: hidden; font-size: 13px; }
.console .win-bar { height: 36px; font-size: 12px; background: #17171c; }
.console .win-bar i { width: 10px; height: 10px; }
.console-body { margin: 0; padding: 24px 24px 20px; font: 400 clamp(12px, 0.7rem + 0.25vw, 14.5px)/1.75 var(--mono); color: var(--text); overflow-x: auto; }
.c-p { color: var(--accent); user-select: none; }
.c-c { color: var(--faint); }
.markers-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 4px; align-items: center; padding: 0 24px 24px; }
.ms { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 500; background: #2d2d36; color: var(--text); white-space: nowrap; }
.ms b { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }
.ms-work { justify-content: center; background: repeating-linear-gradient(90deg, #33303a 0 28px, #2b2831 28px 29px); color: var(--text-2); font-family: var(--mono); font-weight: 400; overflow: hidden; }
.ms-answer b { background: var(--ok); }
.trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); padding-top: 40px; border-top: 1px solid var(--line); }
.trio-item { display: grid; gap: 12px; align-content: start; }
.trio-item p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.trio-item q { color: var(--text); quotes: '“' '”'; }
.snippet { margin: 4px 0 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--text-2); overflow-x: auto; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.privacy-copy { display: grid; gap: 0; }
.privacy-copy h2 { margin-bottom: 24px; }
.mark-code { color: var(--mask); }
.note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; max-width: 60ch; }
.privacy-shot { order: -1; position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: linear-gradient(170deg, #19191e 0%, #111114 100%); border: 1px solid var(--line); container-type: inline-size; }
.term-lg { position: relative; inset: auto; width: 100%; height: auto; font-size: clamp(11px, 2.3cqw, 14px); border-radius: 10px; }
.term-lg .term-body { line-height: 1.75; padding: 1.2em 1.4em 1.4em; }
.term-lg .t-out { padding-left: 0; }
.term-lg .secret::after { inset: -0.12em -0.25em; }
.toast { position: absolute; right: calc(clamp(28px, 4vw, 48px) + 14px); top: calc(clamp(28px, 4vw, 48px) + 46px); display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(44, 44, 52, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 12px; line-height: 1.35; min-width: 46%; }
.toast-icon { width: 28px; height: 28px; border-radius: 7px; background: #4fd1a1; flex: none; }
.toast-text { display: grid; color: #c9c9d1; }
.toast-text b { color: #ececf1; font-weight: 600; }
.toast::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(167, 123, 255, 0.3) 0 6px, rgba(167, 123, 255, 0.12) 6px 12px); box-shadow: inset 0 0 0 1px rgba(167, 123, 255, 0.6); opacity: 0; transition: opacity 400ms var(--ease) 500ms; }
.toast > span { transition: filter 400ms var(--ease) 500ms; }
.masked .toast > span { filter: blur(5px); }
.masked .toast::after { opacity: 1; }
.mask-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.mask-tags span { display: inline-flex; align-items: center; gap: 8px; }
.s-reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.s-reveal::after { transition-delay: calc(var(--i, 0) * 90ms); }

.local { margin-top: clamp(64px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); }
.local-title { font-family: var(--display); font-weight: 600; font-stretch: 108%; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.local-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; color: var(--muted); font-size: 16px; }

/* The look */
.look-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.look-copy { display: grid; gap: 24px; }
.look-controls { display: grid; gap: 16px; margin-top: 8px; }
.look-controls fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.look-controls legend { float: left; padding: 0; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); cursor: pointer; }
.chips label:hover span { background: var(--raised); color: var(--text); }
.chips input:checked + span { background: var(--raised-active); color: var(--text); border-color: var(--line-strong); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.look-preview { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden; container-type: inline-size; transition: background 400ms var(--ease); border: 1px solid var(--line); }
.bg-sunset { background: linear-gradient(180deg, #2b1c47 0%, #6b2f6b 30%, #c45a6a 58%, #ef9a5c 82%, #f6c983 100%); }
.bg-aurora { background: radial-gradient(60% 55% at 28% 22%, rgba(79, 209, 161, 0.42), transparent 70%), radial-gradient(55% 60% at 82% 78%, rgba(90, 162, 255, 0.34), transparent 70%), #0a0e18; }
.bg-clay { background: #c9694a; }
.bg-dots { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 1.5px) 0 0 / 22px 22px, #121216; }
.lp-window { position: absolute; left: 12%; top: 12%; width: 76%; border-radius: 1.6cqw; overflow: hidden; background: #111115; box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 1.7cqw; transition: background-color 300ms var(--ease), border-radius 300ms var(--ease); }
.lp-window .win-bar { font-size: 1em; }
.lp-code { margin: 0; padding: 1.6em 1.8em 2.2em; font: 400 1.55em/1.7 var(--mono); color: #d6d6dd; white-space: pre; overflow: hidden; }
.lp-code .k { color: #c792ea; }
.lp-code .f { color: #82aaff; }
.lp-code .s { color: #e8a37d; }
.frame-mac-light .lp-window { background: #fbfaf8; }
.frame-mac-light .lp-window .win-bar { background: #ecebe8; color: #6b6b72; border-bottom-color: rgba(0, 0, 0, 0.06); }
.frame-mac-light .lp-code { color: #2a2a30; }
.frame-mac-light .lp-code .k { color: #8a3fc2; }
.frame-mac-light .lp-code .f { color: #2f63c8; }
.frame-mac-light .lp-code .s { color: #b0562f; }
.frame-none .lp-window .win-bar { display: none; }
.frame-none .lp-window { border-radius: 1cqw; }
.lp-subs { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font: 600 3.1cqw/1.2 var(--font); color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); transition: opacity 250ms var(--ease); }
.lp-subs span { opacity: 0.6; }
.lp-subs .now { opacity: 1; color: #ffd9c6; }
.lp-subs span:nth-child(-n+2) { opacity: 1; }
.subs-off .lp-subs { opacity: 0; }

/* Formats */
.formats { --fgap: clamp(12px, 3vw, 48px); --u: min(0.24px, calc((100vw - 2 * var(--gutter) - 2 * var(--fgap) - 2px) / 4080)); display: flex; align-items: flex-end; justify-content: center; gap: var(--fgap); }
.fmt { display: grid; gap: 12px; justify-items: start; }
.fmt-frame { position: relative; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #46261b 0%, #2a1915 30%, #17121a 65%, #0f0f14 100%); border: 1px solid var(--line); }
.fmt-169 .fmt-frame { width: calc(1920 * var(--u)); height: calc(1080 * var(--u)); }
.fmt-11 .fmt-frame { width: calc(1080 * var(--u)); height: calc(1080 * var(--u)); }
.fmt-916 .fmt-frame { width: calc(1080 * var(--u)); height: calc(1920 * var(--u)); }
.fmt-frame { container-type: inline-size; }
.mini { position: absolute; left: 11%; right: 11%; top: 11%; border-radius: 1.4cqw; overflow: hidden; background: #111115; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07); font-size: 1.9cqw; }
.mini .win-bar { font-size: 0.9em; }
.mini-body { padding: 1.2em 1.4em 1.5em; font: 400 1em/1.6 var(--mono); color: #d6d6dd; }
.mini-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body .mp { color: #ececf1; margin-bottom: 0.6em; }
.mini-body .ma { white-space: normal; margin-top: 0.6em; color: #ececf1; }
.mini-body .arg { color: #9a9aa5; }
.fmt-sub { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; font: 600 3.4cqw/1.25 var(--font); color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.fmt-sub span { opacity: 0.62; }
.fmt-11 .mini { left: 8%; right: 8%; top: 9%; font-size: 3cqw; }
.fmt-11 .fmt-sub { font-size: 5.4cqw; bottom: 8%; }
.fmt-916 .mini { left: 5%; right: 5%; top: 20%; font-size: 4.1cqw; }
.fmt-916 .fmt-sub { font-size: 6.6cqw; bottom: 22%; }
.fmt-meta { display: flex; gap: 10px; font-size: 14px; }
.fmt-meta .mono:first-child { color: var(--text); font-weight: 500; }
.fmt-where { font-size: 14px; color: var(--muted); margin-top: -8px; }
.specs { margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.specs div { display: grid; gap: 6px; align-content: start; }
.specs dt { font-size: 13px; color: var(--faint); }
.specs dd { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.specs dd.mono { font-size: 14px; }

/* Written in code: a darker band, the film at full width */
.section-film { padding-top: var(--section); }
.film-band { background: var(--stage); border-block: 1px solid var(--line); padding-block: clamp(72px, 9vw, 128px); }
.film { margin: 0; }
.film-frame { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film figcaption, .motion-frames figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.film figcaption .mono { font-size: 12px; margin-left: 6px; }
.film-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.motion-frames { margin: 0; }
.motion-frames img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--stage); }
.film-ask { display: grid; gap: 12px; }
.film-ask p { color: var(--muted); font-size: 16px; text-wrap: pretty; }

/* How it works */
.how-title { margin-bottom: clamp(40px, 5vw, 64px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); counter-reset: step; }
.step { display: grid; gap: 16px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step:nth-child(2) { border-top-color: var(--accent); }
.step h3 { font-family: var(--display); font-weight: 600; font-stretch: 108%; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.1; }
.step p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.keys { display: inline-flex; gap: 3px; vertical-align: 1px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--text); font: 500 12px/1 var(--font); }
.step-img { margin-top: 8px; border-radius: 12px; }
.step-prompter { max-width: 360px; }
.step-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12px !important; }
.step-out span { padding: 6px 10px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); }

/* Details */
.details-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.faq { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 3vw, 48px); }
.faq div { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.faq dt { font-weight: 500; color: var(--text); margin-bottom: 8px; }
.faq dd { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }

/* Close */
.close { padding: calc(var(--section) * 1.1) 0 var(--section); }
.close-inner { display: grid; justify-items: center; text-align: center; gap: 24px; }
.close-mark { width: 112px; height: 112px; margin-bottom: 8px; }
.close h2 { max-width: 14ch; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); }
.close .body { max-width: 40ch; }
.close .btn { margin-top: 8px; }
/* the trial's downloads side by side (stacked on a phone), the price in the clay, the buy link quiet */
.get-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.close .price { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.get-meta { margin: -8px 0 0; color: var(--faint, #85858f); font-size: 0.8125rem; }
.get-buy { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.get-buy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 236, 241, 0.35); }
.get-buy a:hover { text-decoration-color: currentColor; }
@media (max-width: 520px) { .get-actions { flex-direction: column; align-self: stretch; } .get-actions .btn { justify-content: center; } }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding-block: 20px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
/* MacPip's badge, kept in the site (no request to another service), at its own size */
.foot-badge a, .foot-badge img { display: block; }
.foot-badge a:focus-visible { border-radius: 9px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'viewer' 'timeline'; }
  .hero-copy { padding-bottom: 16px; }
  .pins-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .claude-grid, .privacy-grid, .look-grid, .details-grid, .local, .film-foot { grid-template-columns: minmax(0, 1fr); }
  .privacy-shot { order: 0; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stage { aspect-ratio: 1 / 1; }
  .term { left: 5%; top: 6%; width: 90%; height: 88%; font-size: 3.3cqw; }
  .fmt-now .a169 { display: none; }
  .fmt-now .a11 { display: inline; }
  .rate { display: none; }
  .term-body { padding: 1.1em 1.2em; }
  .term-body [data-line='0'], .term-body [data-line='3'] { display: none; }
  .result { left: 7%; top: 14%; width: 86%; height: 76%; font-size: 3.3cqw; }
  .cursor { width: 3.4cqw; }
  .result-body { padding: 1.4em 1.6em; }
  .file .mono { display: none; }
  .timeline-panel { padding: 8px 12px 12px; }
  .tl-row, .playhead-layer { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; gap: 0; }
  .lane-name { visibility: hidden; }
  .readout { margin-left: 0; width: 100%; order: -1; }
  .toggles { width: 100%; }
  .tog { padding: 0 10px 0 6px; font-size: 12px; }
  .pins-legend { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .local-cols { grid-template-columns: minmax(0, 1fr); }
  .look-controls fieldset { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fmt-meta { flex-direction: column; gap: 2px; font-size: 12px; }
  .fmt-where { font-size: 12px; margin-top: -6px; }
  .specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .toast { min-width: 0; left: auto; }
  .pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 11px; box-shadow: 0 0 0 3px rgba(12, 12, 15, 0.55); }
}
@media (max-width: 420px) {
  .into { display: none; }
  .tc { white-space: nowrap; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
}

/* ---------- Legal pages ---------- */
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.legal { max-width: 760px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(80px, 10vw, 128px); }
.legal h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); margin-bottom: 40px; }
.legal-lede { font-size: 1.1875rem; color: var(--text-2); max-width: 56ch; margin-bottom: 16px; text-wrap: pretty; }
.legal section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.legal h2 { font: 500 1.125rem/1.35 var(--font); letter-spacing: 0; }
.legal p { color: var(--text-2); max-width: 64ch; text-wrap: pretty; }
.legal a { color: var(--text); }
.legal-date { margin-top: 40px; font-size: 14px; color: var(--faint) !important; }
