/* The Slate — website styles. Tokens follow the app's docs/DESIGN.md: neutral surfaces, "liquid glass"
   on the control layer (header, section bar) and on the floating panes, one sky accent for primary
   actions only. Light by default, dark via prefers-color-scheme. Light-mode accent is a deeper sky so
   white button text and links meet WCAG AA (4.5:1).

   Motion: site.js adds .motion to <html> only when the visitor allows motion, and sets --p (0 to 1) on
   [data-scroll] elements as they scroll. Without it (no JavaScript, reduced motion) every pane sits in
   its final, static place. Only transform and opacity ever animate. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f7f9;
  --elev: #ffffff;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.12);
  --fg: #1d1d1f;
  --fg-2: #55555c;
  --fg-3: #6b6b72;
  --fill: rgba(0, 0, 0, 0.05);
  --fill-2: rgba(0, 0, 0, 0.08);
  --hover: rgba(0, 0, 0, 0.04);
  --accent: #1f72cc;
  --accent-hover: #1966b8;
  --accent-fg: #ffffff;
  --accent-soft: rgba(58, 142, 230, 0.14);
  --glow: rgba(58, 142, 230, 0.16);
  --danger: #c8332f;
  --success: #1a8a50;
  --warning: #9a6200;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 12px 40px -14px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
  /* The floating app panes: a thin glass bezel around a solid screenshot, and a long soft shadow. */
  --bezel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  --bezel-rim: rgba(0, 0, 0, 0.08);
  --pane-shadow: 0 60px 120px -50px rgba(20, 24, 40, 0.38), 0 24px 48px -28px rgba(20, 24, 40, 0.22);
  --float-shadow: 0 40px 80px -24px rgba(20, 24, 40, 0.34), 0 10px 24px -10px rgba(20, 24, 40, 0.18);
  --logo-tile: #1d1d1f;
  --logo-mark: #ffffff;
  --focus-ring: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', system-ui, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, 'Cascadia Mono', Consolas, Menlo, monospace;
  --gutter: 24px;
  --max: 1160px;
  --header-h: 72px;
  /* How far the 3D panes tilt; smaller on phones. */
  --tilt: 1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-2: #000000;
    --panel: #141417;
    --panel-2: #1b1b1f;
    --elev: #222226;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.13);
    --fg: #f5f5f7;
    --fg-2: #a1a1a8;
    --fg-3: #8a8a92;
    --fill: rgba(255, 255, 255, 0.08);
    --fill-2: rgba(255, 255, 255, 0.12);
    --hover: rgba(255, 255, 255, 0.05);
    --accent: #8cc8ff;
    --accent-hover: #a3d3ff;
    --accent-fg: #06182b;
    --accent-soft: rgba(140, 200, 255, 0.18);
    --glow: rgba(140, 200, 255, 0.12);
    --danger: #ff6961;
    --success: #4cc38a;
    --warning: #ffb340;
    --glass: rgba(24, 24, 28, 0.62);
    --glass-strong: rgba(26, 26, 30, 0.86);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.25);
    --bezel-bg: linear-gradient(180deg, rgba(58, 58, 66, 0.72), rgba(30, 30, 36, 0.62));
    --bezel-rim: rgba(255, 255, 255, 0.1);
    --pane-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    --float-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.85), 0 10px 24px -8px rgba(0, 0, 0, 0.55);
    --logo-tile: #f5f5f7;
    --logo-mark: #0b0b0d;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}
@media (max-width: 760px) {
  :root {
    --tilt: 0.5;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
/* Pages with the sticky section bar keep anchors clear of both bars. */
html:has(.section-nav) {
  scroll-padding-top: calc(var(--header-h) + 60px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
p a,
li a,
dd a,
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
}
p a:hover,
li a:hover,
dd a:hover,
.prose a:hover {
  text-decoration-color: currentColor;
}
/* The transparent outline is invisible normally, and becomes a real outline in Windows high-contrast
   (forced colors) mode, where box-shadows are removed. */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}
[tabindex='-1']:focus,
[tabindex='-1']:focus-visible {
  outline: none;
  box-shadow: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
strong {
  font-weight: 600;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}
kbd {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  border: 0.5px solid var(--line-2);
}
::selection {
  background: var(--accent-soft);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--panel);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  text-decoration: none;
  font-weight: 600;
}
.skip:not(:focus) {
  box-shadow: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: calc(760px + var(--gutter) * 2);
}
.wrap-wide {
  max-width: calc(1240px + var(--gutter) * 2);
}

/* ---------- glass (control layer) ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 0.5px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--elev);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
  white-space: nowrap;
  border-radius: 10px;
}
.logo .tile {
  fill: var(--logo-tile);
}
.logo .mark {
  stroke: var(--logo-mark);
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  color: var(--fg-2);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav a:hover {
  color: var(--fg);
  background: var(--hover);
}
.nav a[aria-current='page'] {
  color: var(--fg);
  background: var(--fill);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  color: var(--fg);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary:hover {
  background: var(--hover);
}
.menu[open] summary .i-menu {
  display: none;
}
.menu:not([open]) summary .i-close {
  display: none;
}
.menu-panel {
  position: absolute;
  right: -2px;
  top: 50px;
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 6px;
  border-radius: var(--r-xl);
  display: grid;
  /* Solid: it sits on the glass header bar, and the design never stacks glass on glass. */
  background: var(--elev);
  border: 0.5px solid var(--line-2);
  box-shadow: var(--glass-shadow);
}
.menu-panel a {
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
}
.menu-panel a:hover {
  background: var(--fill);
}
.menu-panel a[aria-current='page'] {
  background: var(--fill);
  font-weight: 600;
}
/* The page holds still behind the open menu. */
html.menu-open {
  overflow: hidden;
}
@media (max-width: 820px) {
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .header-actions {
    margin-left: auto;
  }
}

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), opacity 160ms var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--fill);
  color: var(--fg);
}
.btn-secondary:hover {
  background: var(--fill-2);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--hover);
}
.btn-sm {
  --h: 36px;
  padding: 0 15px;
  font-size: 14px;
}
.btn-lg {
  --h: 52px;
  padding: 0 26px;
  font-size: 17px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn .btn-note {
  font-weight: 500;
  opacity: 0.82;
}
.btn.is-busy {
  pointer-events: none;
}
/* Before launch: a calm, deliberate "Coming soon" in place of Buy and Download. It is a status, not an action:
   an outlined pill with no accent, no hover and no press, so it never reads as a button that doesn't work. */
.btn.is-soon {
  opacity: 1;
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: default;
}
.btn.is-soon:hover {
  background: transparent;
}
.btn.is-soon:active {
  transform: none;
}
/* A form button at work: a small spinner in place of a fade. */
.btn.is-busy {
  position: relative;
  color: transparent;
}
.btn.is-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-color: var(--accent-fg) var(--accent-fg) transparent transparent;
  animation: spin 0.8s linear infinite;
}
.btn-secondary.is-busy::after,
.btn-ghost.is-busy::after {
  border-color: var(--fg) var(--fg) transparent transparent;
}
.soon-note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--fg-2);
}
.page-head .soon-note {
  max-width: 34em;
  margin: 16px auto 0;
}
.buy-form {
  display: inline-flex;
  margin: 0;
}
@media (max-width: 420px) {
  .cta-row .btn-lg,
  .cta-row .buy-form {
    width: 100%;
  }
  .cta-row .buy-form .btn {
    width: 100%;
  }
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 14px;
}
.display {
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 700;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 40em;
}
.muted {
  color: var(--fg-2);
}
.fine {
  font-size: 14px;
  color: var(--fg-3);
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 6px;
}

