@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF,
    U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/fragment-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/fragment-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #f1f2f7;
  --paper-3: #e6e8f1;
  --ink: #141a3d;
  --slate: #474d74;
  --indigo: #26327a;
  --indigo-2: #33419a;
  --ember: #ff7a45;
  --ember-text: #b5461a;
  --cream: #f6f0e6;
  --line: rgba(20, 26, 61, 0.12);

  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, Menlo, Consolas, monospace;

  /* type scale, 1.25 ratio from 17px body */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.3125rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(2.1rem, 1.3rem + 2.7vw, 3.4rem);
  --t-h1: clamp(2.5rem, 1.2rem + 3.6vw, 4.1rem);

  --r-chip: 4px;
  --r-shot: 12px;
  --r-window: 14px;
  --r-pill: 999px;
  --wrap: 1248px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body) / 1.6 var(--sans);
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--indigo);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a,
button,
summary,
label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[id] {
  scroll-margin-top: 24px;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 760;
}

h1 {
  font-size: var(--t-h1);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h1 .h1-main {
  display: block;
}

h1 .h1-sub {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: var(--t-lead);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--indigo);
}

h2 {
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  clip-path: none;
  top: 12px;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a,
.langs a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: 4px;
}

/* the stitch: hover underline is a dashed thread */
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ember) 0 6px, transparent 6px 11px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.langs {
  display: flex;
  gap: 4px;
  font-size: var(--t-small);
}

.langs a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--slate);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.langs a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.langs a[aria-current='true'] {
  color: var(--ink);
  font-weight: 700;
  background: var(--paper-2);
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--indigo);
  color: var(--cream);
  font: 700 1.0625rem / 1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink), 0 10px 24px -12px rgba(38, 50, 122, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

/* stitched edge, like a sewn label */
.btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(246, 240, 230, 0.45);
  border-radius: inherit;
  pointer-events: none;
}

.btn:hover {
  background: var(--indigo-2);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--ink), 0 14px 28px -12px rgba(38, 50, 122, 0.85);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--ink), 0 4px 10px -6px rgba(38, 50, 122, 0.8);
}

.btn .mark {
  width: 28px;
  height: 28px;
}

.btn[aria-disabled='true'] {
  background: var(--paper-2);
  color: var(--slate);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.btn[aria-disabled='true']::before {
  border-color: rgba(74, 80, 120, 0.35);
}

.cta-note {
  margin-top: 12px;
  color: var(--slate);
  font-size: var(--t-small);
}

/* desktop install vs phone share: swapped by CSS only */
.only-touch {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .only-desktop {
    display: none !important;
  }
  .only-touch {
    display: block;
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px);
}

.hero h1 {
  max-width: none;
}

.hero h1 .h1-line {
  display: block;
  white-space: nowrap;
}

.hero .lead {
  margin-top: 22px;
  max-width: 38ch;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--slate);
}

.hero .cta {
  margin-top: 32px;
}

/* on a desktop the hero is the whole first screen: nothing of the next section peeks in */
@media (min-width: 1024px) and (min-height: 700px) {
  .hero {
    min-height: calc(100svh - 88px);
  }
}

.closing-cta {
  margin-top: 48px;
}

/* ---------- demo: the signature moment ---------- */
.demo {
  margin: 0;
}

.window {
  border-radius: var(--r-window);
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 30px 70px -30px rgba(20, 26, 61, 0.45);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #e9ebf3;
  border-bottom: 1px solid var(--line);
}

.window-bar .dots {
  display: flex;
  gap: 6px;
}

.window-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9cde0;
}

.window-bar .addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
  padding: 4px 12px;
  border-radius: 7px;
  background: #fff;
  color: var(--slate);
  font: 400 0.8rem / 1.3 var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3e3c8;
}

.player video,
.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-pause {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 26, 61, 0.7);
  color: #fff;
  cursor: pointer;
}

.v-pause:hover {
  background: rgba(20, 26, 61, 0.9);
}

.v-pause svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.v-pause .i-play,
.v-pause.paused .i-pause {
  display: none;
}

.v-pause.paused .i-play {
  display: block;
}

