/* Loupe website
   Palette is the app's own: charcoal grounds, #8ab4f8 for "in shot",
   amber and teal only ever mean fast and slow. */

:root {
  --ground: #1a1a1c;
  --raised: #202124;
  --well: #2a2b2e;
  --line: #2a2b2e;
  --line-2: #3a3b3f;
  --ink: #e8eaed;
  --ink-2: #bdc1c6;
  --ink-3: #9aa0a6;
  --blue: #8ab4f8;
  --blue-hi: #a8c7fa;
  --amber: #f59e0b;
  --teal: #2dd4bf;
  --red: #ef4444;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

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

html {
  background: var(--ground);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 {
  font-stretch: 125%;
  font-weight: 760;
  letter-spacing: -0.018em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5.75rem);
  line-height: .96;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(2rem, 1.25rem + 2.4vw, 3.1rem);
  margin-bottom: .55em;
}
h3 {
  font-size: 1.125rem;
  font-stretch: 112%;
  font-weight: 650;
  letter-spacing: -0.004em;
  line-height: 1.3;
  margin-bottom: .4em;
}
p { margin: 0 0 1em; color: var(--ink-2); max-width: 62ch; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--ink); font-weight: 650; }

a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

/* Keyboard focus looks like Loupe's own "in shot" outline. */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a:focus-visible { border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .12em .42em .16em;
  border: 1px solid #45474c;
  border-bottom-width: 2px;
  border-radius: .38em;
  background: #26272a;
  color: var(--ink);
  font: 500 .86em/1.2 var(--sys);
  text-align: center;
  vertical-align: .08em;
}
code {
  font: .9em/1.4 var(--mono);
  background: var(--well);
  color: var(--ink);
  padding: .12em .42em;
  border-radius: 5px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #16181d;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #5a5c61; background: rgba(255, 255, 255, .04); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #16181d; }
.btn--primary:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 auto; padding: 0 16px; }
}

/* ------------------------------------------------------------------ header */

