/* annotake.app. Every style lives here: the CSP allows no inline styles. Sections follow the page, top to bottom. */

/* ---------- Type: Jost, one variable Latin file under the SIL Open Font License (/licenses/jost-ofl.txt) ---------- */

@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/jost-latin.v1.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;
}

/* ---------- Tokens: boot.js sets data-theme before the first paint; without scripts, the system setting picks ---------- */

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --ink: #1C1C1E;
  --ink-2: #515154;
  --ink-3: #6E6E73;
  --head-2: #8E8E93;
  --line: #E5E5EA;
  --line-2: #D1D1D6;
  --film: #1C1C1E;
  --hole: #FFFFFF;
  --blank: #262628;
  --red: #FF3B30;
  --red-text: #D70015;
  --btn-bg: #1C1C1E;
  --btn-fg: #FFFFFF;
  --glow: transparent;
  --input-bg: #FFFFFF;
  --code-bg: #F2F2F5;
  --desk-1: #EEEEF3;
  --desk-2: #DCDCE4;
  --menubar: rgba(255, 255, 255, .62);
  --menu-ink: #1C1C1E;
  --fd-bg: #FFFFFF;
  --fd-bar: #F6F6F7;
  --fd-side: #F0F0F2;
  --fd-edge: rgba(0, 0, 0, .09);
  --fd-ink: #1D1D1F;
  --fd-ink-3: #6E6E73;
  --fd-sel: rgba(0, 0, 0, .07);
  --fd-zebra: #F7F7F9;
  --ql-bg: #FFFFFF;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141416;
  --ink: #F5F5F7;
  --ink-2: #AEAEB2;
  --ink-3: #8E8E93;
  --head-2: #8E8E93;
  --line: #2C2C2E;
  --line-2: #3A3A3C;
  --film: #2A2A2D;
  --hole: #141416;
  --blank: #3A3A3D;
  --red-text: #FF6961;
  --btn-bg: #FFFFFF;
  --btn-fg: #1C1C1E;
  --glow: rgba(255, 255, 255, .07);
  --input-bg: #1C1C1E;
  --code-bg: #2A2A2D;
  --desk-1: #2D2D33;
  --desk-2: #1D1D21;
  --menubar: rgba(20, 20, 22, .55);
  --menu-ink: #F5F5F7;
  --fd-bg: #1E1E20;
  --fd-bar: #2A2A2C;
  --fd-side: #252527;
  --fd-edge: rgba(255, 255, 255, .08);
  --fd-ink: #F2F2F4;
  --fd-ink-3: #8E8E93;
  --fd-sel: rgba(255, 255, 255, .09);
  --fd-zebra: #232325;
  --ql-bg: #262628;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #141416;
    --ink: #F5F5F7;
    --ink-2: #AEAEB2;
    --ink-3: #8E8E93;
    --head-2: #8E8E93;
    --line: #2C2C2E;
    --line-2: #3A3A3C;
    --film: #2A2A2D;
    --hole: #141416;
    --blank: #3A3A3D;
    --red-text: #FF6961;
    --btn-bg: #FFFFFF;
    --btn-fg: #1C1C1E;
    --glow: rgba(255, 255, 255, .07);
    --input-bg: #1C1C1E;
    --code-bg: #2A2A2D;
    --desk-1: #2D2D33;
    --desk-2: #1D1D21;
    --menubar: rgba(20, 20, 22, .55);
    --menu-ink: #F5F5F7;
    --fd-bg: #1E1E20;
    --fd-bar: #2A2A2C;
    --fd-side: #252527;
    --fd-edge: rgba(255, 255, 255, .08);
    --fd-ink: #F2F2F4;
    --fd-ink-3: #8E8E93;
    --fd-sel: rgba(255, 255, 255, .09);
    --fd-zebra: #232325;
    --ql-bg: #262628;
  }
}

