/* ---- promo: first on the page, muted until asked ---- */
.promo { padding: 32px 0 0; }
@media (min-width: 900px) { .promo { padding-top: 40px; } }
.ad .stage { position: relative; }
.ad video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: black; }
.ad .sound {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--sans); min-height: 44px; padding: 0 14px; border-radius: 3px; cursor: pointer;
  background: var(--panel); color: var(--bright); border: 1px solid var(--separator);
}
.ad .sound:hover { background: var(--node-selected); }
.ad .sound svg { width: 16px; height: 16px; }
.ad .sound[aria-pressed="true"] .off { display: none; }
@media (max-width: 560px) {
  .ad .sound { right: 8px; bottom: 8px; width: 44px; padding: 0; justify-content: center; }
  .ad .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---- hero: words and buttons at left, the editor at right ---- */
.hero { padding: 64px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; } }
.hero .eyebrow { margin-bottom: 20px; }
.hero .lede { margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .actions [hidden] { display: none; }
.hero .platforms { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero .editor { margin: 0; }
.hero .editor > .window { border: 0; border-radius: 0; }
.hero .live { position: relative; }
.hero .live .try { position: absolute; z-index: 1; left: 16px; bottom: 16px; }
@media (max-width: 639px) { .hero .live .try { left: 12px; bottom: 12px; } }
/* The preset's own picture at 16:9, until asked for the preset playing in the viewer (site.js). */
.hero .live img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero .live iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 88vh; border: 0; background: var(--window); }
/* The phone's toolbar is two rows tall, taller than the page's scroll padding. */
@media (max-width: 640px) { .hero .editor { scroll-margin-top: 32px; } }
/* Clicked: the figure takes the page's width, text above. The embedded viewer is its picture at 16:9 and one transport row, and under a narrow one a line for the author and Open in Flyback. */
.hero.playing .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero.playing .live iframe { aspect-ratio: auto; max-height: none; height: calc(min(100vw - 32px, 1116px) * 0.5625 + 64px); }
@media (max-width: 639px) { .hero.playing .live iframe { height: calc((100vw - 34px) * 0.5625 + 112px); } }

/* ---- at a glance ---- */
.glance { padding: 56px 0 0; }
.at-a-glance { margin: 0; }

/* ---- sections ---- */
#start { padding-bottom: 96px; }
#how { --family: var(--source); }
#presets { --family: var(--tint); }
#built-in { --family: var(--space); }
#start { --family: var(--sequencer); }

/* ---- one graph, two sinks ---- */
.twosinks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 1000px) { .twosinks { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; } }
.as-text pre { margin: 0; }
.three-up > :nth-child(1) { --family: var(--source); }
.three-up > :nth-child(2) { --family: var(--oscillator); }
.three-up > :nth-child(3) { --family: var(--pattern); }

/* ---- presets: the eight stills in one row, each a link that plays it ---- */
.stills.row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .stills.row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .stills.row { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.stills.row .caption-strip { padding: 8px 10px; }
.still a { display: block; }

/* ---- the assistant teaser ---- */
.teaser .diagram { max-width: 720px; }

/* ---- download band: one hairline panel, the head at left ---- */
.get-started { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 40px; }
.get-started > .section-head { flex: 1 1 360px; min-width: 0; }
.get-started .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .get-started { padding: 24px 20px; } }

/* ---- hero: the play button and the editor link ---- */
.hero .caption-strip a { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; margin-bottom: -10px; color: var(--attention); }
