/* ShipVid website. Brand: magenta #FF2D87 and orange #FF7A1A as a gradient, halftone dots, notched corners, ink
   neutrals (ADR-012, ADR-016). Dark only. Fonts are self-hosted (SIL OFL, see fonts/OFL-*.txt). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0c12;
  --bg-2: #120f16;
  --ink: #16131b;
  --panel: #19151f;
  --panel-2: #1f1a26;
  --line: #2a2531;
  --line-2: #3a3343;
  --text: #f6f3f8;
  --text-2: #d9d3e2;
  --muted: #958ea1;
  --dim: #6c6577;
  --pink: #ff2d87;
  --orange: #ff7a1a;
  --green: #3ddc97;
  --grad: linear-gradient(115deg, #ff2d87 0%, #ff7a1a 100%);
  --grad-v: linear-gradient(180deg, #ff2d87 0%, #ff7a1a 100%);
  --hero-surface:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 45, 135, 1) 0%, rgba(255, 45, 135, 0) 62%),
    radial-gradient(70% 120% at 100% 100%, rgba(255, 176, 64, 0.85) 0%, rgba(255, 176, 64, 0) 60%),
    linear-gradient(110deg, #ff2d87 0%, #ff4f5e 45%, #ff7a1a 100%);
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 68px;
  --cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.5 2.5l14.5 9-6.4 1.6 3.8 6.9-2.7 1.5-3.8-6.9-4.9 4.6z' fill='white' stroke='%2316131b' stroke-width='1.3' stroke-linejoin='round'/></svg>");
  --caret: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23958ea1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: rgba(255, 45, 135, 0.35);
  color: #fff;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

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

.ic {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.sq {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.7em;
  background: var(--grad);
  flex: none;
}

.grad-text {
  background: linear-gradient(100deg, #ff2d87 8%, #ff4f5e 45%, #ff7a1a 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grain {
  position: absolute;
  inset: -40%;
  background-image: var(--noise);
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 1.4s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* The hero comes in with CSS alone, so it never waits for the script. */
[data-rise] {
  animation: rise 0.9s var(--ease) both;
}

.hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.hero__inner > :nth-child(5) { animation-delay: 0.34s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

/* Reveal on scroll (only with JS, so the page reads fine without it). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

.btn {
  --notch: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  font: 600 15px/1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: transform 0.2s var(--ease), filter 0.2s, background-color 0.2s, color 0.2s;
}

.btn .ic {
  transition: transform 0.25s var(--ease);
}

.btn:hover .ic:last-child {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  filter: brightness(1.08) saturate(1.05);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* The notch of an outlined button gets its own diagonal line. */
.btn--ghost::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--notch);
  height: var(--notch);
  background: linear-gradient(to bottom left, transparent calc(50% - 0.8px), rgba(255, 255, 255, 0.16) calc(50% - 0.8px), rgba(255, 255, 255, 0.16) calc(50% + 0.8px), transparent calc(50% + 0.8px));
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #221d29;
}

.btn--sm {
  --notch: 8px;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  gap: 8px;
}