.demo.started .v-pause {
  opacity: 0;
  pointer-events: none;
}

/* replica of the real in-page button and menu */
.v-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  background: rgba(20, 26, 61, 0.94);
  color: #f4f4f6;
  font: 600 0.9rem / 1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease;
}

.v-pill:hover {
  transform: translateY(-1px);
}

.v-pill:active {
  transform: translateY(1px);
}

.v-pill .mk {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--indigo);
}

.v-pill .mk svg {
  width: 14px;
  height: 14px;
}

.v-pill .pulse {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px dashed var(--ember);
  opacity: 0.9;
  animation: pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.demo.started .v-pill .pulse {
  display: none;
}

@keyframes pulse {
  50% {
    transform: scale(1.06);
    opacity: 0.35;
  }
}

.v-menu {
  position: absolute;
  top: 60px;
  right: 14px;
  width: min(300px, calc(100% - 28px));
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(20, 26, 61, 0.97);
  color: #f4f4f6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.v-menu[hidden] {
  display: block;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  visibility: hidden;
}

.v-menu button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: 600 0.88rem / 1.2 var(--sans);
  text-align: left;
  cursor: pointer;
}

.v-menu button small {
  color: #9ca1c2;
  font-weight: 500;
  font-size: 0.75rem;
}

.v-menu button:hover,
.v-menu button:focus-visible {
  background: rgba(255, 122, 69, 0.14);
}

.v-toast {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: min(330px, calc(100% - 28px));
  padding: 11px 13px 12px;
  border-radius: 13px;
  background: rgba(20, 26, 61, 0.94);
  color: #f4f4f6;
  font-size: 0.8rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.v-toast[hidden] {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
}

.v-toast b {
  display: block;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-toast .meta {
  color: #9ca1c2;
  font-variant-numeric: tabular-nums;
}

.v-toast .bar {
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.v-toast .bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ember);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* after a run: the saved file */
.result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-shot);
  background: var(--paper-2);
  transition: transform 0.3s ease;
}

/* before the demo runs, only the file icon waits in grey; the text stays readable */
.result .icon {
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.demo.joined .result .icon {
  opacity: 1;
  filter: none;
}

.result .icon,
.stitch-file .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border-radius: 6px 12px 6px 6px;
  background: var(--ink);
  color: var(--cream);
  font: 400 0.66rem / 1 var(--mono);
}

.result-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.result .name,
.stitch-file .name {
  font: 400 0.88rem / 1.35 var(--mono);
  overflow-wrap: anywhere;
}

.result .sub,
.stitch-file .sub {
  color: var(--slate);
  font-size: var(--t-small);
}

.replay {
  margin-left: auto;
  flex: none;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 var(--t-small) / 1 var(--sans);
  cursor: pointer;
}

.replay:hover {
  border-color: var(--indigo);
}

.demo:not(.joined) .replay {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .demo:not(.joined) .replay {
    visibility: visible;
  }
}

.demo-hint {
  margin-top: 12px;
  color: var(--slate);
  font-size: var(--t-small);
}

.demo.joined .demo-hint {
  visibility: hidden;
}

html:not(.js) .demo .result {
  opacity: 1;
  filter: none;
}
html:not(.js) .demo .replay,
html:not(.js) .demo .demo-hint,
html:not(.js) .demo .v-pill .pulse {
  display: none;
}

/* ---------- stitch: scroll scene ---------- */
.stitch {
  position: relative;
  height: 260vh;
  view-timeline: --stitch block;
}

.stitch-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.stitch-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.stitch-copy p {
  margin-top: 20px;
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--slate);
}

.stitch-stage {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: var(--paper-2);
}

.stitch-count {
  font: 400 0.95rem / 1 var(--mono);
  color: var(--slate);
}

.stitch-count b {
  display: inline-block;
  min-width: 2ch;
  color: var(--ink);
  font-weight: 400;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}

.stitch-count span {
  margin-left: 8px;
  font-family: var(--sans);
}

.stitch-chips {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-top: 22px;
}

.stitch-chips i {
  height: 30px;
  border-radius: 5px;
  background: var(--indigo);
}

