/* Stoned Audio / Frontier. Colours are the plugin's own: the cyan of its
   graphs and the violet of its wavetables and OSC EDIT panels, on a navy
   pushed towards indigo so the two sit together. Light is the theme: the
   things that matter glow, everything else stays dark. */
:root {
  --bg:        #05060f;   /* page */
  --bg-alt:    #090c1b;   /* alternate bands */
  --surface:   #0f1428;   /* cards, lifted off either band */
  --line:      #1b2242;
  --line-hi:   #2f3a6b;   /* borders that should be seen */
  --heading:   #f3f5ff;
  --text:      #c7cde3;
  --muted:     #8f99b8;
  --cyan:      #4fd2ff;
  --cyan-dim:  #1f6f91;
  --violet:    #8f7dff;
  --ink:       #05060f;   /* text on the bright gradient */
  --glow-cyan:   79, 210, 255;
  --glow-violet: 143, 125, 255;
  --max:       1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(5, 6, 15, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 14px; width: auto; }

nav { display: flex; align-items: center; gap: 22px; }
nav a {
  color: var(--muted);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
nav a:hover { color: var(--heading); text-decoration: none; }

/* Account buttons in the header: real buttons, dressed as the nav's links. */
.navlink {
  background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap;
  font: inherit; color: var(--muted);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.navlink:hover, .navlink:focus-visible { color: var(--heading); }

/* The storefront shows and hides elements with the hidden attribute. */
[hidden] { display: none !important; }

button.button { border: 0; cursor: pointer; font: inherit; font-weight: 600; letter-spacing: 0.04em; }
nav .pill {
  white-space: nowrap;
  color: var(--heading);
  border: 1px solid rgba(var(--glow-cyan), 0.28);
  box-shadow: 0 0 18px rgba(var(--glow-cyan), 0.14), inset 0 0 12px rgba(var(--glow-violet), 0.09);
  border-radius: 999px;
  padding: 6px 14px;
}
/* The header's download is a button (it opens the storefront), dressed as the pill. */
button.pill {
  background: none; cursor: pointer; font: inherit;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 16px 40px;
  text-align: center;
}
/* Two pools of light behind the headline: cyan from above, violet off to
   the side, so the page opens lit and not on flat black. */
body {
  background-image:
    radial-gradient(ellipse 820px 520px at 50% -40px, rgba(var(--glow-cyan), 0.08), transparent 70%),
    radial-gradient(ellipse 700px 600px at 88% 180px, rgba(var(--glow-violet), 0.07), transparent 70%),
    radial-gradient(ellipse 600px 520px at 8% 420px, rgba(var(--glow-violet), 0.04), transparent 70%);
  background-repeat: no-repeat;
}
.wordmark { width: min(420px, 78vw); margin: 0 auto 28px; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--heading);
}
.lede {
  max-width: 660px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 19px;
}
.lede + .cta { margin-top: 28px; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 18px;
}
.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: var(--ink);
  box-shadow: 0 0 26px rgba(var(--glow-cyan), 0.19), 0 0 60px rgba(var(--glow-violet), 0.13);
  font-weight: 600; letter-spacing: 0.04em;
}
.button:hover {
  text-decoration: none; filter: brightness(1.08);
  box-shadow: 0 0 34px rgba(var(--glow-cyan), 0.28), 0 0 80px rgba(var(--glow-violet), 0.19);
}
.button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-hi);
  box-shadow: none;
}
.button[aria-disabled="true"] { cursor: default; pointer-events: none; }

.note { color: var(--muted); font-size: 14px; }

.shot {
  margin: 48px 0 0;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(var(--glow-cyan), 0.08), 0 0 180px rgba(var(--glow-violet), 0.08);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.band { padding: 72px max(16px, calc((100vw - var(--max)) / 2)); }
.band.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(ellipse 620px 360px at 85% 0, rgba(var(--glow-violet), 0.05), transparent 70%),
    radial-gradient(ellipse 620px 360px at 12% 100%, rgba(var(--glow-cyan), 0.04), transparent 70%);
}

h2 {
  margin: 0 0 28px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
}
h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--heading); }

.wide { max-width: 720px; margin: 0 0 32px; font-size: 19px; }
/* A section's one-line standfirst, read before the paragraph under it. */
.wide.stand { margin-bottom: 14px; font-size: 23px; line-height: 1.4; color: var(--heading); }

/* A short statement band, centred like the beta band. */
.closing { text-align: center; }
.closing .wide { margin-left: auto; margin-right: auto; }
.closing .wide:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 36px;
}
.grid article p { margin: 0; color: var(--muted); }
.grid.three article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* One feature given room of its own under a grid. */
.feature {
  margin-top: 44px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 0 60px rgba(var(--glow-violet), 0.07), -10px 0 34px -14px rgba(var(--glow-violet), 0.28);
}
.feature:first-child { margin-top: 0; }
.feature h3 { font-size: 22px; margin-bottom: 12px; }
.feature p { max-width: 720px; margin: 0 0 14px; color: var(--muted); }
.feature p:last-child { margin-bottom: 0; }

/* ── Specs ───────────────────────────────────────────────────────────────── */
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 36px; }
.specs div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; color: var(--heading); }

/* ── Beta ────────────────────────────────────────────────────────────────── */
.beta { text-align: center; }
.beta .wide { margin-left: auto; margin-right: auto; }
.beta .note { margin-top: 18px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  padding: 40px 16px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer img { margin: 0 auto 12px; opacity: 0.8; }
footer p { margin: 0; }
footer .legal-links { margin-top: 8px; }
footer .legal-links a { color: var(--muted); }
footer .legal-links a:hover { color: var(--heading); }

/* Privacy policy and terms. */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 16px 24px; }
.legal h1 { color: var(--heading); font-size: 32px; margin: 0 0 6px; }
.legal h2 { margin: 36px 0 10px; font-size: 20px; }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal .fill { color: #ffcf6e; font-weight: 600; }

@media (max-width: 640px) {
  nav a:not(.pill) { display: none; }
  nav { gap: 14px; }
  .navlink[data-mb-action="sign_up"] { display: none; }   /* Sign in leads to it */
  .hero { padding-top: 48px; }
  .band { padding-top: 52px; padding-bottom: 52px; }
  .specs div { flex-direction: column; gap: 2px; }
  .specs dd { text-align: left; }
}

/* ── Pictures of the instrument ──────────────────────────────────────────── */
/* Each picture is cropped to exactly one part of the synth, so they come in
   every shape. Nothing frames them to a common size: a picture is shown at its
   own proportions, beside the text it belongs to. */
.pic { margin: 0; }
.pic img {
  width: auto; max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 44px rgba(var(--glow-cyan), 0.07);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; padding-top: 8px; }
.row:nth-child(even) .row-text { order: 2; }
.row h3 { font-size: 22px; }
/* A section's own picture, full width under its intro and above its rows. */
.lead-pic { margin-bottom: 44px; }
.grid.after-rows { padding-top: 36px; border-top: 1px solid var(--line); }
.row p { margin: 0; color: var(--muted); }

/* The three spatial maps are one shape, so they can share a grid. */
.grid.three .pic { margin-bottom: 16px; }
.grid.three .pic img { width: 100%; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .row, .feature { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row-text { order: 0; }
}

@media (max-width: 420px) {
  nav .pill { display: none; }   /* a phone can't run the Windows installer anyway */
}