/* ---------- sections ---------- */
main {
  display: block;
}
.section {
  padding: clamp(64px, 9vw, 128px) 0;
}
.section-tight {
  padding: clamp(40px, 6vw, 72px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .lede {
  margin: 16px auto 0;
}
.section-head .lede {
  margin-top: 16px;
}
.hairline {
  border: 0;
  border-top: 0.5px solid var(--line-2);
  margin: 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
.cta-row.start {
  justify-content: flex-start;
  margin-top: 28px;
}

/* ---------- screenshots and 3D panes ---------- */
/* A pane: a screenshot in a thin glass bezel, with a long soft shadow. */
.shot {
  margin: 0;
  position: relative;
  border-radius: var(--pane-r, 18px);
  padding: var(--bezel, 6px);
  background: var(--bezel-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 0.5px var(--bezel-rim), var(--pane-shadow);
}
.shot picture,
.shot img {
  width: 100%;
  border-radius: calc(var(--pane-r, 18px) - var(--bezel, 6px));
}
.shot img {
  background: var(--panel);
}
.pane-float {
  --pane-r: 14px;
  --bezel: 4px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 0.5px var(--bezel-rim), var(--float-shadow);
}
@media (max-width: 600px) {
  .shot {
    --pane-r: 12px;
    --bezel: 4px;
  }
  .pane-float {
    --pane-r: 10px;
    --bezel: 3px;
  }
}

/* ---------- home: the hero ----------
   The app's window as an object: a thin glass slab holding a real Overview capture, tilted back and
   floating. That still image is the page's largest paint (preloaded). Where motion is welcome
   (html.motion) the hero becomes a tall track with a sticky stage, and the scroll turns the window to
   face you; on desktops that can draw it, a WebGL copy of the same slab takes over (motion/hero3d.js)
   and lifts every panel off the window. Phones and reduced motion keep this CSS version. */
.hero {
  text-align: center;
  overflow-x: hidden;
  overflow-x: clip;
}
.hero-sticky {
  position: relative;
  padding: clamp(16px, 3vw, 48px) 0 clamp(48px, 7vw, 96px);
}
/* A studio sweep behind the window: a cool light from above and a soft floor, so the white window separates
   from the white page. */
.hero-sticky::before {
  content: '';
  position: absolute;
  inset: 24% -10% -10%;
  background: radial-gradient(48% 46% at 50% 46%, var(--sweep, var(--glow)), transparent 72%), radial-gradient(70% 30% at 50% 92%, var(--floor, transparent), transparent 70%);
  pointer-events: none;
}
:root {
  --sweep: rgba(58, 142, 230, 0.13);
  --floor: rgba(20, 24, 40, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --sweep: rgba(140, 200, 255, 0.1);
    --floor: rgba(0, 0, 0, 0.5);
  }
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero .display {
  max-width: 13ch;
  margin: 0 auto;
  font-size: clamp(42px, 6vw, 72px);
}
.hero .lede {
  margin: 20px auto 0;
  max-width: 34em;
}
.hero .cta-row {
  margin-top: 30px;
}
.hero .fine {
  margin-top: 16px;
}
.device-stage {
  --tilt-x: 22deg;
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  margin: clamp(32px, 4vw, 56px) auto 0;
  perspective: 2000px;
  perspective-origin: 50% 0%;
}
/* The first second: the copy rises into place line by line, then the window rises out of a steeper tilt and a
   light passes across its glass. Pure CSS from the first paint (nothing waits for JavaScript, and the still
   window stays the largest paint); the 3D version takes over only once this has settled, in the same pose. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 900ms var(--ease) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero-copy > :nth-child(n + 4) {
    animation-delay: 180ms;
  }
  .device-stage {
    animation: hero-rise 1500ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }
  .device {
    animation: hero-tilt 1600ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }
  .device-shadow {
    animation: hero-shadow 1500ms ease-out 300ms both;
  }
  .device-screen::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 85%);
    transform: translate3d(-110%, 0, 0);
    animation: hero-sheen 1300ms cubic-bezier(0.45, 0, 0.2, 1) 450ms both;
    pointer-events: none;
  }
}
@keyframes hero-rise {
  from {
    transform: translate3d(0, 110px, 0) scale(0.97);
  }
}
@keyframes hero-tilt {
  from {
    transform: rotateX(calc(var(--tilt-x) * var(--tilt) + 16deg));
  }
}
@keyframes hero-shadow {
  from {
    opacity: 0;
  }
}
@keyframes hero-sheen {
  to {
    transform: translate3d(340%, 0, 0);
  }
}
.device {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 40%;
  transform: rotateX(calc(var(--tilt-x) * var(--tilt)));
}
/* The slab: a hairline glass rim around the screen, a long soft shadow, and a sheen across the glass. */
.device-screen {
  --pane-r: 18px;
  --bezel: 5px;
  overflow: hidden;
}
.device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}
.device-floats {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
.device-floats .pane-float {
  position: absolute;
}
/* The phone version lifts two of the Overview's own panels off the window, in depth. */
.float-tasks {
  width: 31%;
  right: -3%;
  top: 37%;
  transform: translate3d(0, 0, 90px);
}
.float-stats {
  width: 76%;
  left: -4%;
  bottom: -7%;
  transform: translate3d(0, 0, 140px);
}
.device-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 14, 30, 0.34), transparent);
  filter: blur(14px);
  transform: translateZ(-1px);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .device-shadow {
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), transparent);
  }
}
/* Desktop: the floating panels belong to the 3D version; the CSS one keeps the window whole. */
@media (min-width: 761px) {
  .device-floats {
    display: none;
  }
}
@media (max-width: 760px) {
  .device-stage {
    --tilt-x: 16deg;
    width: calc(100% - 2 * var(--gutter));
    margin-top: 40px;
    margin-bottom: 36px;
  }
  .device-screen {
    --pane-r: 12px;
    --bezel: 3px;
  }
  /* Phones: the lifted panels stay inside the screen's edges as they come toward you. */
  .float-stats {
    left: 2%;
    width: 70%;
  }
  .float-tasks {
    right: 1%;
    width: 30%;
  }
}
.hero-captions {
  display: none;
}
/* The 3D slab takes over in exactly the still window's pose, so it simply appears: no cross-fade (a fade would
   leave the window half there for a moment). Only a takeover mid-scroll, where the poses differ, fades. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.hero-canvas.is-on {
  opacity: 1;
}
.hero-canvas.is-fading {
  transition: opacity 400ms var(--ease);
}
/* While the WebGL slab is on, the still window steps aside (it keeps its place: no layout shift). */
.has-3d .device {
  visibility: hidden;
}
.has-3d .device-shadow {
  display: none;
}

/* Motion on a desktop: a tall track, a full-height sticky stage. The window starts low and tilted and is
   brought up to face you by the scroll (motion/home.js). */