.stitch-seam {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--ember) 0 9px, transparent 9px 15px);
}

.stitch-file {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--r-shot);
  background: #fff;
}

.stitch-file > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stitch-chips i {
      animation: chip-in linear both, chip-fill linear both, chip-join linear both;
      animation-timeline: --stitch, --stitch, --stitch;
      transform-origin: center;
      animation-range: contain calc(var(--k) * 30%) contain calc(14% + var(--k) * 30%),
        contain calc(var(--k) * 40%) contain calc(4% + var(--k) * 40%), contain 62% contain 74%;
    }
    .stitch-seam {
      animation: seam-draw linear both;
      animation-timeline: --stitch;
      animation-range: contain 74% contain 86%;
    }
    .stitch-file {
      animation: file-in linear both;
      animation-timeline: --stitch;
      animation-range: contain 84% contain 94%;
    }
  }
}

@keyframes chip-in {
  from {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.8);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

@keyframes chip-fill {
  from {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(20, 26, 61, 0.18);
  }
}

@keyframes chip-join {
  to {
    scale: 1.3 1.3;
    border-radius: 0;
  }
}

@keyframes seam-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes file-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
}

/* no scroll timelines, or reduced motion: a normal section in its final state */
@supports not (animation-timeline: view()) {
  .stitch { height: auto; }
  .stitch-sticky { position: static; height: auto; padding-block: clamp(64px, 9vw, 120px); }
  .stitch-chips i { border-radius: 0; scale: 1.3 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .stitch { height: auto; }
  .stitch-sticky { position: static; height: auto; padding-block: clamp(64px, 9vw, 120px); }
  .stitch-chips i { border-radius: 0; scale: 1.3 1.3; }
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-head {
  max-width: 44rem;
}

.section-head p {
  margin-top: 16px;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--slate);
}

/* how it works: three real screens side by side */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
}

.steps .shot {
  order: -1;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: clamp(14px, 2vw, 28px);
  border-radius: var(--r-shot);
  background: var(--paper-2);
  overflow: hidden;
}

.steps .shot img {
  max-height: 100%;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 18px 40px -22px rgba(20, 26, 61, 0.55);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.steps li:hover .shot img {
  transform: translateY(-3px) scale(1.02);
}

.steps .text {
  padding-top: 22px;
}

.steps h3 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 1.2rem;
}

.steps h3::before {
  content: counter(step);
  flex: none;
  font: 400 0.9rem / 1 var(--mono);
  color: var(--ember-text);
}

.steps p {
  margin-top: 10px;
  color: var(--slate);
}

/* what it saves: the real input → output table */
.formats {
  width: 100%;
  margin-top: 48px;
  border-collapse: collapse;
}

.formats th,
.formats td {
  padding: 18px 20px 18px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.formats thead th,
.formats thead td {
  padding-block: 0 12px;
  border-top: 0;
  color: var(--slate);
  font-size: var(--t-small);
  font-weight: 600;
}

.formats tbody th {
  font-weight: 650;
  white-space: nowrap;
}

.formats tbody td:last-child {
  color: var(--slate);
}

.formats tbody tr {
  transition: background-color 0.2s ease;
}

.formats tbody tr:hover {
  background: var(--paper-2);
}

.formats .arrow {
  width: clamp(80px, 12vw, 160px);
}

.formats .arrow i {
  position: relative;
  display: block;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--paper-3) 0 6px, transparent 6px 11px);
}

.formats .arrow i::before {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--paper-3);
  border-right: 0;
}

/* the pulse: one piece travelling from the stream to the file */
.formats .arrow i::after {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--ember);
  opacity: 0;
}

.formats.run tbody tr .arrow i::after {
  animation: piece-run 0.9s cubic-bezier(0.5, 0, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

/* hovering a row sends its piece again */
.formats tbody tr:hover .arrow i::after,
.formats.run tbody tr:hover .arrow i::after {
  animation: piece-run-hover 0.9s cubic-bezier(0.5, 0, 0.3, 1) both;
}

@keyframes piece-run {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; translate: calc(var(--w, 120px) - 14px) 0; }
}

@keyframes piece-run-hover {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; translate: calc(var(--w, 120px) - 14px) 0; }
}

