/* Maker Simulator waitlist. The brand is dark, so there is one theme.
   Palette and contrast rules: assets/brand/README.md. */

@font-face { font-family: "Inter Display"; font-weight: 900; font-display: swap; src: url("/fonts/inter-display-black.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url("/fonts/inter-display-bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-semibold.woff2") format("woff2"); }

:root {
  --midnight: #160f35;
  --grape: #3d1d8f;
  --cream: #f4eee2;
  --red: #ff4b3e;
  --teal: #22d39c;
  --gold: #ffc94d;
  --pink: #ff3fa4;
  --cyan: #2de2f0;
  --cream-dim: #d3cadb; /* Cream softened toward Grape: 7.4:1 on Grape, 12:1 on Midnight */
  --metal: #c3c9d1;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--midnight); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--midnight); color: var(--cream); font: 400 17px/1.55 var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--cream); color: var(--midnight); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--midnight); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; touch-action: manipulation; }
.hero-inner { width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(20px, 3.5vh, 40px) 16px clamp(150px, 22vh, 230px); display: flex; flex-direction: column; align-items: center; text-align: center; }

.logo { position: relative; width: min(470px, 100%); }
.logo::before { content: ""; position: absolute; left: 3%; top: -20%; width: 34%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 201, 77, .35), rgba(255, 201, 77, 0)); z-index: -1; animation: bloom 5s ease-in-out infinite; }
.logo img { width: 100%; filter: drop-shadow(0 10px 24px rgba(22, 15, 53, .6)); }
@keyframes bloom { 50% { transform: scale(1.12); opacity: .75; } }

.tagline { font: 900 clamp(34px, 6vw, 58px)/1.05 var(--display); letter-spacing: -.01em; margin: clamp(14px, 2.4vh, 24px) 0 8px; text-wrap: balance; text-shadow: 0 2px 0 var(--midnight), 0 0 28px rgba(255, 63, 164, .35); }
.lede { margin: 0 auto 22px; max-width: 34ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--cream-dim); text-wrap: balance; }

/* ---------------------------------------------------------------- the card */

/* The card sits flat and level, on the page's center axis. Its border and
   glow are the same on every side: pink at the top and bottom, cyan at the
   sides, mirrored both ways, and one even glow with no offset. */