.btn--lg {
  --notch: 12px;
  height: 54px;
  padding: 0 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn__play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.btn__play .ic {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tag--grad {
  background: var(--grad);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow--light .sq {
  background: #fff;
}

.mlabel {
  display: flex;
  align-items: center;
  font: 700 0.7em/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

.mlabel .sq {
  width: 0.75em;
  height: 0.75em;
  margin-right: 0.8em;
}

.mlabel--dim {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 12px;
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(14, 12, 18, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: rgba(255, 255, 255, 0.07);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--hero-surface);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.brand__mark svg {
  width: 76%;
  height: 76%;
  color: #fff;
}

.brand__name {
  font: 700 21px/1 var(--font-head);
  letter-spacing: -0.045em;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.nav__toggle .ic {
  width: 20px;
  height: 20px;
}

.nav__mobile {
  display: grid;
  gap: 2px;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__mobile[hidden] {
  display: none;
}

.nav__mobile a:not(.btn) {
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__mobile .btn {
  margin-top: 14px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 7vw, 88px);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 18% -8%, rgba(255, 45, 135, 0.58), rgba(255, 45, 135, 0) 70%),
    radial-gradient(60% 50% at 84% -4%, rgba(255, 122, 26, 0.5), rgba(255, 122, 26, 0) 70%),
    radial-gradient(90% 70% at 50% -20%, rgba(255, 79, 94, 0.42), rgba(255, 79, 94, 0) 72%),
    var(--bg);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(14, 12, 18, 0), var(--bg));
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.75;
  will-change: transform;
}

.hero__glow--a {
  width: 46vw;
  height: 34vw;
  left: 2vw;
  top: -16vw;
  background: #ff2d87;
  animation: drift-a 16s ease-in-out infinite alternate;
}

.hero__glow--b {
  width: 42vw;
  height: 30vw;
  right: 0;
  top: -15vw;
  background: #ff7a1a;
  opacity: 0.6;
  animation: drift-b 19s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(8vw, 3vw) scale(1.12); }
}

@keyframes drift-b {
  to { transform: translate(-9vw, 4vw) scale(0.92); }
}

/* Halftone dots: strong at the top edge, gone by the headline. */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.34) 1.4px, transparent 1.9px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(90% 60% at 50% -10%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
  mask-image: radial-gradient(90% 60% at 50% -10%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
  opacity: 0.55;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(14, 12, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(14, 12, 18, 0.6);
}

.pill__tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 10.5px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill .ic {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(44px, 7.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero__lead {
  margin-top: 26px;
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* The idea box */
.idea {
  width: 100%;
  max-width: 920px;
  margin-top: 44px;
  text-align: left;
}

.idea__frame {
  --n: 18px;
  padding: 1px;
  background: linear-gradient(115deg, rgba(255, 45, 135, 0.75), rgba(255, 255, 255, 0.14) 38%, rgba(255, 255, 255, 0.1) 62%, rgba(255, 122, 26, 0.75));
  clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.idea__inner {
  --n: 17.6px;
  padding: 18px 18px 14px 20px;
  background: rgba(19, 16, 24, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
}

.idea__label {
  display: flex;
  align-items: center;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.idea__input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 4px 0 14px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font: 500 clamp(18px, 2.2vw, 23px)/1.4 var(--font-body);
  letter-spacing: -0.01em;
}

.idea__input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.idea__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.idea__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: #564d62;
  color: #fff;
}

.chip .ic {
  width: 14px;
  height: 14px;
  color: var(--pink);
}

.chip.is-on {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.chip--more {
  border-style: dashed;
  color: var(--muted);
}

.idea__opts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.select select {
  -webkit-appearance: none;
  appearance: none;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03) var(--caret) no-repeat right 8px center / 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.select option {
  background: var(--ink);
  color: #fff;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch__track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-2);
  transition: background 0.25s;
}

.switch__track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch__track {
  background: var(--grad);
}

.switch input:checked + .switch__track::after {
  transform: translateX(14px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.idea__go {
  height: 40px;
  padding: 0 18px;
}

/* The estimate that opens under the idea box */
.plan {
  width: 100%;
  max-width: 920px;
  margin-top: 14px;
  padding: 22px 22px 20px;
  text-align: left;
  background: rgba(22, 19, 27, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: plan-in 0.5s var(--ease);
}

.plan[hidden] {
  display: none;
}

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

.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.plan__title {
  flex: 1 1 260px;
  font: 600 18px/1.3 var(--font-head);
  letter-spacing: -0.01em;
}

.plan__meta {
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
}

.plan__rows {
  margin-top: 14px;
}

.plan__rows li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  animation: row-in 0.4s var(--ease) both;
}

.plan__rows li span:nth-child(2) {
  color: var(--muted);
  font-size: 13px;
}

.plan__rows li b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

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

.plan__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0 12px;
  color: var(--text-2);
  font-size: 14px;
}

.plan__total strong {
  font: 700 34px/1 var(--font-head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.plan__foot p {
  flex: 1 1 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ strip */

.strip {
  position: relative;
  padding-top: 10px;
}

.strip__ruler {
  position: relative;
  height: 34px;
  border-block: 1px solid var(--line);
  background: #110e15;
  overflow: hidden;
}

.strip__ticks {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px) 0 100% / 120px 14px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px) 0 100% / 12px 7px repeat-x;
  animation: ticks 8s linear infinite;
}

@keyframes ticks {
  to { background-position: -120px 100%, -120px 100%; }
}

.strip__head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 100%;
  z-index: 2;
}

.strip__tc {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  padding: 3px 8px;
  background: var(--grad);
  color: #fff;
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(50% + 5px) 100%, 50% calc(100% + 5px), calc(50% - 5px) 100%, 0 100%);
}

/* The playhead runs down through both rows. */
.strip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44px;
  bottom: 58px;
  width: 2px;
  margin-left: -1px;
  background: var(--grad-v);
  box-shadow: 0 0 18px rgba(255, 45, 135, 0.8);
  z-index: 2;
  pointer-events: none;
}

.strip__rows {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.strip__row {
  overflow: hidden;
}

.strip__track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-right: 12px;
  animation: marquee 80s linear infinite;
}

.strip__row--reverse .strip__track {
  animation-duration: 95s;
  animation-direction: reverse;
}

.strip__rows:hover .strip__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.strip__track img {
  width: clamp(200px, 21vw, 300px);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel);
}

.strip__track figure {
  position: relative;
  margin: 0;
}

.strip__track figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(14, 12, 18, 0.78);
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.strip__note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 4px 0;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(84px, 11vw, 150px) 0;
}

/* The raster of the brand: a faint dot grid behind every section. */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.section__head h2 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
}

/* A heading that needs the full width, with the lead under it. */
.section__head--stack {
  display: grid;
  gap: 22px;
}

.section__head--stack .section__lead {
  justify-self: start;
  max-width: 62ch;
}

.section__lead {
  max-width: 46ch;
  justify-self: end;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ----------------------------------------------------------- how it works */

.how {
  background: radial-gradient(50% 40% at 0% 12%, rgba(255, 45, 135, 0.08), transparent 70%);
}

.steps {
  position: relative;
  display: grid;
  gap: clamp(72px, 9vw, 128px);
  margin-top: clamp(56px, 7vw, 88px);
}

.steps__rail {
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--line);
}

.steps__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: var(--grad-v);
  box-shadow: 0 0 14px rgba(255, 45, 135, 0.6);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: 0 44px;
  align-items: center;
}

.step__node {
  align-self: start;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font: 700 13px/1 var(--font-mono);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.step.is-active .step__node,
.step.is-past .step__node {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.step__kicker {
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}

.step__title {
  margin-top: 14px;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.step__text > p:not(.step__kicker) {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.step__text {
  transition: opacity 0.5s;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.tags li {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.025);
}

.step__demo {
  position: relative;
}

/* A soft brand glow behind each app window. */
.step__demo::before {
  content: "";
  position: absolute;
  inset: 12% 8% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 45, 135, 0.22), transparent), radial-gradient(closest-side at 80% 70%, rgba(255, 122, 26, 0.18), transparent);
  filter: blur(30px);
}

/* ------------------------------------------------------------ app mockups */

.mock {
  container-type: inline-size;
  position: relative;
  background: #15121a;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  height: 5.6cqw;
  min-height: 26px;
  padding: 0 2.2cqw;
  background: #110e15;
  border-bottom: 1px solid var(--line);
  font: 600 max(10px, 1.75cqw)/1 var(--font-body);
  color: var(--muted);
  white-space: nowrap;
}

.mock__bar > i {
  width: max(7px, 1.4cqw);
  height: max(7px, 1.4cqw);
  border-radius: 50%;
  background: #2f2937;
}

.mock__app {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-left: 1.4cqw;
  color: #fff;
}

.mock__s {
  width: 1.3em;
  height: 1.3em;
  color: var(--pink);
}

.mock__crumb {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__crumb::before {
  content: "/";
  margin: 0 0.6em;
  color: var(--dim);
}

/* Everything inside a mockup is sized in em, and the em follows the width of the window. */
.mock__scale {
  position: relative;
  font-size: 2.05cqw;
  line-height: 1.4;
}

.mchip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.1em;
  padding: 0 0.8em;
  border: 1px solid var(--line-2);
  border-radius: 0.45em;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.mchip .ic {
  width: 1em;
  height: 1em;
  color: var(--pink);
}

.mchip.is-on {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.mchip--ghost {
  border-style: dashed;
  color: var(--muted);
}

.mtag {
  display: inline-flex;
  align-items: center;
  height: 1.9em;
  padding: 0 0.7em;
  background: var(--grad);
  color: #fff;
  font: 700 0.66em/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 0.5em) 0, 100% 0.5em, 100% 100%, 0 100%);
}

.mtag--line {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  clip-path: none;
  border-radius: 0.4em;
  height: 2.2em;
}

.mview__cap {
  margin-top: 0.8em;
  font: 500 0.68em/1.3 var(--font-mono);
  color: var(--muted);
}

.mcursor {
  position: absolute;
  left: 60%;
  top: 110%;
  width: 1.7em;
  height: 1.7em;
  background: var(--cursor) no-repeat center / contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: left 0.9s var(--ease), top 0.9s var(--ease), opacity 0.3s, transform 0.15s;
}

.mcursor.is-on {
  opacity: 1;
}

.mcursor.is-click {
  transform: scale(0.82);
}

/* Mockup 1: New video */
.mnew {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.4em;
  padding: 1.6em;
}

.mnew__q {
  margin-top: 0.8em;
  font: 700 1.55em/1.1 var(--font-head);
  letter-spacing: -0.03em;
}

.mnew__input {
  display: flex;
  align-items: center;
  height: 2.9em;
  margin-top: 0.8em;
  padding: 0 0.9em;
  background: #fff;
  border-radius: 0.5em;
  color: var(--ink);
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin-left: 1px;
  background: var(--pink);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.mnew__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45em;
  margin-top: 1em;
}

.mnew__k {
  width: 4.4em;
  font-size: 0.8em;
  color: var(--muted);
}

.mnew__unit {
  font-size: 0.8em;
  color: var(--muted);
}

.mnew__pick {
  display: flex;
  align-items: center;
  gap: 0.4em;
  height: 1.6em;
  margin: 0.5em 0 0 3.5em;
  font-size: 0.78em;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(-0.3em);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.mnew__pick b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mnew__pick .ic {
  width: 1em;
  height: 1em;
  color: var(--pink);
}

.mnew__pick.is-on {
  opacity: 1;
  transform: none;
}

.mseg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 0.45em;
  overflow: hidden;
}

.mseg span {
  padding: 0.38em 0.78em;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--muted);
}

.mseg span + span {
  border-left: 1px solid var(--line-2);
}

.mseg .on {
  background: var(--grad);
  color: #fff;
}

.mnew__est {
  display: flex;
  flex-direction: column;
  padding: 1.1em;
  background: #1b1721;
  border: 1px solid var(--line);
  border-radius: 0.7em;
}

.mnew__rows {
  margin-top: 0.7em;
}

.mnew__rows li {
  display: flex;
  justify-content: space-between;
  padding: 0.42em 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8em;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.mnew__rows li.is-on {
  opacity: 1;
  transform: none;
}

.mnew__rows b {
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.mnew__rows .free {
  color: var(--green);
}

.mnew__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 0.7em;
  font-size: 0.8em;
  color: var(--muted);
}

.mnew__total strong {
  font: 700 2.3em/1 var(--font-head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mnew__cap {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.3em;
  font-size: 0.7em;
  color: var(--muted);
}

.mnew__cap .ic {
  width: 1em;
  height: 1em;
}

.mnew__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  height: 2.7em;
  margin-top: 0.8em;
  background: var(--grad);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 0.6em) 0, 100% 0.6em, 100% 100%, 0 100%);
  transition: transform 0.15s, filter 0.2s;
}

.mnew__go.is-press {
  transform: scale(0.95);
  filter: brightness(1.15);
}

.mnew__go.is-done {
  background: var(--green);
}

/* Mockup 2: the pipeline */
.mpipe {
  display: grid;
  grid-template-columns: 14.5em minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 1em 1.2em;
  padding: 1.3em;
  min-height: 31em;
}

.mpipe__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.mpipe__sub {
  font: 500 0.7em/1 var(--font-mono);
  color: var(--muted);
}

.mpipe__steps {
  counter-reset: pipe;
  display: grid;
  align-content: start;
  gap: 0.08em;
}

.mpipe__steps li {
  counter-increment: pipe;
  display: grid;
  grid-template-columns: 1.25em 1.7em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2em;
  padding: 0.28em 0.5em;
  border-radius: 0.4em;
  font-size: 0.8em;
  color: var(--dim);
  transition: background 0.3s, color 0.3s;
}

.mpipe__steps li::before {
  content: counter(pipe, decimal-leading-zero);
  grid-column: 2;
  grid-row: 1;
  font: 500 0.78em/1 var(--font-mono);
  color: var(--dim);
}

.mpipe__steps li i {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
}

.mpipe__steps li span {
  grid-column: 3;
  font-weight: 600;
}

.mpipe__steps li em {
  grid-column: 4;
  font: normal 500 0.78em/1 var(--font-mono);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s;
}

.mpipe__steps li.is-run {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.mpipe__steps li.is-run i {
  border-color: rgba(255, 45, 135, 0.25);
  border-top-color: var(--pink);
  animation: spin 0.7s linear infinite;
}

.mpipe__steps li.is-done {
  color: var(--text-2);
}

.mpipe__steps li.is-done i {
  border: 0;
  background: var(--grad);
}

.mpipe__steps li.is-done i::after {
  content: "";
  position: absolute;
  left: 0.33em;
  top: 0.2em;
  width: 0.25em;
  height: 0.45em;
  border: solid #fff;
  border-width: 0 0.14em 0.14em 0;
  transform: rotate(45deg);
}

.mpipe__steps li.is-done em {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mpipe__stage {
  display: flex;
  flex-direction: column;
  padding: 1.1em;
  background: #1b1721;
  border: 1px solid var(--line);
  border-radius: 0.8em;
  min-width: 0;
}

.mpipe__now {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font: 500 0.7em/1 var(--font-mono);
  color: var(--muted);
}

.mpipe__now b {
  font: 700 1.9em/1 var(--font-head);
  letter-spacing: -0.03em;
  color: #fff;
}

.mlive {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-left: auto;
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mlive i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.3; }
}

.mpipe__views {
  position: relative;
  flex: 1;
  margin-top: 1em;
  min-height: 15em;
}

.mview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  pointer-events: none;
}

.mview.is-on {
  opacity: 1;
  transform: none;
}

/* Children of a view come in one after the other. */
.mview.is-on .stagger > * {
  animation: row-in 0.4s var(--ease) both;
}

.msources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.msources li {
  padding: 0.6em 0.7em;
  background: #221d29;
  border: 1px solid var(--line);
  border-radius: 0.5em;
  font-size: 0.75em;
  color: var(--text-2);
  opacity: 0;
}

.msources b {
  display: block;
  margin-bottom: 0.2em;
  font-size: 1.05em;
  color: #fff;
}

.mview.is-on .msources li {
  animation: row-in 0.35s var(--ease) both;
  opacity: 1;
}

.mview.is-on .msources li:nth-child(2) { animation-delay: 0.12s; }
.mview.is-on .msources li:nth-child(3) { animation-delay: 0.24s; }
.mview.is-on .msources li:nth-child(4) { animation-delay: 0.36s; }
.mview.is-on .msources li:nth-child(5) { animation-delay: 0.48s; }
.mview.is-on .msources li:nth-child(6) { animation-delay: 0.6s; }

.mchapters li {
  display: flex;
  gap: 1em;
  padding: 0.75em 0.2em;
  border-bottom: 1px solid var(--line);
  font: 600 1em/1.2 var(--font-head);
}

.mchapters span {
  width: 3em;
  font: 500 0.75em/1.6 var(--font-mono);
  color: var(--pink);
}

.mview.is-on .mchapters li {
  animation: row-in 0.35s var(--ease) both;
}

.mview.is-on .mchapters li:nth-child(2) { animation-delay: 0.15s; }
.mview.is-on .mchapters li:nth-child(3) { animation-delay: 0.3s; }

.mscript p {
  font-size: 0.86em;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 0.7em;
}

.mview.is-on .mscript p {
  animation: type-in 0.8s steps(24) both;
}

.mview.is-on .mscript p:nth-child(2) { animation-delay: 0.35s; }
.mview.is-on .mscript p:nth-child(3) { animation-delay: 0.7s; }

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

.mfact p:first-child {
  font: 600 1.3em/1.45 var(--font-head);
  letter-spacing: -0.01em;
}

.mfact s,
.fact s {
  text-decoration: none;
  position: relative;
  color: var(--muted);
}

.mfact s::after,
.fact s::after {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  height: 0.09em;
  width: 0;
  background: var(--pink);
}

.mfact ins,
.fact ins {
  text-decoration: none;
  padding: 0 0.15em;
  color: #fff;
  background: linear-gradient(transparent 58%, rgba(61, 220, 151, 0.35) 58%);
  opacity: 0;
}

.mview.is-on .mfact s::after,
.fact.is-in s::after {
  animation: strike 0.5s 0.4s var(--ease) forwards;
}

.mview.is-on .mfact ins,
.fact.is-in ins {
  animation: fade-in 0.5s 0.9s forwards;
}

@keyframes strike {
  to { width: 100%; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

.mfact__src,
.fact__src {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1em;
  font: 500 0.72em/1.3 var(--font-mono);
  color: var(--green);
}

.mfact__src .ic,
.fact__src .ic {
  width: 1.1em;
  height: 1.1em;
}

.mchecks li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9em;
}

.mchecks .ic {
  width: 1.3em;
  height: 1.3em;
  padding: 0.2em;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}

.mview.is-on .mchecks li {
  animation: row-in 0.35s var(--ease) both;
}

.mview.is-on .mchecks li:nth-child(2) { animation-delay: 0.2s; }
.mview.is-on .mchecks li:nth-child(3) { animation-delay: 0.4s; }

.mwave {
  display: flex;
  align-items: center;
  gap: 0.28em;
  height: 8em;
}

.mwave i {
  flex: 1;
  height: 20%;
  border-radius: 1em;
  background: var(--grad-v);
}

.mview.is-on .mwave i {
  animation: wave 0.9s ease-in-out infinite alternate;
}

.mwave i:nth-child(3n) { animation-delay: -0.3s !important; }
.mwave i:nth-child(3n + 1) { animation-delay: -0.6s !important; }
.mwave i:nth-child(4n) { animation-duration: 0.7s !important; }
.mwave i:nth-child(5n) { animation-duration: 1.1s !important; }

@keyframes wave {
  from { height: 14%; }
  to { height: 92%; }
}

.mwords {
  font: 700 1.5em/1.35 var(--font-head);
  letter-spacing: -0.02em;
  color: var(--dim);
}

.mview.is-on .mwords span {
  animation: word-on 0.2s forwards;
}

.mview.is-on .mwords span:nth-child(1) { animation-delay: 0.1s; }
.mview.is-on .mwords span:nth-child(2) { animation-delay: 0.3s; }
.mview.is-on .mwords span:nth-child(3) { animation-delay: 0.45s; }
.mview.is-on .mwords span:nth-child(4) { animation-delay: 0.6s; }
.mview.is-on .mwords span:nth-child(5) { animation-delay: 0.85s; }
.mview.is-on .mwords span:nth-child(6) { animation-delay: 1.05s; }
.mview.is-on .mwords span:nth-child(7) { animation-delay: 1.25s; }
.mview.is-on .mwords span:nth-child(8) { animation-delay: 1.4s; }

@keyframes word-on {
  to { color: #fff; }
}

.mtiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45em;
}

.mtiles img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.4em;
  opacity: 0;
}

.mview.is-on .mtiles img {
  animation: pop-in 0.35s var(--ease) both;
  opacity: 1;
}

.mview.is-on .mtiles img:nth-child(2) { animation-delay: 0.1s; }
.mview.is-on .mtiles img:nth-child(3) { animation-delay: 0.2s; }
.mview.is-on .mtiles img:nth-child(4) { animation-delay: 0.3s; }
.mview.is-on .mtiles img:nth-child(5) { animation-delay: 0.4s; }
.mview.is-on .mtiles img:nth-child(6) { animation-delay: 0.5s; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8); }
}

.mmusic {
  display: flex;
  align-items: center;
  gap: 1em;
}

.meq {
  display: flex;
  align-items: flex-end;
  gap: 0.25em;
  height: 5em;
  flex: 1;
}

.meq i {
  flex: 1;
  height: 30%;
  background: var(--grad-v);
  border-radius: 0.2em 0.2em 0 0;
}

.mview.is-on .meq i {
  animation: wave 0.5s ease-in-out infinite alternate;
}

.meq i:nth-child(2n) { animation-delay: -0.2s !important; }
.meq i:nth-child(3n) { animation-delay: -0.35s !important; animation-duration: 0.65s !important; }

.mthumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
  padding-top: 0.6em;
}

.mthumbs img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.4em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.mview.is-on .mthumbs img {
  animation: pop-in 0.35s var(--ease) both;
}

.mview.is-on .mthumbs img:nth-child(2) { animation-delay: 0.12s; }
.mview.is-on .mthumbs img:nth-child(3) { animation-delay: 0.24s; }

.mview.is-on .mthumbs .is-pick {
  animation: pop-in 0.35s 0.12s var(--ease) both, pick 0.4s 0.8s var(--ease) forwards;
}

@keyframes pick {
  to { transform: scale(1.1); box-shadow: 0 0 0 0.2em var(--pink), 0 1em 2em rgba(0, 0, 0, 0.5); }
}

.mrender {
  display: grid;
  gap: 0.8em;
  padding-top: 2em;
}

.mrender__bar {
  height: 0.7em;
  border-radius: 1em;
  background: var(--line);
  overflow: hidden;
}

.mrender__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
}

.mview.is-on .mrender__bar i {
  animation: fill 1.1s ease-in-out forwards;
}

@keyframes fill {
  to { width: 100%; }
}

.mrender__pct {
  font: 600 1.1em/1 var(--font-head);
}

.mmeta__t {
  font: 700 1.25em/1.25 var(--font-head);
  letter-spacing: -0.02em;
}

.mmeta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.9em;
}

.mmeta__tags span {
  padding: 0.3em 0.6em;
  border-radius: 0.4em;
  background: #221d29;
  font: 500 0.72em/1.2 var(--font-mono);
  color: var(--text-2);
}

.mview.is-on .mmeta__t {
  animation: type-in 0.8s steps(30) both;
}

.mfiles li,
.files li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.7em;
  margin-bottom: 0.4em;
  background: #221d29;
  border: 1px solid var(--line);
  border-radius: 0.5em;
  font: 500 0.85em/1 var(--font-mono);
}

