/* Mixback site. Tokens from DESIGN.md. Dark only. */
@font-face {
  font-family: "Plate";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Plate";
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #070807;
  --panel: #0E100E;
  --raised: #191D19;
  --text: #DBE6DB;
  --label: #7D877F;
  --lime: #B5FF3D;
  --low: #73AD26;
  --amber: #FFB02E;
  --red: #FF3B30;
  --edge: #2A302A;
  --plate: "Plate", "DIN Condensed", "DIN Alternate", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--raised); color: var(--text); padding: 12px 16px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 16px; }

/* Faceplate lettering */
h1, h2, .plate, .word, .key-label, .status {
  font-family: var(--plate);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(44px, 12.5vw, 96px); line-height: 0.95; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(32px, 8.5vw, 52px); line-height: 1; margin: 0 0 16px; text-transform: uppercase; }
.plate {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 10px;
}

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.lockup { display: flex; white-space: nowrap; flex: none; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.lockup img { border-radius: 8px; }
.word { color: var(--lime); font-size: 24px; letter-spacing: 0.08em; }
.by { color: var(--label); font-size: 14px; }
.status { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); text-align: right; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }

/* Hero */
.hero { padding-top: 24px; padding-bottom: 56px; }
.intro { margin: 16px 0 24px; }
.sub { font-size: 19px; color: var(--text); max-width: 36ch; margin: 0 0 20px; }
.hero .film { margin: 0; }
.film { position: relative; margin: 0 0 24px; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--edge); aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-btn {
  position: absolute; bottom: 12px;
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  color: var(--text); background: var(--raised); border: 1px solid #3A423A; border-radius: 50%;
  cursor: pointer;
}
.film-btn[hidden] { display: none; }
.unmute { right: 12px; }
.pause { right: 64px; }
.pause .tri { display: none; }
.pause[aria-pressed="true"] .tri { display: inline; }
.pause[aria-pressed="true"] .bars { display: none; }
.unmute .waves { display: none; }
.unmute[aria-pressed="true"] { color: var(--lime); }
.unmute[aria-pressed="true"] .waves { display: inline; }
.unmute[aria-pressed="true"] .cross { display: none; }

