/* Fonts are self-hosted: no requests to Google from visitors' browsers (privacy). OFL licensed. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url(assets/fonts/bricolage-grotesque-var.woff2) format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url(assets/fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url(assets/fonts/hanken-grotesk-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* Rig'n'Joy site. Palette: a hazy venue at night lit by theatre gels. */
:root {
  --venue: #17132e; /* background: violet night, not black */
  --riser: #221c44; /* raised surfaces */
  --paper: #f3effa; /* text */
  --dim: #b3abd0; /* secondary text */
  --magenta: #ff3d9a; /* primary gel: actions */
  --amber: #ffb547; /* second gel: highlights */
  --line: #3a3266;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --measure: 62ch;
  --gutter: max(clamp(1rem, 4vw, 3rem), calc((100vw - 1180px) / 2 + clamp(1rem, 4vw, 3rem)));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--venue);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 1.6rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

/* Header */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 1.45rem;
  width: auto;
}

.top nav {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
  font-size: 0.95rem;
}

.top nav a {
  text-decoration: none;
  color: var(--dim);
}

.top nav a:hover {
  color: var(--paper);
}

.top nav a.nav-cta {
  color: var(--paper);
  border: 1px solid var(--magenta);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* Hero: the beams are the one bold element on the page. */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 7rem var(--gutter) clamp(2.5rem, 7vh, 5rem);
  isolation: isolate;
}

#beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero::after {
  /* Keeps the headline readable where beams cross it. */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, var(--venue) 18%, transparent);
  z-index: -1;
}

.hero-copy {
  max-width: 1100px;
}

h1 {
  font-size: clamp(3rem, 1.4rem + 7.4vw, 8.2rem);
  font-variation-settings: "wdth" 80, "opsz" 96;
  font-weight: 760;
  letter-spacing: -0.005em;
  line-height: 0.92;
  max-width: 11ch;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  max-width: 46ch;
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1.8rem;
}

.button,
button[type="submit"] {
  display: inline-block;
  background: var(--magenta);
  color: #1a0010;
  font: 700 1.05rem/1 var(--body);
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.button:hover,
button[type="submit"]:hover {
  background: #ff66b1;
}

.note {
  color: var(--dim);
  font-size: 0.95rem;
}

/* Sections share one column grid. */
main > section:not(.hero) {
  padding: clamp(4rem, 10vw, 7.5rem) clamp(1rem, 4vw, 3rem) 0;
  max-width: 1180px;
  margin: 0 auto;
}

/* How it works: a real sequence, so it is numbered. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  padding-top: 1.1rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font: 800 2.6rem/1 var(--display);
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.steps p {
  color: var(--dim);
  max-width: 38ch;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px -30px #ff3d9a55, 0 0 0 1px var(--line);
}

.shot figcaption {
  color: var(--dim);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* Works with: grouped plain lists, no cards. */
.works .sub {
  color: var(--dim);
  max-width: var(--measure);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.6rem;
}

.works-grid h3 {
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.works-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.works-grid li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

/* Details: a plain definition list in two columns. */
.details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem 3rem;
  margin: 0;
}

.details dt {
  font: 700 1.3rem/1.2 var(--display);
  margin-bottom: 0.35rem;
}

.details dd {
  margin: 0;
  color: var(--dim);
  max-width: 46ch;
}

/* Pricing table */
.pricing .sub {
  color: var(--dim);
  max-width: var(--measure);
}

.pricing table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
}

.pricing th,
.pricing td {
  text-align: left;
  vertical-align: top;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.pricing thead th {
  color: var(--dim);
  font-weight: 400;
  font-size: 0.9rem;
  padding-bottom: 0.6rem;
}

.pricing tbody th {
  font: 700 1.35rem/1.2 var(--display);
  width: 18%;
}

.pricing tbody td:nth-child(2) {
  width: 24%;
  white-space: nowrap;
}

.pricing td span {
  color: var(--dim);
  font-size: 0.9rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  max-width: 820px;
}

.faq summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font: 700 1.2rem/1.3 var(--display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--magenta);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--dim);
  max-width: var(--measure);
}

/* Beta form */
.beta {
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.beta > p {
  max-width: var(--measure);
  color: var(--dim);
}

#waitlist {
  max-width: 640px;
  margin-top: 1.6rem;
}

#waitlist > label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

#waitlist .row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#waitlist input[type="email"] {
  flex: 1 1 260px;
  font: inherit;
  color: var(--paper);
  background: var(--riser);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
}