.mfiles .ic,
.files .ic {
  width: 1.2em;
  height: 1.2em;
  color: var(--pink);
}

.mview.is-on .mfiles li {
  animation: row-in 0.3s var(--ease) both;
}

.mview.is-on .mfiles li:nth-child(2) { animation-delay: 0.1s; }
.mview.is-on .mfiles li:nth-child(3) { animation-delay: 0.2s; }
.mview.is-on .mfiles li:nth-child(4) { animation-delay: 0.3s; }

.mpipe__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  font: 500 0.7em/1.2 var(--font-mono);
  color: var(--muted);
}

.mpipe__cost {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mpipe__cost strong {
  font: 700 3.2em/1 var(--font-head);
  letter-spacing: -0.03em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mockup 3: the editor */
.medit {
  display: grid;
  gap: 0.9em;
  padding: 1.1em;
}

.medit__top {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 0.9em;
}

.medit__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.6em;
  overflow: hidden;
  background: #000;
}

.medit__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 14s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.14) translate(-3%, 2%); }
}

.medit__loc {
  position: absolute;
  left: 0.9em;
  top: 0.9em;
  padding: 0.35em 0.6em 0.35em 0.7em;
  border-left: 0.18em solid var(--green);
  background: rgba(8, 10, 16, 0.6);
  font: 500 0.6em/1.35 var(--font-mono);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.medit__loc b {
  display: block;
  color: #fff;
}

.medit__cap {
  position: absolute;
  left: 50%;
  bottom: 1.2em;
  transform: translateX(-50%);
  padding: 0.25em 0.6em;
  border-radius: 0.3em;
  background: rgba(10, 12, 18, 0.62);
  font: 700 0.95em/1.2 var(--font-body);
  color: #fff;
  white-space: nowrap;
}

.medit__cap span {
  transition: color 0.15s;
}

.medit__cap span.is-on {
  color: var(--green);
}

.medit__cap span.is-edit {
  color: #fff;
  background: rgba(255, 45, 135, 0.55);
  border-radius: 0.2em;
  padding: 0 0.15em;
}

.medit__time {
  position: absolute;
  right: 0.7em;
  bottom: 0.45em;
  font: 500 0.55em/1 var(--font-mono);
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.medit__side {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 0.9em;
  background: #1b1721;
  border: 1px solid var(--line);
  border-radius: 0.6em;
  font-size: 0.8em;
  min-width: 0;
}

.medit__k {
  display: block;
  margin-bottom: 0.35em;
  font: 600 0.78em/1 var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.medit__text {
  line-height: 1.45;
  color: var(--text-2);
}

.medit__text mark {
  padding: 0 0.15em;
  border-radius: 0.2em;
  background: transparent;
  color: inherit;
  transition: background 0.3s, color 0.3s;
}

.medit__text mark.is-edit {
  background: rgba(255, 45, 135, 0.28);
  color: #fff;
  box-shadow: inset 0 -0.12em 0 var(--pink);
}

.mselect {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.35em 0.6em;
  border: 1px solid var(--line-2);
  border-radius: 0.4em;
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s;
}

.mselect::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border: solid var(--muted);
  border-width: 0 0.12em 0.12em 0;
  transform: rotate(45deg) translateY(-0.15em);
}

.mselect.is-changed {
  border-color: var(--orange);
  background: rgba(255, 122, 26, 0.12);
}

.medit__mix label {
  display: grid;
  grid-template-columns: 3.6em 1fr;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.35em;
  font-size: 0.85em;
  color: var(--text-2);
}

.mslider {
  position: relative;
  height: 0.4em;
  border-radius: 1em;
  background: var(--line);
}

.mslider i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--v, 70%);
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.9s var(--ease);
}

