/* Pulsyn – site styles v3.1.
   Brand profile from the logo: blue-black ground, the cyan → blue → violet →
   magenta light ramp, an extra-wide bold wordmark and a lavender tagline.
   The band feel comes from the taped setlist, the copy and the real footage. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --ground: #00010d;
  --surface: #0a0b1d;
  --line: #1e2040;
  --text: #f3f2fb;
  --dim: #9d9cc0;
  --lavender: #b9b3ef;
  --cyan: #2ee6ff;
  --blue: #2c6cfd;
  --violet: #6a3cff;
  --magenta: #e544fc;
  --ramp: linear-gradient(90deg, var(--cyan), var(--blue) 35%, var(--violet) 65%, var(--magenta));
  --paper: #ede9df;
  --ink: #15141c;
  --tape: #34343c;

  /* Note colours, exactly as in the plugin */
  --n-c: #ff3b3b; --n-d: #ff8a1f; --n-e: #c8f03c; --n-f: #2fd36b; --n-g: #22d3ee; --n-a: #3b6cff; --n-b: #d43bff;

  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--text); font: 18px/1.6 "Archivo", system-ui, sans-serif; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 62ch; }

/* Headlines in the wordmark's voice: extra wide, heavy, upper case */
h1, h2 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 60px); margin-bottom: 28px; }
h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.tagline { color: var(--lavender); letter-spacing: .32em; text-transform: uppercase; font-size: 14px; margin: 0 0 20px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding-top: clamp(72px, 11vw, 140px); }

/* Buttons */
.buy-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: 700 18px/1 "Archivo", sans-serif; text-decoration: none; cursor: pointer; border-radius: 999px;
}
.buy-btn { background: linear-gradient(90deg, var(--violet), var(--magenta)); color: #fff; border: 0; box-shadow: 0 6px 28px rgba(106, 60, 255, .45); }
.buy-btn:hover { filter: brightness(1.12); }
.btn { background: transparent; color: var(--text); border: 1px solid #3a3c66; }
.btn:hover { border-color: var(--lavender); }

/* Header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-stretch: 125%; font-weight: 900; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.top .buy-btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Hero: the show, full bleed */
.hero { position: relative; padding: 0; min-height: min(92vh, 820px); display: flex; align-items: flex-end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ground) 8%, rgba(0, 1, 13, .66) 45%, rgba(0, 1, 13, .1) 80%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 80px); width: 100%; }
.hero h1 { max-width: 13ch; }
.hero p { font-size: clamp(19px, 1.7vw, 22px); margin: 24px 0 28px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .hero { min-height: 0; display: block; padding-top: 72px; }
  .hero > img { position: relative; height: 260px; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 28px; }
}

