/* BINBOT sign-up dock: the shared skeleton, built once (dock A, "Send bar", David's pick, 1 Nov 2026).
   Every option changes only two things, both set in its own file: the LEFT MARK (.mk) and the JOIN WAITLIST KEY (.k).
   The pill, the field, the placeholder, the labels, the states and BUY $BIN are identical in every option.
   State hooks (set by dock.js, real or forced from the toggles under the dock):
     .dock.is-focus   the field has focus          .dock.has-text  an email is typed (key reads I'M BULLISH)
     .k.is-hover      pointer over the key (hover devices only)   .k.is-press  the key is pressed
     --lv (0..1)      how far the email has got: 0 empty, .25 focused, up to 1 for a valid address. Marks and keys may read it.
   Reduced motion: html.rm (the toggle) or the OS setting; every state still reads without movement. */

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:#000}
body{color:var(--ink);font-family:'Geist Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}
#root{height:100%;display:flex;flex-direction:column}
button,input{font:inherit;color:inherit;background:none;border:0;outline:none}
button{cursor:pointer}
.stage{flex:1;display:flex;align-items:center;justify-content:center;padding:0 24px;min-height:0}

/* ---------- the dock: the field and the key in one pill, Buy beside it ---------- */
.dock{--lv:0;display:flex;align-items:center;gap:14px}
.join{--pl:22px;position:relative;display:flex;align-items:center;flex:none;width:480px;height:60px;padding:0 7px 0 var(--pl);gap:14px;border-radius:999px;isolation:isolate;
  background:linear-gradient(180deg,color-mix(in srgb,#fff 7%,#000) 0%,#0a0a0c 32%,#000 62%,color-mix(in srgb,#fff 3%,#000) 100%);
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 14%,transparent),inset 0 -1px 0 color-mix(in srgb,#fff 5%,transparent),0 0 0 1px color-mix(in srgb,#fff 7%,#000),0 0 0 4px #000,0 24px 48px -20px #000}
.join::before,.join::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1}
.join::before{inset:3px 24px auto;height:40%;border-radius:30px 30px 14px 14px;background:linear-gradient(180deg,color-mix(in srgb,#fff 7%,transparent),transparent);z-index:1}
.join::after{background:radial-gradient(60% 120% at 50% 130%,color-mix(in srgb,var(--warn-ink) 16%,transparent),transparent 70%);opacity:0;transition:opacity var(--dur-slow) var(--ease);z-index:0}
.dock.is-focus .join::after,.dock.has-text .join::after{opacity:1}
.join input{position:relative;z-index:2;flex:1;min-width:0;height:100%;font-size:16px;font-weight:400;letter-spacing:-.005em;caret-color:var(--ink)}
.join input::placeholder{color:var(--ink-3);opacity:1}
.mk{position:relative;z-index:2;display:flex;align-items:center;flex:none}

/* ---------- the key: shared box, label and press; the material is the option's ---------- */
.k{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;flex:none;white-space:nowrap;z-index:3;
  height:46px;width:var(--kw,168px);border-radius:999px;color:#f2eee8;
  font-weight:600;font-size:14px;line-height:1;letter-spacing:.08em;text-transform:uppercase;
  transition:box-shadow var(--dur) var(--ease),transform .12s var(--ease-press),color var(--dur) var(--ease)}
.k:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.k .lb{position:relative;z-index:3}
.k>svg{pointer-events:none}

/* ---------- Buy $BIN: the approved Ember key, unchanged in every option (web-kit reference/buy-key) ---------- */
.buy{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:none;white-space:nowrap;text-decoration:none;
  font-weight:600;font-size:14px;letter-spacing:.05em;color:var(--buy-ink);text-transform:uppercase;position:relative;isolation:isolate}
.buy .drop{width:18px;height:18px;flex:none;overflow:visible}
.buy.ember{height:52px;padding:0 20px;border-radius:16px;background:var(--buy-ember-body);box-shadow:var(--buy-ember-shadow)}
.buy.ember .rule{width:1px;height:16px;background:rgba(22,6,0,.4)}
.buy.ember .soon{font-size:12px;letter-spacing:.09em;color:#2b0c02}

/* ---------- the state bar: judge any state without waiting for it ---------- */
.states{flex:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 22px;padding:0 24px 18px;font-size:14px;line-height:1;color:var(--ink-2)}
.states .grp{display:flex;align-items:center;gap:4px}
.states .lab{margin-right:6px}
.states button{height:32px;padding:0 10px;border-radius:8px;color:var(--ink-2);transition:color var(--dur) var(--ease),background var(--dur) var(--ease)}
.states button:hover{color:var(--ink)}
.states button:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.states .seg button[aria-pressed="true"]{color:var(--ink);background:color-mix(in srgb,#fff 10%,#000)}
.states .sw{display:inline-flex;align-items:center;gap:9px;padding:0 6px}
.states .sw i{position:relative;width:28px;height:16px;border-radius:999px;background:color-mix(in srgb,#fff 16%,#000);transition:background var(--dur) var(--ease)}
.states .sw i::after{content:'';position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--ink-2);transition:transform var(--dur) var(--ease),background var(--dur) var(--ease)}
.states .sw[aria-checked="true"]{color:var(--ink)}
.states .sw[aria-checked="true"] i{background:color-mix(in srgb,#fff 30%,#000)}
.states .sw[aria-checked="true"] i::after{transform:translateX(12px);background:var(--ink)}

/* ---------- narrow frames: the dock stacks, nothing clips ---------- */
@media(max-width:720px){
  .stage{padding:0 16px}
  .dock{flex-direction:column;align-items:stretch;gap:12px;width:100%}
  .join{width:100%}
  .buy.ember{justify-content:center}
}

/* ---------- reduced motion: the toggle and the OS setting do the same thing ---------- */
html.rm *,html.rm *::before,html.rm *::after{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
