/* Hairline: white, #111 for text and every box, #d9d9d9 rules, one grey ground, red only for errors.
   No radius (except the phone), no shadow, no gradient.
   One grid for the whole page: every window sits on it at the content's width. The USB section's window is the only
   one cut off, by the section's own bottom edge. */
:root{
  --surface:#fff; --subtle:#f6f6f6; --text:#111; --muted:#666; --line:#d9d9d9; --negative:#b42318;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
  --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif;
  --accent:#ff4b1f; /* the page's one colour: the "Hear it live" note on the demo. Reads on white, the grey ground and near-black. */
  --mono:"SF Mono",ui-monospace,Menlo,"Courier New",monospace;
  --page:1120px; --gutter:24px;
  --section:120px; /* the space above and below a white section */
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--surface);color:var(--text);font:19px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:2px solid var(--text);outline-offset:3px}
p{margin:0}
.wrap{max-width:calc(var(--page) + 2 * var(--gutter));margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.mono{font:12px/1.5 var(--mono);letter-spacing:.02em}
.muted{color:var(--muted)}
.link{font:500 15px var(--sans);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}

/* type: hero 48, section heads 36, body 19 */
h1,h2{font-family:var(--display);font-weight:500;margin:0}
h2{font-size:36px;line-height:1.08;letter-spacing:-.03em}
.desc{color:var(--muted);max-width:30em}
/* a section head: the heading centered over its description */
.sec-head{text-align:center;margin-bottom:56px}
.sec-head .desc{margin:16px auto 0;max-width:34em}

/* header */
.top{border-bottom:1px solid var(--line)}
.top-in{display:flex;justify-content:space-between;align-items:center;height:80px}
.brand{display:flex;align-items:center;gap:12px;font-weight:600;font-size:24px;text-decoration:none;letter-spacing:-.01em}
/* the mark is the record on its own (record.png, from design/icons/record.html); it spins while hovered. Always
   running but paused, so it stops where it is when the pointer leaves instead of snapping back. */
.brand img{display:block;width:56px;height:56px;animation:spin 1.8s linear infinite paused}
.brand:hover img{animation-play-state:running}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.brand img{animation:none}}
.nav{display:flex;align-items:center;gap:24px}