@media (min-width: 1024px) and (min-height: 640px) {
  .hero-sticky {
    min-height: 100vh;
    min-height: 100svh;
  }
  .motion .hero-track {
    height: 360vh;
  }
  .motion .hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
  }
  /* The copy steps back as soon as the scroll starts, in time (a class, not the scroll position), so a stop never
     leaves it half faded under the header. */
  .motion .hero-copy {
    transition: opacity 320ms var(--ease), transform 520ms var(--ease), visibility 0s;
  }
  .motion .hero-copy.is-away {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
    visibility: hidden;
    transition: opacity 260ms var(--ease), transform 520ms var(--ease), visibility 0s 260ms;
  }
  .motion .hero-captions {
    display: block;
    position: absolute;
    z-index: 3;
    left: max(var(--gutter), calc(50% - 580px));
    bottom: 12vh;
    max-width: min(320px, 25vw);
    text-align: left;
    pointer-events: none;
  }
  .motion .hero-caption {
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.4;
    color: var(--fg-2);
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 360ms var(--ease), transform 600ms var(--ease);
  }
  .motion .hero-caption.is-on {
    opacity: 1;
    transform: none;
  }
  .motion .hero-caption + .hero-caption.is-on {
    transition-delay: 90ms;
  }
  .motion .hero-caption strong {
    display: block;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
  }
  .motion .hero-caption + .hero-caption {
    margin-top: 10px;
  }
}

/* ---------- home: the statement ---------- */
.statement-section {
  padding: clamp(64px, 12vw, 180px) 0 clamp(40px, 6vw, 96px);
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 11em;
  text-wrap: balance;
}
/* Each phrase stays whole ("Break down." never splits across lines). */
.st-line {
  display: inline-block;
  white-space: nowrap;
}
.st-sub {
  display: block;
  margin-top: 0.5em;
  max-width: 24ch;
  font-size: 0.36em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg-2);
  font-weight: 600;
}
/* With motion, each word lights up as it scrolls into the middle of the screen (motion/home.js sets --lit). */
.motion .statement .st-line,
.motion .statement .st-sub {
  opacity: calc(0.18 + 0.82 * var(--lit, 1));
}

/* ---------- home: the beats ----------
   Each beat: a header and one designed visual. With motion on a desktop the beat is a tall track with a
   sticky stage, and the scroll scrubs its animation. Everywhere else it is a plain section, and every
   visual is already in its finished state. */
.beat {
  position: relative;
  padding-top: clamp(72px, 10vw, 140px);
  /* Pieces flying in from the sides never widen the page (clip keeps the sticky stages working). */
  overflow-x: clip;
}
@media (max-width: 1023px) {
  .beat {
    overflow-x: hidden;
  }
}
.beat-sticky {
  position: relative;
}
.beat-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.beat-grid-flip {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.beat-grid-flip .beat-head {
  order: 2;
}
.beat-head .eyebrow {
  margin-bottom: 12px;
}
.beat-head .lede {
  margin-top: 18px;
}
.beat-head.center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.beat-head.center .lede {
  margin: 18px auto 0;
  max-width: 32em;
}
.beat-notes {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: note;
}
.beat-notes li {
  counter-increment: note;
  position: relative;
  padding: 2px 0 2px 40px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fg-2);
}
.beat-notes li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  background: var(--fill);
  font-variant-numeric: tabular-nums;
}
.beat-after {
  padding-bottom: 8px;
}
.beat-after .facts {
  margin-top: clamp(40px, 6vw, 72px);
}
@media (max-width: 900px) {
  .beat-grid,
  .beat-grid-flip {
    grid-template-columns: 1fr;
  }
  .beat-grid-flip .beat-head {
    order: 0;
  }
}
/* Dark stages: a black sweep in either theme, like a screening room. The header and the section bar each turn
   to dark glass while a dark stage is under their own middle line (site.js sets .on-dark-header and
   .on-dark-nav separately, so neither turns dark over the light page next to the edge). */
.on-dark-header .site-header,
.on-dark-nav .section-nav {
  --glass: rgba(28, 28, 32, 0.68);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --hover: rgba(255, 255, 255, 0.06);
  --logo-tile: #f5f5f7;
  --logo-mark: #0b0b0d;
}
.site-header,
.section-nav {
  transition: color 300ms var(--ease);
}
.header-bar,
.section-nav-bar {
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.beat-dark,
.promises-stage,
.on-dark-header .site-header,
.on-dark-nav .section-nav {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #000;
  --panel: #141417;
  --panel-2: #1b1b1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f5f5f7;
  --fg-2: #a1a1a8;
  --fg-3: #8a8a92;
  --fill: rgba(255, 255, 255, 0.09);
  --fill-2: rgba(255, 255, 255, 0.13);
  --accent: #8cc8ff;
  --accent-hover: #a3d3ff;
  --accent-fg: #06182b;
  color: var(--fg);
}
.beat-dark,
.promises-stage {
  background: #000;
}
/* On the dark page the black stages would vanish into it: there, each is a lit room, with a hairline along its
   top edge and a faint spotlight from above. */
@media (prefers-color-scheme: dark) {
  .beat-dark,
  .promises-stage {
    background: radial-gradient(70% 48% at 50% 0%, rgba(140, 200, 255, 0.075), transparent 72%), #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  }
}
.beat-dark {
  margin-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.beat-dark + .beat {
  padding-top: clamp(72px, 10vw, 140px);
}
/* The visuals sit above any neighbor that turns in 3D (the script's revision fan). */
.beat-head {
  position: relative;
  z-index: 2;
}
/* Headings rise line by line out of a mask (home.js). Each mask reaches a little below its line, so the
   descenders of g, y and p are never cut. */
.h-line-mask {
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

/* Desktop with motion: each beat is a tall track with a sticky stage one screen tall. The stage starts below
   the header and the section bar, and every visual is sized to the height that is left, so nothing is ever cut
   off on a laptop (1280 × 720 and up). "safe center" keeps the top in view if anything is still too tall. */
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .beat {
    padding-top: 0;
  }
  .motion .beat-dark {
    margin-top: 0;
  }
  .motion .beat-track {
    height: 250vh;
  }
  .motion [data-beat='gallery'] {
    height: 300vh;
  }
  .motion .beat-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 28px;
    overflow: hidden;
  }
  .motion .beat-head .h2 {
    font-size: clamp(30px, min(4.4vw, 6.4svh), 52px);
  }
  .motion .beat-after .facts {
    margin-top: 0;
  }
}
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 940px) {
  .motion .beat-head .eyebrow {
    margin-bottom: 8px;
  }
  .motion .beat-head .lede {
    margin-top: 12px;
    font-size: 18px;
  }
  .motion .beat-head.center .lede {
    margin-top: 10px;
  }
  /* On a laptop screen the heading and the visual share the stage; the lede steps aside (beside a visual the
     numbered notes carry the story, and the facts under every beat say the rest). */
  .motion .beat-head .lede {
    display: none;
  }
  .motion .beat-notes {
    margin-top: 24px;
  }
}

/* ---------- Script: a screenplay page that types itself ---------- */
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/courier-400.f09844e1f4.woff2) format('woff2');
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/courier-700.5c7ae1cc9a.woff2) format('woff2');
}
.paper-stage {
  position: relative;
  perspective: 1800px;
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
}
.paper {
  width: min(500px, 100%);
  aspect-ratio: 8.5 / 9;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 40px 80px -30px rgba(10, 14, 30, 0.35);
}
@media (prefers-color-scheme: dark) {
  .paper {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 50px 90px -30px rgba(0, 0, 0, 0.9);
  }
}
.paper-fan {
  position: absolute;
  inset: 24px 0 40px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.paper-fan .paper {
  grid-area: 1 / 1;
  transform-origin: 50% 110%;
}
.paper-white {
  background: #ffffff;
  transform: rotate(-9deg) translate(-6%, 2%);
}
.paper-blue {
  background: #a7c7e7;
  transform: rotate(-4deg) translate(-3%, 1%);
}
.paper-yellow {
  background: #fff59d;
  transform: rotate(4deg) translate(3%, 1%);
}
.paper-green {
  background: #b9e4b4;
  transform: rotate(9deg) translate(6%, 2%);
}
.sp-page {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  padding-top: 7%;
  color: #111;
  background: #fff;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: 10px;
  overflow: hidden;
}
/* The pink revision color: a layer behind the type, so a revision fades in without repainting the page. */
.sp-pink {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fbe3ea;
}
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .paper {
    width: min(500px, 100%, calc((100svh - 230px) * 0.94));
  }
}
/* 85 characters across a US Letter page, as in the app's industry format (Courier is 0.6em wide). */
.sp-page > * {
  font-size: 1.96cqi;
  line-height: 1.22;
}
.sp-page p {
  margin: 0;
  white-space: pre;
}
.sp-slug {
  display: flex;
  justify-content: flex-end;
  gap: 3ch;
  padding-right: 10ch;
  margin-bottom: 2.4em !important;
}
.sp-l {
  position: relative;
  margin-left: 15ch !important;
  width: 60ch;
}
.sp-gap {
  height: 1.22em;
}
.sp-heading {
  font-weight: 700;
}
.sp-n {
  position: absolute;
  left: -6ch;
}
.sp-n + .sp-t + .sp-n {
  left: 62ch;
}
.sp-char {
  margin-left: 37ch !important;
}
.sp-paren {
  margin-left: 31ch !important;
}
.sp-dial {
  margin-left: 25ch !important;
}
.sp-t {
  display: inline-block;
}
.sp-star {
  position: absolute;
  left: calc(79ch - var(--indent, 15ch));
  font-weight: 700;
  color: #c2185b;
}
.sp-dial .sp-star {
  --indent: 25ch;
}
.sp-caret {
  display: none;
}
/* Typing: --c characters of each line are shown (monospaced, so 1ch is one character). A line with nothing
   typed yet is hidden outright (home.js), so no sliver of its first letter shows. */