/* Video from the rehearsal room */
.film video, .film .placeholder { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; border: 1px solid var(--line); background: #000; }
.film figure { margin: 0; }
.film figcaption { margin-top: 12px; color: var(--dim); font-size: 15px; }
.film .placeholder { display: none; place-items: center; text-align: center; color: var(--text); padding: 24px;
  background: center / cover no-repeat url("img/simulator.jpg"); position: relative; }
.film .placeholder::before { content: ""; position: absolute; inset: 0; background: rgba(0, 1, 13, .72); border-radius: 6px; }
.film .placeholder span { position: relative; max-width: 34ch; }
.film.missing video { display: none; }
body:not([data-preview]) .film.missing { display: none; }
body[data-preview] .film.missing .placeholder { display: grid; }

/* The setlist */
.why .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.why .intro { padding-top: 40px; }
.why .intro p { color: var(--dim); }
.setlist {
  position: relative; margin: 24px 8px; padding: 44px clamp(24px, 4vw, 48px) 40px;
  background: var(--paper); color: var(--ink); transform: rotate(-1.6deg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 0 80px rgba(106, 60, 255, .18);
}
.setlist::before, .setlist::after {   /* gaffer tape */
  content: ""; position: absolute; top: -16px; width: 120px; height: 34px; background: var(--tape); opacity: .95;
  clip-path: polygon(2% 8%, 10% 0, 20% 9%, 32% 1%, 45% 8%, 58% 0, 70% 7%, 82% 0, 92% 9%, 100% 3%, 98% 92%, 88% 100%, 76% 92%, 64% 100%, 50% 93%, 38% 100%, 25% 92%, 12% 100%, 0 94%);
}
.setlist::before { left: 18px; transform: rotate(-6deg); }
.setlist::after { right: 18px; transform: rotate(5deg); }
.setlist h2 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 20px; line-height: 1; }
.setlist ol { list-style: none; margin: 0; padding: 0; counter-reset: song; }
.setlist li { counter-increment: song; padding: 8px 0 8px 44px; position: relative; }
.setlist li::before { content: counter(song) "."; position: absolute; left: 0; top: 6px; font-size: 24px; font-weight: 900; font-stretch: 125%; }
.setlist li b { display: block; font-weight: 800; font-size: clamp(20px, 2.1vw, 24px); line-height: 1.2; }
.setlist li span { display: block; font: 16px/1.4 "Archivo", sans-serif; color: #55526a; margin-top: 4px; }
.setlist .encore { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 20px; font-weight: 800; line-height: 1.2; }
.setlist .encore small { display: block; font: 16px/1.4 "Archivo", sans-serif; color: #55526a; margin-top: 4px; }
@media (max-width: 860px) { .why .wrap { grid-template-columns: 1fr; } .why .intro { padding-top: 0; } .setlist { transform: rotate(-1deg); } }

/* How it works – a real sequence */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 56px; }
.steps li { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 28px; align-items: start; }
.steps .no { font-stretch: 125%; font-weight: 900; font-size: 64px; line-height: .85; background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { color: var(--dim); }
.steps img { border: 1px solid var(--line); border-radius: 6px; }
.steps figure { margin: 0; }
.steps li:first-child figure { max-width: 340px; }
@media (max-width: 860px) { .steps li { grid-template-columns: 56px 1fr; } .steps .no { font-size: 46px; } .steps figure, .steps .keys { grid-column: 1 / -1; } }

/* Octave → colours */
.keys { display: flex; position: relative; height: 150px; max-width: 460px; }
.keys .w { flex: 1; background: #f3f2fb; border: 1px solid var(--ground); border-radius: 0 0 4px 4px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 10px; font-size: 13px; color: var(--ink); font-weight: 700; }
.keys .w i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); margin-bottom: 6px; box-shadow: 0 0 10px var(--c); }
.keys .b { position: absolute; top: 0; width: 9%; height: 58%; background: #0b0c1a; border-radius: 0 0 3px 3px; left: calc(100% / 7 - 4.5%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-size: 11px; color: #fff; }

/* Story */
.story .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; color: var(--dim); }
.story .cols strong { color: var(--text); }
.story .sign { font-weight: 800; font-style: italic; font-size: 20px; color: var(--lavender); margin-top: 8px; }
@media (max-width: 760px) { .story .cols { grid-template-columns: 1fr; } }

/* Buy */
.buy .box { position: relative; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ramp) border-box; border: 1px solid transparent; border-radius: 10px; }
.buy .box p { color: var(--dim); }
.buy .box .price { font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 6vw, 72px); line-height: .95; margin: 0 0 16px; color: var(--text); letter-spacing: -.02em; }
.buy ul { list-style: none; margin: 0 0 28px; padding: 0; }
.buy li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.buy li::before { content: "✓"; color: var(--cyan); font-weight: 700; margin-right: 10px; }
.buy form { margin: 0; }
.buy form .btn, .buy .downloads .buy-btn { width: 100%; min-height: 58px; font-size: 19px; }
.buy .downloads { display: grid; gap: 12px; margin-top: 28px; }
.small { font-size: 15px; color: var(--dim); }
.downloads { margin-top: 20px; }
@media (max-width: 760px) { .buy .box { grid-template-columns: 1fr; } }