.mslider i::after {
  content: "";
  position: absolute;
  right: -0.45em;
  top: 50%;
  width: 0.9em;
  height: 0.9em;
  margin-top: -0.45em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.4);
}

.mfree {
  margin-top: auto;
  font: 600 0.78em/1 var(--font-mono);
  color: var(--green);
}

.medit__tl {
  position: relative;
  padding: 0.5em 0.6em 0.6em 0;
  background: #121017;
  border: 1px solid var(--line);
  border-radius: 0.6em;
  overflow: hidden;
}

.mtl__ruler {
  display: flex;
  justify-content: space-between;
  margin-left: 5em;
  padding-bottom: 0.35em;
  font: 500 0.55em/1 var(--font-mono);
  color: var(--dim);
}

.mtl__track {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  align-items: center;
  height: 1.75em;
}

.mtl__track--pics {
  height: 2.6em;
}

.mtl__name {
  padding-left: 0.9em;
  font: 500 0.58em/1 var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mtl__lane {
  display: flex;
  gap: 2px;
  height: 1.3em;
  border-radius: 0.3em;
  overflow: hidden;
}

.mtl__track--pics .mtl__lane {
  height: 2.3em;
}

.mtl__track--pics img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.mtl__blocks i {
  height: 100%;
  border-radius: 0.2em;
  background: rgba(255, 45, 135, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 135, 0.6);
}

.mtl__blocks .w1 { flex: 1; }
.mtl__blocks .w2 { flex: 2; }
.mtl__blocks .w3 { flex: 3; }

.mtl__wave {
  align-items: center;
  gap: 1px;
}

.mtl__wave i {
  flex: 1;
  min-width: 1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.mtl__music span {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 0.6em;
  border-radius: 0.2em;
  background: rgba(255, 122, 26, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.55);
  font: 600 0.55em/1 var(--font-body);
  color: #ffd2b0;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.3s;
}

.mtl__music span.is-changed {
  background: rgba(255, 122, 26, 0.5);
  color: #fff;
}

.mtl__sfx {
  justify-content: space-around;
  align-items: center;
}

.mtl__sfx i {
  width: 0.55em;
  height: 0.55em;
  background: var(--pink);
  transform: rotate(45deg);
}

.mtl__playhead {
  position: absolute;
  top: 0.35em;
  bottom: 0.35em;
  left: calc(5em + var(--p, 0) * (100% - 5.6em));
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0.6em rgba(255, 255, 255, 0.7);
}

.mtl__playhead::before {
  content: "";
  position: absolute;
  left: -0.35em;
  top: -0.1em;
  border: 0.36em solid transparent;
  border-top: 0.5em solid var(--pink);
}

.medit__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.medit__status {
  font: 500 0.72em/1 var(--font-mono);
  color: var(--muted);
}

.medit__status.is-done {
  color: var(--green);
}

.medit__render {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: 2.6em;
  padding: 0 1.2em;
  background: var(--grad);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 0.6em) 0, 100% 0.6em, 100% 100%, 0 100%);
  transition: transform 0.15s;
}