.motion .sp-t {
  clip-path: inset(-2px max(0px, calc(100% - var(--c, 999) * 1ch)) -2px 0);
}
.motion .sp-caret {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 0.12em;
  height: 1.1em;
  background: #1f72cc;
  opacity: 0;
}

/* ---------- Breakdown and stripboard ---------- */
:root {
  --s-int-day: #f2f2f4;
  --s-ext-day: #f7efa0;
  --s-int-night: #a9cdf2;
  --s-ext-night: #b2deac;
  --s-ink: #111;
}
@media (prefers-color-scheme: dark) {
  :root {
    --s-int-day: #3a3a40;
    --s-ext-day: #4d4a22;
    --s-int-night: #1e3a58;
    --s-ext-night: #24412a;
    --s-ink: #f2f2f4;
  }
}
/* The board is one flat card (nothing inside it moves in depth, so no strip can ever cut through its plane).
   Every size is in em, so the whole board scales with its font size: to the height left on a laptop, larger on
   a wide monitor. */
.board-stage {
  position: relative;
}
.board {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 1.08em;
  border-radius: 20px;
  background: var(--panel);
  border: 0.5px solid var(--line-2);
  box-shadow: var(--pane-shadow);
  font-size: 13px;
}
/* One grid for the column labels and the strips. The labels are smaller type in the same em tracks (the
   font size is set on their spans, not the row), so each label sits exactly over its column, as in the app. */
.board-cols,
.strip {
  display: grid;
  grid-template-columns: 2.9em 2.6em minmax(0, 1fr) 3.3em 2.4em 2.8em;
  gap: 0 0.8em;
  align-items: center;
  padding: 0 1.08em;
}
.board-cols {
  padding-top: 0.15em;
  padding-bottom: 0.45em;
  font-weight: 600;
  color: var(--fg-3);
}
.board-cols span {
  font-size: 0.85em;
}
.board-day {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75em 1.08em 0.35em;
  color: var(--fg-2);
}
.board-day strong {
  color: var(--fg);
  margin-right: 6px;
}
.day-total {
  min-width: 7em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
}
.strip {
  position: relative;
  height: 2.45em;
  border-radius: 8px;
  color: var(--s-ink);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* A strip being dragged: lifted off the board on its own shadow (only its opacity changes). */
.strip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 14px 30px -10px rgba(10, 14, 30, 0.42), 0 2px 6px rgba(10, 14, 30, 0.12);
  opacity: var(--lift, 0);
  pointer-events: none;
}
/* The drag (home.js): before it, scene 3 closes day 2 and the day 3 header sits under it. The two rows trade
   places by measured offsets (--up, --down) scaled by --drag (0 before, 1 after; 1 without motion). */