.top { border-bottom: 1px solid var(--line); }
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  font-stretch: 125%;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand img { margin: -2px; }
.top__nav { display: flex; align-items: center; gap: 26px; }
.top__link { color: var(--ink-2); text-decoration: none; font-size: .9375rem; white-space: nowrap; }
/* The extra section links go first when the bar gets narrow. */
@media (max-width: 1040px) {
  .top__link--wide { display: none; }
}
.top__link:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) {
  .top__link { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(40px, 5.5vw, 72px) clamp(64px, 9vw, 120px); }

.hero__head { display: grid; gap: 28px; align-items: end; }
@media (min-width: 980px) {
  .hero__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
}
.lead {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.hero__note { font-size: .9375rem; color: var(--ink-3); margin: 0; }

/* The demo: a drawn Mac screen being recorded, and the video it makes. */

.demo { margin: clamp(40px, 5vw, 60px) 0 0; }
.demo__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) {
  .demo__grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
html:not(.js) .demo__side { display: none; }
html:not(.js) .demo__grid { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .demo__screenwrap { max-width: 920px; }

.demo__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .875rem;
  font-weight: 600;
  font-stretch: 112%;
  color: var(--ink-3);
}
.demo__rec {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  container-type: inline-size;
  background: #27303c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -30px rgba(0, 0, 0, .75);
  isolation: isolate;
}

.output {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  container-type: inline-size;
  background: #27303c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.output__view { position: absolute; inset: 0; }
.output .stage {
  transform-origin: 0 0;
  transform: scale(var(--z)) translate(calc(var(--fx) * -1%), calc(var(--fy) * -1%));
}

/* Stage: everything inside is drawn in "em", where 1em = 1/80 of the screen's
   width, so the fake desktop scales as one picture at any size. */
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-size: .65vw;
  font-size: calc(100cqw / 80);
  font-family: var(--sys);
  line-height: 1.25;
  color: #1f2328;
  -webkit-user-select: none;
  user-select: none;
}
.stage p, .stage ul, .stage ol { margin: 0; padding: 0; max-width: none; color: inherit; }
.st-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(60em 40em at 78% 110%, rgba(138, 180, 248, .16), transparent 70%),
    linear-gradient(165deg, #3b4a5d 0%, #2a3340 52%, #1f252e 100%);
}
.st-menubar {
  position: absolute; left: 0; top: 0; right: 0;
  height: 1.55em;
  display: flex; align-items: center; gap: 1.25em;
  padding: 0 1.1em;
  background: rgba(24, 26, 30, .62);
  color: #eceef1;
}
.st-menubar > span, .st-menubar > b { font-size: .68em; }
.st-menubar > b { font-weight: 700; }
.st-mb-glyph { width: .75em; height: .75em; border-radius: .2em; background: #eceef1; opacity: .9; }
.st-mb-right { margin-left: auto; opacity: .9; }

.st-win {
  position: absolute;
  border-radius: .75em;
  overflow: hidden;
  box-shadow: 0 1.4em 3.2em rgba(0, 0, 0, .45), 0 0 0 .07em rgba(0, 0, 0, .35);
}
.st-browser { left: 4.5em; top: 3.2em; width: 52em; height: 41.2em; background: #fff; }
.st-toolbar {
  height: 2.7em;
  display: flex; align-items: center; gap: 1.2em;
  padding: 0 1em;
  background: #eef0f3;
  border-bottom: .07em solid #d8dbe0;
}
.st-lights { display: inline-flex; gap: .42em; }
.st-lights i { width: .74em; height: .74em; border-radius: 50%; background: #ff5f57; }
.st-lights i:nth-child(2) { background: #febc2e; }
.st-lights i:nth-child(3) { background: #28c840; }
.st-nav { font-size: 1em; color: #9aa0a6; letter-spacing: .3em; }
.st-url {
  margin-left: 4.5em;
  width: 30em;
  height: 2.35em;
  line-height: 2.35em;
  font-size: .68em;
  text-align: center;
  color: #4b5563;
  background: #e1e4e9;
  border-radius: .6em;
}
.st-page { display: grid; grid-template-columns: 10.5em 1fr; height: calc(100% - 2.7em); }
.st-side {
  display: flex; flex-direction: column; gap: .3em;
  padding: 1.4em .9em;
  background: #f6f7f9;
  border-right: .07em solid #e6e8eb;
}
.st-side > span { font-size: .72em; padding: .5em .8em; border-radius: .5em; color: #57606a; }
.st-side > span.on { background: #e5ebf7; color: #1d3a78; font-weight: 600; }
.st-org { display: flex; align-items: center; gap: .5em; margin: 0 0 1em .3em; font-size: .78em; font-weight: 700; color: #111827; }
.st-org i { width: 1.5em; height: 1.5em; border-radius: .4em; background: #334155; }
.st-main { padding: 2em 2.5em; }
.st-h { font-size: 1.5em; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.st-sub { font-size: .74em; color: #6b7280; margin: .35em 0 2.2em !important; }
.st-label { font-size: .66em; font-weight: 600; color: #374151; margin-bottom: .6em !important; }
.st-label--list { margin-top: 2.6em !important; }
.st-invite { display: flex; gap: .6em; }
.st-input {
  display: flex; align-items: center;
  width: 21em; height: 2.3em;
  padding: 0 .7em;
  border: .08em solid #c9ced6;
  border-radius: .45em;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.st-typed, .st-ph { font-size: .76em; white-space: pre; }
.st-typed { color: #111827; }
.st-ph { color: #9ca3af; }
.st-typed:not(:empty) ~ .st-ph { display: none; }
.st-caret { width: .09em; height: 1.1em; margin-left: .05em; background: #111827; opacity: 0; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 7.6em; height: 2.3em;
  border-radius: .45em;
  background: #2355d8;
  color: #fff;
  transition: background-color .25s, transform .1s, filter .1s;
}
.st-btn > span { font-size: .74em; font-weight: 600; }
.st-btn__b { display: none; }
.st-members { list-style: none; width: 35em; border: .07em solid #e5e7eb; border-radius: .6em; overflow: hidden; }
.st-members li {
  display: grid;
  grid-template-columns: 1.7em 8.6em 1fr auto;
  align-items: center;
  gap: .8em;
  height: 2.9em;
  padding: 0 .9em;
  border-top: .07em solid #eef0f2;
}
.st-members li:first-child { border-top: 0; }
.st-av {
  width: 2.5em; height: 2.5em;
  font-size: .68em; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #1f2937;
}
.st-members b { font-size: .72em; font-weight: 600; color: #111827; }
.st-members span { font-size: .68em; color: #6b7280; }
.st-members em {
  font-size: .62em; font-style: normal; font-weight: 600;
  padding: .3em .8em;
  border-radius: 1em;
  background: #f1f3f5;
  color: #4b5563;
}
.st-members em.st-pending { background: #fdf1d3; color: #8a4b0b; }
.st-new { opacity: 0; transition: opacity .35s ease, background-color .8s ease; }

.st-notes { left: 59.5em; top: 6em; width: 17.5em; height: 21em; background: #fffdf5; }
.st-toolbar--plain { height: 2.2em; background: transparent; border-bottom-color: #efe9d6; gap: 2.6em; }
.st-title { font-size: .66em; font-weight: 600; color: #6b6453; }
.st-notes ol { padding: 1.2em 1.4em 0 2.4em; color: #3d3a33; }
.st-notes li { font-size: .7em; line-height: 2; }

.st-cursor {
  position: absolute;
  left: calc(var(--cx) * 1%);
  top: calc(var(--cy) * 1%);
  z-index: 5;
  width: 0; height: 0;
}
.st-cursor svg { position: absolute; max-width: none; }
.st-cursor__arrow { width: 1.3em; height: 1.95em; left: -.09em; top: -.09em; filter: drop-shadow(0 .1em .15em rgba(0, 0, 0, .35)); }
.st-cursor__ibeam { width: .7em; height: 1.4em; left: -.35em; top: -.7em; display: none; }
.st-ripple {
  position: absolute;
  left: calc(var(--cx) * 1%);
  top: calc(var(--cy) * 1%);
  z-index: 4;
  width: 3em; height: 3em;
  margin: -1.5em 0 0 -1.5em;
  border-radius: 50%;
  border: .22em solid rgba(138, 180, 248, .95);
  background: rgba(138, 180, 248, .18);
  opacity: 0;
}

/* Demo states, set on the figure by site.js */
.demo[data-ibeam] .st-cursor__arrow { display: none; }
.demo[data-ibeam] .st-cursor__ibeam { display: block; }
.demo[data-focus] .st-input { border-color: #2563eb; box-shadow: 0 0 0 .2em rgba(37, 99, 235, .2); }
.demo[data-focus] .st-caret { animation: caret 1s steps(1) infinite; }
.demo[data-press] .st-btn { transform: scale(.96); filter: brightness(.85); }
.demo[data-sent] .st-btn { background: #15803d; }
.demo[data-sent] .st-btn__a { display: none; }
.demo[data-sent] .st-btn__b { display: inline; }
.demo[data-sent] .st-new { opacity: 1; background: #f4f8ff; }
.demo[data-click] .output .st-ripple { animation: ripple .6s ease-out forwards; }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ripple {
  from { opacity: 1; transform: scale(.35); }
  to { opacity: 0; transform: scale(1.25); }
}

/* Loupe's "in shot" frame: the app's own values. */
.shot {
  position: absolute;
  z-index: 3;
  left: calc(var(--fx) * 1%);
  top: calc(var(--fy) * 1%);
  width: calc(100% / var(--z));
  height: calc(100% / var(--z));
  border: 2px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .28);
  pointer-events: none;
  font-size: calc(100cqw / 80);
  transition: opacity .3s;
}
.shot__badge {
  position: absolute;
  left: max(6px, .62em);
  top: max(6px, .62em);
  padding: .3em .78em;
  border: 1px solid rgba(138, 180, 248, .6);
  border-radius: 999px;
  background: rgba(20, 20, 22, .88);
  color: #fff;
  font: 600 max(10px, .82em)/1.2 var(--sys);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity .3s;
}
.demo[data-out] .shot { border-color: transparent; box-shadow: none; }
.demo[data-idle] .shot { opacity: 0; }

/* The recording control bar, drawn over the screen. */
.rbar {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2.4%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: max(6px, .8em);
  padding: max(4px, .45em) max(5px, .5em) max(4px, .45em) max(8px, 1em);
  border-radius: max(7px, .9em);
  background: rgba(20, 20, 22, .92);
  color: #fff;
  font: 400 max(9px, .95em)/1 var(--sys);
  font-size: max(9px, calc(100cqw / 80 * .95));
  font-variant-numeric: tabular-nums;
  box-shadow: 0 .5em 1.4em rgba(0, 0, 0, .35);
}
.rbar__dot { width: .62em; height: .62em; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.rbar__zoom { opacity: .8; margin-right: 1.4em; }
.rbar__stop {
  position: relative;
  width: 2em; height: 2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.rbar__stop::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: .75em; height: .75em;
  border-radius: .15em;
  background: var(--red);
}
@keyframes pulse { 50% { opacity: .25; } }

/* Side panel: the resulting video, and the gesture that made it. */
.demo__side { min-width: 0; }
.gesture {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
}
.gesture__row { display: flex; align-items: center; gap: 10px; }
.gkey {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid #45474c;
  border-radius: 8px;
  background: linear-gradient(#34353a, #2a2b2f);
  box-shadow: 0 3px 0 #111113;
  color: var(--ink-2);
  font: 400 19px/1 var(--sys);
  transition: transform .08s, box-shadow .08s, background-color .08s, color .08s;
}
.demo[data-key] .gkey {
  transform: translateY(3px);
  box-shadow: 0 0 0 #111113;
  background: var(--blue);
  border-color: var(--blue);
  color: #16181d;
}
.gesture__plus { color: var(--ink-3); font-size: 14px; }
.gwheel { flex: none; color: #6b6e74; }
.gwheel svg { width: 22px; height: 32px; }
.gwheel path, .gwheel .gwheel__wheel { fill: currentColor; transition: fill .1s; }
.demo[data-scroll="up"] .gwheel__up,
.demo[data-scroll="down"] .gwheel__down,
.demo[data-scroll] .gwheel__wheel { fill: var(--blue); }
.gesture__text {
  margin: 0 0 0 6px;
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--ink);
  min-height: 2.7em;
  display: flex;
  align-items: center;
}
.gscale {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 650;
  font-stretch: 112%;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.gscale__track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: #3a3b3f; }
.gscale__track::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc((var(--z) - 1) / 3 * 100%);
  border-radius: 2px;
  background: var(--blue);
}
.gscale__mark {
  position: absolute; top: 50%;
  left: calc((var(--z) - 1) / 3 * 100%);
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--raised);
}

@media (min-width: 620px) and (max-width: 979px) {
  .demo__side { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .demo__side .demo__label { grid-column: 1 / -1; }
  .gesture { margin-top: 0; }
}

.demo__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 20px;
}
.demo__cap p { margin: 0; font-size: .9375rem; color: var(--ink-3); max-width: 64ch; }
.swatch {
  display: inline-block;
  width: 20px; height: 13px;
  margin-right: 10px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  vertical-align: -1px;
}
.demo__pause {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font: 500 .875rem/1 var(--font);
  cursor: pointer;
}
.demo__pause:hover { color: var(--ink); border-color: #5a5c61; }

/* ------------------------------------------------------------------ sections */

.sec { padding-block: clamp(76px, 10vw, 136px); border-top: 1px solid var(--line); }
.sec__h { max-width: 17em; }
.sec__lead { font-size: 1.1875rem; margin-top: -.4em; }

.split { display: grid; gap: 44px; }
@media (min-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
  .split--flip .split__a { order: 2; }
}
.split__a h3 { margin-top: 1.6em; }
.split__a h2 + h3 { margin-top: .4em; }

/* Keys */
.keys { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 30px 0 14px; }
.keycap {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 78px; height: 66px;
  padding: 9px 10px 8px;
  border: 1px solid #3c3d42;
  border-radius: 10px;
  background: linear-gradient(#2d2e32, #252629);
  box-shadow: 0 3px 0 #111113, inset 0 1px 0 rgba(255, 255, 255, .06);
}
.keycap__g { align-self: flex-end; font: 400 20px/1 var(--sys); color: var(--ink); }
.keycap__n { font: 500 11.5px/1 var(--sys); color: var(--ink-3); }
.keycap__g.is-word { align-self: flex-start; font: 500 15px/1 var(--sys); }
.gkey.is-word { width: auto; min-width: 40px; padding: 0 9px; font-size: 14px; font-weight: 500; }
.keycap--on { border-color: var(--blue); box-shadow: 0 3px 0 #111113, 0 0 0 1px var(--blue); }
.keycap--on .keycap__n { color: var(--blue); }
.keycap--mouse { width: 96px; }
.keycap--mouse svg.keycap__g { width: 22px; height: 27px; margin-top: -4px; color: var(--ink-2); }
.keys__note { font-size: .9375rem; color: var(--ink-3); }

/* Follow diagram */
.follow { margin: 0; }
.follow__svg { width: 100%; height: auto; overflow: visible; }
.follow__grid line { stroke: #3a3b3f; stroke-width: 1; }
.follow__axis { fill: var(--ink-3); font: 500 13px var(--font); }
.follow__band { fill: rgba(138, 180, 248, .07); stroke: rgba(138, 180, 248, .4); stroke-dasharray: 3 4; }
.follow__note { fill: var(--ink-3); font: 500 13px var(--font); }
.follow__cursor { fill: none; stroke: #8d9197; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.follow__cam { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; }
.follow__legend text { fill: var(--ink-2); font: 500 13px var(--font); }
.follow figcaption { margin-top: 26px; }
@media (max-width: 620px) {
  .follow__axis, .follow__note, .follow__legend text { font-size: 19px; }
}

/* In-shot specimen */
.specimen { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.specimen__screen {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f8fa;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -30px rgba(0, 0, 0, .7);
  font-family: var(--sys);
  container-type: inline-size;
}
.specimen__page { padding: 5.2cqw 6cqw; color: #1f2328; }
.specimen__page p { max-width: none; }
.sp-h { font-size: 4.4cqw; font-weight: 700; color: #111827; margin: 0 0 3cqw !important; }
.sp-row {
  display: flex; align-items: center; gap: 3cqw;
  height: 9cqw;
  border-top: 1px solid #e5e7eb;
  font-size: 2.7cqw;
}
.sp-row span { width: 26cqw; color: #6b7280; }
.sp-row b { color: #111827; font-weight: 600; }
.sp-btn {
  margin-left: 2cqw;
  padding: 1.2cqw 2.4cqw;
  border-radius: 1.2cqw;
  background: #2355d8;
  color: #fff;
  font-style: normal;
  font-weight: 600;
}
/* 2.0× of the screen: half of each side, centred on the "Next invoice" row. */
.specimen__shot {
  position: absolute;
  left: 22.5%;
  top: 33%;
  width: 50%;
  height: 50%;
  border: 2px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .28);
}
.specimen__badge {
  position: absolute;
  left: 10px; top: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(138, 180, 248, .6);
  border-radius: 999px;
  background: rgba(20, 20, 22, .88);
  color: #fff;
  font: 600 13px/1.2 var(--sys);
  font-variant-numeric: tabular-nums;
}
.specimen__bar {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  max-width: 420px;
  height: 50px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: rgba(20, 20, 22, .92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 30px -12px rgba(0, 0, 0, .7);
  color: #fff;
  font: 400 12px/1 var(--sys);
  font-variant-numeric: tabular-nums;
}
.specimen__bar .rbar__dot { width: 9px; height: 9px; }
.specimen__time { font-size: 14px; }
.specimen__zoom { opacity: .8; }
.specimen__stop {
  position: relative;
  width: 30px; height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.specimen__stop::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--red);
}

/* Sources */
.sources { display: grid; gap: 40px 32px; margin-top: 44px; }
@media (min-width: 720px) { .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.source { margin: 0; }
.source svg { width: 100%; height: auto; margin-bottom: 20px; }
.source p { font-size: 1rem; }
.d-screen { fill: #2a2b2e; stroke: #3a3b3f; stroke-width: 1; }
.d-menubar { fill: #34353a; }
.d-win { fill: #3a3c41; stroke: #4b4d53; stroke-width: 1; }
.d-bar { fill: #46484e; }
.d-line { fill: #5a5d63; }
.d-card { fill: #4a4c52; }
.d-url { fill: #5a5d63; }
.d-light { fill: #6e7177; }
.d-dim { fill: #000; fill-opacity: .45; }
.d-dim--strong { fill-opacity: .55; }
.d-frame { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.d-drag { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 4; }
.d-handles rect { fill: #fff; stroke: #202124; stroke-width: 1; }
.d-readout { fill: rgba(20, 20, 22, .9); }
.d-readout-t { fill: #e8eaed; font: 600 9px var(--sys); }
.d-cursor { fill: #111; stroke: #fff; stroke-width: 1; stroke-linejoin: round; }

/* Editor mock, drawn from the app's own editor styles */
.ed {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid #333438;
  border-radius: 12px;
  background: #1a1a1c;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  font: 12px/1.2 var(--sys);
  color: #c8ccd0;
}
.ed__chrome {
  position: relative;
  display: flex; align-items: center;
  height: 32px;
  padding: 0 12px;
  background: #242427;
  border-bottom: 1px solid #2e2e32;
}
.ed__chrome .st-lights { font-size: 15px; }
.ed__title { position: absolute; left: 0; right: 0; text-align: center; color: #9aa0a6; font-size: 12.5px; pointer-events: none; }
.ed__view { display: flex; justify-content: center; padding: 10px; background: #111; }
.ed__frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  container-type: inline-size;
}
.ed__zoomed { position: absolute; left: 8cqw; top: 9cqw; }
.ed__zoomed p { max-width: none; }
.ed__h { margin: 0 0 1cqw; font-size: 5.4cqw; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.ed__s { margin: 0 0 6cqw; font-size: 2.7cqw; color: #6b7280; }
.ed__lab { margin: 0 0 1.6cqw; font-size: 2.6cqw; font-weight: 600; color: #374151; }
.ed__row { display: flex; gap: 2.2cqw; }
.ed__input {
  display: flex; align-items: center;
  width: 52cqw; height: 8.6cqw;
  padding: 0 2.6cqw;
  border: .3cqw solid #c9ced6;
  border-radius: 1.7cqw;
  font-size: 2.9cqw;
  color: #111827;
}
.ed__btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28cqw; height: 8.6cqw;
  border-radius: 1.7cqw;
  background: #2355d8;
  color: #fff;
  font-size: 2.8cqw;
  font-weight: 600;
}
.ed__click {
  position: absolute;
  left: 89%; top: 58%;
  width: 7.6cqw; height: 7.6cqw;
  margin: -3.8cqw 0 0 -3.8cqw;
  border-radius: 50%;
  border: .8cqw solid rgba(138, 180, 248, .95);
  background: rgba(138, 180, 248, .2);
}
.ed__cursor { position: absolute; left: 78.8cqw; top: 26.6cqw; width: 4.6cqw; height: auto; filter: drop-shadow(0 .4cqw .5cqw rgba(0, 0, 0, .3)); }
.ed__timeline { padding: 10px 16px 8px; background: #1a1a1c; }
.ed__ruler { position: relative; height: 13px; margin-bottom: 6px; font-size: 10.5px; line-height: 1; color: #6b6e73; font-variant-numeric: tabular-nums; }
.ed__ruler span { position: absolute; top: 0; }
.ed__track { position: relative; height: 26px; border-radius: 5px; background: #232326; }
.ed__seg {
  position: absolute; top: 0;
  height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: #3b82f6;
  opacity: .8;
  color: #fff;
  font-size: 11px;
}
.ed__seg--sel { opacity: 1; box-shadow: 0 0 0 2px #1a1a1c, 0 0 0 3px var(--blue); }
.ed__del {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: rgba(0, 0, 0, .35);
  font-style: normal;
  font-size: 13px;
}
.ed__playhead { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .8); }
.ed__speed { position: relative; height: 22px; margin-top: 6px; overflow: hidden; border-radius: 5px; background: #1f1f22; }
.ed__sp {
  position: absolute; top: 0;
  height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: #111;
  font-size: 11px;
  font-weight: 600;
}
.ed__sp--fast { background: var(--amber); }
.ed__sp--slow { background: var(--teal); }
.ed__times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #9aa0a6; font-variant-numeric: tabular-nums; }
.ed__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 16px;
  background: #1a1a1c;
  border-top: 1px solid #2a2a2e;
}
.ed__b { padding: 6px 12px; border-radius: 7px; background: #3a3a3d; color: #eee; font-size: 12.5px; }
.ed__b--sel { background: #2c2c2f; box-shadow: inset 0 0 0 1px #4a4a4e; }
.ed__b--go { background: var(--blue); color: #111; font-weight: 600; }
.ed__now { min-width: 40px; color: #9aa0a6; font-variant-numeric: tabular-nums; }
.ed__tog { display: inline-flex; align-items: center; gap: 6px; color: #c8ccd0; font-size: 12.5px; }
.ed__tog i {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--blue);
}
.ed__tog i::after {
  content: "";
  position: absolute; left: 4.5px; top: 1.5px;
  width: 3.5px; height: 7.5px;
  border: solid #111; border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}
.ed__spacer { flex: 1; }
@media (max-width: 620px) {
  .ed__ruler span:nth-child(even) { display: none; }
  .ed__spacer { display: none; }
}

.feats { display: grid; gap: 36px 40px; margin-top: 56px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .feats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat p { font-size: 1rem; }

.pace { position: relative; max-width: 240px; margin-top: 16px; }
.pace__bar { display: flex; height: 6px; overflow: hidden; border-radius: 3px; }
/* log scale: 0.25× to 1× is two doublings, 1× to 8× is three */
.pace__slow { flex: 2; background: var(--teal); }
.pace__fast { flex: 3; background: var(--amber); margin-left: 2px; }
.pace__ticks { position: relative; display: block; height: 18px; margin-top: 6px; font-size: 12px; font-weight: 650; font-stretch: 112%; color: var(--ink-3); }
.pace__ticks span { position: absolute; top: 0; }
.pace__ticks span:nth-child(1) { left: 0; }
.pace__ticks span:nth-child(2) { left: 40%; transform: translateX(-50%); }
.pace__ticks span:nth-child(3) { right: 0; }

/* Clips row in the editor mock: two clips with a fade at the join. */
.ed__clips { position: relative; height: 22px; margin-bottom: 6px; }
.ed__clip {
  position: absolute; top: 0;
  height: 22px;
  display: flex; align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 5px;
  background: #3a3b40;
  color: #c8ccd0;
  font-size: 11px;
  white-space: nowrap;
}
.ed__fade {
  position: absolute; top: 5px;
  width: 12px; height: 12px;
  margin-left: -6px;
  border: 2px solid #1a1a1c;
  background: var(--ink-2);
  transform: rotate(45deg);
}
.ed__b--opt { box-shadow: inset 0 0 0 1px #4a4a4e; background: transparent; }

/* ------------------------------------------------------------------ look */

.feats--look, .feats--app { margin-top: 48px; }
@media (min-width: 1080px) {
  .feats--look { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feats--app { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feat__icon {
  width: 26px; height: 26px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.look { margin: 44px 0 0; }
/* The stage keeps one size; the video's shape changes inside it. */
.look__stage {
  position: relative;
  aspect-ratio: 16 / 7.6;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid #333438;
  border-radius: 12px;
  background: #111113;
  container-type: size;
}
@media (max-width: 719px) { .look__stage { aspect-ratio: 1 / 1; padding: 12px; } }
.look { --ar: 16 / 9; --arn: 1.7778; }
.look[data-aspect="9:16"] { --ar: 9 / 16; --arn: .5625; }
.look[data-aspect="1:1"] { --ar: 1 / 1; --arn: 1; }
.look[data-aspect="4:5"] { --ar: 4 / 5; --arn: .8; }
.look__canvas {
  position: relative;
  width: min(100cqw, 100cqh * var(--arn));
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #7aa7f5 0%, #5b6fd6 48%, #8e63c9 100%);
  container-type: size;
  transition: width .45s cubic-bezier(.3, .7, .2, 1);
}
/* The recording, with padding, rounded corners and a shadow. A chosen shape
   fills the padded area and the shot pans to keep the button in view, as the
   app does, instead of shrinking the recording. */
.look__rec {
  position: absolute;
  inset: 6.5cqmin;
  overflow: hidden;
  border-radius: 2.2cqmin;
  background: #fff;
  box-shadow: 0 3cqmin 7cqmin rgba(10, 14, 40, .45), 0 .4cqmin 1.2cqmin rgba(10, 14, 40, .25);
  container-type: size;
}
.look__page {
  --pw: max(100cqw, 160cqh);
  --fx: .64;
  --fy: .4;
  position: absolute;
  width: var(--pw);
  aspect-ratio: 16 / 10;
  left: clamp(100cqw - var(--pw), 50cqw - var(--fx) * var(--pw), 0px);
  top: clamp(100cqh - var(--pw) / 1.6, 50cqh - var(--fy) * var(--pw) / 1.6, 0px);
  background: #fff;
  color: #1f2328;
  font-family: var(--sys);
  container-type: inline-size;
  transition: left .45s cubic-bezier(.3, .7, .2, 1), top .45s cubic-bezier(.3, .7, .2, 1);
}
.look__page p, .look__page ul { margin: 0; padding: 0; max-width: none; color: inherit; list-style: none; }
.lp-bar { display: flex; align-items: center; gap: .9cqw; height: 5.4cqw; padding: 0 2cqw; background: #eceef1; border-bottom: .15cqw solid #dcdfe4; }
.lp-bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #ff5f57; }
.lp-bar i:nth-child(2) { background: #febc2e; }
.lp-bar i:nth-child(3) { background: #28c840; }
.lp-bar span { margin-left: 3cqw; padding: .5cqw 3cqw; border-radius: 1cqw; background: #fff; color: #5f6368; font-size: 1.5cqw; }
.lp-body { display: flex; height: calc(100% - 5.4cqw); }
.lp-side { display: flex; flex-direction: column; gap: 1.9cqw; width: 19cqw; padding: 3cqw 2.4cqw; background: #f6f7f9; border-right: .15cqw solid #e5e7eb; font-size: 1.7cqw; color: #4b5563; }
.lp-side b { display: flex; align-items: center; gap: 1cqw; margin-bottom: 1cqw; color: #111827; }
.lp-side b i { width: 2.2cqw; height: 2.2cqw; border-radius: .6cqw; background: #4f46e5; }
.lp-side .on { margin: -.6cqw -1cqw; padding: .6cqw 1cqw; border-radius: .8cqw; background: #e8eefc; color: #1d4ed8; font-weight: 600; }
.lp-main { position: relative; flex: 1; padding: 4.4cqw 5cqw; }
.lp-h { font-size: 3.6cqw; font-weight: 700; color: #111827; }
.lp-s { margin: .6cqw 0 3.4cqw !important; font-size: 1.8cqw; color: #6b7280; }
.lp-row { display: flex; gap: 1.4cqw; }
.lp-in { display: flex; align-items: center; width: 34cqw; height: 5.4cqw; padding: 0 1.6cqw; border: .22cqw solid #3b82f6; border-radius: 1cqw; font-size: 1.9cqw; box-shadow: 0 0 0 .6cqw rgba(59, 130, 246, .15); }
.lp-btn { display: flex; align-items: center; height: 5.4cqw; padding: 0 2.2cqw; border-radius: 1cqw; background: #2563eb; color: #fff; font-size: 1.9cqw; font-weight: 600; white-space: nowrap; }
.lp-list { margin-top: 4cqw !important; border-top: .15cqw solid #e5e7eb; }
.lp-list li { display: flex; align-items: center; gap: 1.6cqw; height: 6.2cqw; border-bottom: .15cqw solid #eef0f3; font-size: 1.8cqw; }
.lp-list i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; }
.lp-list b { width: 18cqw; font-weight: 600; color: #111827; }
.lp-list span { color: #6b7280; }
/* Blur: covers the email column of the member list. */
.lp-list { position: relative; }
.lp-list li.lp-blur {
  position: absolute;
  left: 23.4cqw; top: .8cqw; bottom: .8cqw;
  width: 19.5cqw; height: auto;
  border: 0;
  border-radius: 1cqw;
  background: rgba(236, 238, 242, .55);
  -webkit-backdrop-filter: blur(.8cqw);
  backdrop-filter: blur(.8cqw);
}
/* Arrow, cursor ring and cursor are placed on the button they point at. */
.lp-btn { position: relative; }
.lp-arrow { position: absolute; right: 86%; top: 88%; width: 11cqw; height: auto; filter: drop-shadow(0 .3cqw .4cqw rgba(0, 0, 0, .2)); }
.lp-ring { position: absolute; left: 90%; top: 80%; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border: .4cqw solid rgba(250, 204, 21, .95); border-radius: 50%; background: rgba(250, 204, 21, .16); }
.lp-cursor { position: absolute; left: 90%; top: 80%; width: 2.3cqw; height: auto; filter: drop-shadow(0 .2cqw .3cqw rgba(0, 0, 0, .3)); }

.look__keys {
  position: absolute;
  left: 50%; bottom: 17cqmin;
  display: flex; gap: 1cqmin;
  margin: 0;
  transform: translateX(-50%);
}
.look__keys kbd {
  min-width: 6cqmin;
  padding: .8cqmin 1.6cqmin;
  border: 0;
  border-radius: 1.4cqmin;
  background: rgba(20, 20, 24, .86);
  color: #fff;
  font-size: 3.2cqmin;
  line-height: 1.2;
  box-shadow: 0 .6cqmin 1.6cqmin rgba(0, 0, 0, .3);
}
.look__cap {
  position: absolute;
  left: 50%; bottom: 8cqmin;
  width: max-content;
  max-width: 62cqw;
  margin: 0;
  padding: .7cqmin 1.8cqmin;
  border-radius: 1cqmin;
  background: rgba(0, 0, 0, .74);
  color: #fff;
  font: 600 3.1cqmin/1.3 var(--sys);
  text-align: center;
  transform: translateX(-50%);
}
.look__cam {
  position: absolute;
  right: 3.2cqmin; bottom: 3.2cqmin;
  width: 17cqmin; height: 17cqmin;
  overflow: hidden;
  border: .6cqmin solid #fff;
  border-radius: 50%;
  box-shadow: 0 1cqmin 2.4cqmin rgba(10, 14, 40, .4);
}
.look__cam svg { width: 100%; height: 100%; }

.look__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 18px; }
.look__foot p { margin: 0; font-size: .9375rem; color: var(--ink-3); }
.aspects { display: flex; flex-wrap: wrap; gap: 8px; }
.aspect {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: 600 .9375rem/1 var(--font);
  cursor: pointer;
}
.aspect span { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.aspect i { width: calc(var(--w) * 1.05px); height: calc(var(--h) * 1.05px); border: 1.6px solid currentColor; border-radius: 2px; }
.aspect:hover { color: var(--ink); border-color: #5a5c61; }
.aspect[aria-pressed="true"] { color: var(--ink); border-color: var(--blue); }
.aspect[aria-pressed="true"] i { color: var(--blue); }

/* ------------------------------------------------------------------ sound */

.mix { margin: 0; }
.mix__svg { width: 100%; height: auto; overflow: visible; }
.mix__rows rect { fill: #202124; stroke: #2e2f33; }
.mix__labels text { fill: var(--ink-2); font: 600 14px var(--font); }
.mix__voice { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.mix__sys { fill: none; stroke: #7d8187; stroke-width: 3; stroke-linecap: round; }
.mix__take { fill: rgba(138, 180, 248, .1); stroke: rgba(138, 180, 248, .55); stroke-dasharray: 4 3; }
.mix__music { fill: #c8ccd0; fill-opacity: .8; }
.mix__note { fill: var(--ink-3); font: 500 13px var(--font); }
.mix__axis { fill: var(--ink-3); font: 500 13px var(--font); }
@media (max-width: 620px) {
  .mix__labels text { font-size: 19px; }
  .mix__note, .mix__axis { font-size: 17px; }
}

/* ------------------------------------------------------------------ captions */

/* Drawn from the editor's own sidebar panel. */
.cap {
  max-width: 460px;
  justify-self: center;
  width: 100%;
  padding: 18px;
  border: 1px solid #333438;
  border-radius: 12px;
  background: #1f1f22;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  font: 13.5px/1.4 var(--sys);
  color: #c8ccd0;
}
.cap p { margin: 0; max-width: none; color: inherit; }
.cap__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cap__head b { color: #e8eaed; font-size: 15px; font-weight: 600; }
.cap__lang { padding: 4px 10px; border-radius: 6px; background: #2c2c2f; box-shadow: inset 0 0 0 1px #3f4045; font-size: 12.5px; }
.cap__tog { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #2e2e32; }
.cap__tog i { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: var(--blue); }
.cap__tog i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: #16181d; }
.cap__list { display: grid; gap: 4px; margin: 12px 0; padding: 0; list-style: none; }
.cap__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: 7px; }
.cap__list span { color: var(--blue); font-variant-numeric: tabular-nums; }
.cap__edit { background: #2a2b2f; box-shadow: inset 0 0 0 1.5px var(--blue); }
.cap__edit p { color: #fff; }
.cap__caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: #fff; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cap__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 14px; border-top: 1px solid #2e2e32; }
.cap__btn { padding: 7px 14px; border-radius: 7px; background: #3a3a3d; color: #eee; font-size: 13px; }
.cap__hint { color: #9aa0a6; font-size: 12.5px; }

/* ------------------------------------------------------------------ export */

.xp { display: grid; gap: 16px; max-width: 520px; width: 100%; justify-self: center; font: 13px/1.3 var(--sys); color: #c8ccd0; }
.xp p { margin: 0; max-width: none; color: inherit; }
.xp__card {
  display: grid; gap: 14px;
  padding: 18px;
  border: 1px solid #333438;
  border-radius: 12px;
  background: #1f1f22;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
}
.xp__title { color: #e8eaed !important; font-size: 16px; font-weight: 600; }
.xp__field { display: grid; gap: 7px; }
.xp__lab { display: flex; align-items: center; gap: 8px; color: #e8eaed; font-weight: 500; }
.xp__sw { position: relative; flex: none; width: 26px; height: 16px; border-radius: 8px; background: var(--blue); }
.xp__sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: #16181d; }
.xp__seg { display: flex; padding: 3px; border-radius: 8px; background: #2a2a2d; }
.xp__seg b { flex: 1; padding: 6px 4px; border-radius: 6px; font-weight: 500; text-align: center; white-space: nowrap; }
.xp__seg .on { background: #45464b; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.xp__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.xp__acts--left { justify-content: flex-start; }
.xp__b { padding: 7px 14px; border-radius: 7px; background: #3a3a3d; color: #eee; }
.xp__b--go { background: var(--blue); color: #111; font-weight: 600; }
.xp__b--on { box-shadow: inset 0 0 0 1.5px var(--blue); }
.xp__file { display: flex; align-items: center; gap: 12px; }
.xp__file span { display: grid; gap: 2px; min-width: 0; }
.xp__file b { overflow: hidden; color: #e8eaed; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.xp__file em { color: #9aa0a6; font-style: normal; font-size: 12px; }
.xp__thumb { position: relative; flex: none; width: 54px; height: 34px; border-radius: 4px; background: linear-gradient(135deg, #7aa7f5, #8e63c9); }
.xp__thumb::after { content: ""; position: absolute; inset: 5px 7px; border-radius: 2px; background: #fff; }
.xp__link { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 8px; background: #151517; box-shadow: inset 0 0 0 1px #3a3b3f; }
.xp__link span { flex: 1; min-width: 0; overflow: hidden; color: #e8eaed; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.xp__link b { flex: none; padding: 6px 12px; border-radius: 6px; background: var(--blue); color: #111; font-weight: 600; }
.xp__hint { color: #9aa0a6 !important; font-size: 12.5px; }

/* Private */
.private { padding-block: clamp(72px, 9vw, 120px); }
.private__in { display: grid; gap: 20px; align-items: end; }
@media (min-width: 980px) {
  .private__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
}
.private__h { font-size: clamp(2.2rem, 1.1rem + 4vw, 4.4rem); max-width: 11em; margin: 0; }
.private__p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); max-width: 34em; }

/* ------------------------------------------------------------------ download */

.download { background: var(--raised); scroll-margin-top: 0; }
.download:focus { outline: none; }
.download__head { margin-bottom: 44px; }
.download__head h2 { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.2rem); margin-bottom: .3em; }
.download__req { font-size: 1.1875rem; color: var(--ink); margin-bottom: .5em; }
.release { font-size: .9375rem; color: var(--ink-3); }

/* Mac | Windows. Without JavaScript both panels simply stack; with it, the
   visitor's own system is chosen and the other is one click away. The page's
   key names follow the same choice (site.js). */
.os {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 36px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--ground);
}
.os__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px 0 18px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--ink-3);
  font: 650 1.0625rem/1 var(--font);
  font-stretch: 115%;
  cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s;
}
.os__tab:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
/* The chosen one is "in shot": the same blue frame the app draws. */
.os__tab[aria-selected="true"] { color: var(--ink); border-color: var(--blue); background: var(--raised); }
.os__icon { width: 18px; height: 18px; }

.panel + .panel { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line-2); }
.js .panel + .panel { margin-top: 0; padding-top: 0; border-top: 0; }
.js[data-platform="mac"] [data-os-panel="win"],
.js[data-platform="win"] [data-os-panel="mac"] { display: none; }
.panel__h { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-stretch: 120%; margin-bottom: .25em; }
.js .panel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel__req { font-size: 1.125rem; color: var(--ink); margin-bottom: 28px; }

.dl { display: grid; gap: 48px; }
@media (min-width: 980px) {
  .dl {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
  .dl__alt { padding-top: 58px; }
}

/* The recommended option gets the "in shot" frame. */
.framed {
  position: relative;
  padding: 58px clamp(18px, 3vw, 30px) clamp(22px, 3vw, 30px);
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: var(--ground);
}
.framed__badge {
  position: absolute;
  left: 12px; top: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(138, 180, 248, .6);
  border-radius: 999px;
  background: rgba(20, 20, 22, .88);
  color: #fff;
  font: 600 13px/1.2 var(--sys);
}
.dl h4 { margin: 0 0 .4em; color: var(--ink); font-size: 1.375rem; font-stretch: 118%; font-weight: 650; line-height: 1.3; }

.cmd {
  display: flex;
  margin: 18px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--well);
}
.cmd__code {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  background: none;
  border-radius: 0;
  color: var(--ink);
  font: 500 15px/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.cmd__code::before { content: "$ "; color: #7d8187; -webkit-user-select: none; user-select: none; }
.cmd__code .nw { white-space: nowrap; }
.cmd--small { margin-bottom: 0; }
.cmd--small .cmd__code { font-size: 13px; padding-block: 12px; color: var(--ink-2); }
.copy {
  flex: none;
  min-width: 96px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: #323337;
  color: var(--ink);
  font: 650 .9375rem/1 var(--font);
  font-stretch: 110%;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.copy:hover { background: #3a3b40; }
.copy:focus-visible { outline-offset: -4px; }
.copy[data-state="copied"] { background: var(--blue); color: #16181d; }
.copy[data-state="select"] { background: #3a3b40; color: var(--ink); }
@media (max-width: 519px) {
  .cmd { flex-direction: column; }
  .cmd__code { font-size: 14px; }
  .copy { min-height: 44px; border-left: 0; border-top: 1px solid var(--line-2); }
}
.dl__sub { font-size: .9375rem; color: var(--ink-3); }
.dl__sub--after { margin-top: 20px; }
.dl__sub code { font: 13.5px/1.4 var(--mono); color: var(--ink-2); }

.files { display: grid; gap: 12px; margin: 20px 0 22px; }
@media (min-width: 480px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.file {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #292a2e;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.file:hover { border-color: var(--blue); background: #2d2f34; }
.file__icon { grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--blue); }
.file__t { font-size: 1.0625rem; font-weight: 650; font-stretch: 112%; line-height: 1.2; }
.file__f { font: 12.5px/1.2 var(--mono); color: var(--ink-3); }
.file--big { margin: 22px 0 4px; padding: 20px 22px; background: var(--blue); border-color: var(--blue); color: #16181d; }
.file--big:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.file--big .file__icon { width: 26px; height: 26px; color: #16181d; }
.file--big .file__t { font-size: 1.25rem; font-stretch: 118%; }
.file--big .file__f { color: #2b3547; }
.which { font-size: 1rem; }

.dl__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; font-weight: 600; }

/* ------------------------------------------------------------------ first launch */

.split--steps { align-items: start; }
@media (min-width: 980px) {
  .split--steps { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
}
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 32px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 18px;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  font-stretch: 125%;
  color: var(--ink);
}
.steps h4 { margin: 5px 0 8px; color: var(--ink); font-size: 1.125rem; font-stretch: 112%; font-weight: 650; line-height: 1.3; }
.steps__for { margin-bottom: 20px; color: var(--ink-3); font-size: 1rem; }
.js .steps__for { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-os-panel="win"] + .faq, [data-os-panel="mac"] + [data-os-panel="win"] { margin-top: 48px; }
.js [data-os-panel="mac"] + [data-os-panel="win"] { margin-top: 0; }
.steps p { font-size: 1rem; }
.steps__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--well);
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 600;
  font-stretch: 100%;
  vertical-align: .15em;
  white-space: nowrap;
}
.faq { display: grid; gap: 22px; margin: 48px 0 0 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.faq dt { color: var(--ink); font-weight: 650; font-stretch: 112%; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 620px) { .faq { margin-left: 0; } }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot__p { flex: 1; min-width: 16em; margin: 0; font-size: .9375rem; color: var(--ink-3); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