.medit__render::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--r, 0) * 100%);
  background: rgba(255, 255, 255, 0.28);
}

.medit__render.is-press {
  transform: scale(0.95);
}

/* ----------------------------------------------------------------- styles */

.styles {
  background: radial-gradient(45% 35% at 100% 30%, rgba(255, 122, 26, 0.07), transparent 70%);
}

.tabs {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 72px);
}

.tabs__list {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.tab[aria-selected="true"] {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--grad-v);
  border-radius: 0 3px 3px 0;
}

.tab__name {
  font: 600 19px/1.2 var(--font-head);
  letter-spacing: -0.02em;
}

.tab__desc {
  display: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.tab[aria-selected="true"] .tab__desc {
  display: block;
}

.tab__bar {
  display: none;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.tab[aria-selected="true"] .tab__bar {
  display: block;
}

.tab__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad);
}

.tabs.is-auto .tab[aria-selected="true"] .tab__bar i {
  animation: fill var(--tab-time, 9s) linear forwards;
}

.tabs.is-paused .tab[aria-selected="true"] .tab__bar i {
  animation-play-state: paused;
}

.tab--edit {
  margin-top: 14px;
}

.tab--edit::after {
  content: "Your footage";
  position: absolute;
  left: 18px;
  top: -12px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel {
  display: grid;
  gap: 14px;
  animation: panel-in 0.5s var(--ease);
}

.panel[hidden] {
  display: none;
}

.panel:focus-visible {
  outline-offset: 6px;
  border-radius: 16px;
}

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

.panel__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.panel__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel__badge,
.panel__real,
.example__badge {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 12, 18, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.panel__badge,
.example__badge {
  left: 14px;
}

.panel__real {
  right: 14px;
  color: var(--text-2);
}

.panel__real i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.panel__info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.panel__info--stories {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.panel__info--stories .minis--row {
  grid-column: 1 / -1;
}

.panel__col,
.panel__example,
.panel__look {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-2);
}

.chips--quiet li {
  background: transparent;
  border-style: dashed;
}

.panel__for {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.panel__for b {
  color: var(--text);
  font-weight: 600;
}

.minis {
  display: grid;
  gap: 10px;
}

.minis li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.minis img {
  width: 78px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.minis--row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.minis--row li {
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
}

.minis--row img {
  width: 100%;
  border-radius: 8px;
}

.panel__example {
  display: grid;
  gap: 12px;
  align-content: start;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.panel__example:hover {
  border-color: #4a4155;
  transform: translateY(-2px);
}

.panel__example img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.panel__ex-text {
  display: grid;
  gap: 6px;
}

.panel__ex-text .mlabel {
  margin-bottom: 0;
}

.panel__ex-text b {
  font: 600 15px/1.35 var(--font-head);
  letter-spacing: -0.01em;
}

.panel__ex-text small {
  font: 500 12px/1 var(--font-mono);
  color: var(--pink);
}

.panel__look {
  padding: 10px;
  display: grid;
  place-items: center;
}

.panel__look img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font: 700 19px/1 var(--font-head);
  letter-spacing: -0.02em;
}

.facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.panel__col--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(160deg, rgba(255, 45, 135, 0.14), rgba(255, 122, 26, 0.08) 60%, var(--panel));
}

.panel__big {
  font: 700 26px/1.05 var(--font-head);
  letter-spacing: -0.035em;
}

.panel__col--cta .btn {
  align-self: flex-start;
}

/* --------------------------------------------------------------- features */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 390px;
  padding: 26px;
  background: linear-gradient(180deg, #1a1620, #141118);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}

/* A glow that follows the pointer. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 45, 135, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card--wide {
  grid-column: span 4;
  flex-direction: row;
  align-items: stretch;
}

.card--wide .card__text {
  flex: 1 1 0;
}

.card--wide .card__visual {
  flex: 1.3 1 0;
  margin-top: 0;
}

.card__text h3 {
  margin: 12px 0 10px;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.card__text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.card .mlabel {
  font-size: 11px;
}

.card__visual {
  position: relative;
  margin-top: auto;
}

/* Your voice */
.rewrite {
  display: grid;
  gap: 12px;
  height: 100%;
  align-content: center;
  padding: 18px;
  background: #120f16;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
}

.rewrite__line {
  position: relative;
  padding: 14px 14px 14px 16px;
  border-radius: 10px;
  line-height: 1.5;
}

.rewrite__line--old {
  background: rgba(255, 45, 135, 0.07);
  color: var(--muted);
}

.rewrite__line--old s {
  text-decoration-color: rgba(255, 45, 135, 0.8);
  text-decoration-thickness: 2px;
}

.rewrite__line--new {
  background: rgba(61, 220, 151, 0.07);
  color: #fff;
  font-weight: 500;
}

.rewrite__flag {
  display: block;
  margin-bottom: 6px;
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.rewrite__flag--ok {
  color: var(--green);
}

.js .rewrite__line--new {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s 0.5s, transform 0.6s 0.5s var(--ease);
}

.js .rewrite.is-in .rewrite__line--new {
  opacity: 1;
  transform: none;
}

.rewrite__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rewrite__checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--text-2);
}

.rewrite__checks .ic {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
}

/* Price first */
.meter {
  padding: 18px;
  background: #120f16;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.meter__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}

.meter__top strong {
  font: 700 34px/1 var(--font-head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.meter__bar {
  position: relative;
  height: 10px;
  margin-top: 14px;
  border-radius: 10px;
  background: var(--line);
}

.meter__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.6s var(--ease);
}

.meter__est {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 66.7%;
  width: 2px;
  background: #fff;
}

.meter__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
}

.meter__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-2);
}

/* Research */
.fact {
  padding: 16px;
  background: #120f16;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fact p:first-child {
  font: 600 17px/1.45 var(--font-head);
}

.fact__src {
  font-size: 12px;
}

.archives {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.archives li {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font: 600 11.5px/1.2 var(--font-mono);
  color: var(--text-2);
}

/* Captions */
.capdemo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.capdemo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.capdemo__name {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(14, 12, 18, 0.75);
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capdemo__line {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.2;
}

.capdemo__line span {
  display: inline-block;
  transition: color 0.12s, transform 0.12s, background 0.12s;
}

/* Five of the ten presets, drawn in CSS. */
.cap-bold {
  font: 900 22px/1 var(--font-body);
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
}

.cap-bold span.is-on {
  color: #ffd60a;
  transform: scale(1.08);
}

.cap-karaoke {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  font: 600 17px/1.2 var(--font-body);
  color: rgba(255, 255, 255, 0.55);
}

.cap-karaoke span.is-on {
  color: #fff;
}

.cap-neon {
  font: 700 21px/1 var(--font-head);
  color: #fff;
  text-shadow: 0 0 8px #ff2d87, 0 0 18px #ff2d87;
}

.cap-neon span {
  opacity: 0.35;
}

.cap-neon span.is-on {
  opacity: 1;
}

.cap-box {
  font: 800 19px/1 var(--font-body);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cap-box span {
  padding: 3px 6px;
  border-radius: 5px;
}

.cap-box span.is-on {
  background: var(--pink);
  text-shadow: none;
}

.cap-type {
  font: 600 17px/1 var(--font-mono);
  color: #fff;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.6);
}

.cap-type span {
  opacity: 0;
}

.cap-type span.is-on,
.cap-type span.is-past {
  opacity: 1;
}

/* Thumbnails */
.fan {
  position: relative;
  height: 190px;
}

.fan img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.8s var(--ease);
  transform: translate(-50%, -50%);
}

.fan.is-in img:nth-child(1) { transform: translate(-82%, -58%) rotate(-9deg); }
.fan.is-in img:nth-child(2) { transform: translate(-18%, -58%) rotate(8deg); }
.fan.is-in img:nth-child(3) { transform: translate(-50%, -38%) rotate(-1deg) scale(1.04); box-shadow: 0 0 0 3px var(--pink), 0 24px 50px rgba(0, 0, 0, 0.6); }

.fan__pick {
  position: absolute;
  right: 6%;
  bottom: 2%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 7px;
  background: var(--grad);
  color: #fff;
  font: 700 12px/1 var(--font-body);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.8s, transform 0.4s 0.8s var(--ease);
}

.fan__pick .ic {
  width: 14px;
  height: 14px;
}

.fan.is-in .fan__pick {
  opacity: 1;
  transform: none;
}

/* Shapes */
.shapes {
  display: grid;
  place-items: center;
  height: 200px;
  position: relative;
}

.shapes__frame {
  width: 240px;
  height: 135px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--pink), 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: width 0.7s var(--ease), height 0.7s var(--ease);
}

.shapes__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shapes__frame[data-shape="9:16"] { width: 96px; height: 170px; }
.shapes__frame[data-shape="1:1"] { width: 160px; height: 160px; }
.shapes__frame[data-shape="4:5"] { width: 136px; height: 170px; }

.shapes__label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Local */
.local {
  display: grid;
  gap: 8px;
}

.local__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #120f16;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}

.local__bar {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}

.local__bar i {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--grad);
  animation: local-bar 2.4s ease-in-out infinite;
}

@keyframes local-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

.local__row b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.local__lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 500;
}

.local__lock .ic {
  width: 15px;
  height: 15px;
  color: var(--pink);
}

.local__path {
  grid-column: 2 / -1;
  font: 500 12px/1.3 var(--font-mono);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Files */
.files li {
  font-size: 13px;
}

.files li span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

/* --------------------------------------------------------------- examples */

/* The three numbers above the examples. */
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(40px, 5vw, 60px) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.proof div {
  padding: 24px 28px 26px;
  background: linear-gradient(180deg, #1a1620, #151219);
}

.proof dt {
  font: 700 clamp(40px, 4.6vw, 60px)/1 var(--font-head);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof dd {
  max-width: 28ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

.examples__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.examples__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.example {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.example__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.example__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* What the loop above shows, as a line over the title (on the picture it covered the captions). */
.example__clip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -8px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.example__clip .ic {
  width: 10px;
  height: 10px;
  color: var(--pink);
}

.example__body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.example h3 {
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stats div {
  padding: 12px 14px;
  background: #16131b;
}

.stats dt {
  font: 700 24px/1 var(--font-head);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats dd {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}

.example__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.example__thumbs img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- pricing */

.offer {
  --n: 28px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
}

.offer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-surface);
}

.offer__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.34) 1.8px, transparent 2.3px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.12) 50%, #000 100%);
  mask-image: linear-gradient(105deg, #000 0%, rgba(0, 0, 0, 0.12) 50%, #000 100%);
}

.offer__title {
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.offer__solved {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0.02em 0.2em 0.08em;
  background: #fff;
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 0.22em) 0, 100% 0.22em, 100% 100%, 0 100%);
}

.offer__lead {
  margin-top: 26px;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.offer__warn {
  margin-top: 18px;
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.offer__card {
  --n: 22px;
  padding: clamp(24px, 3vw, 34px);
  background: #fff;
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, 0 100%);
}

.offer__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 16px;
}

.offer__price strong {
  font: 700 76px/0.9 var(--font-head);
  letter-spacing: -0.05em;
}

.offer__price span {
  font-size: 20px;
  font-weight: 600;
  color: #6e6878;
}

.offer__note {
  margin-top: 8px;
  font-size: 14px;
  color: #6e6878;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
}

.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.45;
}

.checks .ic {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}

.costs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 16px 40px;
  align-items: start;
  margin-top: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.costs__head h3 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.costs__head p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.costs__table-wrap {
  overflow-x: auto;
}

.costs__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.costs__table th,
.costs__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.costs__table thead th {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.costs__table tbody th {
  font-weight: 600;
}

.costs__table td {
  font: 600 17px/1 var(--font-head);
}

.costs__table td:last-child {
  color: var(--text-2);
}

.costs__table tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(255, 45, 135, 0.1), rgba(255, 122, 26, 0.06));
}

.costs__foot {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ final */

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(120px, 16vw, 200px) 0;
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 50% 55%, rgba(255, 45, 135, 0.22), transparent 70%),
    radial-gradient(35% 40% at 55% 60%, rgba(255, 122, 26, 0.16), transparent 70%);
}