footer { margin-top: clamp(72px, 11vw, 140px); border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--dim); }

/* Good to know before you download */
.buy .know { list-style: none; margin: 32px 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.buy .know li { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
.buy .know li::before { content: none; }
@media (max-width: 760px) { .buy .know { grid-template-columns: 1fr; } }
.know b { color: var(--text); }

/* Will my lights work? */
.lights-cta .finder { margin: 28px 0 12px; max-width: 720px; }
.lights-cta label { display: block; font-weight: 600; margin-bottom: 8px; }
.lights-cta .row { display: flex; gap: 10px; }
.lights-cta input { flex: 1; min-width: 0; font: inherit; font-size: 19px; color: var(--text); background: var(--surface); border: 1px solid #3a3c66; border-radius: 10px; padding: 12px 16px; }
.lights-cta input:focus { border-color: var(--cyan); outline: none; }
.lights-cta .buy-btn { flex: none; }
.lights-cta > .wrap > p { color: var(--dim); }

/* Plain pages (thanks, terms) */
.page-top { position: static; border-bottom: 1px solid var(--line); }
.page { padding-top: clamp(48px, 8vw, 96px); }
.page h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 24px; }
.page h2 { font-size: 28px; margin: 40px 0 12px; }
.page ul, .page ol { color: var(--dim); max-width: 62ch; }
.key { font: 14px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; user-select: all; max-width: 80ch; margin: 8px 0 12px; }
.downloads.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Setup guide */
.guide p, .guide li, .guide dd { max-width: 66ch; }
.guide p { color: var(--dim); }
.guide .lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--text); }
.guide h3 { font-size: 21px; margin: 0 0 6px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; }
.chain .node { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-weight: 700; }
.chain .node small { display: block; font-weight: 400; font-size: 13px; color: var(--dim); }
.chain .link { color: var(--cyan); font-size: 13px; font-weight: 700; }
.chain .link::before { content: "— "; color: var(--line); }
.chain .link::after { content: " →"; }
.setup { padding-left: 1.4em; max-width: none; }
.setup > li { margin: 0 0 28px; padding-left: 6px; }
.setup > li::marker { font-weight: 900; font-stretch: 125%; color: var(--lavender); }
.types { margin: 8px 0 12px; }
.addr { border-collapse: collapse; margin: 10px 0 14px; font-size: 15px; }
.addr th, .addr td { text-align: left; padding: 6px 18px 6px 0; border-bottom: 1px solid var(--line); }
.addr th { color: var(--lavender); font-weight: 700; }
.addr td { color: var(--dim); }
.trouble dt { font-weight: 700; margin-top: 18px; }
.trouble dd { margin: 4px 0 0; color: var(--dim); }
.stuck { margin-top: 48px; }