.card { position: relative; width: 100%; max-width: 580px; margin: 0 auto; border: 2px solid transparent; border-radius: 24px; padding: 24px; text-align: left;
  background: linear-gradient(180deg, #3d1d8f, #2c156e) padding-box, conic-gradient(from 0deg, var(--pink), var(--cyan) 25%, var(--pink) 50%, var(--cyan) 75%, var(--pink)) border-box;
  --glow: 0 0 28px rgba(255, 63, 164, .32), 0 0 56px rgba(45, 226, 240, .2);
  box-shadow: var(--glow); animation: edge 6s ease-in-out infinite; }
@keyframes edge { 50% { box-shadow: 0 0 34px rgba(255, 63, 164, .42), 0 0 68px rgba(45, 226, 240, .28); } }
.card.won { animation: thump .6s var(--spring), edge 6s ease-in-out .6s infinite; }
@keyframes thump { 30% { transform: scale(1.02); } }
.card-title { font: 700 20px/1.2 var(--display); margin: 0 0 2px; text-align: center; text-wrap: balance; }

/* The bench: a breadboard you finish wiring by filling in the form. */
.bench { margin: 0 auto 12px; max-width: 470px; }
.board { width: 100%; height: auto; display: block; overflow: visible; }
.bb-shadow { fill: rgba(13, 8, 38, .45); }
.bb-side { fill: #cdb995; }
.bb-face { fill: url(#bbTop); }
.rail-line { stroke-width: 2.4; stroke-linecap: round; }
.rail-pos { stroke: var(--red); }
.rail-neg { stroke: var(--grape); }
.rail-sign { font: 900 15px var(--display); text-anchor: middle; }
.sign-pos { fill: var(--red); }
.sign-neg { fill: var(--grape); }
.rail-run { stroke: var(--gold); stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 26 400; stroke-dashoffset: 26; opacity: 0; filter: drop-shadow(0 0 3px var(--gold)); }
.board.powered .rail-run { opacity: 1; animation: run 1.8s linear infinite; }
.board.powered .rail-pos { stroke: #ff7a63; filter: drop-shadow(0 0 2.5px var(--red)); }
@keyframes run { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -290; } }
.chan { fill: #e3d6bf; }
.holes rect { fill: #8f846f; }
.lead { fill: none; stroke: var(--metal); stroke-width: 1.8; stroke-linecap: round; }
.res-body { fill: #ead1a4; }
.btn-base { fill: #2a2440; }
.btn-cap { fill: var(--teal); }
.cell-plus { font: 900 12px var(--display); fill: #5d6570; text-anchor: middle; }
.cell-glow { fill: var(--gold); opacity: 0; transition: opacity .4s; filter: blur(5px); }
.board.powered .cell-glow { opacity: .55; }
.wire2, .wire2-shadow { fill: none; stroke-linecap: round; stroke-width: 4; }
.wire2 { stroke: var(--teal); }
.wire2-shadow { stroke: rgba(22, 15, 53, .3); transform: translate(1.5px, 2.5px); }
.target { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 3.5 2.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.board.ready .target { opacity: 1; animation: spin 3s linear infinite; }
.board.plugged .target { opacity: 0; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.led-leg { fill: none; stroke: var(--metal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.led-flange { fill: #9c7a34; transition: fill .3s; }
.led-dome { fill: url(#ledOff); transition: fill .3s; }
.led-shine { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 2.4; stroke-linecap: round; }
.led-core { fill: #6b5622; transition: fill .3s; }
.led-glow, .led-rays { opacity: 0; transition: opacity .35s; }
.led-rays { transform-box: fill-box; transform-origin: center; }
.board.ready.powered .led-glow { animation: almost 2.2s steps(1) infinite; }
@keyframes almost { 0%, 86%, 92% { opacity: 0; } 88%, 95% { opacity: .35; } }
.board.plugged .led-dome { fill: url(#ledOn); }
.board.plugged .led-flange { fill: var(--gold); }
.board.plugged .led-core { fill: #fff; }
.board.plugged .led-glow { opacity: 1; animation: glowpulse 2.4s ease-in-out .6s infinite; }
.board.plugged .led-rays { opacity: 1; animation: rays 1.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { opacity: .75; } }
@keyframes rays { 50% { opacity: .45; transform: scale(1.06); } }
.board.err .led-dome { fill: var(--red); }
.board.err .led-core { fill: #ffd2cc; }

.wire, .wire-shadow { fill: none; stroke-linecap: round; }
.wire { stroke: var(--red); stroke-width: 4.5; }
.wire-shadow { stroke: rgba(22, 15, 53, .32); stroke-width: 4.5; transform: translate(2px, 3px); }
.tip { stroke: var(--metal); stroke-width: 2.6; stroke-linecap: round; }
.spark { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.board.plugged .spark { animation: spark .6s ease-out 1; }
@keyframes spark { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(8); } }

.steps { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.steps li { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(22, 15, 53, .55); color: var(--cream-dim); transition: background .3s, color .3s, transform .35s var(--spring); }
.steps .dot { width: 8px; height: 8px; border-radius: 50%; background: #5d4f8f; transition: background .3s, box-shadow .3s; }
.steps li.done { background: var(--midnight); color: var(--cream); transform: translateY(-2px); }
.steps li.done .dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.steps li.done::after { content: "\2713"; color: var(--teal); }
.steps li[data-step="plug"].done .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.steps li[data-step="plug"].done::after { color: var(--gold); }

.field label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
input[type="email"] { display: block; width: 100%; height: 58px; padding: 0 16px; border-radius: 14px; border: 2px solid rgba(244, 238, 226, .28); background: var(--midnight); color: var(--cream); font: 400 17px var(--text); transition: border-color .2s, box-shadow .2s; }
input[type="email"]::placeholder { color: #9d93b3; }
input[type="email"]:hover { border-color: rgba(244, 238, 226, .5); }
input[type="email"]:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-color: var(--cyan); border-radius: 14px; }
input[aria-invalid="true"] { border-color: var(--red); }

/* Buttons: Jumper Red with Midnight text, plus juice. */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; font: 700 17px var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s, filter .2s; -webkit-tap-highlight-color: transparent; }
.btn-red { background: var(--red); color: var(--midnight); box-shadow: 0 4px 0 #b8261c, 0 8px 20px rgba(255, 75, 62, .3); }
.btn-teal { background: var(--teal); color: var(--midnight); box-shadow: 0 4px 0 #14775a, 0 8px 20px rgba(34, 211, 156, .25); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn:hover { transform: translateY(-3px) scale(1.03); filter: saturate(1.1) brightness(1.04); }
.btn:hover::after { animation: shine .7s ease-out; }
.btn-red:hover { box-shadow: 0 7px 0 #b8261c, 0 0 0 4px rgba(255, 63, 164, .25), 0 14px 34px rgba(255, 75, 62, .45); }
.btn-teal:hover { box-shadow: 0 7px 0 #14775a, 0 0 0 4px rgba(45, 226, 240, .25), 0 14px 30px rgba(34, 211, 156, .4); }
.btn:active { transform: translateY(2px) scale(.97, .94); transition-duration: .08s; }
.btn-red:active { box-shadow: 0 1px 0 #b8261c, 0 4px 10px rgba(255, 75, 62, .3); }
.btn-teal:active { box-shadow: 0 1px 0 #14775a; }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 14px; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .btn-label::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes shine { to { left: 130%; } }
.btn-label { position: relative; z-index: 1; }
.btn-join { display: flex; width: 100%; margin-top: 16px; height: 62px; padding: 0 26px; border-radius: 16px; font-size: 19px; font-weight: 900; box-shadow: 0 6px 0 #b8261c, 0 10px 24px rgba(255, 75, 62, .35); }
.btn-join:hover { box-shadow: 0 9px 0 #b8261c, 0 0 0 4px rgba(255, 63, 164, .28), 0 16px 36px rgba(255, 75, 62, .5); }
.btn-join:active { transform: translateY(6px) scale(.98, .96); box-shadow: 0 0 0 #b8261c, 0 3px 8px rgba(255, 75, 62, .3); }
.btn-join .plug { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.btn-join:hover .plug { transform: rotate(-12deg) translateY(-1px); }

.btn-link { background: none; border: 0; padding: 8px 4px; color: var(--teal); font: 600 16px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--cream); }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; width: fit-content; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check > span:last-child { text-wrap: balance; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 24px; height: 24px; margin-top: -2px; border-radius: 7px; border: 2px solid rgba(244, 238, 226, .55); background: var(--midnight); display: grid; place-items: center; transition: background .2s, border-color .2s, transform .25s var(--spring); }
.check .box svg { width: 16px; height: 16px; fill: none; stroke: var(--midnight); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .25s ease-out .05s; }
.check:hover .box { border-color: var(--cream); transform: scale(1.06); }
.check input:checked + .box { background: var(--teal); border-color: var(--teal); transform: scale(1.1); }
.check input:checked + .box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .box { outline: 3px solid var(--cyan); outline-offset: 3px; }
.check input[aria-invalid="true"] + .box { border-color: var(--red); }

/* The human check (Cloudflare Turnstile), part of the Power step. The widget
   only shows itself when it needs a click. */
.human { margin: 10px 0 0; }
.human-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--cream-dim); }
.human-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 1s ease-in-out infinite; }
.human.ok .human-dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: none; }
.human.ok .human-status { color: var(--cream); }
.human.bad .human-dot { background: var(--red); box-shadow: none; animation: none; }
.human-widget:not(:empty) { margin-top: 8px; }
.human-widget iframe { max-width: 100%; }
@keyframes blink { 50% { opacity: .35; } }
.steps li.wait .dot { background: var(--gold); animation: blink 1s ease-in-out infinite; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; font-size: 15px; color: var(--gold); }
.status:empty { margin: 4px 0 0; min-height: 0; }
.status.bad::before { content: "! "; }
.privacy { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--cream-dim); text-wrap: balance; }

.thanks { padding: 2px 0 4px; animation: pop .5s var(--spring); }
.thanks-title { font: 900 28px/1.1 var(--display); color: var(--gold); margin-bottom: 8px; outline: none; }
.thanks p { margin: 0 0 6px; }
.thanks-small { color: var(--cream-dim); font-size: 15px; }
.thanks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }

.nojs { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--midnight); }
.nojs p { margin: 0; }
.nojs:target { display: block; }
#joined strong { color: var(--gold); }
#oops strong { color: var(--red); }

/* ---------------------------------------------------------------- beats */

.beats { max-width: 1120px; margin: 0 auto; padding: 72px 16px 24px; }
.section-title { font: 900 clamp(30px, 4.6vw, 46px)/1.1 var(--display); text-align: center; margin-bottom: 44px; }
.beat { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; margin: 0 0 56px; }
.shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--grape); box-shadow: 0 0 0 1.5px rgba(244, 238, 226, .12), 0 18px 44px rgba(0, 0, 0, .45); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--spring), box-shadow .3s; }
.shot img { width: 100%; }
.beat:hover .shot { box-shadow: 0 0 0 2px rgba(45, 226, 240, .45), 0 0 40px rgba(45, 226, 240, .2), 0 22px 50px rgba(0, 0, 0, .5); }
.shot-tall { max-width: 420px; justify-self: center; }
.beat-text h3 { font: 900 clamp(26px, 3.4vw, 34px)/1.1 var(--display); margin: 8px 0 10px; text-wrap: balance; }
.beat-text p { margin: 0; color: var(--cream-dim); max-width: 46ch; }
.beat-text .chip { display: inline-block; margin: 0; padding: 4px 11px; border-radius: 999px; font: 700 13px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--midnight); }
.chip-cyan { background: var(--cyan); }
.chip-teal { background: var(--teal); }
.chip-gold { background: var(--gold); }
.chip-pink { background: var(--pink); }

@media (min-width: 900px) {
  .beat { grid-template-columns: 1.15fr 1fr; gap: 56px; margin-bottom: 88px; }
  .beat:nth-of-type(even) .shot { order: 2; }
  .beat-text p:last-child { font-size: 18px; }
}

/* ---------------------------------------------------------------- steam */

.steam { position: relative; text-align: center; padding: 64px 16px 88px; background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(61, 29, 143, .9), rgba(22, 15, 53, 0)); }
.steam p { color: var(--cream-dim); margin: 0 auto 26px; max-width: 40ch; }
.neon { font: 900 clamp(40px, 9vw, 96px)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #ffe3f1; margin-bottom: 20px;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 56px rgba(255, 63, 164, .7); }
.neon .flick { animation: flick 7s infinite; }
@keyframes flick { 0%, 46%, 49%, 52%, 100% { opacity: 1; } 47%, 51% { opacity: .35; text-shadow: none; } }

/* ---------------------------------------------------------------- footer */

.foot { text-align: center; padding: 40px 16px 48px; border-top: 1px solid rgba(244, 238, 226, .1); color: var(--cream-dim); font-size: 15px; }
.foot p { margin: 4px 0; }
.foot-mark { margin: 0 auto 10px; border-radius: 10px; transition: transform .4s var(--spring); }
.foot-mark:hover { transform: rotate(-8deg) scale(1.12); }
.foot-tag { font: 700 18px var(--display); color: var(--cream); }
.foot nav { margin: 10px 0; }
.foot-small { font-size: 13px; }

/* ---------------------------------------------------------------- the skyline */

.star { fill: #fff8ec; transform-box: fill-box; transform-origin: center; animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .25; transform: scale(.55); } }
.w { opacity: 0; transition: opacity .5s; }
.w.on { opacity: 1; }
.w.tv.on { animation: tv 1.6s steps(1) infinite; }
@keyframes tv { 0% { opacity: 1; } 30% { opacity: .55; } 45% { opacity: .9; } 70% { opacity: .65; } }
.lit-window { animation: litpulse 3.2s ease-in-out infinite; }
@keyframes litpulse { 50% { opacity: .78; } }
.shoot { opacity: 0; }
.wl-leg, .wl-arm { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Phones */
@media (max-width: 560px) {
  .card { padding: 16px; border-radius: 20px; }
  .bench { margin: 2px auto 12px; }
  .steps { font-size: 12px; gap: 6px; }
  .steps li { padding: 6px 9px; }
  .hero-inner { padding-bottom: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .btn:hover, .check:hover .box, .foot-mark:hover { transform: none; }
  .shot { transform: none; }
}

/* ---------------------------------------------------------------- privacy and 404 */

.page-head { padding: 24px 16px 0; text-align: center; }
.page-home { display: inline-block; width: min(320px, 80vw); }
.page { max-width: 680px; margin: 0 auto; padding: 32px 16px 56px; }
.page h1 { font: 900 clamp(32px, 6vw, 48px)/1.1 var(--display); margin: 8px 0 12px; text-wrap: balance; }
.page h2 { font: 700 22px/1.25 var(--display); margin: 32px 0 8px; color: var(--gold); }
.page p, .page li { color: var(--cream-dim); }
.page strong { color: var(--cream); }
.page ul { padding-left: 1.2em; }
.page-lede { font-size: 19px; }
.page-back { margin-top: 36px; }
.page-404 { text-align: center; padding-top: 12vh; }
.page-404 .page-home { margin-bottom: 24px; }