.final__collage {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.final__collage img {
  position: absolute;
  width: clamp(130px, 15vw, 230px);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0.5;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg));
  transition: opacity 0.4s;
}

.final__collage img:nth-child(1) { left: 4%; top: 10%; --r: -6deg; }
.final__collage img:nth-child(2) { left: 18%; top: 62%; --r: 5deg; }
.final__collage img:nth-child(3) { left: -2%; top: 44%; --r: 3deg; opacity: 0.35; }
.final__collage img:nth-child(4) { right: 6%; top: 8%; --r: 7deg; }
.final__collage img:nth-child(5) { right: 17%; top: 66%; --r: -4deg; }
.final__collage img:nth-child(6) { right: -3%; top: 40%; --r: -8deg; opacity: 0.35; }
.final__collage img:nth-child(7) { left: 30%; top: 2%; --r: 2deg; opacity: 0.25; }
.final__collage img:nth-child(8) { right: 34%; top: 76%; --r: -2deg; opacity: 0.25; }

.final__inner h2 {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.final__inner p {
  max-width: 44ch;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--text-2);
}

.final__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* -------------------------------------------------------------------- faq */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 48px 72px;
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.faq__intro h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.faq__intro p:not(.eyebrow) {
  margin: 18px 0 22px;
  font-size: 16px;
  color: var(--text-2);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font: 600 18px/1.35 var(--font-head);
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  color: #fff;
}