.ext {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: 400 0.85rem / 1.2 var(--mono);
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.formats tbody tr:hover .ext {
  background: var(--indigo);
  transform: translateX(3px);
}

.saves-foot,
.limits-foot {
  margin-top: 28px;
  max-width: 46rem;
  color: var(--slate);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

/* turbo: text beside a terminal window */
.turbo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.turbo-points {
  margin-top: 28px;
}

.setup :focus-visible {
  outline-color: var(--ember);
}

.setup a {
  color: #ffb08f;
}

.setup {
  position: relative;
  border-radius: var(--r-window);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 40px 80px -40px rgba(20, 26, 61, 0.55);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  background: #0e1330;
}

.term-bar .dots {
  display: flex;
  gap: 6px;
}

.term-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 240, 230, 0.22);
}

.os-tabs {
  display: flex;
  flex: 1;
  gap: 4px;
}

.os-tabs label {
  flex: 1;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #bfc3dd;
  cursor: pointer;
}

.os-tabs label:hover {
  color: var(--cream);
  background: rgba(246, 240, 230, 0.08);
}

.setup > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#os-mac:checked ~ .term-bar label[for='os-mac'],
#os-win:checked ~ .term-bar label[for='os-win'] {
  background: rgba(246, 240, 230, 0.14);
  color: #fff;
}

#os-mac:focus-visible ~ .term-bar label[for='os-mac'],
#os-win:focus-visible ~ .term-bar label[for='os-win'] {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

.os-panel {
  display: none;
  margin: 0;
  padding: 14px 20px 18px 50px;
  counter-reset: s;
  list-style: none;
}

#os-mac:checked ~ .panels .mac,
#os-win:checked ~ .panels .win {
  display: block;
}

.os-panel li {
  position: relative;
  counter-increment: s;
  padding: 10px 0;
  line-height: 1.5;
}

.os-panel li::before {
  content: counter(s) '.';
  position: absolute;
  left: -30px;
  top: 10px;
  font: 400 0.85rem / 1.5 var(--mono);
  color: #ffb08f;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 8px;
  background: rgba(246, 240, 230, 0.06);
  border: 1px solid rgba(246, 240, 230, 0.1);
  transition: border-color 0.2s ease;
}

.cmd:hover {
  border-color: rgba(255, 122, 69, 0.5);
}

.cmd code {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #f4f4f6;
}

.cmd code::before {
  content: '$ ';
  color: #8e93b5;
}

.copy {
  flex: none;
  min-height: 40px;
  min-width: 64px;
  padding: 6px 12px;
  border: 1px solid rgba(246, 240, 230, 0.25);
  border-radius: 7px;
  background: transparent;
  color: var(--cream);
  font: 600 0.8rem / 1 var(--sans);
  cursor: pointer;
}

.copy:hover {
  border-color: var(--ember);
}

.copy:active,
.replay:active,
.v-pause:active,
.os-tabs label:active {
  transform: scale(0.96);
}

.copy,
.replay,
.v-pause,
.os-tabs label {
  transition: transform 0.15s ease-out, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.copy.done {
  border-color: var(--ember);
  color: #ffb08f;
  animation: copied 0.35s ease-out;
}

@keyframes copied {
  40% { transform: scale(1.06); }
}

.dl-link {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink) !important;
  font: 400 0.88rem / 1.3 var(--mono);
  text-decoration: none;
  transition: transform 0.15s ease-out, background-color 0.15s ease;
}

.dl-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

.setup-note {
  padding: 4px 20px 18px;
  color: #bfc3dd;
  font-size: var(--t-small);
}

/* limits: the extension's own failure notices */
.fails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.toast-ui {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 48px -28px rgba(20, 26, 61, 0.7);
  overflow: hidden;
  min-height: 112px;
}

.toast-ui .mk {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--indigo);
}

.toast-ui .mk svg {
  width: 16px;
  height: 16px;
}

.toast-ui .t {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #d7d9ea;
}

.toast-ui b {
  color: #fff;
  font-weight: 650;
}

.toast-ui .bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 4px;
  border-radius: 2px;
  background: rgba(246, 240, 230, 0.12);
}

