/* Homepage in the app's look (owner 11-15: "all in the app's style"): tokens from drums/app/web/src/styles.css,
   panels, buttons and chips as in the player, the welcome screen and the paywall. No grain, no plates. */
:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: #131417;
  --panel-2: #1a1b20;
  --line: #24262d;
  --line-2: #33363f;
  --dim: #8a8c95;
  --faint: #5c5f69;
  --text: #e8eaf0;
  --gold: #e8bd62;
  --gold-tint: rgba(232, 189, 98, 0.1);
  --hat: #e8bd62; --snare: #4f8cf0; --kick: #ea3e7d; --crash: #ee8c4c; --tom: #46c3a2; --floor: #7e6de4; --ride: #c96cc8;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --cta: #e8eaf0;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; }
body { position: relative; margin: 0; color: var(--text); font: 500 16px/1.45 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }

/* atmosphere, as the previous landing (W1b): soft glows in the drum colours, placed per section so scrolling shifts the
   mood, and a static grain. Both sit behind everything (z-index < 0 in the root context, the body has no background of
   its own, html paints --bg), so text, panels and the live pieces stay exactly as they are. No filters, nothing fixed:
   plain radial gradients and one 256 px noise tile that scroll with the page. */
body::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(grain.png) 0 0 / 256px 256px; image-rendering: pixelated; }
.hero, .feature, .block, .final { position: relative; }
.hero::before, .feature::before, .block::before, .final::before {
  content: ''; position: absolute; z-index: -2; pointer-events: none;
  top: var(--fx-top, 0px); bottom: var(--fx-bottom, -80px); left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--fx);
  /* fade both ends, so no glow is ever cut into a straight seam at a section edge or under the footer */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.hero { --fx-top: -64px; --fx:
  radial-gradient(42% 46% at 8% 34%, rgb(234 62 125 / .19), transparent 70%),
  radial-gradient(46% 52% at 92% 62%, rgb(126 109 228 / .20), transparent 70%); }
.f-steps { --fx:
  radial-gradient(40% 44% at 6% 62%, rgb(232 189 98 / .13), transparent 70%),
  radial-gradient(38% 46% at 96% 72%, rgb(79 140 240 / .17), transparent 70%); }
.f-slow { --fx:
  radial-gradient(46% 50% at 18% 60%, rgb(79 140 240 / .17), transparent 70%); }
.f-loop { --fx:
  radial-gradient(44% 46% at 86% 52%, rgb(232 189 98 / .13), transparent 70%),
  radial-gradient(34% 40% at 4% 80%, rgb(201 108 200 / .13), transparent 70%); }
.f-mute { --fx:
  radial-gradient(40% 48% at 4% 46%, rgb(70 195 162 / .16), transparent 70%),
  radial-gradient(40% 44% at 94% 66%, rgb(238 140 76 / .14), transparent 70%); }
.f-limbs { --fx:
  radial-gradient(46% 46% at 50% 66%, rgb(234 62 125 / .16), transparent 70%),
  radial-gradient(30% 36% at 8% 30%, rgb(79 140 240 / .12), transparent 70%); }
.block { --fx:
  radial-gradient(44% 50% at 92% 50%, rgb(126 109 228 / .14), transparent 70%); }
.final { --fx-bottom: -40px; --fx:
  radial-gradient(42% 48% at 10% 40%, rgb(232 189 98 / .13), transparent 70%),
  radial-gradient(40% 46% at 90% 60%, rgb(234 62 125 / .16), transparent 70%); }
@media (max-width: 899px) {
  /* a phone is narrow and tall: wider, taller glows so the colour still reads on the side of the text */
  .hero::before, .feature::before, .block::before, .final::before { background-size: 150% 100%; background-position: center; background-repeat: no-repeat; }
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 64px; padding-top: env(safe-area-inset-top, 0px); }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--display); text-decoration: none; }
.mark img { width: 22px; height: 22px; display: block; }
.top .ig { color: var(--dim); font-size: 14px; text-decoration: none; }
.top .ig:hover { color: var(--text); }

/* hero */
.hero h1 { margin: 0; font: 800 clamp(48px, 12.5vw, 84px)/.98 var(--display); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; }
.lede { margin: 14px 0 0; max-width: 32ch; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.35; color: var(--text); }
.lede span { color: var(--dim); }
.offer { margin: 28px 0 0; color: var(--dim); font-size: 15px; font-weight: 600; }