.qa__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.qa__icon .ic {
  width: 16px;
  height: 16px;
}

.qa[open] .qa__icon {
  transform: rotate(45deg);
  background: var(--grad);
  border-color: transparent;
}

.qa__a {
  padding: 0 52px 24px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.qa[open] .qa__a {
  animation: row-in 0.35s var(--ease);
}

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

/* A painted scene under the links, like a last frame: a creator filming the sunset, a film strip road to the sun
   (assets/footer-scene.svg, drawn by scripts/footer-scene.mjs). Its sky starts in the page color. */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(720px, 56vw, 900px);
  padding-top: clamp(96px, 9vw, 136px);
  background: var(--bg);
}

.footer__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.footer__scene img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 100%;
}

.footer__scene .grain {
  opacity: 0.14;
}

/* Dusk over the top of the picture: the links keep their contrast however the picture is cropped. */
.footer__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 18, 0.72) 0%, rgba(14, 12, 18, 0.4) 34%, rgba(14, 12, 18, 0) 56%);
  pointer-events: none;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand {
  max-width: 36ch;
}

.footer__tag {
  margin-top: 18px;
  font: 700 22px/1.2 var(--font-head);
  letter-spacing: -0.03em;
}

.footer__text {
  margin: 10px 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.footer__h {
  margin-bottom: 8px;
  font: 600 19px/1.2 var(--font-head);
  letter-spacing: -0.015em;
  color: #fff;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__col a,
.footer__link {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  text-decoration: none;
  text-shadow: 0 1px 14px rgba(14, 12, 18, 0.6);
  transition: color 0.2s;
}

.footer__col a:hover,
.footer__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: auto;
  padding-block: 28px 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

/* A darker strip of grass under the copyright line. */
.footer__bottom::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(11, 6, 13, 0), rgba(11, 6, 13, 0.7) 55%);
}