.motion .board [data-moved] {
  z-index: 1;
  transform: translate3d(0, calc((1 - var(--drag, 1)) * var(--up, 0px)), 0) scale(calc(1 + var(--lift, 0) * 0.03));
}
.motion .board [data-moves-down] {
  transform: translate3d(0, calc((1 - var(--drag, 1)) * var(--down, 0px)), 0);
}
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .board {
    font-size: clamp(10.5px, calc((100svh - 232px) / 44), 16px);
  }
}
@media (min-width: 1600px) {
  .board {
    font-size: clamp(13px, 0.82vw, 16px);
  }
}
.strip span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip span:first-child {
  font-weight: 700;
}
.strip span:nth-child(3) {
  text-transform: uppercase;
  font-weight: 600;
}
.s-int-day {
  background: var(--s-int-day);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.s-ext-day {
  background: var(--s-ext-day);
}
.s-int-night {
  background: var(--s-int-night);
}
.s-ext-night {
  background: var(--s-ext-night);
}
@media (max-width: 560px) {
  .board {
    font-size: 11.5px;
    padding: 10px;
  }
  .board-cols,
  .strip {
    grid-template-columns: 2.6em 2.4em minmax(0, 1fr) 2.4em;
    gap: 0 8px;
    padding: 0 0.8em;
  }
  .board-cols span:nth-child(4),
  .board-cols span:nth-child(6),
  .strip span:nth-child(4),
  .strip span:nth-child(6) {
    display: none;
  }
}

/* ---------- Shots and storyboards ---------- */
.boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 1080px;
}
/* Two rows of frames fit the stage: the grid's width follows the height that is left under the heading. */
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .boards {
    margin-top: clamp(24px, 4svh, 48px);
    max-width: min(1080px, calc((100svh - 600px) * 2.66));
  }
}
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 940px) {
  .motion .boards {
    max-width: min(1080px, calc((100svh - 470px) * 2.66));
  }
  .motion .board-frame figcaption span {
    display: none;
  }
}
.board-frame {
  margin: 0;
  padding: 8px 8px 12px;
  border-radius: 14px;
  background: #1a1a1e;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.frame-art {
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: #fbfbf8;
}
.frame-art img,
.frame-art svg {
  width: 100%;
  height: 100%;
}
.board-frame figcaption {
  padding: 10px 4px 0;
  font-size: 13px;
  line-height: 1.35;
  color: #d6d6dc;
}
.board-frame figcaption b {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
}
.board-frame figcaption span {
  display: block;
  margin: 6px 0 2px;
  font-size: 12px;
  color: #8a8a92;
}
.sketch {
  display: block;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sketch .ink {
  stroke: #1d1d1f;
}
.sketch .mid {
  stroke: #4b5563;
}
.sketch .soft {
  stroke: #9ca3af;
}
.sketch .m {
  stroke-width: 2.4;
  stroke-opacity: 0.85;
}
.sketch .b {
  stroke-width: 1.5;
}
.sketch .r {
  stroke-width: 1.1;
}
.sketch .t {
  stroke-width: 0.75;
}
.motion .sketch path {
  stroke-dasharray: 1 1;
}
@media (max-width: 760px) {
  .boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board-frame figcaption span {
    display: none;
  }
}

/* ---------- Call sheets: a document that assembles itself ---------- */
/* The sheet and, behind it, two printed copies (one per person) in the same grid cell, so they are always its
   size. The sheet is one flat page: its sections never leave its plane. */
.sheet-stage {
  display: grid;
  padding: 18px 0 8px;
}
.sheet-copies,
.sheet {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.sheet-copies {
  position: relative;
}
.sheet-copies i {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 24px 50px -30px rgba(10, 14, 30, 0.4);
}
.sheet-copies i:first-child {
  transform: translate3d(26px, -16px, 0);
  background: #f4f4f6;
}
.sheet-copies i:last-child {
  transform: translate3d(13px, -8px, 0);
  background: #fafafb;
}
.sheet {
  --ink: #1d1d1f;
  --ink-2: #5b5b62;
  --rule: rgba(0, 0, 0, 0.12);
  position: relative;
  padding: clamp(16px, 2.2em, 28px);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 50px 90px -40px rgba(10, 14, 30, 0.45);
}
@media (prefers-color-scheme: dark) {
  .sheet {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 60px 100px -40px rgba(0, 0, 0, 0.95);
  }
  .sheet-copies i {
    background: #d9d9de;
  }
  .sheet-copies i:last-child {
    background: #ececf0;
  }
}
@media (min-width: 1600px) {
  .sheet-copies,
  .sheet {
    max-width: min(44vw, 820px);
  }
  .sheet {
    font-size: clamp(12px, 0.74vw, 15px);
  }
}
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 940px) {
  .motion .sheet {
    font-size: clamp(10.5px, calc((100svh - 200px) / 52), 12px);
  }
}
.cs-piece {
  position: relative;
  background: #fff;
}
/* "Published v1": the version everyone gets. */
.cs-pub {
  display: inline-block;
  vertical-align: 0.3em;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f5ec;
  color: #1a6b3f;
  font-family: var(--font);
  font-size: 0.47em;
  font-weight: 600;
  letter-spacing: 0;
}
/* The section a note points at rises off the page on a soft shadow. */
.cs-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 7px;
  box-shadow: 0 16px 32px -14px rgba(10, 14, 30, 0.38), 0 2px 6px rgba(10, 14, 30, 0.08);
  opacity: var(--lift, 0);
  pointer-events: none;
}
.cs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.cs-title {
  font-family: var(--font-display);
  font-size: 1.84em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cs-sub {
  color: var(--ink-2);
}
.cs-crew {
  text-align: right;
}
.cs-crew span {
  display: block;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--ink-2);
}
.cs-crew strong {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 2.17em;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.cs-row-2 {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.cs-box,
.cs-table {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.cs-table {
  margin-top: 12px;
}
.cs-row .cs-table {
  margin-top: 0;
}
.sheet h3 {
  font-family: var(--font);
  font-size: 0.875em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.sheet dl {
  margin: 0;
  display: grid;
  gap: 3px;
}
.sheet dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.sheet dt {
  color: var(--ink-2);
}
.sheet dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
}
.sheet th {
  text-align: left;
  font-size: 0.875em;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 6px 4px 0;
  border-bottom: 1px solid var(--rule);
}
.sheet td {
  padding: 5px 6px 5px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.sheet tr:last-child td {
  border-bottom: 0;
}
.sheet td b {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92em;
}
.cs-hospital b {
  display: block;
}
.cs-safety {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
@media (max-width: 560px) {
  .sheet {
    font-size: 10.5px;
  }
  .sheet-copies i:first-child {
    transform: translate3d(12px, -10px, 0);
  }
  .sheet-copies i:last-child {
    transform: translate3d(6px, -5px, 0);
  }
  .cs-row {
    grid-template-columns: 1fr 1fr;
  }
  .cs-row .cs-box:last-child {
    grid-column: 1 / -1;
  }
  .cs-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Budget: numbers that count up, a top sheet that slides in ---------- */
.money {
  max-width: 1000px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  perspective: 1600px;
}
.money-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.money-tile {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 0.5px solid var(--line-2);
}
.money-tile dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
}
.money-tile dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.money-total {
  background: var(--fg);
  border-color: transparent;
}
.money-total dt {
  color: var(--bg);
  opacity: 0.72;
}
.money-total dd {
  color: var(--bg);
}
.topsheet {
  margin-top: 14px;
  padding: 8px 20px 12px;
  border-radius: var(--r-xl);
  background: var(--panel);
  border: 0.5px solid var(--line-2);
  box-shadow: var(--pane-shadow);
}
.topsheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.topsheet th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  padding: 10px 12px 10px 0;
  border-bottom: 0.5px solid var(--line-2);
}
.topsheet td {
  padding: 11px 12px 11px 0;
  border-bottom: 0.5px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.topsheet tr:last-child td {
  border-bottom: 0;
}
.topsheet td:first-child {
  color: var(--fg-3);
  width: 4em;
}
.topsheet td:nth-child(2) {
  font-weight: 600;
}
.topsheet .num {
  text-align: right;
  font-weight: 600;
}
.topsheet .share {
  width: 34%;
  color: var(--fg-2);
  font-size: 13px;
  white-space: nowrap;
}
.bar {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 4.5em);
  height: 6px;
  margin-right: 10px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(calc(var(--w) * var(--grow, 1)));
}
.bar[data-bar='28.8'] { --w: 0.288; }
.bar[data-bar='24.7'] { --w: 0.247; }
.bar[data-bar='13.1'] { --w: 0.131; }
.bar[data-bar='13.5'] { --w: 0.135; }
.bar[data-bar='19.9'] { --w: 0.199; }
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 940px) {
  .motion .money {
    margin-top: clamp(20px, 3.5svh, 36px);
  }
  .motion .money-tile {
    padding: 14px 18px;
  }
  .motion .topsheet td {
    padding-block: 8px;
  }
  .motion .topsheet th {
    padding-block: 8px;
  }
}
@media (min-width: 1600px) {
  .money {
    max-width: min(56vw, 1180px);
  }
}
@media (max-width: 760px) {
  .money-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .topsheet {
    padding: 4px 14px 8px;
  }
  .topsheet table {
    font-size: 13px;
  }
  .topsheet .share {
    width: 30%;
  }
  .bar {
    display: none;
  }
}

/* ---------- Paperwork: 21 templates fan out, one gets signed ---------- */
.fan-stage {
  position: relative;
  margin-top: clamp(36px, 5vw, 56px);
}
.contracts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.contracts li {
  position: relative;
  min-height: 96px;
  padding: 12px 12px 30px;
  border-radius: 6px;
  background: #fbfbf8;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
/* A few ruled lines of body text on each page. */
.contracts li::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 14px;
  background: repeating-linear-gradient(180deg, #d4d4d8 0 2px, transparent 2px 6px);
  opacity: 0.8;
}
.signed {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 22px 24px 18px;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 60px 100px -30px rgba(0, 0, 0, 0.95);
}
.signed-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.signed-meta {
  font-size: 13px;
  color: #5b5b62;
}
.signature {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  fill: none;
  stroke: #1d3f8f;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  border-bottom: 1px solid #c9c9cf;
}
.motion .signature path {
  stroke-dasharray: 1 1;
}
.signed-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1a7f4b;
}
.signed-lock .icon {
  width: 18px;
  height: 18px;
}
/* Desktop with motion: the 21 pages stay level and readable in their grid; the signed agreement then comes
   forward over the middle of it while the rest of the grid steps back (home.js). */
/* Phones: three to a row, so the 21 pages read as one set rather than a long list. */
@media (max-width: 560px) {
  .contracts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .contracts li {
    min-height: 80px;
    padding: 9px 9px 24px;
    font-size: 11px;
  }
  .contracts li::after {
    left: 9px;
    right: 9px;
    bottom: 8px;
    height: 10px;
  }
}
.contracts li[data-pick]::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
  opacity: var(--pick, 0);
  pointer-events: none;
}
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .fan-stage {
    margin-top: clamp(24px, 4svh, 48px);
  }
  .motion .contracts {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    max-width: min(1100px, calc((100svh - 330px) * 2.9));
    margin: 0 auto;
  }
  .motion .contracts li {
    min-height: 0;
    height: clamp(72px, 11.5svh, 104px);
  }
  .motion .signed {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: min(420px, 84vw);
    height: max-content;
    margin: auto;
  }
}
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 940px) {
  .motion .contracts {
    max-width: min(1100px, calc((100svh - 250px) * 2.9));
  }
}
@media (min-width: 1024px) and (max-width: 1199px) and (min-height: 700px) {
  .motion .contracts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ---------- Cast, crew, locations: a gallery that slides sideways ---------- */
.gallery {
  margin-top: clamp(36px, 5vw, 56px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery-rail {
  list-style: none;
  margin: 0;
  padding: 0 max(var(--gutter), calc(50% - 580px));
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  width: max-content;
}
.gallery-card {
  width: min(640px, 78vw);
  scroll-snap-align: center;
}
.gallery-card .shot {
  --pane-r: 14px;
  --bezel: 4px;
}
.gallery-card h3 {
  margin-top: 18px;
  font-size: 19px;
  letter-spacing: -0.015em;
}
.gallery-card p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--fg-2);
  max-width: 34em;
}
@media (min-width: 1024px) and (min-height: 700px) {
  .motion .gallery {
    overflow: visible;
    margin-top: clamp(24px, 4svh, 48px);
  }
  .motion .gallery-rail {
    will-change: transform;
  }
  /* The cards are sized to the height left under the heading. */
  .motion .gallery-card {
    width: min(640px, 78vw, calc((100svh - 560px) * 1.6));
  }
}
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 940px) {
  .motion .gallery-card {
    width: min(640px, 78vw, calc((100svh - 450px) * 1.6));
  }
}