/* The key: the app's START / STOP key, with its lamp. */
.key {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; min-height: 76px; padding: 14px 28px;
  background: linear-gradient(#20251F, var(--raised));
  border: 1px solid var(--edge); border-top-color: #3A423A; border-radius: var(--r);
  color: var(--text); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 #000;
  -webkit-tap-highlight-color: transparent;
}
.key:active { transform: translateY(1px); box-shadow: 0 1px 0 #000; }
.key-label { font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; }
.lamp { width: 36px; height: 5px; border-radius: 3px; background: var(--red); }
.key:hover .lamp, .key:focus-visible .lamp { background: #FF5A50; }
.key[disabled] { cursor: progress; }
.key[disabled] .lamp { background: var(--amber); }
.key.done .lamp, .key.done[disabled] .lamp { background: var(--lime); }
.key.done[disabled] { cursor: default; }

/* Features */
.feature { display: grid; gap: 24px; padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--edge); }
.feature .copy p { margin: 0; max-width: 32ch; font-size: 20px; color: #B9C4BA; }
.shot { border-radius: var(--r); border: 1px solid var(--edge); background: var(--panel); }
.shot.tall { width: 100%; max-width: 400px; }

/* Rigs the setup draws, as plain faceplate lettering (not buttons) */
.feature .copy .plate { margin: 28px 0 8px; }
.rig-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 28px; }
.rig-list li { font: 600 19px/1.3 var(--plate); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }

/* Signup */
.join { padding-top: 24px; padding-bottom: 48px; scroll-margin-top: 16px; }
.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 24px 16px; }
.lede { margin: 0 0 12px; max-width: 42ch; }
.lede + .lede { color: var(--label); font-size: 15px; }
.head { margin-bottom: 12px; }
form { display: grid; gap: 20px; max-width: 520px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 16px; }
.req { font-weight: 700; color: var(--lime); }
input[type="email"], input[type="text"], select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 17px/1.3 var(--body); color: var(--text);
  background: var(--bg); border: 1px solid #5A635B; border-radius: var(--r);
  appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23B5FF3D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.check { grid-template-columns: 28px 1fr; align-items: start; column-gap: 12px; }
.check input { width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--lime); }
.check label { font-weight: 400; padding: 2px 0 10px; }
.check input { margin-top: 1px; }
.check .err { grid-column: 2; }
/* Claim form checkboxes (NFC pages): the whole label is the target */
.tick { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; min-height: 44px; }
.tick input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--lime); }
.err { margin: 0; color: #FF6B61; font-size: 15px; }
.err::before { content: "! "; font-weight: 700; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; font: inherit; }
.dl-meta { margin: 12px 0 0; font-size: 14px; color: var(--label); }
.fine { margin: -8px 0 0; font-size: 14px; color: var(--label); }
.fine a { color: var(--text); display: inline-block; padding: 12px 0; }
.form-msg { margin: 0; min-height: 1.5em; font-size: 17px; }
.form-msg.ok { color: var(--lime); font-weight: 600; }
.hero > h1 + .sub { margin-top: 16px; }
.form-msg.bad { color: #FF6B61; }


/* Doc pages (privacy, legal) */
.doc { padding-top: 24px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(40px, 11vw, 72px); margin-bottom: 24px; }
.doc h2 { font-size: clamp(22px, 6vw, 30px); margin: 40px 0 16px; }
.doc ul { margin: 0 0 24px; padding-left: 20px; max-width: 60ch; }
.doc li { margin-bottom: 10px; }
.doc p { max-width: 60ch; }

/* Footer */
.foot { padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--edge); color: var(--label); font-size: 15px; }
.sig a { display: inline-block; padding: 12px 0; min-width: 44px; text-align: center; }
.legal { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.legal a { display: inline-block; padding: 12px 0; }
.sig { margin: 0; font-family: var(--plate); font-weight: 600; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }

@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .hero { padding-top: 48px; padding-bottom: 80px; }
  .sub { font-size: 21px; max-width: 44ch; margin: 0; }
  .intro { display: flex; align-items: center; justify-content: flex-start; gap: 48px; margin: 24px 0 32px; }
  .rig-list { grid-template-columns: auto auto; justify-content: start; }
  .bar { padding-top: 24px; }
  .feature { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 80px; }
  .feature.flip .copy { order: 2; }
  .feature .shot.tall { justify-self: center; }
  .panel { padding: 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .panel { align-items: start; }
  .submit { width: auto; justify-self: start; }
  .join { padding-bottom: 80px; }
}

/* Long-form pages: terms, refunds, privacy, pricing */
.doc .updated { margin: -8px 0 24px; font-size: 15px; color: var(--label); }
.doc h3 { font: 600 18px/1.4 var(--body); margin: 32px 0 8px; max-width: 60ch; }
.doc p { margin: 0 0 14px; }
.doc ol { margin: 0 0 24px; padding-left: 24px; max-width: 60ch; }
.doc section { scroll-margin-top: 16px; }
.doc section + section { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--edge); }
.doc > .key { margin-top: 32px; }
.plans { display: grid; gap: 16px; margin: 0 0 24px; }
.plan { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 24px 16px; }
.doc .plan h2 { margin: 0 0 12px; }
.price { margin: 0 0 16px; font: 700 28px/1.2 var(--plate); letter-spacing: 0.02em; color: var(--text); }
.plan .key { margin-top: 8px; }
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; max-width: 960px; }
  .plan { padding: 32px; }
}

/* Header text links */
.bar { flex-wrap: wrap; row-gap: 0; }
.nav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font: 600 15px/1 var(--plate); letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime); }
@media (min-width: 900px) {
  .nav { order: 0; flex: 0 1 auto; margin-left: auto; }
  .nav + .status { margin-left: 16px; }
}