#waitlist input[type="email"]::placeholder {
  color: #847cab;
}

#waitlist input[aria-invalid="true"] {
  border-color: var(--magenta);
}

#waitlist fieldset {
  border: 0;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

#waitlist legend {
  width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

#waitlist legend span {
  color: var(--dim);
  font-weight: 400;
}

#waitlist fieldset label {
  color: var(--dim);
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  cursor: pointer;
}

#waitlist input[type="radio"] {
  accent-color: var(--magenta);
  width: 1.05rem;
  height: 1.05rem;
}

#form-status {
  margin-top: 1rem;
  min-height: 1.6em;
  font-weight: 700;
}

#form-status.ok {
  color: var(--amber);
}

#form-status.error {
  color: var(--magenta);
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  color: var(--dim);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .top nav a:not(.nav-cta) {
    display: none;
  }
  .steps,
  .details dl {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing thead {
    display: none;
  }
  .pricing tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
  }
  .pricing th,
  .pricing td {
    border: 0;
    padding: 0.15rem 0;
    width: auto !important;
  }
  .pricing td:last-child {
    grid-column: 1 / -1;
    color: var(--dim);
    padding-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .faq summary::after {
    transition: none;
  }
}

/* Upgrade page */
.top.static {
  position: static;
}

.upgrade {
  padding-top: 2rem;
}

.page-title {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  font-variation-settings: "wdth" 80;
  margin-bottom: 0.8rem;
}

.upgrade .sub,
.pricing .fine {
  color: var(--dim);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.upgrade .fine {
  color: var(--dim);
  max-width: var(--measure);
}

.period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.6rem 0 0.4rem;
}

.period label {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  cursor: pointer;
}

.period input {
  accent-color: var(--magenta);
  width: 1.05rem;
  height: 1.05rem;
}

.plans {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.6rem;
}

.plans th,
.plans td {
  text-align: left;
  vertical-align: middle;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.plans th {
  font: 700 1.35rem/1.2 var(--display);
  width: 14%;
}

.plans td:nth-child(2) {
  color: var(--dim);
}

.plans .price {
  white-space: nowrap;
  font-weight: 700;
}

.plans button {
  font: 700 0.98rem/1 var(--body);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--magenta);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
}

.plans button:hover:not(:disabled) {
  background: var(--magenta);
  color: #1a0010;
}

.plans button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#up-status {
  font-weight: 700;
  min-height: 1.6em;
}

#up-status.ok {
  color: var(--amber);
}

#up-status.error {
  color: var(--magenta);
}

@media (max-width: 760px) {
  .plans tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }
  .plans th,
  .plans td {
    border: 0;
    padding: 0;
    width: auto;
  }
  .plans td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Legal and help pages: one readable column. */
.legal-page main > article,
.help-page main > article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
}

.legal h2,
.help h2 {
  font-size: 1.5rem;
  max-width: none;
  margin: 2.4rem 0 0.8rem;
  font-variation-settings: "wdth" 90;
}

.legal p,
.legal li,
.help p,
.help li {
  color: #ddd7ee;
  max-width: 70ch;
}

.legal ul,
.help ul,
.help ol {
  padding-left: 1.2rem;
}

.legal li,
.help li {
  margin: 0.35rem 0;
}

.legal a,
.help a {
  color: var(--amber);
}

.legal .pending {
  color: var(--magenta);
  font-style: italic;
}

.legal table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.95rem;
}

.legal table.data th,
.legal table.data td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.legal table.data th {
  color: var(--dim);
  font-weight: 400;
}

footer a {
  color: var(--dim);
}

@media (max-width: 640px) {
  .legal table.data thead {
    display: none;
  }
  .legal table.data tr {
    display: grid;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
  }
  .legal table.data td {
    border: 0;
    padding: 0.1rem 0;
  }
  .legal table.data td:first-child {
    font-weight: 700;
    color: var(--paper);
  }
}
.beta a, .fine a { color: var(--amber); }

.help h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 1.6rem 0 0.4rem;
}
.help code {
  font-size: 0.9em;
  background: var(--riser);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}