/* ---------- Base ---------- */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { flex: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Visually hidden, but read by screen readers. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mac or not: boot.js sets data-device before the first paint. Without scripts, both show. ---------- */

[data-device="mac"] .other-only,
[data-device="other"] .mac-only { display: none !important; }

/* ---------- Buttons. On anything but a Mac, the "Email me the link" summary is the main button. ---------- */

.btn,
[data-device="other"] .getlink > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 15px/1 Jost, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s, color .3s, opacity .15s;
}
.btn:hover,
[data-device="other"] .getlink > summary:hover { opacity: .88; }
.btn svg { width: 15px; height: 15px; }
.btn-lg,
[data-device="other"] .getlink > summary { height: 56px; padding: 0 28px; font-size: 18px; }
.btn-lg svg,
.getlink > summary svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  max-width: 1264px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home { display: block; border-radius: 6px; }
.logo { display: block; height: 40px; width: auto; color: var(--ink); fill: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon,
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
/* Without scripts the toggle can't work, and the system setting picks the theme. */
:root:not([data-theme]) .theme-toggle { display: none; }

/* ---------- Hero ---------- */

/* In dark, a soft glow behind the header and the hero. */
body { position: relative; }
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(900px 520px at 50% 12%, var(--glow), transparent 70%);
}