/* ------------------------------------------------------------------ modal */

.modal {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(8, 6, 10, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: modal-in 0.35s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.modal__box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.modal__box video {
  width: 100%;
  height: 100%;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(14, 12, 18, 0.7);
  color: #fff;
}

.modal__close .ic {
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------------- 404 */

.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px var(--gutter);
  text-align: center;
}

.notfound .brand {
  margin-bottom: 18px;
}

.notfound__code {
  font: 700 clamp(96px, 20vw, 200px)/0.8 var(--font-head);
  letter-spacing: -0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.notfound__text {
  max-width: 40ch;
  margin-bottom: 10px;
  color: var(--text-2);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .examples__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .example__media {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .example__media video {
    position: absolute;
    inset: 0;
  }

  .tabs {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .panel__info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .panel__info > :last-child:not(.minis) {
    grid-column: 1 / -1;
  }

  .panel__example {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
  }

  .panel__look {
    display: none;
  }

  .panel__info--stories .panel__example {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--wide {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav__end {
    margin-left: auto;
  }

  .section__head--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__lead {
    justify-self: start;
  }

  .steps__rail {
    left: 19px;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 28px 22px;
  }

  .step__node {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .step__demo {
    grid-column: 2;
  }

  .tabs {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tabs__list {
    position: relative;
    top: 0;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .tabs__list::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: none;
    width: auto;
    padding: 10px 14px;
    border-color: var(--line);
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .tab__name {
    font-size: 15px;
    white-space: nowrap;
  }

  .tab[aria-selected="true"] .tab__desc,
  .tab[aria-selected="true"] .tab__bar,
  .tab[aria-selected="true"]::before {
    display: none;
  }

  .tab[aria-selected="true"] {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
  }

  .tab--edit {
    margin-top: 0;
  }

  .tab--edit::after {
    display: none;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card,
  .card--wide {
    grid-column: span 1;
  }

  .card--wide {
    grid-column: 1 / -1;
  }

  .examples__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .costs {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .faq__intro {
    position: static;
  }

  .footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer {
    --scene: clamp(480px, 72vw, 620px);
    min-height: 0;
    padding-bottom: calc(var(--scene) * 0.6);
  }

  .footer__scene {
    inset: auto 0 0;
    height: var(--scene);
  }

  .footer__scene::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 12, 18, 0) 30%);
  }

  .footer__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .hero__title {
    letter-spacing: -0.045em;
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .idea__inner {
    padding: 14px 14px 12px 16px;
  }

  .idea__opts {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .idea__go {
    margin-left: auto;
  }

  .plan__rows li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .plan__rows li span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: -4px;
  }

  .strip::after {
    bottom: 50px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .steps__rail,
  .step__node {
    display: none;
  }

  .step__demo {
    grid-column: 1;
  }

  .mpipe {
    grid-template-columns: 13em minmax(0, 1fr);
  }

  .panel__info {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel__example {
    grid-template-columns: minmax(0, 1fr);
  }

  .minis--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    min-height: 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example {
    grid-template-columns: minmax(0, 1fr);
  }

  .example__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof div {
    padding: 18px 20px 20px;
  }

  .stats dt {
    font-size: 24px;
  }

  .offer__price strong {
    font-size: 64px;
  }

  .qa summary {
    font-size: 16.5px;
  }

  .qa__a {
    padding-right: 0;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer {
    --scene: 540px;
  }

  .pill {
    font-size: 13px;
  }

  .pill__more {
    display: none;
  }

  .costs__table th,
  .costs__table td {
    padding: 11px 8px;
  }

  .costs__table thead th {
    white-space: normal;
    font-size: 10px;
    line-height: 1.3;
    vertical-align: bottom;
  }

  .costs__table td {
    font-size: 15px;
  }

  /* On phones the collage keeps to the corners, away from the text. */
  .final {
    padding: 150px 0;
  }

  .final__collage img {
    width: 120px;
  }

  .final__collage img:nth-child(1) { left: -18px; top: 26px; }
  .final__collage img:nth-child(2) { left: auto; right: -22px; top: 44px; }
  .final__collage img:nth-child(3) { left: -24px; top: auto; bottom: 34px; opacity: 0.45; }
  .final__collage img:nth-child(4) { right: -16px; top: auto; bottom: 22px; }

  .final__collage img:nth-child(n + 5) {
    display: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .strip__row {
    overflow-x: auto;
  }

  .strip__track {
    animation: none !important;
  }
}
