/* Lyric Studio landing page. White like the rest of the site; the only dark surfaces are the videos. */

@font-face {
  font-family: "Bootzy TM";
  src: url("BootzyTM.ttf") format("truetype");
  font-display: swap;
}

html[data-dims-page="content-engine"] { background: #fff; }

[data-dims-page="content-engine"] {
  --ls-ink: var(--dims-ink, #0f172a);
  --ls-muted: rgb(15 23 42 / 0.56);
  --ls-line: rgb(15 23 42 / 0.08);
  --ls-soft: #f5f5f4;
  --ls-display: "SF Pro Display Semibold", "SF Pro Display Semibold Placeholder", "SF Pro Display Medium", system-ui, sans-serif;
  --ls-text: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", system-ui, sans-serif;
  --ls-gutter: max(20px, calc((100vw - 1260px) / 2));
  /* Air between sections: roughly a screen-third on desktop, still generous on phones. */
  --ls-section-gap: clamp(6.5rem, 14vw, 11rem);
}

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

/* —— The four lyric faces, same specs as the app —— */
.ls-font--bootzy { font-family: "Bootzy TM", Arial, sans-serif; font-weight: 400; letter-spacing: 0.03em; word-spacing: 0.2em; }
.ls-font--narrow { font-family: "Arial Narrow", "Archivo Narrow", sans-serif; font-weight: 400; word-spacing: 0.45em; font-size-adjust: none; }
.ls-font--italic { font-family: Arimo, Arial, sans-serif; font-style: italic; font-weight: 400; }
.ls-font--bold { font-family: Arimo, Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; }

/* —— Colour grades, the CSS twin of draw.ts applyGrade —— */
.ls-grade { isolation: isolate; position: relative; }
.ls-grade::after { content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.ls-grade--natural::after { background: rgb(0 0 0 / 0.12); }
.ls-grade--midnight::after { background: #3550ff; mix-blend-mode: color; }
.ls-grade--midnight::before { background: #5068ff; content: ""; inset: 0; mix-blend-mode: multiply; pointer-events: none; position: absolute; z-index: 1; }
.ls-grade--mono img, .ls-grade--mono video { filter: grayscale(1) brightness(0.85); }
.ls-grade--mono::after { background: rgb(0 0 0 / 0.1); }
.ls-grade--warm::after { background: #ff8a3d; mix-blend-mode: soft-light; }
.ls-grade--warm::before { background: rgb(30 10 0 / 0.18); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 1; }

/* —— Hero: same shape as the homepage (headline left, sub + CTA right on wide screens) —— */
.ls-hero {
  background: #fff;
  color: var(--ls-ink);
  overflow: hidden;
  padding: clamp(6.5rem, 12vh, 8.5rem) 0 0;
}

.ls-hero__copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1260px;
  padding: 0 var(--ls-gutter);
  text-align: center;
}
@media (min-width: 1300px) { .ls-hero__copy { padding: 0; } }

.ls-hero__title {
  font-family: var(--ls-display);
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0.9rem auto 0;
  max-width: 21ch;
  text-wrap: balance;
}

.ls-hero__sub {
  color: rgb(15 23 42 / 0.64);
  font-family: var(--ls-text);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: -0.01em;
  line-height: 1.55;
  margin: 1rem auto 0;
  max-width: 32rem;
  text-wrap: balance;
}

.ls-hero__actions { display: flex; justify-content: center; margin-top: 2rem; }
.ls-hero .ls-hero__actions { justify-content: center; margin-top: 1.5rem; }
.ls-hero__actions .dims-btn--primary { background: #000; }
.ls-hero__actions .dims-btn--primary:hover { background: #222; }

.ls-hero__note {
  color: var(--ls-muted);
  font-family: var(--ls-text);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}



/* Filmstrip: an endless row of finished videos drifting left, running off both edges of the screen. */
.ls-hero__stage {
  --ls-phone-w: clamp(10rem, 15vw, 14rem);
  --ls-row-gap: 10px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  overflow: hidden;
  width: 100%;
}
.ls-hero__track {
  animation: ls-film 60s linear infinite;
  display: flex;
  gap: var(--ls-row-gap);
  width: max-content;
}
.ls-hero__stage:hover .ls-hero__track { animation-play-state: paused; }
/* The track holds the reel twice; sliding by one copy plus one gap lands exactly on the start. */
@keyframes ls-film { to { transform: translateX(calc(-50% - var(--ls-row-gap) / 2)); } }

.ls-phone {
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  flex: none;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: var(--ls-phone-w);
}
.ls-hero__stage { opacity: 1; transition: opacity 900ms ease; }
.ls-hero__stage:not(.is-in) { opacity: 0; }

@media (max-width: 809px) {
  .ls-hero__stage { --ls-phone-w: 40vw; mask-image: none; }
  .ls-hero__track { animation-duration: 45s; }
}

@media (prefers-reduced-motion: reduce) {
  .ls-hero__track { animation: none; }
  .ls-hero__stage { overflow-x: auto; }
}

.ls-phone__screen { background: #111; height: 100%; width: 100%; }

.ls-phone__video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Stack: one line at a time, words landing as they're sung, centred a little above middle. */
.ls-stack {
  --ls-size: calc(var(--ls-phone-w) * 0.1);
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: var(--ls-size);
  inset: 0 7%;
  justify-content: center;
  line-height: 1.18;
  padding-bottom: 16%;
  position: absolute;
  text-align: center;
  text-shadow: 0 0 calc(var(--ls-size) * 0.25) rgb(0 0 0 / 0.35);
  z-index: 2;
}
.ls-stack.ls-font--narrow { font-size: calc(var(--ls-size) * 1.05); }
.ls-stack.ls-font--italic { font-size: calc(var(--ls-size) * 0.95); }
.ls-stack.ls-font--bold { font-size: calc(var(--ls-size) * 0.8); }

.ls-stack__row { display: block; white-space: nowrap; }

.ls-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.18em) scale(0.96);
  filter: blur(4px);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 260ms ease;
}
.ls-word.is-on { filter: none; opacity: 1; transform: none; }
.ls-stack.is-clearing .ls-word { opacity: 0; transition-duration: 220ms; }

/* —— Section heads (shared) —— */
.ls-steps, .ls-type, .ls-grades, .ls-clips, .ls-cta {
  color: var(--ls-ink);
  padding: var(--ls-section-gap) var(--ls-gutter) 0;
}

.ls-head { margin: 0 auto clamp(2.5rem, 5vw, 4rem); max-width: 44rem; text-align: center; }
.ls-head__title {
  font-family: var(--ls-display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.ls-head__title span, .ls-cta__title span { color: rgb(15 23 42 / 0.38); display: block; }
.ls-head__sub {
  color: rgb(15 23 42 / 0.64);
  font-family: var(--ls-text);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.5;
  margin: 1rem auto 0;
  max-width: 32rem;
  text-wrap: balance;
}

/* —— Steps —— */
.ls-steps__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1260px;
  padding: 0;
}

.ls-step {
  background: var(--ls-soft);
  border-radius: 1.5rem;
  padding: 0.75rem 0.75rem 1.75rem;
}

.ls-step__media {
  align-items: center;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 0 0 1px var(--ls-line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 15rem;
  justify-content: center;
  overflow: hidden;
  padding: 1.25rem;
}

.ls-step__num, .ls-step__title, .ls-step__body { padding: 0 0.75rem; }
.ls-step__num { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.8rem; font-variant-numeric: tabular-nums; margin: 1.4rem 0 0.35rem; }
.ls-step__title { font-family: var(--ls-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.ls-step__body { color: rgb(15 23 42 / 0.64); font-family: var(--ls-text); font-size: 1rem; line-height: 1.5; margin: 0.5rem 0 0; }

.ls-song { align-items: center; display: flex; gap: 0.75rem; width: 100%; }
.ls-song__art { border-radius: 0.5rem; height: 2.75rem; object-fit: cover; width: 2.75rem; }
.ls-song__meta { display: flex; flex: 1; font-family: var(--ls-text); font-size: 0.95rem; justify-content: space-between; }
.ls-song__meta strong { font-family: var(--ls-display); font-weight: 600; }
.ls-song__meta span { color: var(--ls-muted); font-variant-numeric: tabular-nums; }

.ls-wave { align-items: center; display: flex; gap: 3px; height: 3.5rem; position: relative; width: 100%; }
.ls-wave i { background: rgb(15 23 42 / 0.16); border-radius: 2px; flex: 1; }
.ls-wave i.is-in { background: #000; }

.ls-chips { display: flex; gap: 0.4rem; }
.ls-chips span { border-radius: 999px; box-shadow: 0 0 0 1px var(--ls-line); color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.8rem; padding: 0.3rem 0.75rem; }
.ls-chips span.is-on { background: #000; box-shadow: none; color: #fff; }

.ls-step__media--lyrics { align-items: stretch; justify-content: flex-start; }
.ls-transcript__status { align-items: center; color: var(--ls-muted); display: flex; font-family: var(--ls-text); font-size: 0.78rem; gap: 0.45rem; margin: 0; }
.ls-dot { animation: ls-pulse 1.4s ease-in-out infinite; background: #22c55e; border-radius: 50%; height: 0.45rem; width: 0.45rem; }
@keyframes ls-pulse { 50% { opacity: 0.3; } }
.ls-transcript { display: flex; flex-direction: column; gap: 0.35rem; }
.ls-transcript p { align-items: baseline; display: flex; font-family: var(--ls-display); font-size: 1.05rem; font-weight: 600; gap: 0.75rem; letter-spacing: -0.01em; margin: 0; }
.ls-transcript time { color: var(--ls-muted); flex: none; font-family: var(--ls-text); font-size: 0.72rem; font-variant-numeric: tabular-nums; font-weight: 400; width: 2.6rem; }
.ls-transcript .ls-tw { color: rgb(15 23 42 / 0.16); transition: color 200ms ease; }
.ls-transcript .ls-tw.is-on { color: var(--ls-ink); }

.ls-sizes { align-items: flex-end; display: flex; gap: 0.75rem; height: 8.5rem; }
.ls-size {
  background: #000;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px -10px rgb(15 23 42 / 0.4);
  color: #fff;
  display: block;
  overflow: hidden;
}
.ls-size img { display: block; height: 100%; object-fit: cover; width: 100%; }
.ls-size__lyric {
  align-items: center;
  display: flex;
  font-size: 0.62rem;
  inset: 0 6%;
  justify-content: center;
  line-height: 1.15;
  padding-bottom: 12%;
  position: absolute;
  text-align: center;
  text-shadow: 0 0 4px rgb(0 0 0 / 0.4);
  z-index: 2;
}
.ls-size--169 .ls-size__lyric { font-size: 0.5rem; }
.ls-size__label {
  background: rgb(0 0 0 / 0.45);
  border-radius: 999px;
  bottom: 0.3rem;
  font-family: var(--ls-text);
  font-size: 0.58rem;
  left: 50%;
  padding: 0.1rem 0.4rem;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}
.ls-size--916 { height: 8.5rem; width: 4.78rem; }
.ls-size--45 { height: 6.25rem; width: 5rem; }
.ls-size--11 { height: 4.5rem; width: 4.5rem; }
.ls-size--169 { height: 3rem; width: 5.33rem; }
.ls-step:hover .ls-size { animation: ls-pop 500ms cubic-bezier(0.2, 0.9, 0.3, 1.3) backwards; }
.ls-step:hover .ls-size:nth-child(2) { animation-delay: 60ms; }
.ls-step:hover .ls-size:nth-child(3) { animation-delay: 120ms; }
.ls-step:hover .ls-size:nth-child(4) { animation-delay: 180ms; }
@keyframes ls-pop { from { transform: translateY(8px) scale(0.92); } }

.ls-skip { align-items: center; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: center; margin: 2rem auto 0; max-width: 1260px; }
.ls-skip__label { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.875rem; margin: 0; }
.ls-skip__list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; list-style: none; margin: 0; padding: 0; }
.ls-skip__list li {
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--ls-line);
  color: rgb(15 23 42 / 0.45);
  font-family: var(--ls-text);
  font-size: 0.875rem;
  padding: 0.4rem 0.85rem;
  text-decoration: line-through;
  text-decoration-color: rgb(15 23 42 / 0.45);
}

/* —— Type tester —— */
.ls-type__controls { align-items: center; display: flex; gap: 0.75rem; justify-content: center; margin: 0 auto 1.5rem; max-width: 36rem; }
.ls-type__input { flex: 1; }
.ls-type__input input {
  background: var(--ls-soft);
  border: 0;
  border-radius: 999px;
  color: var(--ls-ink);
  font-family: var(--ls-text);
  font-size: 1rem;
  outline: none;
  padding: 0.85rem 1.25rem;
  width: 100%;
}
.ls-type__input input:focus-visible { box-shadow: 0 0 0 2px #000; }

.ls-seg { background: var(--ls-soft); border-radius: 999px; display: flex; flex: none; padding: 0.25rem; }
.ls-seg button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ls-muted);
  cursor: pointer;
  font-family: var(--ls-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
}
.ls-seg button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / 0.12); color: var(--ls-ink); }

.ls-type__grid, .ls-grades__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1260px;
}

.ls-specimen, .ls-grade-card { margin: 0; }
.ls-specimen__frame, .ls-grade-card__frame {
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
}
.ls-specimen__frame img, .ls-grade-card__frame img {
  animation: ls-drift 18s ease-in-out infinite alternate;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
@keyframes ls-drift { to { transform: scale(1.12); } }

.ls-specimen__text, .ls-grade-card__lyric {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  inset: 0 8%;
  justify-content: center;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
  position: absolute;
  text-align: center;
  text-shadow: 0 0 10px rgb(0 0 0 / 0.35);
  z-index: 2;
}
.ls-specimen__text.ls-font--bold { font-size: clamp(1.35rem, 2.15vw, 1.9rem); }
.ls-specimen__text.ls-font--narrow { font-size: clamp(1.75rem, 2.8vw, 2.45rem); }

.ls-specimen figcaption { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 0.25rem 0; }
.ls-specimen figcaption strong { font-family: var(--ls-display); font-size: 1.05rem; font-weight: 600; }
.ls-specimen figcaption span, .ls-grade-card figcaption { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.9rem; }
.ls-grade-card figcaption { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 0.25rem 0; }
.ls-grade-card figcaption strong { color: var(--ls-ink); font-family: var(--ls-display); font-size: 1.05rem; font-weight: 600; }
.ls-grade-card__lyric.ls-font--bold { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.ls-grade-card__lyric.ls-font--narrow { font-size: clamp(1.5rem, 2.4vw, 2.15rem); }
.ls-grade-card__frame { aspect-ratio: 9 / 16; }
.ls-grade-card__lyric { font-size: clamp(1.4rem, 2.2vw, 2rem); padding-bottom: 14%; }
.ls-specimen__text .ls-stack__row { white-space: normal; }

/* —— Footage: library + your files feeding one video —— */
.ls-sources {
  align-items: center;
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1100px;
}

.ls-src-card {
  background: var(--ls-soft);
  border-radius: 1.5rem;
  padding: 1.1rem;
}
.ls-src-card__label {
  align-items: center;
  display: flex;
  font-family: var(--ls-display);
  font-size: 1rem;
  font-weight: 600;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}
.ls-src-card__foot { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.78rem; margin: 0.85rem 0 0; text-align: center; }
.ls-key { border-radius: 50%; height: 0.6rem; width: 0.6rem; }
.ls-key--lib { background: #000; }
.ls-key--you { background: #ff5a1f; }

.ls-src-grid { display: grid; gap: 0.45rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.ls-src-tile { border-radius: 0.7rem; overflow: hidden; position: relative; transition: transform 300ms ease, box-shadow 300ms ease; }
.ls-src-tile img { aspect-ratio: 3 / 4; display: block; object-fit: cover; width: 100%; }
.ls-src-tile span {
  background: linear-gradient(transparent, rgb(0 0 0 / 0.55));
  bottom: 0; color: #fff; font-family: var(--ls-text); font-size: 0.66rem; inset-inline: 0; padding: 0.9rem 0.4rem 0.3rem; position: absolute;
}

.ls-src-files { display: flex; flex-direction: column; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.ls-src-file {
  align-items: center;
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 0 0 1px var(--ls-line);
  display: flex;
  font-family: var(--ls-text);
  font-size: 0.85rem;
  gap: 0.65rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.ls-src-file img { border-radius: 0.5rem; height: 2.6rem; object-fit: cover; width: 2.1rem; }
.ls-src-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-src-file__len { color: var(--ls-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

.ls-src-drop {
  align-items: center;
  border: 1.5px dashed rgb(15 23 42 / 0.18);
  border-radius: 0.8rem;
  color: var(--ls-muted);
  display: flex;
  font-family: var(--ls-text);
  font-size: 0.8rem;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0.85rem 0.5rem;
  text-align: center;
}

/* Whichever source is on screen right now. */
.ls-src-tile.is-live { box-shadow: 0 0 0 2.5px #000; transform: scale(1.04); }
.ls-src-file.is-live { box-shadow: 0 0 0 2px #ff5a1f; transform: translateX(-4px); }

.ls-src-stage { align-items: center; display: flex; flex-direction: column; gap: 0.9rem; }
.ls-src-phone {
  --ls-phone-w: clamp(11rem, 17vw, 14.5rem);
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--ls-phone-w) * 0.11);
  box-shadow: 0 30px 60px -20px rgb(15 23 42 / 0.35), 0 0 0 1px rgb(15 23 42 / 0.06);
  margin: 0;
  overflow: hidden;
  width: var(--ls-phone-w);
}
.ls-src-phone__screen { background: #111; height: 100%; }
.ls-src-phone__frame { display: block; height: 100%; object-fit: cover; width: 100%; animation: ls-drift 6s ease-in-out infinite alternate; }
.ls-src-phone__badge {
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: #fff;
  font-family: var(--ls-text);
  font-size: 0.68rem;
  left: 50%;
  padding: 0.3rem 0.65rem;
  position: absolute;
  top: 0.75rem;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}
.ls-src-phone__badge.is-you { background: #ff5a1f; }

.ls-cutstrip { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; }
.ls-cut { border-radius: 0.35rem; height: 2.4rem; overflow: hidden; position: relative; width: 1.6rem; opacity: 0.45; transition: opacity 250ms ease, transform 250ms ease; }
.ls-cut img { height: 100%; object-fit: cover; width: 100%; }
.ls-cut::after { bottom: 0; content: ""; height: 3px; inset-inline: 0; position: absolute; }
.ls-cut--lib::after { background: #000; }
.ls-cut--you::after { background: #ff5a1f; }
.ls-cut.is-live { opacity: 1; transform: translateY(-3px); }

/* —— Closing CTA —— */
.ls-cta { padding-bottom: clamp(4rem, 9vw, 7rem); text-align: center; }
.ls-cta__title {
  font-family: var(--ls-display);
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 auto;
  max-width: 14ch;
  text-wrap: balance;
}

/* —— Tablet + phone —— */
@media (max-width: 960px) {
  .ls-sources { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ls-src-stage { grid-column: 1 / -1; grid-row: 1; }
  .ls-steps__grid { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
  .ls-type__grid, .ls-grades__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ls-sources { gap: 0.6rem; }
  .ls-src-card { border-radius: 1.1rem; padding: 0.75rem; }
  .ls-src-file { font-size: 0.72rem; gap: 0.4rem; padding-right: 0.4rem; }
  .ls-src-file__len { display: none; }
  .ls-src-drop { font-size: 0.7rem; }
  .ls-src-card__foot { display: none; }
  .ls-type__controls { flex-direction: column; }
  .ls-type__input { width: 100%; }
  .ls-type__grid, .ls-grades__grid { gap: 0.6rem; }
  .ls-specimen__text { font-size: 1.35rem; }
  .ls-specimen__text.ls-font--bold { font-size: 1.1rem; }
  .ls-specimen__text.ls-font--narrow { font-size: 1.45rem; }
  .ls-grade-card__lyric { font-size: 1.25rem; }
  .ls-step__media { height: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ls-src-phone__frame, .ls-specimen__frame img, .ls-grade-card__frame img, .ls-dot { animation: none; }
  .ls-word { filter: none; transition: none; }
}

/* —— Platform shot: app chrome + sidebar + studio —— */
.ls-platform { color: var(--ls-ink); padding: var(--ls-section-gap) var(--ls-gutter) 0; }
.ls-app {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.08), 0 40px 80px -30px rgb(15 23 42 / 0.3), 0 12px 24px -12px rgb(15 23 42 / 0.12);
  margin: 0 auto;
  max-width: 1100px;
  overflow: hidden;
}
.ls-app__bar { align-items: center; background: #f5f5f4; border-bottom: 1px solid var(--ls-line); display: flex; gap: 0.4rem; padding: 0.65rem 0.9rem; }
.ls-app__bar > span { background: rgb(15 23 42 / 0.14); border-radius: 50%; height: 0.6rem; width: 0.6rem; }
.ls-app__bar p { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.75rem; margin: 0 auto; padding-right: 2.4rem; }
.ls-app__body { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr) 16rem; min-height: 34rem; }

.ls-app-nav { border-right: 1px solid var(--ls-line); font-family: var(--ls-text); padding: 0.9rem 0.6rem; }
.ls-app-nav ul { display: flex; flex-direction: column; gap: 1px; list-style: none; margin: 0; padding: 0; }
.ls-app-nav__artist { align-items: center; display: flex; font-size: 0.85rem; gap: 0.55rem; margin: 0 0 0.9rem; padding: 0.3rem 0.5rem; }
.ls-app-nav__artist img { border-radius: 50%; height: 1.6rem; object-fit: cover; width: 1.6rem; }
.ls-app-nav__artist strong { flex: 1; font-family: var(--ls-display); font-weight: 600; }
.ls-app-nav__artist svg { color: var(--ls-muted); }
.ls-app-nav__item { align-items: center; border-radius: 0.55rem; color: rgb(15 23 42 / 0.72); display: flex; font-size: 0.82rem; gap: 0.6rem; padding: 0.45rem 0.55rem; }
.ls-app-nav__item svg { flex: none; opacity: 0.8; }
.ls-app-nav__item span { flex: 1; }
.ls-app-nav__item em { background: rgb(15 23 42 / 0.06); border-radius: 999px; color: var(--ls-muted); font-size: 0.62rem; font-style: normal; padding: 0.1rem 0.4rem; }
.ls-app-nav__item.is-active { background: #f1f1f0; color: var(--ls-ink); font-weight: 500; }
.ls-app-nav__section { color: var(--ls-muted); font-size: 0.68rem; letter-spacing: 0.04em; margin: 1rem 0 0.35rem; padding: 0 0.55rem; text-transform: uppercase; }

.ls-app__canvas { align-items: center; background: #fafaf9; display: flex; flex-direction: column; gap: 1rem; justify-content: center; padding: 1.5rem; }
.ls-app__phone {
  --ls-phone-w: 13rem;
  aspect-ratio: 9 / 16;
  border-radius: 1.3rem;
  box-shadow: 0 20px 40px -18px rgb(15 23 42 / 0.4);
  margin: 0;
  overflow: hidden;
  position: relative;
  width: var(--ls-phone-w);
}
.ls-app__transport { align-items: center; color: var(--ls-muted); display: flex; font-family: var(--ls-text); font-size: 0.72rem; font-variant-numeric: tabular-nums; gap: 0.6rem; width: 15rem; }
.ls-app__play { align-items: center; background: #000; border-radius: 50%; color: #fff; display: inline-flex; font-size: 0.55rem; height: 1.6rem; justify-content: center; padding-left: 2px; width: 1.6rem; }
.ls-app__track { background: rgb(15 23 42 / 0.1); border-radius: 999px; flex: 1; height: 3px; overflow: hidden; }
.ls-app__track i { animation: ls-progress 30s linear infinite; background: #000; display: block; height: 100%; width: 40%; }
@keyframes ls-progress { from { width: 0; } to { width: 100%; } }

.ls-app-panel { border-left: 1px solid var(--ls-line); display: flex; flex-direction: column; font-family: var(--ls-text); gap: 1.1rem; padding: 1.1rem; }
.ls-app-panel__group p { color: var(--ls-muted); font-size: 0.7rem; margin: 0 0 0.45rem; }
.ls-app-song { align-items: center; background: #f5f5f4; border-radius: 0.6rem; display: flex; font-size: 0.8rem; gap: 0.5rem; padding: 0.4rem; }
.ls-app-song img { border-radius: 0.35rem; height: 1.9rem; object-fit: cover; width: 1.9rem; }
.ls-app-song span { flex: 1; font-weight: 500; }
.ls-app-song small { color: var(--ls-muted); font-size: 0.68rem; }
.ls-app-seg, .ls-app-fonts { background: #f5f5f4; border-radius: 0.6rem; display: grid; gap: 2px; padding: 2px; }
.ls-app-seg { grid-template-columns: repeat(3, 1fr); }
.ls-app-fonts { grid-template-columns: repeat(2, 1fr); }
.ls-app-seg span, .ls-app-fonts span { border-radius: 0.5rem; color: var(--ls-muted); font-size: 0.78rem; padding: 0.4rem; text-align: center; }
.ls-app-fonts span { font-size: 0.9rem; }
.ls-app-seg .is-on, .ls-app-fonts .is-on { background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 0.12); color: var(--ls-ink); }
.ls-app-grades { display: flex; gap: 0.45rem; }
.ls-swatch { border-radius: 50%; height: 1.6rem; width: 1.6rem; }
.ls-swatch--natural { background: linear-gradient(135deg, #7c8f5a, #c9c2a8); }
.ls-swatch--midnight { background: linear-gradient(135deg, #1d3cff, #5068ff); }
.ls-swatch--mono { background: linear-gradient(135deg, #222, #bbb); }
.ls-swatch--warm { background: linear-gradient(135deg, #b4622a, #f0c08a); }
.ls-swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #000; }
.ls-app-clips { display: grid; gap: 0.3rem; grid-template-columns: repeat(5, 1fr); }
.ls-app-clips img, .ls-app-clips span { aspect-ratio: 9 / 16; border-radius: 0.35rem; object-fit: cover; width: 100%; }
.ls-app-clips span { align-items: center; border: 1px dashed rgb(15 23 42 / 0.2); color: var(--ls-muted); display: flex; justify-content: center; }
.ls-app-export { background: #000; border-radius: 999px; color: #fff; font-size: 0.82rem; margin-top: auto; padding: 0.65rem; text-align: center; }

@media (max-width: 960px) {
  .ls-app__body { grid-template-columns: 11.5rem minmax(0, 1fr); }
  .ls-app-panel { display: none; }
}
@media (max-width: 640px) {
  .ls-app__body { grid-template-columns: 9.5rem minmax(0, 1fr); min-height: 0; }
  .ls-app-nav { padding: 0.6rem 0.35rem; }
  .ls-app-nav__item { font-size: 0.7rem; gap: 0.4rem; padding: 0.35rem 0.4rem; }
  .ls-app-nav__item em { display: none; }
  .ls-app-nav__artist { font-size: 0.72rem; }
  .ls-app__canvas { padding: 1rem 0.6rem; }
  .ls-app__phone { --ls-phone-w: 8.5rem; border-radius: 0.9rem; }
  .ls-app__transport { width: 9rem; }
  .ls-app__transport > span:last-child { display: none; }
}

/* —— FAQ: more room and depth than the shared bubble list —— */
[data-dims-page="content-engine"] .dims-faq__list {
  display: flex !important;
  flex-direction: column;
  gap: 1rem !important;
  margin-inline: auto !important;
  max-width: 48rem;
}
[data-dims-page="content-engine"] .dims-faq__list > .dims-faq-item {
  background: #fff;
  border: 1px solid rgb(15 23 42 / 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 28px -14px rgb(15 23 42 / 0.18);
}
[data-dims-page="content-engine"] .dims-faq__list > .dims-faq-item.is-open,
[data-dims-page="content-engine"] .dims-faq__list > .dims-faq-item:has(.dims-faq__trigger:hover) {
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 20px 40px -16px rgb(15 23 42 / 0.25);
}
[data-dims-page="content-engine"] .dims-faq__trigger { padding: clamp(1.4rem, 2.4vw, 1.75rem) clamp(1.5rem, 3vw, 2rem); }

/* —— Pricing cards: Loops leads, the rest of the plan is one row of icons —— */
.ls-ce-head { align-items: center; display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.ls-ce-head img { border-radius: 0.6rem; flex: none; height: 2.5rem; width: 2.5rem; }
.ls-ce-head p { margin: 0; }
.ls-ce-head__name { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.85rem; }
.ls-ce-head__minutes { font-family: var(--ls-text); font-size: 1rem; }
.ls-ce-head__minutes strong { font-family: var(--ls-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.dims-pricing-card .ls-ce-points { margin-top: 1rem; }
.ls-toolkit { border-top: 1px solid var(--ls-line); display: grid; gap: 0.6rem; margin: 1.25rem 0 1.25rem; padding-top: 1.1rem; }
.ls-toolkit__label { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.8rem; margin: 0; }
.ls-toolkit__icons { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.ls-toolkit__icons img { border-radius: 0.45rem; display: block; height: 1.75rem; width: 1.75rem; }
.ls-toolkit__note { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.82rem; line-height: 1.45; margin: 0; }
.ls-toolkit__more summary {
  align-items: center;
  color: var(--ls-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--ls-text);
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.35rem;
  list-style: none;
}
.ls-toolkit__more summary::-webkit-details-marker { display: none; }
.ls-toolkit__more summary svg { transition: transform 200ms ease; }
.ls-toolkit__more[open] summary svg { transform: rotate(180deg); }
.ls-toolkit__more summary:focus-visible { border-radius: 0.3rem; outline: 2px solid #000; outline-offset: 3px; }
.ls-toolkit__full { animation: ls-open 260ms ease both; display: grid; gap: 1rem; margin-top: 0.9rem; }
@keyframes ls-open { from { opacity: 0; transform: translateY(-4px); } }

/* —— Section rhythm: shared blocks get the same air as ours —— */
[data-dims-page="content-engine"] .dims-orbs { margin-top: calc(var(--ls-section-gap) * 1.2); }
[data-dims-page="content-engine"] .dims-pricing { padding-top: var(--ls-section-gap) !important; }
[data-dims-page="content-engine"] .dims-faq { padding-top: var(--ls-section-gap) !important; }

/* —— Scroll reveal: headings rise first, their content follows —— */
.ls-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--ls-reveal-delay, 0ms);
}
.ls-reveal.is-visible { opacity: 1; transform: none; }
.ls-reveal--scale { transform: translateY(36px) scale(0.97); }
.ls-reveal--scale.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ls-reveal, .ls-reveal--scale { opacity: 1; transform: none; transition: none; }
}

/* —— Mission: text only, pinned while the words light up with the scroll —— */
.ls-mission { color: var(--ls-ink); }
.ls-mission__track { height: 170vh; margin-top: -12vh; position: relative; }
.ls-mission__sticky {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  padding: 0 var(--ls-gutter);
  position: sticky;
  top: 0;
}
.ls-mission__text {
  font-family: var(--ls-display);
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 auto;
  max-width: 22ch;
  text-align: center;
  text-wrap: balance;
}
.ls-mission__text em { display: block; font-size: 1.15em; font-style: normal; margin-top: 0.5em; }
.ls-mw { color: rgb(15 23 42 / 0.13); transition: color 260ms ease; }
.ls-mw.is-lit { color: var(--ls-ink); }

@media (max-width: 809px) {
  .ls-mission__track { height: 170vh; }
  .ls-mission__text { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .ls-mission__track { height: auto; }
  .ls-mission__sticky { height: auto; padding-block: var(--ls-section-gap) 0; position: static; }
  .ls-mw { color: var(--ls-ink); }
}

/* The pinned block already ends with half a screen of white, so the next section starts close. */
.ls-mission + .ls-meet { margin-top: -18vh; }

/* —— Meet: the product introduction right after the mission —— */
.ls-meet { color: var(--ls-ink); padding: 0 var(--ls-gutter); position: relative; text-align: center; }
.ls-meet__icon { display: block; height: clamp(5.5rem, 10vw, 8rem); margin: 0 auto 1.25rem; width: clamp(5.5rem, 10vw, 8rem); filter: drop-shadow(0 18px 30px rgb(226 68 154 / 0.28)); }
.ls-meet__title { font-family: var(--ls-display); font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.ls-meet__sub { color: rgb(15 23 42 / 0.64); font-family: var(--ls-text); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.5; margin: 1rem auto 0; max-width: 30rem; text-wrap: balance; }
.ls-meet + .ls-steps { padding-top: clamp(4rem, 8vw, 6.5rem); }

/* —— Agent demo: a typed ask, then the videos it makes —— */
.ls-agent { margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 1100px; }
.ls-agent__bar {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.08), 0 18px 40px -18px rgb(15 23 42 / 0.25);
  display: flex;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 36rem;
  padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  text-align: left;
}
.ls-agent__bar img { border-radius: 0.5rem; flex: none; height: 1.9rem; width: 1.9rem; }
.ls-agent__prompt { flex: 1; font-family: var(--ls-text); font-size: clamp(0.95rem, 1.6vw, 1.1rem); margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-agent__caret { animation: ls-blink 1s steps(1) infinite; background: var(--ls-ink); display: inline-block; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; width: 2px; }
@keyframes ls-blink { 50% { opacity: 0; } }
.ls-agent__send { align-items: center; background: #000; border-radius: 50%; color: #fff; display: inline-flex; flex: none; height: 2.3rem; justify-content: center; transition: transform 200ms ease; width: 2.3rem; }
.ls-agent.is-sending .ls-agent__send { transform: scale(0.88); }
.ls-agent__status { color: var(--ls-muted); font-family: var(--ls-text); font-size: 0.85rem; font-variant-numeric: tabular-nums; margin: 1rem 0 0; min-height: 1.3em; }
.ls-agent__grid { --ls-phone-w: calc((min(100vw - 2 * var(--ls-gutter), 1100px) - 4 * 10px) / 5); display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1.25rem; min-height: calc(var(--ls-phone-w) * 16 / 9 * 2 + 10px); }
.ls-agent__grid .ls-phone { animation: ls-print 650ms cubic-bezier(0.22, 1, 0.36, 1) both; border-radius: 0.8rem; width: 100%; }
.ls-agent__grid .ls-stack { font-size: calc(var(--ls-phone-w) * 0.09); }
@keyframes ls-print { from { opacity: 0; transform: translateY(16px) scale(0.94); } }

@media (max-width: 809px) {
  /* Phone: the ten videos become a swipe row so the section stays short. */
  .ls-agent__grid { --ls-phone-w: 40vw; display: flex; margin-inline: calc(-1 * var(--ls-gutter)); min-height: calc(40vw * 16 / 9); overflow-x: auto; padding-inline: var(--ls-gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ls-agent__grid::-webkit-scrollbar { display: none; }
  .ls-agent__grid .ls-phone { flex: none; scroll-snap-align: start; width: var(--ls-phone-w); }
}
@media (prefers-reduced-motion: reduce) {
  .ls-agent__caret, .ls-agent__grid .ls-phone { animation: none; }
}