/* ---------- Promises: four lines on a black stage ---------- */
.promises-stage {
  padding: clamp(96px, 14vw, 200px) 0;
}
.vows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(56px, 8vw, 112px);
}
.vow-line {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.4vw, 128px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.vow-sub {
  margin-top: 18px;
  max-width: 30em;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
}
.vow:nth-child(even) {
  text-align: right;
}
.vow:nth-child(even) .vow-sub {
  margin-left: auto;
}
.motion .vow {
  opacity: calc(0.2 + 0.8 * var(--lit, 1));
  transform: translate3d(0, calc((1 - var(--lit, 1)) * 40px), 0);
}
@media (max-width: 600px) {
  .vow:nth-child(even) {
    text-align: left;
  }
}

/* ---------- loops of the real app ---------- */
.real {
  max-width: 1040px;
  margin: clamp(48px, 7vw, 96px) auto clamp(56px, 7vw, 96px);
  perspective: 2000px;
}
.real-window {
  --pane-r: 16px;
  --bezel: 5px;
  transform-origin: 50% 100%;
}
.real-caption {
  max-width: 34em;
  margin: 22px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
}
.real-caption strong {
  color: var(--fg);
}
.loop {
  position: relative;
  margin: 0;
}
.loop picture,
.loop img,
.loop video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--pane-r, 18px) - var(--bezel, 6px));
}
.loop video {
  position: absolute;
  inset: var(--bezel, 6px);
  width: calc(100% - 2 * var(--bezel, 6px));
  height: calc(100% - 2 * var(--bezel, 6px));
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.loop video.is-playing {
  opacity: 1;
}
.loop-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font: 600 13px/1 var(--font);
  color: var(--fg);
  cursor: pointer;
}

/* A showcase scene: one screenshot that rotates and slides into place as it scrolls in, with a detail
   pane floating in front. --p goes from 0 (entering at the bottom) to 1 (settled). */
.scene {
  --p: 1;
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  perspective: 2200px;
  perspective-origin: 50% 0%;
}
.scene-inner {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--p)) * 90px)) rotateX(calc((1 - var(--p)) * 20deg * var(--tilt))) scale(calc(0.9 + 0.1 * var(--p)));
  /* Fully there as soon as its top is a little way into the screen: the tilt keeps easing out with the scroll,
     but a stop never leaves a half-faded screenshot. */
  opacity: clamp(0, calc(var(--p) * 5), 1);
}
.scene .pane-main {
  width: min(100%, 1000px);
  margin: 0 auto;
}
.scene .pane-float {
  position: absolute;
  width: 31%;
  transform: translate3d(0, calc((1 - var(--p)) * 120px), calc(70px + (1 - var(--p)) * 120px));
}
.scene .float-left {
  left: 0;
  bottom: -9%;
}
.scene .float-right {
  right: 0;
  bottom: -9%;
}
.scene .float-right-top {
  right: 0;
  top: 14%;
  width: 24%;
}
.scene .float-wide {
  left: 8%;
  right: 8%;
  width: auto;
  bottom: -10%;
}
.scene .float-lg {
  width: 44%;
}
.scene.has-float {
  padding-bottom: clamp(32px, 6vw, 64px);
}
@media (max-width: 760px) {
  .scene .pane-float,
  .scene .float-lg {
    width: 52%;
  }
  .scene .float-right-top {
    width: 40%;
    top: auto;
    bottom: -12%;
  }
  /* On phones that pane hangs below the screenshot, so leave it room. */
  .scene:has(.float-right-top) {
    padding-bottom: 40px;
  }
  .scene .float-wide {
    left: 4%;
    right: 4%;
    width: auto;
  }
}