/* Support form */
.contact form { display: grid; gap: 20px; max-width: 720px; margin-top: 32px; }
.contact label { display: grid; gap: 6px; font-weight: 600; }
.contact .opt { font-weight: 400; color: var(--dim); font-size: 15px; }
.contact input, .contact select, .contact textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; }
.contact textarea { resize: vertical; min-height: 160px; }
.contact input:focus, .contact select:focus, .contact textarea:focus { border-color: var(--lavender); outline: none; }
.contact [aria-invalid="true"] { border-color: #ff5a6a; }
.contact .two { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.contact .pick { display: block; font-weight: 400; }
.contact .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact .pick span { display: block; padding: 9px 14px; border: 1px solid #3a3c66; border-radius: 99px; cursor: pointer; }
.contact .pick input:checked + span { border-color: var(--cyan); background: rgba(46, 230, 255, .1); }
.contact .pick input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.contact .field-err, .contact .form-err { color: #ff8a95; font-weight: 400; font-size: 15px; }
.contact fieldset .field-err { flex-basis: 100%; }
.contact .form-err { border: 1px solid #ff5a6a; border-radius: 8px; padding: 12px 14px; margin: 0; }
.contact .fine { color: var(--dim); font-size: 15px; margin: 0; }
.contact button { justify-self: start; cursor: pointer; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Light list */
.lights .finder { margin: 32px 0 8px; max-width: 720px; }
.lights .finder label { display: block; font-weight: 600; margin-bottom: 8px; }
.lights .finder input { width: 100%; font: inherit; font-size: 20px; color: var(--text); background: var(--surface); border: 1px solid #3a3c66; border-radius: 10px; padding: 14px 16px; }
.lights .finder input:focus { border-color: var(--cyan); outline: none; }
.lights .status { color: var(--dim); font-size: 15px; margin: 10px 0 0; }
.lights .results { margin: 24px 0 56px; }
.lights h2.sub { font-size: 22px; letter-spacing: 0; margin: 8px 0 12px; }
.lights .fx { border-top: 1px solid var(--line); padding: 20px 0 8px; }
.lights .fx h3 { margin: 0 0 10px; font-size: 22px; font-stretch: 110%; }
.lights .fx .maker { color: var(--lavender); font-weight: 500; }
.lights .tested { font-size: 13px; font-weight: 700; vertical-align: 3px; margin-left: 6px; padding: 3px 9px; border-radius: 99px; background: var(--ramp); color: #fff; font-stretch: 100%; }
.lights .modes { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.lights .c-mode { width: 30%; } .lights .c-ch { width: 11%; } .lights .c-col { width: 22%; } .lights .c-also { width: 23%; } .lights .c-btn { width: 14%; }
.lights .modes tbody th { overflow-wrap: anywhere; }
.lights .tested.built { background: transparent; border: 1px solid var(--lavender); color: var(--lavender); }
.lights .modes th, .lights .modes td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid #14163a; vertical-align: top; }
.lights .modes thead th { color: var(--dim); font-weight: 500; font-size: 13px; }
.lights .modes tbody th { font-weight: 600; }
.lights .col { white-space: nowrap; }
.lights .col::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: #888; }
.lights .col-rgb::before, .lights .col-cmy::before { background: conic-gradient(var(--n-c), var(--n-f), var(--n-a), var(--n-b), var(--n-c)); }
.lights .col-wheel::before { background: conic-gradient(var(--n-c) 0 25%, var(--n-g) 0 50%, var(--n-a) 0 75%, #fff 0); }
.lights .col-white::before { background: #fff; }
.lights .chbtn { font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 1px solid #3a3c66; border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.lights .chbtn:hover { border-color: var(--lavender); }
.lights .chlist { columns: 3 180px; margin: 4px 0 8px; padding-left: 28px; color: var(--text); }
.lights .chlist li { margin: 0 0 3px; break-inside: avoid; }
.lights .chlist li.off { color: var(--dim); }
.lights .manual { font-size: 14px; margin: 8px 0 0; }
.lights .howto dl { max-width: 66ch; }
.lights .howto dt { font-weight: 700; margin-top: 14px; }
.lights .howto dd { margin: 4px 0 0; color: var(--dim); }
.lights .howto p { color: var(--dim); margin-top: 18px; }
.lights .credit { color: var(--dim); font-size: 14px; margin-top: 24px; }
@media (max-width: 640px) {
  .lights .modes thead { display: none; }
  .lights .modes tr:not(.chrow) { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid #14163a; }
  .lights .modes tr:not(.chrow) th, .lights .modes tr:not(.chrow) td { border: 0; padding: 0; }
  .lights .modes td:nth-child(2)::after { content: " ch"; color: var(--dim); }
  .lights .modes td:last-child { grid-column: 1 / -1; }
}