/* «Create free account»: a plain link into the app, a gold button */
.signup { margin-top: 28px; max-width: 470px; }
.go { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 10px; background: var(--gold); color: #17140c; font: 600 15px var(--display); text-decoration: none; }
.go:hover { background: #efc874; }


/* the hero iPad: the whole device, landscape, flat and still; the player recorded at 1180x820 inside */
.ipad { margin: 0; padding: clamp(10px, 2.6vw, 22px); border-radius: clamp(22px, 5vw, 44px); background: #1c1d22; box-shadow: 0 0 0 1px #2c2e36, 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05); }
.ipad .screen { position: relative; aspect-ratio: 1180 / 820; border-radius: clamp(10px, 2.2vw, 20px); overflow: hidden; background: var(--bg); }
.ipad img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* sections: text and a live piece of the player, rebuilt in HTML and canvas with the app's colours and sizes */
.hero { padding: 8px 0 0; }
.hero .ipad { margin-top: 40px; }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; }
  .hero .text { display: contents; }
  /* phone (owner 11-16): title, line, the iPad, then the button, so it still sits on the first screen */
  .hero .ipad { order: 0; margin-top: 20px; }
  .hero .signup { order: 1; margin-top: 18px; }
  .f-slow .text { order: -1; }   /* phone: headline and copy above the element */
  .f-slow { display: flex; flex-direction: column; }
}
.feature { padding: 128px 0 0; }
.feature h2, .block h2, .final h2 { text-wrap: balance; margin: 0; font: 800 clamp(30px, 8vw, 44px)/1.04 var(--display); letter-spacing: -.03em; max-width: 16ch; }
p.say { margin: 14px 0 0; max-width: 36ch; color: var(--dim); font-size: 18px; line-height: 1.45; }
.demo { position: relative; margin-top: 36px; }
canvas { display: block; width: 100%; height: 100%; }

/* lanes, as Lane.module.css: names on the left with a drum-coloured tick, notes on a canvas */
.lane-ui { display: grid; grid-template-columns: 92px minmax(0, 1fr); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 0 16px; overflow: hidden; }
.names { display: grid; grid-template-rows: 52px repeat(var(--rows, 3), minmax(0, 1fr)); }
.names .readout { align-self: center; display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--dim); }
.names .readout b { font: 700 26px var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.names > span { display: flex; align-items: center; gap: 12px; font: 600 16px var(--display); color: var(--dim); transition: color .25s, opacity .5s; }
.names > span::before { content: ''; width: 3px; height: min(30px, 60%); border-radius: 2px; background: var(--c); flex: none; transition: opacity .25s; }
.names > span[data-hit] { color: var(--text); }
.names > span[data-hidden] { opacity: .18; }
.lane-ui { grid-template-rows: minmax(0, 1fr); }
.lane-ui canvas { display: block; min-width: 0; width: 100%; height: 100%; }   /* fill the box: a canvas left to size itself grew taller than it and clipped the kick row (owner 11-15) */

/* steps: wide lanes, the three steps as chips above them */
.f-steps .lane-ui { height: clamp(250px, 27vw, 320px); }
.steps-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.steps-row span { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--faint); font: 600 16px var(--display); transition: color .3s, border-color .3s, background .3s; }
.steps-row b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); color: var(--dim); font: 700 14px var(--display); transition: background .3s, color .3s; }
.steps-row span[data-done] { color: var(--dim); }
.steps-row span[data-on] { color: var(--text); border-color: var(--text); }
.steps-row span[data-on] b { background: var(--gold); color: #141414; }

/* slow: the speed popover of SpeedControl, large; a lane strip under it slows with it */
.speed { padding: clamp(18px, 3vw, 28px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.speed-top { display: flex; align-items: baseline; gap: 18px; }
.speed-top b { font: 700 clamp(56px, 13vw, 96px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: color .3s; }
.speed-top b[data-slow] { color: var(--gold); }
.speed-top span { font-size: clamp(14px, 2.6vw, 18px); color: var(--dim); font-variant-numeric: tabular-nums; }
.speed-bars { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; margin-top: 22px; height: clamp(150px, 22vw, 210px); }
.speed-bars .col { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 8px; height: 100%; }
.speed-bars .col > div { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.speed-bars i { display: block; width: 62%; border-radius: 5px; background: var(--line-2); transition: background .15s, box-shadow .15s; }
.speed-bars i[data-below] { background: #4a4d57; }
.speed-bars i[data-orig] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dim); }
.speed-bars i[data-on] { background: var(--text); box-shadow: none; }
.speed-bars span { font: 500 clamp(10px, 1.8vw, 13px) var(--mono); color: var(--dim); }
.speed-bars span[data-on], .speed-bars span[data-orig] { color: var(--text); font-weight: 600; }
.strip { margin-top: 22px; height: clamp(110px, 15vw, 140px); border-radius: 12px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }

/* loop: the song map of LoopMap, full width, the gold bracket with a handle centred on each edge */
.map-status { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.map-status span { color: var(--text); margin-left: 10px; opacity: 0; transition: opacity .2s; }
.map-status span[data-on] { opacity: 1; }
.map-box { position: relative; height: clamp(190px, 24vw, 250px); border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.map-content { position: absolute; inset: 0 12px; }
.mband { position: absolute; top: 0; height: 36px; display: flex; align-items: center; padding: 0 12px; background: var(--panel); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line); color: var(--dim); font: 600 14px var(--display); white-space: nowrap; overflow: hidden; }
.mband[data-on] { background: var(--gold); color: var(--bg); }
.mbands-bg { position: absolute; top: 0; left: -12px; right: -12px; height: 37px; background: var(--panel); border-bottom: 1px solid var(--line); }
.mbar { position: absolute; top: 37px; bottom: 0; border-right: 1px solid var(--line); }
.mbar[data-out] { background: rgba(11, 11, 12, .55); }
.mbar .num { position: absolute; top: 8px; left: 10px; font: 600 16px var(--display); color: var(--dim); }
.mbar[data-in] .num { color: var(--gold); }
.mbar .meter { position: absolute; top: 10px; right: 8px; font: 500 12px var(--mono); color: var(--faint); }
.mbar canvas { position: absolute; inset: 34px 0 10px; width: 100%; height: calc(100% - 44px); opacity: .85; }
.msel { position: absolute; top: 37px; bottom: 0; border: 2px solid var(--gold); border-radius: 8px; background: var(--gold-tint); }
.mhandle { position: absolute; bottom: 14px; width: 20px; height: 58px; margin-left: -10px; border-radius: 10px; background: var(--gold); border: 2px solid var(--bg); display: grid; place-items: center; z-index: 2; }
.mhandle::before { content: ''; width: 2px; height: 22px; border-left: 2px solid var(--bg); border-right: 2px solid var(--bg); }
.mclear { position: absolute; top: 28px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; z-index: 3; }
.mclear svg { stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.mhead { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: var(--text); z-index: 4; will-change: transform; }
.mhead::before { content: ''; position: absolute; top: 0; left: -5px; border-left: 6.5px solid transparent; border-right: 6.5px solid transparent; border-top: 9px solid var(--text); }
.mjump { position: absolute; top: 37px; bottom: 0; width: 0; z-index: 1; pointer-events: none; }
.mjump::after { content: ''; position: absolute; inset: 0 -14px; background: var(--gold); opacity: 0; }
.mjump[data-flash]::after { animation: flash .5s ease-out; }
@keyframes flash { from { opacity: .45; } to { opacity: 0; } }

/* your mix: the lanes under the preset chips */
.f-mute .lane-ui { height: clamp(320px, 40vw, 400px); grid-template-columns: 120px minmax(0, 1fr); }
/* your mix: preset chips, the lanes, three channels with level meters, a caption */
.f-mute .names { grid-template-rows: 16px repeat(5, minmax(0, 1fr)); }
.f-mute .names > span { font-size: 18px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.presets span { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 15px/1 var(--display); color: var(--faint); transition: color .25s, background .25s, border-color .25s; }
.presets span[data-on] { color: #141414; background: var(--text); border-color: var(--text); }
.mixer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mixer span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); transition: opacity .25s; }
.mixer b { font: 600 16px/1 var(--display); }
.mixer em { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.mixer i { width: 4px; height: 100%; border-radius: 2px; background: var(--hat); transform-origin: bottom; transform: scaleY(.1); }
.mixer [data-bus="band"] i { background: var(--tom); }
.mixer [data-bus="click"] i { background: var(--text); }
.mixer span[data-off] { opacity: .35; }
.mixer span[data-off] b { text-decoration: line-through; }
.state { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font: 700 clamp(22px, 5vw, 30px)/1.1 var(--display); }
.state i { width: 12px; height: 12px; border-radius: 50%; background: var(--hat); }

/* hands and feet: the player's own 3D kit (KitEngine, rendered on pure black, an animated WebP 1000x800); lighten lets the page's glow and
   grain show through its black, the mask feathers all four edges so no rectangle shows */
.kit { margin: 24px -20px 0; }
.kit img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 800; mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }

@media (max-width: 899px) {
  /* phone (owner 11-16): a step down in type and compact pieces */
  .hero h1 { font-size: clamp(42px, 12vw, 52px); margin-top: 16px; }
  .lede { font-size: 17px; margin-top: 10px; }
  .offer { margin-top: 8px; font-size: 14px; }
  .feature { padding-top: 96px; }
  .feature h2, .block h2, .final h2 { font-size: clamp(26px, 7.4vw, 32px); }
  p.say { font-size: 16px; margin-top: 10px; }
  .demo { margin-top: 22px; }
  .f-steps .lane-ui { height: 200px; }
  .f-mute .lane-ui { height: 250px; }
  .speed { padding: 16px; border-radius: 16px; }
  .speed-top b { font-size: 44px; }
  .speed-bars { height: 100px; margin-top: 14px; }
  .strip { height: 86px; margin-top: 14px; }
  .map-box { height: 160px; }
  .state { font-size: 19px; margin-top: 14px; }
  .presets { gap: 6px; margin-bottom: 12px; }
  .steps-row { gap: 6px; }
  .steps-row span { height: 34px; gap: 6px; padding: 0 10px 0 5px; font-size: 13px; white-space: nowrap; }
  .steps-row b { width: 22px; height: 22px; font-size: 12px; }
  .kit { margin-top: 16px; }
  .lane-ui { grid-template-columns: 68px minmax(0, 1fr); padding-left: 12px; }
  .names > span { gap: 8px; font-size: 13px; }
  .names > span::before { height: min(22px, 60%); }
  .names .readout b { font-size: 20px; }
  .f-mute .lane-ui { grid-template-columns: 84px minmax(0, 1fr); }
  .presets span { font-size: 13px; padding: 8px 11px; }
  .f-mute .names > span { font-size: 15px; }
  .mixer { gap: 8px; }
  .mixer span { padding: 10px 8px; gap: 6px; min-width: 0; }
  .mixer em { gap: 2px; }
  .mixer b { font-size: 14px; }
  .mbar .num { font-size: 14px; left: 7px; }
  .mband { font-size: 12px; padding: 0 8px; }
}

/* play on what you have: plain rows */
.block { padding: 120px 0 0; }
.rows { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows dt { font: 700 20px var(--display); }
.rows dd { margin: 0; color: var(--dim); font-size: 16px; }

/* the last call */
.final { padding: 120px 0 0; }
.final h2 { margin-top: 10px; }
.final h2 em { font-style: normal; }
.faq { margin-top: 96px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; font: 700 18px var(--display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 24px var(--display); color: var(--dim); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--dim); max-width: 60ch; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 56px 0 max(28px, env(safe-area-inset-bottom)); color: var(--faint); font-size: 13px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (min-width: 640px) {
  .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .rows div { border-top: 1px solid var(--line); border-bottom: 0; }
}

/* desktop: each section its own layout (wide lanes under the text, speed left, the map full width, mute right, the kit centred) */
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; min-height: calc(100svh - 64px); padding: 0 0 48px; }
  .hero .ipad { margin: 0; }
  /* desktop proportions (owner 11-16: the blocks below the hero read too big): two columns everywhere, the live piece
     capped near the hero iPad's size, a calmer vertical rhythm */
  .block, .final { padding-top: 112px; }
  .f-steps, .f-slow, .f-mute { display: grid; gap: 64px; align-items: center; }
  .f-steps, .f-mute { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .f-slow { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .f-steps .demo, .f-slow .demo, .f-mute .demo { margin-top: 0; width: 100%; max-width: 620px; justify-self: end; }
  .f-slow .demo { max-width: 480px; justify-self: start; }
  .f-steps .lane-ui { height: 260px; }
  .f-mute .lane-ui { height: 290px; }
  .speed-top b { font-size: 72px; }
  .speed-bars { height: 160px; }
  .strip { height: 110px; }
  .map-box { height: 200px; }
  .state { font-size: 24px; }
  .f-loop .text { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: end; }
  .f-loop .say { margin: 0; }
  .f-limbs .text { text-align: center; }
  .f-limbs .text h2, .f-limbs .text .say { margin-left: auto; margin-right: auto; }
  .f-limbs .kit { margin: 24px auto 0; width: min(100%, 720px, calc(54svh * 1000 / 800)); }
  p.say { font-size: 18px; }
  .final { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .final .signup { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