/* buttons */
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 28px;border:1px solid var(--text);background:var(--text);color:#fff;font:500 16px/1 var(--sans);cursor:pointer;border-radius:0;white-space:nowrap}
.btn:hover{background:#333;border-color:#333}
.btn:disabled{opacity:.5;cursor:default}
.btn-sm{height:38px;padding:0 16px;font-size:15px}

/* A Mac window as macOS draws it: the capture (its traffic lights painted in by build.sh), rounded corners, the
   hairline edge and the window shadow. The one place the page has a radius and a shadow: it's the device, not the
   page. --s is the window's scale against actual size, which the radius and shadow follow. */
.win{--s:.75;margin:0;border-radius:calc(16px * var(--s));overflow:hidden;background:var(--surface);
  box-shadow:0 0 0 .5px rgba(0,0,0,.25),0 calc(28px * var(--s)) calc(70px * var(--s)) rgba(0,0,0,.22),0 4px 12px rgba(0,0,0,.08)}
.win img{display:block;width:100%;height:auto}
/* dark mode windows: a faint light edge instead, as on a dark desktop */
.win.dark{background:#0d0d0d;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 0 .5px #000}

/* hero: the headline on the left with the lead and the button beside it, centered on it; then the Mac short of the
   content's right edge, and the phone in front of its right side, flush with that edge */
.hero{padding-top:72px;padding-bottom:40px}
.hero-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;margin-bottom:64px}
.strikes{font-size:48px;line-height:1.04;letter-spacing:-.035em}
.strikes>*{display:block;white-space:nowrap}
.strikes s{color:#b3b3b3;text-decoration-color:var(--text);text-decoration-thickness:3px}
.lead{margin-bottom:28px;max-width:26em;font-size:18px}
.hero-stage{position:relative;padding-bottom:48px}
.hero-win{width:calc(100% - 120px)}
.hero-phone{position:absolute;right:0;bottom:0;width:250px;height:auto;z-index:2}

/* AutoMix: the one grey ground, the phone beside the demo */
.band{background:var(--subtle);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.automix{padding-top:80px;padding-bottom:56px}
.automix .sec-head{margin-bottom:48px}
.mix{display:grid;grid-template-columns:230px minmax(0,1fr);gap:56px;align-items:center;max-width:960px;margin:0 auto}
.mix picture{display:block}
.mix-iph{display:block;width:100%;height:auto}

/* sets and the library, laid out the same: the head, the window, then the points in two or three columns split by
   light rules (no box around them), so the only black lines are the window's */
.feature{padding-top:var(--section);padding-bottom:var(--section)}
.points{display:grid;gap:1px;background:var(--line);margin-top:56px}
.points-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.points-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.point{padding:32px 40px;background:var(--surface);font-size:18px;line-height:1.5;color:var(--muted)}
.points-2 .point:nth-child(odd),.points-3 .point:nth-child(3n+1){padding-left:0}
.points-2 .point:nth-child(even),.points-3 .point:nth-child(3n){padding-right:0}
.point b{color:var(--text);font-weight:600}

/* USB: the one dark section, the app in its dark mode, its window cut off by the section's bottom edge */
.night{background:#0d0d0d;color:#f2f2f2;--surface:#0d0d0d;--text:#f2f2f2;--muted:#9a9a9a;--line:#2a2a2a;overflow:hidden}
.night-in{padding-top:calc(var(--section) * .75)}
.night .big{font:500 clamp(36px,4vw,52px)/1.04 var(--display);letter-spacing:-.04em}
.night-win{margin-bottom:-320px}
.night .points{margin:24px 0 48px}
.night .point{padding-top:20px;padding-bottom:20px}

/* AutoMix demo: a lane per track (colored by demo.js), blend labels under them, and the list. Every part keeps its
   size whatever the player shows (the example or your tracks, none to three), so the section never changes height. */
.player{border:1px solid var(--text);background:var(--surface)}
.p-head{display:flex;align-items:center;gap:16px;padding:16px}
.play{width:44px;height:44px;flex:none;border:0;background:var(--text);color:#fff;font-size:15px;cursor:pointer;border-radius:0}
.play:disabled{opacity:.3;cursor:default}
.p-title{flex:1;display:flex;flex-direction:column;line-height:1.3}
.p-title span{min-height:18px}
.p-title b{font-weight:500;font-size:17px}
.p-lanes{position:relative;display:flex;flex-direction:column;gap:4px;margin:0 16px;padding:6px 0;min-height:52px;cursor:pointer}
.lane{position:relative;height:8px;background:var(--subtle)}
.seg{position:absolute;top:0;bottom:0}
.head{position:absolute;top:0;bottom:0;left:0;width:2px;margin-left:-1px;background:var(--text)}
.p-blends{position:relative;height:30px;margin:0 16px}
.bl{position:absolute;top:0;height:100%;display:flex;justify-content:center;align-items:flex-start;padding:4px 0 0;background:none;border:0;border-top:1px solid var(--text);font:12px/1.4 var(--mono);color:var(--muted);cursor:pointer;white-space:nowrap}
.bl span{text-decoration:underline;text-underline-offset:3px}
.bl:hover,.bl.active{color:var(--text)}
.bl.active{font-weight:700}
.q{list-style:none;margin:8px 0 0;padding:0 16px 4px;height:220px;overflow-y:auto}
.q li{display:grid;grid-template-columns:44px 1fr auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid var(--line);font-size:16px}
.q .cover{display:block;width:44px;height:47px;border-bottom:3px solid var(--line);background:var(--subtle)}
.q .cover img{display:block;width:44px;height:44px}
/* your own tracks have no cover: a plain square, dark enough to show on the highlighted row */
.q .cover:empty{background:var(--line)}
.q small{display:block;font-size:14px;color:var(--muted)}
.q li.trk{transition:background .3s}
.q li.trk.now{background:var(--subtle);margin:0 -16px;padding-left:16px;padding-right:16px}
.q li.trk.now .nm{font-weight:600}
.q .eq{display:none;align-items:flex-end;gap:2px;width:14px;height:12px}
.q li.trk.now .eq{display:flex}
.q .eq i{flex:1;height:100%;background:currentColor;transform-origin:bottom;transform:scaleY(.4)}
.playing .q .eq i{animation:eq .9s ease-in-out infinite alternate}
.playing .q .eq i:nth-child(2){animation-duration:.7s;animation-delay:-.3s}
.playing .q .eq i:nth-child(3){animation-duration:1.1s;animation-delay:-.6s}
@keyframes eq{0%{transform:scaleY(.25)}100%{transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){.playing .q .eq i{animation:none}}
.p-back{align-self:flex-start;margin-top:2px;padding:0;border:0;background:none;color:var(--text);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.p-back[hidden]{display:block;visibility:hidden}
/* your own tracks: a queue built one track at a time. Files dropped on the player join it (highlighted while over it). */
.player.over{background:var(--subtle);outline:1px solid var(--text);outline-offset:-4px}
.demo-foot{min-height:42px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin-top:16px}
.use-own{padding:0;border:0;background:none;color:var(--text);cursor:pointer}
.p-status{flex-basis:100%;min-height:18px;color:var(--text)}
.p-note{display:block;padding-top:4px}
.q li.mine{grid-template-columns:44px minmax(0,1fr) auto auto}
.q .nm{min-width:0;overflow-wrap:anywhere}
.rm{width:28px;height:28px;margin-right:-6px;padding:0;border:0;background:none;color:var(--muted);font:18px/1 var(--sans);cursor:pointer}
.rm:hover{color:var(--text)}
.q li.add{display:block;padding:0}
.q .add label{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:center;padding:12px 0;color:var(--muted);cursor:pointer}
.q .add label:hover,.q .add label:focus-within{color:var(--text)}
.q .add label:focus-within{outline:2px solid var(--text);outline-offset:2px}
.q .add input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.q .add .cover{display:flex;align-items:center;justify-content:center;height:44px;border:1px dashed #999;background:none;font:300 22px/1 var(--sans)}
.q small a{color:inherit;text-underline-offset:2px}

/* closing call */
.close-cta{border-top:1px solid var(--text);padding-top:var(--section);padding-bottom:var(--section)}
.close-cta h2{font-size:56px;letter-spacing:-.035em;margin-bottom:16px}
.close-cta .desc{margin-bottom:32px}

/* form (in the modal) */
.row{display:flex}
.row input{flex:1;min-width:0;height:52px;padding:0 16px;border:1px solid var(--text);border-right:0;border-radius:0;background:var(--surface);color:var(--text);font:18px var(--sans)}
.row input::placeholder{color:#999}
.row input:focus{outline:none;box-shadow:inset 0 0 0 1px var(--text)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.msg{font-size:14px;margin-top:10px;min-height:1.4em}
.msg.err{color:var(--negative)}
.done{padding:16px;border:1px solid var(--text)}

/* guest-list modal */
.modal{border:1px solid var(--text);border-radius:0;padding:40px;max-width:520px;width:calc(100% - 32px);color:var(--text);background:var(--surface)}
.modal::backdrop{background:rgba(255,255,255,.88)}
.modal h2{margin-bottom:12px}
.modal p.muted{margin-bottom:28px}
.close{position:absolute;top:16px;right:16px;background:none;border:0;font:12px var(--mono);color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:4px}

.foot{display:flex;justify-content:space-between;padding-top:24px;padding-bottom:32px;border-top:1px solid var(--line)}

@media (max-width:1100px){
  .hero-text{grid-template-columns:minmax(0,1fr);gap:28px;margin-bottom:40px}
  .hero-stage{padding-bottom:24px}
  .hero-win{width:92%}
  .hero-phone{width:26%}
}
@media (max-width:1000px){
  .mix{grid-template-columns:200px minmax(0,1fr);gap:32px}
}
@media (max-width:760px){
  :root{--gutter:16px;--section:64px}
  body{font-size:17px}
  .top-in{height:64px}
  .brand{font-size:20px;gap:10px}
  .brand img{width:44px;height:44px}
  .nav{gap:16px}
  .hero{padding-top:40px}
  .strikes{font-size:clamp(30px,10vw,44px)}
  h2{font-size:28px}
  .sec-head{margin-bottom:32px}
  .win{--s:.4}
  .automix{padding-top:56px;padding-bottom:32px}
  .automix .sec-head{margin-bottom:40px}
  /* the title wraps to two lines here, so the play button sits lower and the arrow is drawn for it (a-narrow). The
     lettering tilts less and sits lower so it keeps clear of the paragraph above. */
  .try g.a-wide{display:none}
  .try g.a-narrow{display:inline}
  .try .ul{transform:translateY(6px)}
  .try .l{transform:translate(0,18px) translate(104px,30px) rotate(-3deg) scale(.65) translate(-104px,-30px)}
  .mix{grid-template-columns:1fr}
  /* on a phone a second phone beside the demo adds nothing */
  .mix picture{display:none}
  .demo-foot{min-height:62px}
  .points-2,.points-3{grid-template-columns:minmax(0,1fr);margin-top:32px}
  .points .point{padding:20px 0;font-size:17px}
  .night-win{margin-bottom:-80px}
  .close-cta h2{font-size:36px}
  .row{flex-direction:column;gap:8px}
  .row input{flex:none;border-right:1px solid var(--text)}
  .btn:not(.btn-sm){width:100%}
  .modal{padding:32px 20px}
}

/* "Hear it live": a hand-drawn note and arrow over the demo's play button, the page's one colour. It sits above the
   player (never over its controls), draws itself on when the section scrolls into view, and fades once the mix plays. */
.try{position:relative;z-index:1;height:0;color:var(--accent);pointer-events:none;mix-blend-mode:multiply;transition:opacity .6s}
.try svg{position:absolute;left:0;top:-52px;overflow:visible}
.try .d{stroke-dasharray:1;stroke-dashoffset:0}
.try.pre .d{stroke-dashoffset:1;visibility:hidden} /* hidden, or the round caps leave a dot at every stroke's start */
.try.draw .d{transition:stroke-dashoffset 0s linear,visibility 0s}  /* demo.js sets each stroke's duration and delay inline */
.try .a-narrow{display:none}
.try.faded{opacity:0}
@media (prefers-reduced-motion:reduce){.try .d,.try{transition:none!important}}

/* shared-track page (share.js): the art and the title side by side, the player and Get track under them. Reuses the
   header, .btn, .player and .play above. */
#share{min-height:100vh;display:flex;flex-direction:column}
.sh-main{flex:1}
.sh{display:grid;grid-template-columns:480px minmax(0,1fr);gap:64px;padding-top:72px;padding-bottom:96px;align-items:start}
.sh-art{aspect-ratio:1;background:var(--subtle);outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}
.sh-art img{display:block;width:100%;height:100%;object-fit:cover}
.sh-art.none{display:flex;align-items:center;justify-content:center;background:#ededed;outline:0}
.sh-art.none img{width:40%;height:auto}
.sh-title{font-size:48px;line-height:1.08;letter-spacing:-.035em;color:var(--muted);text-wrap:balance;overflow-wrap:anywhere}
.sh-title.long{font-size:40px}
.sh-title.xlong{font-size:32px}
.sh-title b{font-weight:500;color:var(--text)}
.sh-meta{display:flex;align-items:center;gap:14px;margin-top:28px;font-size:15px}
.sh-key{padding:2px 9px;font-weight:500;color:#111}
.sh-player{display:flex;align-items:center;gap:16px;margin-top:36px}
.sh-icon svg{display:block;width:14px;height:14px;fill:currentColor}
.sh-player .play{display:flex;align-items:center;justify-content:center;padding:0}
.sh-icon{display:flex}
.sh-icon.is-play{margin-left:2px}
.sh-wave{position:relative;flex:1;min-width:0;height:56px;cursor:pointer;touch-action:pan-y}
.sh-wave canvas{display:block;width:100%;height:100%}
.sh-time{flex:none;min-width:5.5em;text-align:right;color:var(--muted);font-size:13px}
.sh-get{position:relative;display:inline-block;margin-top:28px}
.sh-get .btn{width:100%}
.sh-get .chev{width:12px;height:12px;margin-left:12px;stroke:#fff;fill:none;stroke-width:1.6}
.sh-choices{position:absolute;left:0;top:calc(100% - 1px);width:320px;z-index:2;border:1px solid var(--text);background:var(--surface)}
.sh-choices a{display:block;padding:14px 18px;text-decoration:none;font:500 16px/1.3 var(--sans)}
.sh-choices a+a{border-top:1px solid var(--line)}
.sh-choices a:hover{background:var(--subtle)}
.sh-choices small{display:block;margin-top:2px;font:400 14px/1.4 var(--sans);color:var(--muted)}
.sh-msg{padding-top:140px;padding-bottom:140px}
.sh-msg h1{font-size:48px;line-height:1.08;letter-spacing:-.035em;max-width:16em}
.sh-msg .desc{margin:16px 0 32px;max-width:26em}
.sh-foot{border-top:1px solid var(--line);padding:28px 0;color:var(--muted);font-size:14px}
@media (max-width:1100px){.sh{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:40px}.sh-title{font-size:40px}.sh-title.long{font-size:32px}.sh-title.xlong{font-size:26px}}
@media (max-width:760px){
  .sh{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:28px;padding-bottom:56px}
  .sh-title,.sh-title.long{font-size:32px}
  .sh-title.xlong{font-size:26px}
  .sh-meta{margin-top:20px}
  .sh-player{margin-top:24px;gap:12px}
  .sh-wave{height:44px}
  .sh-time{font-size:12px;min-width:5em}
  .sh-get{display:block}
  .sh-choices{position:static;width:100%;margin-top:-1px}
  .sh-msg{padding-top:72px;padding-bottom:72px}
  .sh-msg h1{font-size:34px}
}
