/* Jamigo landing. Same tokens as the app (src/ui/styles.css): one loud colour, cue pink, on a neutral room.
   Contrast rules carried over: text on pink is always ink (5.33:1); pink is never small text on a light ground
   (2.90-3.39:1), so pink shapes on light carry a 2px ink edge; pink text only on ink (5.33:1). */

@font-face {
  font-family: "Baloo 2";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/figtree-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/figtree-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #ededeb;
  --bg-2: #e1e1de;
  --surface: #ffffff;
  --ink: #161616;
  --ink-2: #4f4f4a;
  --line: #cfcec7;
  --signal: #ff3d77;
  --signal-deep: #c4134d;
  --on-signal: #161616;
  --notice: #ffd9e5;
  --felt-charcoal: #3a3936;
  --felt-grey: #d3d2cc;
  --dark-2: #b9b9b2;

  --display: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --fs-display: clamp(60px, 9.4vw, 140px);
  --fs-h2: clamp(40px, 5.4vw, 76px);
  --fs-h3: clamp(21px, 1.7vw, 25px);
  --fs-lead: clamp(18px, 1.5vw, 22px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-meta: 13px;
  --fs-num: clamp(120px, 15vw, 220px);
  --fs-h2-sm: clamp(28px, 3.2vw, 44px);
  --fs-label: 28px;
  --fs-wordmark: 26px;
  --fs-name: 19px;

  /* Space scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 140px;
  --gutter: clamp(16px, 4vw, 48px);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  /* Motion, from the app: one ease, three durations, and the beat at 92 BPM */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s;
  --t-base: 0.2s;
  --t-screen: 0.32s;
  --beat: 0.652s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
blockquote {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--signal);
  border-radius: 6px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  background: var(--ink);
  color: var(--surface);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  z-index: 10;
}

.skip:focus {
  top: var(--s-4);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.4;
}

/* Buttons: pink fill with an ink edge for the main action, outlined for the rest. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  background: var(--surface);
  color: var(--ink);
  font: 700 var(--fs-small) / 1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn.primary {
  background: var(--signal);
  color: var(--on-signal);
}

.btn.big {
  padding: 15px 30px;
  font-size: var(--fs-body);
}

.btn.on-dark {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
}

.btn.ghost-dark {
  background: transparent;
  border-color: var(--surface);
  color: var(--surface);
}

.actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: 800 var(--fs-wordmark) / 1 var(--display);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.mark-cup {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.nav-links {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
  font-weight: 700;
  font-size: var(--fs-small);
}

.nav-links a {
  text-decoration: none;
  padding: var(--s-1) 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--ink);
}

/* Characters (the app's SVGs and their states) */

.character {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.character [data-s] {
  display: none;
}

.st-idle .character [data-s~="idle"],
.st-sleep .character [data-s~="sleep"],
.st-think .character [data-s~="think"],
.st-happy .character [data-s~="happy"] {
  display: inline;
}

.c-body {
  fill: var(--c-fill);
  stroke: var(--ink);
  stroke-width: 3;
}

.c-inner {
  fill: var(--signal);
  opacity: 0.55;
}

.c-band {
  stroke: var(--signal);
  stroke-width: 7;
  stroke-linecap: round;
}

.c-cup,
.c-signal {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.c-blush {
  fill: var(--signal);
  opacity: 0.35;
}

.c-foot {
  fill: var(--ink);
}

.c-stick {
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}

.c-tip,
.c-drum,
.c-keys,
.c-bass,
.c-head {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.c-drum-top {
  fill: var(--bg-2);
  stroke: var(--ink);
  stroke-width: 3;
}

.c-lace {
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
}

.c-black,
.c-hole,
.c-mic {
  fill: var(--ink);
}

.c-neck {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  fill: none;
}

.producer .c-shell {
  fill: var(--felt-grey);
  stroke: var(--ink);
  stroke-width: 3;
}

.producer .c-label {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.producer .c-window,
.producer .c-reel {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.producer .c-spoke,
.producer .c-smile {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.producer .c-hub,
.producer .c-open {
  fill: var(--ink);
}

.producer .c-base {
  fill: var(--bg-2);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

/* Hero: the band stands on the headline */

.hero {
  padding: var(--s-7) 0 var(--s-9);
  text-align: center;
}

.stage {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 56px);
  margin-bottom: calc(var(--fs-display) * -0.149 + 2px);
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.fig {
  width: clamp(72px, 10vw, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fig .character {
  height: auto;
  aspect-ratio: 120 / 160;
}

.fig figcaption {
  display: none;
}

/* The hero line is a full sentence, so it runs smaller than the display size. */
.hero {
  --fs-display: clamp(40px, 6vw, 88px);
}

.hero h1 {
  font-size: var(--fs-display);
  position: relative;
}

.hero .lead {
  margin: var(--s-5) auto var(--s-6);
  max-width: none;
  color: var(--ink);
  font-weight: 600;
}

.hero .actions {
  justify-content: center;
}

/* The bob: every member moves on the beat; Gus's sticks tap it. */

.playing .fig .character {
  animation: bob var(--beat) var(--ease-out) infinite;
  animation-delay: calc(var(--i) * -0.08s);
}

.playing .f-drums .sticks {
  animation: tap calc(var(--beat) / 2) var(--ease-out) infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

@keyframes tap {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
}

/* The room: chat on the left, the loop on the right */

.room {
  position: relative;
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.room-chat {
  padding: var(--s-5);
  border-right: 2px solid var(--ink);
  background: var(--bg-2);
  min-height: 340px;
}

.room-loop {
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
}

.room-title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font: 800 var(--fs-h3) / 1 var(--display);
  margin-bottom: var(--s-5);
}

.room-title .meta {
  font: 600 var(--fs-meta) / 1 var(--body);
  color: var(--ink-2);
  margin-left: auto;
}

.heads {
  display: inline-flex;
}

.head {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.heads .head + .head {
  margin-left: -6px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.msg.me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg);
  font-weight: 600;
}

.msg.me .at {
  color: var(--signal);
}

.typing,
.msg.reply {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}

.avatar {
  width: 36px;
  height: 36px;
  flex: none;
}

.dots {
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: dot 0.9s var(--ease-out) infinite;
}

.dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
}

.bubble {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 6px var(--r-lg) var(--r-lg) var(--r-lg);
  padding: var(--s-3) var(--s-4);
  display: grid;
  gap: var(--s-2);
}

.who {
  font-size: var(--fs-meta);
  color: var(--ink-2);
}

.who b {
  font: 800 var(--fs-body) / 1 var(--display);
  color: var(--ink);
  margin-right: var(--s-1);
}

.reply-text {
  font-weight: 600;
}

.heard,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.heard-label {
  font-size: var(--fs-meta);
  color: var(--ink-2);
  margin-right: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--surface);
  white-space: nowrap;
}

.chip.on {
  background: var(--signal);
}

.chip svg {
  width: 15px;
  height: 15px;
}

.chip svg circle {
  fill: var(--ink);
}

.chip svg path {
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
}

.chip.struck {
  background: var(--surface);
  color: var(--ink-2);
  border-style: dashed;
  text-decoration: line-through;
}

.chip.struck svg circle {
  fill: var(--ink-2);
}

.chip.struck svg path {
  stroke: var(--surface);
}

.ran {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-small);
}

.ran svg,
.zone-name svg {
  width: 22px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* The demo sequence: the message arrives, Gus thinks, then answers and his part changes. */

.room .msg.me,
.room .typing,
.room .msg.reply {
  display: none;
}

.room[data-step="sent"] .msg.me,
.room[data-step="think"] .msg.me,
.room[data-step="reply"] .msg.me {
  display: block;
  animation: pop var(--t-screen) var(--ease-bounce);
}

.room[data-step="think"] .typing,
.room[data-step="reply"] .msg.reply {
  display: flex;
  animation: pop var(--t-screen) var(--ease-bounce);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lanes and strips: 32 steps, a note start is ink, a held note is grey, an accent has a pink foot. */

.lanes {
  display: grid;
  gap: var(--s-5);
}

.room .strip i {
  height: 32px;
}

.lane {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
}

.lane-name {
  font-size: var(--fs-meta);
  color: var(--ink-2);
}

.lane-name b {
  font: 800 var(--fs-name) / 1 var(--display);
  color: var(--ink);
  margin-right: 2px;
}

.swap {
  display: grid;
}

.swap .strip {
  grid-area: 1 / 1;
}

.swap .after,
.room[data-step="reply"] .swap .before {
  visibility: hidden;
}

.room[data-step="reply"] .swap .after {
  visibility: visible;
}

.room[data-step="reply"] .lane-drums {
  background: var(--notice);
  margin: calc(var(--s-2) * -1);
  padding: var(--s-2);
  border-radius: var(--r-md);
}

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

.strip i {
  display: block;
  height: 26px;
  border-radius: 5px;
  background: var(--bg-2);
}

.strip i.beat {
  background: var(--line);
}

.strip i.hold {
  background: var(--dark-2);
}

.strip i.on {
  background: var(--ink);
}

.strip i.loud {
  box-shadow: inset 0 -6px 0 var(--signal);
}

.strip i.now {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.strip i.on.now {
  background: var(--signal);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.change {
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.change .after-only,
.room[data-step="reply"] .change .before-only {
  display: none;
}

.room[data-step="reply"] .change .after-only {
  display: inline;
  color: var(--ink);
  font-weight: 600;
}

.pause {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  border: 2px solid var(--ink);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font: 700 var(--fs-meta) / 1.4 var(--body);
  cursor: pointer;
}

/* How it works: two places, side by side */

section {
  scroll-margin-top: 80px;
}

.how {
  padding: var(--s-10) 0;
  background: var(--bg);
  border-top: 2px solid var(--ink);
}

.how h2,
.features h2 {
  font-size: var(--fs-h2);
}

.how .lead,
.features .lead {
  margin: var(--s-4) 0 var(--s-7);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5);
  align-items: start;
}

.zone {
  border: 2px solid var(--ink);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transition: opacity var(--t-screen) var(--ease-out);
}

.zone.local {
  background: var(--surface);
}

.zone.cloud {
  background: var(--ink);
  color: var(--surface);
}

.zone-name {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font: 800 var(--fs-label) / 1 var(--display);
}

.zone-name svg {
  width: 48px;
  height: 36px;
  stroke-width: 3;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s-6);
}

.step {
  display: grid;
  row-gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.cloud .step {
  border-top-color: var(--felt-charcoal);
}

.viz-read {
  display: grid;
  gap: var(--s-3);
}

.viz-read .msg.me.small {
  justify-self: start;
  font-size: var(--fs-small);
  padding: 8px 14px;
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px;
}

.viz .strip i {
  height: 22px;
}

.viz-song {
  display: flex;
  gap: var(--s-4);
  align-items: flex-end;
}

.producer-head {
  width: 72px;
  height: 72px;
  flex: none;
}

.offline-note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
}

.offline-note .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  border: 2px solid var(--ink);
}

.offline-note .off-text,
.split[data-offline="true"] .offline-note .on-text {
  display: none;
}

.split[data-offline="true"] .offline-note .off-text {
  display: inline;
}

.cloud-off {
  display: none;
  font-weight: 700;
}

.split[data-offline="true"] .cloud {
  background: var(--felt-charcoal);
  border-style: dashed;
}

.split[data-offline="true"] .cloud .step {
  opacity: 0.35;
}

.split[data-offline="true"] .cloud-off {
  display: block;
}

.wifi {
  margin-top: auto;
  padding-top: var(--s-5);
  border-top: 1px solid var(--felt-charcoal);
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  color: var(--felt-grey);
  font-size: var(--fs-small);
}

.wifi .btn[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
}

/* Timeline: one block per section, width by length, height by energy */

.timeline {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
}

.sec {
  flex: var(--bars) 1 0;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sec-who {
  display: none;
}

.t-song .sec-who {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2px;
}

.t-song .sec-who .head {
  width: 34px;
  height: 34px;
}

.sec-bar {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  height: 28px;
}

.sec.e-medium .sec-bar {
  height: 44px;
}

.sec.e-high .sec-bar {
  height: 62px;
  background: var(--signal);
}

.sec-name {
  font-size: var(--fs-meta);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud .sec-bar {
  border-color: var(--surface);
  background: var(--felt-charcoal);
}

.cloud .sec.e-high .sec-bar {
  background: var(--signal);
  border-color: var(--signal);
}

/* The test: on ink, the one dark band on the page */

.test {
  background: var(--bg-2);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: var(--s-10) 0;
}

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
  align-items: center;
}

.test h2 {
  font-size: var(--fs-h2);
}

.num-line {
  display: block;
  font-size: var(--fs-h2-sm);
  line-height: 1.05;
  margin-top: var(--s-3);
}

.big-num {
  display: block;
  color: var(--ink);
  font-size: var(--fs-num);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.test .lead {
  color: var(--ink-2);
  margin: var(--s-5) 0 var(--s-6);
}

.scores {
  display: grid;
  gap: var(--s-7);
}

.score-name {
  margin-bottom: var(--s-3);
  color: var(--ink-2);
}

.score-name b {
  font: 800 var(--fs-label) / 1 var(--display);
  color: var(--ink);
  margin-right: var(--s-2);
}

.cells {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  gap: 5px;
}

.cells i {
  display: block;
  aspect-ratio: 1 / 1.4;
  border-radius: 5px;
  border: 2px solid var(--dark-2);
}

.cells i.hit {
  border-color: var(--ink);
}

.cells.model i.hit {
  background: var(--signal);
}

.cells.words i.hit {
  background: var(--ink);
}

/* Features: four tiles of different sizes */

.features {
  padding: var(--s-10) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}

.tile {
  border: 2px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.tile p {
  color: var(--ink-2);
}

.tile .viz,
.tile .song-card,
.tile .file {
  margin-top: auto;
  padding-top: var(--s-6);
}

.t-chips {
  grid-column: 8 / span 5;
}

.with-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.with-head .avatar {
  width: 48px;
  height: 48px;
}

.t-chips .chip {
  font-size: var(--fs-body);
  padding: 6px 16px;
}

.t-take {
  grid-column: 8 / span 5;
}

.takes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-3);
  align-items: center;
}

.take-label {
  font-size: var(--fs-meta);
  font-weight: 700;
}

.t-song {
  grid-column: 1 / span 7;
  grid-row: 1 / span 3;
}

.t-song .song-card {
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--s-7);
}

.t-song .song-body {
  width: 100%;
  flex: none;
  gap: var(--s-4);
}

.t-song .producer-says {
  display: flex;
  align-items: flex-end;
  gap: var(--s-3);
}

.t-song .song-card .producer-head {
  width: 120px;
  height: 120px;
}

.tile .says {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px;
  padding: var(--s-3) var(--s-4);
  color: var(--ink);
  font-weight: 600;
  max-width: 34ch;
}

.tile .song-title {
  color: var(--ink);
}

.t-song .song-title {
  font-size: var(--fs-h2-sm);
}

.t-song .timeline {
  width: 100%;
}

.t-song .sec-bar {
  height: 44px;
}

.t-song .sec.e-medium .sec-bar {
  height: 76px;
}

.t-song .sec.e-high .sec-bar {
  height: 112px;
}

.song-card {
  display: flex;
  gap: var(--s-5);
  align-items: flex-end;
}

.song-card .producer-head {
  width: 96px;
  height: 96px;
}

.song-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: var(--s-3);
}

.song-title {
  font: 800 var(--fs-label) / 1 var(--display);
}

.checked {
  font-size: var(--fs-small);
  font-weight: 600;
}

.t-midi {
  grid-column: 8 / span 5;
  background: var(--ink);
  color: var(--surface);
}

.roll {
  margin-top: var(--s-4);
  border: 1px solid var(--felt-charcoal);
  border-radius: var(--r-md);
  padding: var(--s-3);
}

.roll svg {
  display: block;
  width: 100%;
  height: 96px;
}

.roll .n-lead {
  fill: var(--signal);
}

.roll .n-keys {
  fill: var(--surface);
}

.roll .n-bass {
  fill: var(--dark-2);
}

.file-name {
  font-weight: 700;
  color: var(--surface);
}

.t-midi p {
  color: var(--felt-grey);
}

.file {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
}

.file svg {
  width: 44px;
  height: 54px;
  flex: none;
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* Facts: privacy and the Firebase products */

.facts {
  padding: var(--s-9) 0;
  border-top: 2px solid var(--ink);
  background: var(--surface);
}

.facts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
}

.fact h2 {
  font-size: var(--fs-h2-sm);
  margin-bottom: var(--s-4);
}

.fact .lead {
  margin-bottom: var(--s-5);
}

.products {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}

.products li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.products b {
  color: var(--ink);
  margin-right: var(--s-1);
}

/* Maker */

.maker {
  padding: var(--s-9) 0 0;
}

.maker-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--s-4);
}

.maker-head {
  width: 72px;
  height: 72px;
  flex: none;
}

.maker-line {
  font: 700 var(--fs-h3) / 1.3 var(--display);
  border: 2px solid var(--ink);
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 6px;
  padding: var(--s-5) var(--s-6);
  max-width: 640px;
  color: var(--ink-2);
}

/* Closing call */

.cta {
  padding: var(--s-9) 0 var(--s-10);
  text-align: center;
}

.cta .stage.small {
  margin-bottom: calc(var(--fs-h2) * -0.149 + 2px);
}

.cta .stage.small .fig {
  width: clamp(56px, 6vw, 92px);
}

.cta h2 {
  font-size: var(--fs-h2);
  position: relative;
}

.cta .lead {
  margin: var(--s-4) auto var(--s-6);
}

/* Footer */

.footer {
  background: var(--ink);
  color: var(--surface);
  padding: var(--s-8) 0 var(--s-6);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
}

.foot-brand {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}

.foot-brand p {
  color: var(--felt-grey);
  max-width: 34ch;
}

.footer .mark path {
  stroke: var(--surface);
}

.foot-col {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.foot-col h2 {
  font: 700 var(--fs-small) / 1.4 var(--body);
  color: var(--felt-grey);
  margin-bottom: var(--s-1);
}

.foot-col a {
  text-decoration: none;
  color: var(--surface);
}

.foot-col a:hover {
  color: var(--signal);
}

.foot-built,
.foot-copy {
  grid-column: 1 / -1;
  color: var(--felt-grey);
  font-size: var(--fs-small);
}

.foot-built {
  border-top: 1px solid var(--felt-charcoal);
  padding-top: var(--s-5);
}

/* Phone */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-row {
    justify-content: space-between;
    height: 64px;
  }

  .hero {
    padding-top: var(--s-7);
  }

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

  .room {
    margin-top: var(--s-8);
  }

  .room-chat {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    min-height: 330px;
  }

  .room-loop {
    padding: var(--s-5) var(--s-4) var(--s-8);
  }

  .lane {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-2);
  }

  .strip {
    gap: 2px;
  }

  .strip i {
    height: 22px;
    border-radius: 3px;
  }

  .bento > .tile {
    grid-column: 1 / -1;
  }

  .song-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cells {
    gap: 3px;
  }

  .cells i {
    border-radius: 3px;
  }

  .bento > .tile {
    grid-row: auto;
  }

  .t-song .song-card .producer-head {
    width: 80px;
    height: 80px;
  }

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

  .foot-brand {
    grid-column: 1 / -1;
  }

  .how,
  .test,
  .features {
    padding: var(--s-9) 0;
  }

  .zone,
  .tile {
    padding: var(--s-5);
  }

}

@media (max-width: 520px) {
  .hero .actions .btn {
    flex: 1 1 100%;
  }

  .maker-line {
    padding: var(--s-5);
  }

  .timeline.mini .sec-name {
    display: none;
  }
}

/* Reduce Motion: no bob, no tapping, no playhead, the demo holds its final frame. */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Privacy page */

.doc {
  max-width: 760px;
  padding-top: var(--s-8);
  padding-bottom: var(--s-9);
}

.doc h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--s-4);
}

.doc h2 {
  font-size: var(--fs-h2-sm);
  margin: var(--s-7) 0 var(--s-3);
}

.doc ul {
  padding-left: 1.2em;
  display: grid;
  gap: var(--s-2);
}

.doc li::marker {
  color: var(--signal-deep);
}

.doc li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc > p:last-child {
  margin-top: var(--s-7);
}