.toast-ui .bar i {
  display: block;
  height: 100%;
  width: var(--stop);
  border-radius: 2px;
  background: #ff5f57;
}

/* when the section comes into view each notice replays its attempt once:
   the bar runs and stops where the download failed */
.fails.ready .toast-ui .bar i {
  width: 0;
  background: var(--ember);
}

.fails.run .toast-ui .bar i {
  animation: attempt 1.4s cubic-bezier(0.3, 0.6, 0.4, 1) both;
  animation-delay: calc(var(--i, 0) * 0.25s);
}

@keyframes attempt {
  0% { width: 0; background: var(--ember); }
  80% { width: var(--stop); background: var(--ember); }
  100% { width: var(--stop); background: #ff5f57; }
}

.fails li > p {
  margin-top: 14px;
  color: var(--slate);
}

/* privacy: the one contrasting band */
.privacy-band {
  background: var(--indigo);
  color: #fff;
}

.privacy-band h2 {
  max-width: 18ch;
}

.privacy-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: 40px;
  max-width: 62rem;
  color: #dfe2f5;
  font-size: 1.125rem;
}

.privacy-band a {
  color: #fff;
  font-weight: 600;
}

.privacy-band :focus-visible {
  outline-color: var(--ember);
}

/* faq: questions and answers are open, two columns */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(32px, 5vw, 72px);
  margin: 40px 0 0;
}

.faq .qa {
  padding: 22px 0 18px;
  border-top: 1px solid var(--line);
}

.faq dt {
  font-weight: 650;
  font-size: 1.1rem;
  line-height: 1.35;
}

.faq dd {
  margin: 10px 0 0;
  color: var(--slate);
}

@media (max-width: 860px) {
  .steps,
  .fails,
  .faq,
  .privacy-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    gap: 40px;
  }

  .formats thead {
    display: none;
  }

  .formats,
  .formats tbody,
  .formats tr,
  .formats th,
  .formats td {
    display: block;
  }

  .formats tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .formats th,
  .formats td {
    padding: 0;
    border: 0;
  }

  .formats tbody th {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .formats .arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .formats .arrow i::after,
  .fails .toast-ui .bar i {
    animation: none !important;
  }

  .fails.ready .toast-ui .bar i {
    width: var(--stop);
    background: #ff5f57;
  }
}

/* footer */
.site-foot {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: var(--t-small);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
}

.foot-grid .brand {
  font-size: 1.05rem;
}

.foot-grid .brand img {
  width: 26px;
  height: 26px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-legal {
  margin-top: 18px;
  max-width: 60rem;
}

.placeholder {
  background: #ffe2d4;
  color: #9c3a12;
  padding: 0 4px;
  border-radius: 4px;
}

/* ---------- legal page ---------- */
.legal {
  max-width: 46rem;
  padding-block: 24px 96px;
}

.legal h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
}

.legal .updated {
  margin-top: 12px;
  color: var(--slate);
}

.legal h2 {
  margin-top: 48px;
  font-size: 1.5rem;
}

.legal p,
.legal ul {
  margin-top: 14px;
}

.legal li + li {
  margin-top: 8px;
}

.legal dt {
  margin-top: 16px;
  font-weight: 700;
}

.legal dd {
  margin: 4px 0 0;
  color: var(--slate);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero,
  .saves,
  .turbo-grid,
  .limits,
  .privacy-short,
  .stitch-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stitch {
    height: 230vh;
  }
  .stitch-copy p {
    font-size: var(--t-body);
  }

  .hero h1 .h1-line {
    white-space: normal;
  }
  .steps li {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps .shot {
    min-height: 0;
    order: 2;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .langs {
    margin-left: auto;
  }
  .stitch-chips {
    grid-template-columns: repeat(8, 1fr);
  }
  .stitch-chips i {
    height: 22px;
  }
  .v-pill {
    top: 10px;
    right: 10px;
    height: 34px;
    font-size: 0.82rem;
  }
  .v-menu {
    top: 52px;
    right: 10px;
  }
  .v-toast {
    left: 10px;
    bottom: 10px;
  }
  .result {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