/* ---------- sticky section bar ---------- */
.section-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 0 var(--gutter);
  margin: 0 auto;
  max-width: calc(var(--max) + var(--gutter) * 2);
  pointer-events: none;
}
.section-nav-bar {
  pointer-events: auto;
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.section-nav-bar::-webkit-scrollbar {
  display: none;
}
.section-nav a {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.section-nav a:hover {
  color: var(--fg);
  background: var(--hover);
}
.section-nav a[aria-current='true'] {
  color: var(--fg);
  background: var(--fill-2);
}
/* Phones: the bar scrolls sideways; its ends fade, so a link at the edge reads as "more this way", not as cut. */
@media (max-width: 820px) {
  .section-nav-bar {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
    scroll-padding-inline: 24px;
  }
}
/* Touch screens: every small control gets a finger-sized target. */
@media (pointer: coarse) {
  .section-nav a {
    padding-block: 11px;
  }
  .loop-toggle {
    height: 44px;
    padding: 0 16px;
  }
}

/* ---------- facts under a showcase ---------- */
.facts {
  list-style: none;
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 40px);
}
.facts li {
  padding-top: 18px;
  border-top: 0.5px solid var(--line-2);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
}
.facts strong {
  display: block;
  color: var(--fg);
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* A quiet band: the "your files" section and the comparison sit on the solid surface. */
.band {
  background: var(--bg-2);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  padding: 22px;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-lg);
}
.band .tile {
  background: var(--bg);
  border-color: transparent;
}
.tile h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tile p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.45;
}
@media (max-width: 980px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

/* ---------- pricing: trial vs license ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 40px);
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-xl);
}
.plan.is-main {
  border-color: var(--line-2);
  box-shadow: var(--glass-shadow);
}
.plan h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.plan .plan-price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.plan .plan-sub {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 15px;
}
.plan .ticks {
  margin-top: 24px;
  flex: 1;
  align-content: start;
}
.plan .cta-row {
  justify-content: flex-start;
  margin-top: 28px;
}
/* The two plans' buttons sit on one line: the launch note under one of them takes no height from its row. */
.plan {
  position: relative;
}
.plan .soon-note {
  position: absolute;
  left: clamp(26px, 4vw, 40px);
  bottom: clamp(10px, 1.6vw, 16px);
  margin: 0;
  font-size: 14px;
}
.plan:has(.soon-note) {
  padding-bottom: calc(clamp(26px, 4vw, 40px) + 18px);
}
.plans:has(.soon-note) .plan {
  padding-bottom: calc(clamp(26px, 4vw, 40px) + 18px);
}
.plans-note {
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ---------- home: final call to action ---------- */
.finale {
  text-align: center;
  padding: clamp(96px, 14vw, 184px) 0;
  overflow-x: hidden;
  overflow-x: clip;
}
.finale-mark {
  width: 96px;
  margin: 0 auto 32px;
  perspective: 600px;
}
.finale .logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.22));
}
/* The clapper's bar is a separate path: with motion it opens and snaps shut as the finale arrives. */
.finale .logo .mark:first-child {
  transform-box: fill-box;
  transform-origin: 4% 100%;
}
.finale .display {
  max-width: 14ch;
  margin: 0 auto;
}
.finale .lede {
  margin: 22px auto 0;
}

/* ---------- feature rows (Features page) ---------- */
/* The screenshot takes two thirds of the row (the app's type stays readable), and on a wide monitor the rows
   grow with the screen. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(72px, 10vw, 136px);
}
.feature.flip {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
@media (min-width: 1600px) {
  [data-page='features'] main > section .wrap:has(.feature-group) {
    max-width: calc(min(78vw, 1640px) + var(--gutter) * 2);
  }
}
.feature.flip .feature-text {
  order: 2;
}
.feature-text .eyebrow {
  margin-bottom: 10px;
}
.feature-text .lede {
  margin-top: 16px;
  font-size: 18px;
}
.feature-text .h2 {
  font-size: clamp(28px, 3.3vw, 40px);
  letter-spacing: -0.028em;
}
.feature .scene {
  margin-top: 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 1.75px solid var(--fg-3);
  border-bottom: 1.75px solid var(--fg-3);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-text {
    order: 0;
  }
}
.feature-group + .feature-group {
  margin-top: clamp(96px, 12vw, 160px);
}

/* ---------- module grid ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.module {
  display: block;
  padding: 20px;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 160ms var(--ease);
}
a.module:hover {
  border-color: var(--line-2);
}
.module h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.module p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.45;
}
@media (max-width: 980px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .modules {
    grid-template-columns: 1fr;
  }
}

/* ---------- cards, callouts, notes ---------- */
.card {
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.split-card {
  display: flex;
  align-items: center;
  gap: 24px 32px;
  padding: 28px;
}
.split-card h2 {
  margin-bottom: 8px;
}
.split-card p {
  font-size: 16px;
}
@media (max-width: 680px) {
  .split-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--fill);
  font-size: 15px;
  color: var(--fg-2);
}
.callout .icon {
  margin-top: 1px;
  color: var(--fg-2);
}
.callout strong {
  color: var(--fg);
}
.notice {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--line-2);
  background: var(--panel);
  font-size: 15px;
  color: var(--fg-2);
}
.notice strong {
  color: var(--warning);
}
.banner {
  margin-top: 24px;
}
/* Answers to a form posted without JavaScript: the server redirects to page#id and only that one shows. */
.target-note:not(:target) {
  display: none;
}

/* ---------- download ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.platform {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-xl);
}
.platform > .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
}
.platform h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.platform .meta {
  font-size: 14px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.platform .req {
  font-size: 15px;
  color: var(--fg-2);
  margin-top: 6px;
}
.platform .btn {
  margin-top: 22px;
  align-self: flex-start;
}
.platform.unavailable .btn {
  pointer-events: none;
}
@media (max-width: 720px) {
  .platforms {
    grid-template-columns: 1fr;
  }
}
.checksums {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-2);
}
.checksums summary {
  cursor: pointer;
  width: fit-content;
  border-radius: 6px;
  padding-block: 4px;
}
.checksums code {
  display: block;
  margin-top: 8px;
  word-break: break-all;
  color: var(--fg-2);
}
.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
/* First run of an unsigned installer: one calm card per system, numbered steps. */
.first-run {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--r-xl);
}
.first-run-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.first-run-head .icon {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}
.first-run-head h2,
.first-run-head h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.first-run-head p {
  margin-top: 6px;
  color: var(--fg-2);
  font-size: 15px;
}
.first-run-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 32px;
  margin-top: 24px;
}
.first-run-grid h3 {
  font-size: 15px;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.first-run .steps li {
  font-size: 15px;
}
.first-run .fine {
  margin-top: 20px;
}

/* ---------- forms ---------- */
.field {
  display: grid;
  gap: 6px;
}
.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0.5px solid var(--line-2);
  background: var(--panel-2);
  color: var(--fg);
  font: 400 16px/1.4 var(--font);
  transition: box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}