.help table.data { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; }
.help table.data th,
.help table.data td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.help table.data th { color: var(--dim); font-weight: 400; }
.help .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1.6rem 0 0.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.help .toc a { color: var(--paper); text-decoration: none; }
.help .toc a:hover, .help .toc a:focus-visible { color: var(--amber); }
.help details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.help details:first-of-type { border-top: 1px solid var(--line); }
.help summary { cursor: pointer; font-weight: 700; color: var(--paper); }
.help summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.help details[open] summary { color: var(--amber); }
.help h2[id], .help h3 { scroll-margin-top: 1.5rem; }
.help-page .top nav a[aria-current="page"] { color: var(--amber); }
.legal .sub,
.help .sub {
  color: var(--dim);
  max-width: var(--measure);
}
@media (max-width: 860px) {
  .top.static nav a:not(.nav-cta) {
    display: inline;
  }
}

/* Demo clip and screenshot tour */
.demo .sub,
.tour .sub {
  color: var(--dim);
  max-width: var(--measure);
}
.shot.clip video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 30px 80px -30px #ff3d9a55, 0 0 0 1px var(--line);
}
.daynight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.6rem;
}

.daynight-grid figcaption b {
  color: var(--paper);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.6rem;
}
.tour-grid figcaption b {
  color: var(--paper);
}
@media (max-width: 900px) {
  .tour-grid,
  .daynight-grid {
    grid-template-columns: 1fr;
  }
}

/* Manual: screenshots and the glossary inside the help column. */
.help .shot {
  margin: 1.2rem 0 1.6rem;
}
.help .shot img {
  box-shadow: 0 20px 50px -25px #ff3d9a44, 0 0 0 1px var(--line);
}
.glossary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.4rem;
  margin: 1rem 0 2rem;
}
.glossary dt {
  font-weight: 700;
  color: var(--amber);
}
.glossary dd {
  margin: 0;
  color: var(--paper);
}
@media (max-width: 600px) {
  .glossary {
    grid-template-columns: 1fr;
  }
  .glossary dd {
    margin-bottom: 0.6rem;
  }
}

/* Download page */
.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 2rem;
}
.dl-steps {
  max-width: var(--measure);
  line-height: 1.6;
  padding-left: 1.2rem;
}
.dl-steps li + li {
  margin-top: 0.5rem;
}
.button.secondary {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--magenta);
}
.button.secondary:hover {
  background: #ff3d9a22;
}

/* Guides per source (soundswitch, qlcplus, console-dmx) */
.guide .shot.clip { margin: 1.6rem 0 0.4rem; }
.guide .shot.clip video { width: 100%; height: auto; border-radius: 10px; display: block; }
.guide .faq { margin-top: 0.4rem; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 2.4rem 0 1rem; }
.guide .fine { color: var(--dim); font-size: 0.85rem; }
.works-grid a { color: inherit; text-decoration-color: var(--amber); text-underline-offset: 3px; }

/* Inner pages keep their links on phones: the header wraps instead of running off the screen. */
@media (max-width: 640px) {
  .top.static { flex-wrap: wrap; row-gap: 0.6rem; }
  .top.static nav { flex-wrap: wrap; gap: 0.4rem 1rem; width: 100%; }
}

/* Press kit */
.press-copy { background: var(--riser); border-left: 3px solid var(--magenta); padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; }
.press table.facts th { text-align: left; white-space: nowrap; padding-right: 1rem; color: var(--dim); font-weight: 500; vertical-align: top; }
.press table.facts td, .press table.facts th { padding-top: 0.45rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); }
.press table.facts { border-collapse: collapse; width: 100%; }
.press-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.press-logos figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.press-logos .swatch { display: flex; align-items: center; justify-content: center; height: 120px; padding: 0 1.2rem; }
.press-logos .swatch img { max-width: 100%; height: auto; }
.press-logos .on-dark .swatch { background: #07060d; }
.press-logos .on-light .swatch { background: #f6f4fb; }
.press-logos figcaption, .press-shots figcaption, .press .clip figcaption { font-size: 0.9rem; color: var(--dim); padding: 0.6rem 0.8rem; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.press-shots figure { margin: 0; }
.press-shots img { width: 100%; height: auto; border-radius: 8px; display: block; }
.press-shots figcaption { padding: 0.5rem 0 0; }
.press .clip video { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Article: comparison table that scrolls sideways on phones */
.article .table-scroll { overflow-x: auto; margin: 0.8rem 0 1.2rem; }
.article table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
.article table.compare th, .article table.compare td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.article table.compare thead th { color: var(--dim); font-weight: 500; border-bottom: 1px solid var(--dim); }
.article table.compare tbody th { white-space: nowrap; }
.article .sources { font-size: 0.95rem; }
.help a.button { color: #1a0010; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