.hero { position: relative; z-index: 1; padding: 64px 24px 0; text-align: center; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(44px, 6.1vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; color: var(--head-2); }
.hero .sub {
  max-width: 760px;
  margin: 22px auto 30px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

/* The call to action, in the hero and the final call. */
.cta { max-width: 420px; margin: 0 auto; }
.note { margin-top: 13px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.note > span { display: block; }
.note a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.note a:hover { color: var(--ink); text-decoration-color: currentColor; }
.dl-hint { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

.getlink > summary { list-style: none; cursor: pointer; }
.getlink > summary::-webkit-details-marker { display: none; }
/* Without scripts, under the download: a secondary link. */
:root:not([data-device]) .getlink { margin-top: 18px; }
:root:not([data-device]) .getlink > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
:root:not([data-device]) .getlink > summary svg { width: 16px; height: 16px; }
.getlink[open] + .link-note { display: none; }
/* Open, the summary steps back, and Send link is the main button. */
[data-device="other"] .getlink[open] > summary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- Email me the link: the form, then sent or the fallback ---------- */

.linkform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
}
.linkform input[type="email"] {
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--ink);
  font: 16px Jost, system-ui, sans-serif;
}
.linkform input[type="email"][aria-invalid="true"] { border-color: var(--red-text); }
.linkform button[type="submit"] {
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 16px Jost, system-ui, sans-serif;
  cursor: pointer;
}
.linkform button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.linkform-note,
.linkform-error { grid-column: 1 / -1; }
.linkform-note { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.linkform-note a { color: var(--ink-2); text-underline-offset: 2px; }
.linkform-error { font-size: 14px; color: var(--red-text); }
/* The honeypot: out of sight, but still in the form for bots to fill. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.linkform-sent,
.linkform-fallback {
  margin-top: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}
/* Focus moves here so screen readers read the result; the container itself isn't a control. */
.linkform-sent:focus,
.linkform-fallback:focus { outline: none; }
.linkform-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; }
.check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #34C759;
  color: #FFFFFF;
  font-size: 13px;
}
.linkform-sent > p:not(.linkform-title),
.linkform-fallback > p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.linkform-fallback > p:first-child { margin-top: 0; }
.linkform-retry {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linkform-fallback > .linkform-link {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--ink);
  font: 500 15px ui-monospace, "SF Mono", Menlo, monospace;
  user-select: all;
  -webkit-user-select: all;
}
.linkform-actions { display: flex; gap: 8px; margin-top: 12px; }
.linkform-actions button {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 15px Jost, system-ui, sans-serif;
  cursor: pointer;
}

/* ---------- Acme Settings: the made-up app every picture records. 196 × 104 units; 1 em is one unit. ---------- */

.acme { position: relative; width: 196em; height: 104em; overflow: hidden; background: #F5F5F7; }
.acme .titlebar { display: flex; align-items: center; gap: 4em; height: 15em; padding-left: 7em; background: #E6E6EB; }
.acme .titlebar i { width: 6em; height: 6em; border-radius: 50%; }
.acme .titlebar i:nth-child(1) { background: #FF5F57; }
.acme .titlebar i:nth-child(2) { background: #FEBC2E; }
.acme .titlebar i:nth-child(3) { background: #28C840; }
.acme .side { position: absolute; left: 0; top: 15em; bottom: 0; width: 54em; padding: 9em 7em; background: #ECECF1; }
.acme .side b {
  display: block;
  height: 8em;
  margin-bottom: 7em;
  border-radius: 3em;
  background: #D5D5DB;
  transition: background-color .2s;
}
.acme .side b:nth-child(1) { width: 34em; }
.acme .side b:nth-child(2) { width: 40em; }
.acme .side b:nth-child(3) { width: 28em; }
.acme .side b:nth-child(4) { width: 36em; }
.acme .side b.on { background: #0A84FF; }
.acme .main { position: absolute; left: 62em; top: 24em; right: 10em; bottom: 9em; }
.acme .heading { width: 74em; height: 8em; margin-bottom: 12em; border-radius: 3em; background: #C4C4CA; }
.acme .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9em; }
.acme .label { width: 56em; height: 6em; border-radius: 3em; background: #D8D8DD; }
.acme .row + .row .label { width: 46em; }
.acme .switch {
  position: relative;
  width: 22em;
  height: 13em;
  border-radius: 7em;
  background: #D1D1D6;
  transition: background-color .2s;
}
.acme .switch::after {
  content: '';
  position: absolute;
  top: 1.5em;
  left: 1.5em;
  width: 10em;
  height: 10em;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform .2s;
}
.acme .switch.on { background: #34C759; }
.acme .switch.on::after { transform: translateX(9em); }
.acme .save { position: absolute; right: 0; bottom: 0; width: 44em; height: 15em; border-radius: 4em; background: #0A84FF; }
.acme .toast {
  position: absolute;
  left: 50%;
  top: 2.5em;
  padding: .35em .85em;
  border: .12em solid #FFC9C4;
  border-radius: .5em;
  background: #FFFFFF;
  color: #D70015;
  font: 600 8em/1.25 system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  box-shadow: 0 .25em .7em rgba(0, 0, 0, .12);
  opacity: 0;
  transform: translate(-50%, -.6em);
  transition: opacity .25s, transform .25s;
}
.acme .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* The click ring, the press ripple, and the pointer, placed by script in their container's units. */
.ring {
  position: absolute;
  width: 15em;
  height: 15em;
  border: 2.3em solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 1em rgba(255, 255, 255, .95);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}
.ring.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.press {
  position: absolute;
  width: 16em;
  height: 16em;
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
.press.go { animation: press .4s ease-out; }
@keyframes press {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}
.cursor {
  position: absolute;
  z-index: 3;
  width: 9em;
  height: 13.5em;
  margin: -.6em 0 0 -.6em;
  transition: left .7s cubic-bezier(.45, 0, .25, 1), top .7s cubic-bezier(.45, 0, .25, 1);
}
/* Set by script around a change that should happen at once. */
.instant,
.instant * { transition: none !important; }

/* The recording pill, as in the app. */
.pill {
  position: absolute;
  left: 50%;
  border-radius: 999px;
  background: rgba(20, 20, 20, .88);
  color: #FFFFFF;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .25);
  transform: translateX(-50%);
  transition: opacity .3s, transform .3s;
}
.dot {
  display: inline-block;
  width: .72em;
  height: .72em;
  margin-right: .5em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: -.02em;
}
.pill .dot { animation: blink 1.6s infinite; }
@keyframes blink {
  0%, 60% { opacity: 1; }
  80% { opacity: .35; }
  100% { opacity: 1; }
}
/* Off screen, CSS animations hold too. */
[data-visible="false"] .dot { animation-play-state: paused; }

/* ---------- Through the gate: frames are 196 units wide, and 1 em is one unit ---------- */

.gate-wrap { position: relative; overflow: hidden; margin-top: 56px; }
.strip {
  --fw: clamp(180px, 19.5vw, 280px);
  --k: 0;
  position: relative;
  height: 172em;
  font-size: calc(var(--fw) / 196);
  background: var(--film);
  transition: background-color .3s;
}
.strip .holes {
  position: absolute;
  left: 0;
  right: 0;
  height: 10em;
  background: var(--hole);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='10'><rect x='7' y='0' width='12' height='10' rx='2.5'/></svg>") 0 0 / 18.2em 10em repeat-x;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='10'><rect x='7' y='0' width='12' height='10' rx='2.5'/></svg>") 0 0 / 18.2em 10em repeat-x;
}
.strip .holes.top { top: 5em; }
.strip .holes.bottom { bottom: 5em; }
.track {
  position: absolute;
  top: 20em;
  left: calc(50% - 98em - 3 * 218em);
  display: flex;
  gap: 22em;
  transform: translateX(calc(var(--k) * -218em));
  transition: transform .65s cubic-bezier(.6, 0, .2, 1), opacity .35s;
}
.track.fade { opacity: 0; }
.slot { position: relative; flex: none; width: 196em; }
.frame { width: 196em; overflow: hidden; border-radius: 3em; background: #1C1C1E; }
.unexposed {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 3em;
  background: var(--blank);
  box-shadow: inset 0 0 0 .8em rgba(255, 255, 255, .035);
  transition: opacity .5s;
}
.unexposed.open { opacity: 0; }
.cap {
  height: 28em;
  padding: 5em 8em;
  border-top: .8em solid rgba(255, 255, 255, .05);
  background: #1C1C1E;
  font-family: system-ui, -apple-system, sans-serif;
}
.cap b,
.cap span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2em);
  transition: opacity .35s, transform .35s;
}
.cap b { color: #FFFFFF; font-size: 8.8em; font-weight: 700; }
.cap span { margin-top: .15em; color: #98989D; font-size: 7.6em; transition-delay: .08s; }
.cap.show b,
.cap.show span { opacity: 1; transform: none; }
.gate { position: absolute; top: 20em; left: calc(50% - 98em); width: 196em; height: 132em; pointer-events: none; }
.gate .corner { position: absolute; width: 18em; height: 18em; border: 0 solid #FFFFFF; }
.gate .tl { left: -9em; top: -9em; border-left-width: 2.6em; border-top-width: 2.6em; border-top-left-radius: 3em; }
.gate .tr { right: -9em; top: -9em; border-right-width: 2.6em; border-top-width: 2.6em; border-top-right-radius: 3em; }
.gate .bl { left: -9em; bottom: -9em; border-left-width: 2.6em; border-bottom-width: 2.6em; border-bottom-left-radius: 3em; }
.gate .br { right: -9em; bottom: -9em; border-right-width: 2.6em; border-bottom-width: 2.6em; border-bottom-right-radius: 3em; }
.gate .flash {
  position: absolute;
  left: 0;
  top: 0;
  width: 196em;
  height: 104em;
  border-radius: 3em 3em 0 0;
  background: #FFFFFF;
  opacity: 0;
}
.gate .flash.go { animation: flash .22s ease-out; }
@keyframes flash {
  0% { opacity: 0; }
  25% { opacity: .4; }
  100% { opacity: 0; }
}
.gate .pill { top: 11.1em; height: 2.1em; padding: 0 .95em; font-size: 7.4em; line-height: 2.1em; }

/* ---------- How it works: a vertical strip of three frames. Canvases are 720 × 450 units; 1 em is one unit. ---------- */

/* The film sizes itself to the window, so only the heading needs side padding. */
.how { padding: 140px 0 40px; }
.how h2,
.privacy h2,
.final h2 { font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; }
.how h2 { margin-bottom: 48px; padding: 0 20px; text-align: center; font-size: clamp(34px, 4.2vw, 56px); }
.film {
  --cw: min(752px, calc(94vw - 68px));
  position: relative;
  width: calc(var(--cw) + 68px);
  margin: 0 auto;
  padding: 22px 34px;
  border-radius: 16px;
  background: var(--film);
  transition: background-color .3s;
}
.film::before,
.film::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 11px;
  background: var(--hole);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='28'><rect x='0' y='8' width='11' height='14' rx='3'/></svg>") 0 0 / 11px 28px repeat-y;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='28'><rect x='0' y='8' width='11' height='14' rx='3'/></svg>") 0 0 / 11px 28px repeat-y;
}
.film::before { left: 12px; }
.film::after { right: 12px; }
.step { position: relative; overflow: hidden; border-radius: 6px; }
.step + .step { margin-top: 22px; }
.how.ready .step { transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.how.ready .step:not(.in) { opacity: 0; transform: translateY(36px); }
.canvas {
  position: relative;
  width: var(--cw);
  height: calc(var(--cw) * 450 / 720);
  overflow: hidden;
  font-size: calc(var(--cw) / 720);
  background: linear-gradient(155deg, var(--desk-1), var(--desk-2));
}
.stepcap {
  padding: 15px 22px 17px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: #1C1C1E;
  font-family: system-ui, -apple-system, sans-serif;
}
.stepcap b { display: block; color: #FFFFFF; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; }
.stepcap span { display: block; margin-top: 3px; color: #98989D; font-size: clamp(13.5px, 1.25vw, 15.5px); }

.menubar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.2em;
  padding: 0 1.3em;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--menu-ink);
  font: 500 9.5em/1 system-ui, -apple-system, sans-serif;
}
.menubar .menus { display: flex; gap: 1.6em; }
.menubar .menus b { font-weight: 700; }
.menubar .status { display: flex; align-items: center; gap: 1.1em; }
.menubar svg { display: block; width: 1.45em; height: 1.45em; color: var(--menu-ink); }
/* The mark's front reel has no fill of its own: it takes the fill set here, red while recording. */
.menubar use { fill: var(--menu-ink); transition: fill .25s; }
.menubar.rec use { fill: var(--red); }
.win {
  position: absolute;
  width: calc(196em * var(--s));
  height: calc(104em * var(--s));
  overflow: hidden;
  border-radius: 1.2em;
  box-shadow: 0 1.2em 3.4em rgba(0, 0, 0, .18), 0 0 0 .4em rgba(0, 0, 0, .04);
}
.win .acme { font-size: calc(var(--s) * 1em); }

.canvas > .pill {
  bottom: 1.6em;
  height: 2.3em;
  padding: 0 1em;
  font-size: 11.5em;
  line-height: 2.3em;
  opacity: 0;
  transform: translate(-50%, .8em);
}
.canvas > .pill.show { opacity: 1; transform: translate(-50%, 0); }
.canvas > .ring { width: 30em; height: 30em; border-width: 4em; box-shadow: 0 0 0 1.6em rgba(255, 255, 255, .95); }
.canvas > .press { width: 30em; height: 30em; }
.canvas > .cursor { width: 19em; height: 28em; }
.cursor.gone { opacity: 0; }

/* Step 1: the key */
.keycap {
  position: absolute;
  left: 66em;
  top: 150em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140em;
  height: 128em;
  border: 1.5em solid #DCDCE0;
  border-radius: 22em;
  background: #FFFFFF;
  color: #1C1C1E;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 7em 0 #C9C9CF, 0 14em 30em rgba(0, 0, 0, .12);
  transition: transform .09s, box-shadow .09s;
}
.keycap.down { transform: translateY(6em); box-shadow: 0 1em 0 #C9C9CF, 0 6em 16em rgba(0, 0, 0, .1); }
.keycap .glyph { font-size: 52em; line-height: 1; }
.keycap .word { margin-top: .55em; font-size: 13em; opacity: .7; }
:root[data-theme="dark"] .keycap {
  border-color: #3A3A3C;
  background: #2C2C2E;
  color: #F5F5F7;
  box-shadow: 0 7em 0 #0D0D0E, 0 14em 30em rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] .keycap.down { box-shadow: 0 1em 0 #0D0D0E, 0 6em 16em rgba(0, 0, 0, .3); }
.keyname { position: absolute; left: 66em; top: 300em; width: 140em; text-align: center; font-family: system-ui, -apple-system, sans-serif; }
.keyname b { display: block; color: var(--ink-2); font-size: 15em; font-weight: 600; }
.keyname small { display: block; margin-top: .3em; color: var(--ink-3); font-size: 10.8em; }

/* Step 2: clicks become captions, then the card */
.chip { position: absolute; opacity: 0; transform: translateY(5em); transition: opacity .3s, transform .3s; }
.chip.show { opacity: 1; transform: none; }
.chip-text {
  display: block;
  padding: .55em .8em;
  border-radius: .45em;
  background: #1C1C1E;
  color: #FFFFFF;
  font: 600 10.5em/1 system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .2);
}
.chip-text .n { color: #98989D; }
.appcard {
  position: absolute;
  width: 206em;
  padding: 12em 14em 13em;
  border-radius: 15em;
  background: rgba(26, 26, 26, .95);
  color: #FFFFFF;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 18em 44em rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(14em) scale(.96);
  transition: opacity .35s, transform .45s cubic-bezier(.2, 1.3, .4, 1);
}
:root[data-theme="dark"] .appcard { background: rgba(44, 44, 46, .97); box-shadow: 0 0 0 1em rgba(255, 255, 255, .08), 0 18em 44em rgba(0, 0, 0, .5); }
.appcard.show { opacity: 1; transform: none; }
.appcard .stack { position: relative; height: 106em; }
.appcard .s { position: absolute; overflow: hidden; border-radius: 5em; font-size: .86em; }
.appcard .s1 { left: 14em; top: 0; opacity: .56; }
.appcard .s2 { left: 7em; top: 6em; opacity: .78; }
.appcard .s3 { left: 0; top: 12em; }
.appcard .card-title { margin-top: .55em; font-size: 13.5em; font-weight: 700; }
.appcard .card-hint { margin-top: .2em; color: #A8A8AD; font-size: 11em; }

/* Step 3: into the agent */
.term {
  position: absolute;
  left: 318em;
  top: 64em;
  width: 368em;
  height: 268em;
  overflow: hidden;
  border-radius: 12em;
  background: #1D1D1F;
  color: #E5E5EA;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  box-shadow: 0 18em 44em rgba(0, 0, 0, .25);
}
:root[data-theme="dark"] .term { background: #0F0F10; box-shadow: 0 0 0 1em rgba(255, 255, 255, .08), 0 18em 44em rgba(0, 0, 0, .5); }
.term .titlebar { display: flex; align-items: center; gap: 6em; height: 26em; padding-left: 11em; background: #2B2B2E; }
:root[data-theme="dark"] .term .titlebar { background: #1C1C1E; }
.term .titlebar i { width: 9em; height: 9em; border-radius: 50%; background: #4A4A4D; }
.term .titlebar span { margin-left: .95em; color: #8E8E93; font-size: 10.5em; }
.term .body { padding: 18em 16em; }
.term .dim { color: #8E8E93; font-size: 11em; }
.term .input {
  min-height: 74em;
  margin-top: 14em;
  padding: 11em 12em;
  border: 1.4em solid #48484A;
  border-radius: 9em;
  transition: border-color .2s, background-color .2s;
}
.term .input.drop { border-color: var(--red); border-style: dashed; background: rgba(255, 59, 48, .07); }
.term .line { font-size: 12.5em; line-height: 1.55; }
.term .prompt { margin-right: .5em; }
.term .tchip {
  display: inline-block;
  margin: 0 .45em .35em 0;
  padding: 0 .4em;
  border-radius: .3em;
  background: #3A3A3C;
  color: #FFFFFF;
  font-size: .92em;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .25s cubic-bezier(.2, 1.4, .4, 1);
}
.term .tchip.show { opacity: 1; transform: none; }
.caret { display: inline-block; width: .55em; height: 1.1em; background: #E5E5EA; vertical-align: -.18em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
[data-visible="false"] .caret { animation-play-state: paused; }
.hand { position: absolute; z-index: 5; width: 30em; height: 30em; opacity: 0; transition: opacity .2s; }
.hand.show { opacity: 1; }
.appcard.lift { transform: scale(1.04) rotate(-2deg); }
.appcard.drag,
.hand.drag {
  transition: left .95s cubic-bezier(.5, 0, .2, 1), top .95s cubic-bezier(.5, 0, .2, 1), transform .3s, opacity .3s;
}
.appcard.gone { opacity: 0; transform: scale(.6); }

/* ---------- Nothing you record leaves your Mac ---------- */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 72px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 160px 32px 60px;
}
.privacy h2 { font-size: clamp(34px, 4vw, 54px); }
.privacy h2 span { display: block; color: var(--head-2); }
.facts { margin-top: 36px; }
.fact { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.fact dt { font-size: 17px; font-weight: 600; }
.fact dd { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.fact code {
  padding: .1em .35em;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--ink);
  font: 500 .9em ui-monospace, "SF Mono", Menlo, monospace;
}

/* The recording's folder in Finder, with steps.md in Quick Look over its corner. A picture: aria-hidden. */
.finder-wrap { position: relative; padding-bottom: 128px; }
.finder {
  overflow: hidden;
  border-radius: 12px;
  background: var(--fd-bg);
  color: var(--fd-ink);
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .13), 0 0 0 1px var(--fd-edge);
}
.finder > .bar,
.ql > .bar { display: flex; align-items: center; border-bottom: 1px solid var(--fd-edge); }
.finder > .bar { gap: 8px; height: 46px; padding: 0 14px; background: var(--fd-bar); }
.finder > .bar i { width: 12px; height: 12px; border-radius: 50%; }
.finder > .bar i:nth-child(1) { background: #FF5F57; }
.finder > .bar i:nth-child(2) { background: #FEBC2E; }
.finder > .bar i:nth-child(3) { background: #28C840; }
.finder > .bar .title { margin-left: 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder > .body { display: grid; grid-template-columns: 148px 1fr; }
.finder > .body > .side { padding: 12px 10px 16px; border-right: 1px solid var(--fd-edge); background: var(--fd-side); font-size: 12.5px; }
.finder > .body > .side .h { margin: 2px 8px 6px; color: var(--fd-ink-3); font-size: 11px; font-weight: 600; }
.finder > .body > .side .it { margin-bottom: 1px; padding: 4px 8px; border-radius: 6px; }
.finder > .body > .side .it.on { background: var(--fd-sel); font-weight: 600; }
.finder .list { min-width: 0; padding-bottom: 64px; font-size: 12.5px; }
.finder .list > .row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 92px; align-items: center; gap: 10px; padding: 7px 14px; }
.finder .list > .row.head { padding: 8px 14px; border-bottom: 1px solid var(--fd-edge); color: var(--fd-ink-3); font-size: 11px; font-weight: 600; }
.finder .list > .row:nth-child(even):not(.head) { background: var(--fd-zebra); }
.finder .list > .row > .n { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.finder .list > .row > .m { color: var(--fd-ink-3); }
.finder .tic {
  flex: none;
  width: 30px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: #E6E6EB;
  font-size: calc(30px / 196);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.finder .dic {
  flex: none;
  width: 14px;
  height: 18px;
  margin: 0 8px;
  border-radius: 2px;
  background: #FFFFFF repeating-linear-gradient(180deg, transparent 0 4px, #C7C7CC 4px 5px) 3px 4px / 8px 100% no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
.finder > .path {
  padding: 9px 14px;
  border-top: 1px solid var(--fd-edge);
  color: var(--fd-ink-3);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ql {
  position: absolute;
  right: -28px;
  bottom: 0;
  width: 404px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ql-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22), 0 0 0 1px var(--fd-edge);
}
.ql > .bar { justify-content: center; height: 30px; color: var(--fd-ink-3); font: 600 12px system-ui, -apple-system, sans-serif; }
.ql > pre {
  padding: 13px 16px 15px;
  color: var(--fd-ink);
  font: 11px/1.62 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
}

/* ---------- The final call ---------- */

.final { padding: 180px 24px 150px; text-align: center; }
.final h2 { margin-bottom: 32px; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.035em; }

/* ---------- Footer ---------- */

.site-footer { max-width: 1280px; margin: 0 auto; padding: 0 40px 36px; }
.giant svg { display: block; width: 100%; height: auto; color: var(--ink); fill: var(--red); }
/* The live logo's front reel winds red with this stroke. */
.giant .sweep { stroke: var(--red); }
.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-3);
}
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal a { color: var(--ink-2); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- The privacy policy and the Terms ---------- */

.prose { max-width: 720px; margin: 0 auto; padding: 72px 24px 120px; }
.prose h1 { font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.prose .updated { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.prose h2 { margin-top: 48px; font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
.prose p,
.prose li { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose p,
.prose ul { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: currentColor; }
.prose code {
  padding: .1em .35em;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--ink);
  font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace;
  overflow-wrap: anywhere;
}

/* ---------- The 404 page, and the page the link form gets back without scripts ---------- */

.notfound,
.message { max-width: 760px; margin: 0 auto; padding: 120px 24px 160px; text-align: center; }
.notfound h1,
.message h1 { font-weight: 600; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.notfound p,
.message p { margin-top: 22px; font-size: 18px; color: var(--ink-2); }
.message-link { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); user-select: all; -webkit-user-select: all; }

/* ---------- Narrow screens ---------- */

@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
  .logo { height: 32px; }
  .hero { padding: 34px 20px 0; }
  .hero .sub { margin: 16px auto 24px; font-size: 16.5px; }
  .sub-more { display: none; }
  .site-footer { padding: 0 20px 28px; }
}

@media (max-width: 900px) {
  .privacy { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 120px 24px 40px; }
  .ql { right: 0; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .final { padding: 140px 20px 110px; }
}

/* A phone's Finder drops its sidebar and Kind column, and Quick Look sits under it, overlapping a little. */
@media (max-width: 600px) {
  .privacy { padding: 100px 20px 30px; }
  .finder-wrap { padding-bottom: 0; }
  .finder > .body { grid-template-columns: 1fr; }
  .finder > .body > .side,
  .finder .kind { display: none; }
  .finder .list > .row { grid-template-columns: minmax(0, 1fr) 56px; }
  .finder .list { padding-bottom: 40px; }
  .ql { position: relative; right: auto; width: auto; margin: -28px 0 0 18px; }
}

/* The hero's button is right below, so a narrow header keeps just the logo and the toggle. */
@media (max-width: 480px) {
  .site-header .btn { display: none; }
}

/* ---------- Reduce Motion: every animation shows its final state ---------- */

@media (prefers-reduced-motion: reduce) {
  .strip,
  .strip *,
  .how .step,
  .how .step * { transition: none !important; animation: none !important; }
}