textarea.input {
  font-family: var(--mono);
  font-size: 14px;
  resize: vertical;
  min-height: 96px;
}
.input::placeholder {
  color: var(--fg-3);
}
.input:focus {
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-row .input {
  flex: 1;
}
@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.form-status {
  margin-top: 14px;
  font-size: 15px;
  min-height: 1.5em;
}
.form-status:empty {
  min-height: 0;
  margin: 0;
}
.form-status.is-error {
  color: var(--danger);
}
.form-status.is-ok {
  color: var(--fg);
}

/* ---------- license panels (success / licenses / download) ---------- */
.state {
  text-align: center;
}
.state .lede {
  margin: 16px auto 0;
}
.status-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fg);
}
.status-mark .icon {
  width: 28px;
  height: 28px;
}
.status-mark.ok {
  background: var(--accent-soft);
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2.5px solid var(--line-2);
  border-top-color: var(--fg-2);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}
.license {
  margin-top: 32px;
  text-align: left;
  background: var(--panel);
  border: 0.5px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: clamp(20px, 4vw, 28px);
}
.license + .license {
  margin-top: 16px;
}
.license-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}
.license-meta div {
  min-width: 0;
}
.license-meta dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-3);
}
.license-meta dd {
  margin: 2px 0 0;
  font-size: 16px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .license-meta {
    grid-template-columns: 1fr 1fr;
  }
  .license-meta div:first-child {
    grid-column: 1 / -1;
  }
}
.key {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 0.5px solid var(--line);
  font: 13px/1.6 var(--mono);
  color: var(--fg);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
  max-height: 10.5em;
  overflow: auto;
}
.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  text-align: left;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  min-height: 28px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--fill);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.next-block {
  margin-top: 40px;
  text-align: left;
}
.next-block h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

/* ---------- release notes ---------- */
.releases {
  display: grid;
  gap: 0;
}
.release {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 0.5px solid var(--line-2);
}
.release:first-child {
  border-top: 0;
  padding-top: 0;
}
.release-head .version {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.release-head time {
  display: block;
  margin-top: 4px;
  color: var(--fg-3);
  font-size: 15px;
}
.release-head .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 13px;
  font-weight: 600;
}
.release h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.release ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.release .files {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-3);
}
@media (max-width: 720px) {
  .release {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  border-top: 0.5px solid var(--line-2);
}
.faq details {
  border-bottom: 0.5px solid var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  border-radius: 6px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.75px solid var(--fg-3);
  border-bottom: 1.75px solid var(--fg-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 240ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq .answer {
  padding: 0 0 22px;
  color: var(--fg-2);
  display: grid;
  gap: 12px;
}
.faq .answer ul,
.faq .answer ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.faq-group + .faq-group {
  margin-top: 56px;
}
.faq-group h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

/* ---------- prose (legal) ---------- */
.prose {
  color: var(--fg);
}
.prose h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.prose h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
  color: var(--fg-2);
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  color: var(--fg);
}
.prose .placeholder {
  background: var(--fill);
  border-radius: 4px;
  padding: 0 4px;
  color: var(--fg);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 0.5px solid var(--line-2);
  color: var(--fg-2);
}
.prose th {
  color: var(--fg);
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}
.page-head {
  padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
}
.page-head .lede {
  margin-top: 16px;
}
.page-head.center {
  text-align: center;
}
.page-head + .section-tight {
  padding-top: 8px;
}
.page-head.center .lede {
  margin-left: auto;
  margin-right: auto;
}
.updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-3);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 0.5px solid var(--line-2);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--fg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-grid h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  font-family: var(--font);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--fg);
  text-decoration: underline;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 30em;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 0.5px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--fg-3);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */
.lost {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.lost .code {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 12px;
}

/* ---------- motion (only with .motion, which site.js sets when motion is welcome) ---------- */
.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.motion .reveal.in {
  opacity: 1;
  transform: none;
}
.motion .scene-inner,
.motion .device {
  will-change: transform;
}
/* The other pages share the motion lightly: the page title, its lede and the first cards rise into place as
   the page opens (pure CSS, from the first paint, so nothing flashes and nothing waits for JavaScript), and
   the Features screenshots ease out of a tilt as they scroll in (.scene above). */
@media (prefers-reduced-motion: no-preference) {
  .page-head .wrap > * {
    animation: rise 900ms var(--ease) both;
  }
  .page-head .wrap > :nth-child(2) {
    animation-delay: 70ms;
  }
  .page-head .wrap > :nth-child(3) {
    animation-delay: 140ms;
  }
  [data-page='pricing'] .plan,
  [data-page='download'] .platform,
  [data-page='support'] .faq-group:first-child {
    animation: rise 1000ms var(--ease) 180ms both;
  }
  [data-page='pricing'] .plan + .plan,
  [data-page='download'] .platform + .platform {
    animation-delay: 260ms;
  }
}
@keyframes rise {
  from {
    opacity: 0.01;
    transform: translate3d(0, 18px, 0);
  }
}

/* A wide monitor: the home page's stages grow with the screen instead of stopping at the page width, so the
   visuals fill the pinned screen (each is still capped by the height left, above). */
@media (min-width: 1600px) {
  .beat .wrap,
  .statement-section .wrap {
    max-width: calc(min(70vw, 1560px) + var(--gutter) * 2);
  }
  .paper {
    width: min(34vw, 680px);
  }
  .boards {
    max-width: 1400px;
  }
  .contracts {
    max-width: 1400px;
  }
  .gallery-card {
    width: min(780px, 44vw);
  }
}
@media (min-width: 1600px) and (min-height: 700px) {
  .motion .paper {
    width: min(34vw, 680px, calc((100svh - 230px) * 0.94));
  }
  .motion .boards {
    max-width: min(1400px, calc((100svh - 600px) * 2.66));
  }
  .motion .contracts {
    max-width: min(1400px, calc((100svh - 330px) * 2.9));
  }
  .motion .gallery-card {
    width: min(780px, 44vw, calc((100svh - 560px) * 1.6));
  }
}
/* ---------- contrast & motion preferences ---------- */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(127, 127, 127, 0.4);
    --line-2: rgba(127, 127, 127, 0.6);
    --fg-2: var(--fg);
    --fg-3: var(--fg);
  }
}
/* Reduced motion: a still, flat layout. The panes keep their places, nothing tilts or moves. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .stage,
  .scene {
    --p: 1 !important;
  }
  .stage-inner,
  .scene-inner {
    transform: none;
  }
  /* The hero window sits flat and still; every home visual is in its finished state. */
  .device,
  .device-floats .pane-float {
    transform: none;
  }
  .device-shadow {
    display: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .section-nav,
  .cta-row {
    display: none;
  }
}
/* Windows high-contrast (forced colors): box-shadow focus rings are removed there, so draw a real
   outline in the system text color. Last in the file so it wins over every component's focus style. */
@media (forced-colors: active) {
  :focus-visible,
  .input:focus {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
  }
}
