/* baksho.tech waitlist: dark, one face, one line, one field. */
:root {
  --bg: #080808; --chalk: #e9e5de; --mute: #9c988f; --line: rgba(233, 229, 222, .14);
  --font: "Anek", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--chalk); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); }
.sprite { position: absolute; width: 0; height: 0; }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; margin: -6px -2px -6px -6px; flex: none; }
.brand-wm { height: 22px; width: auto; }
.soon { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 80px);
  width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(12px, 3vw, 40px) clamp(20px, 5vw, 64px) clamp(28px, 5vw, 56px); }
.origin { margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
h1 { margin: 0; font-weight: 800; font-stretch: 78%; font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: .94; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin: 22px 0 0; max-width: 30ch; font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.45; color: #c9c5bd; }

.join { margin-top: 34px; max-width: 520px; }
.field { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #101010; transition: border-color .15s; }
.field:focus-within { border-color: rgba(233, 229, 222, .45); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--chalk); font: inherit; font-size: 1.05rem; padding: 12px 12px; }
.field input::placeholder { color: #6f6b64; }
.field input:focus { outline: none; }
.field button { border: 0; border-radius: 10px; background: var(--chalk); color: #0b0b0b; font: inherit; font-weight: 700; font-size: 1rem; padding: 0 20px; cursor: pointer; white-space: nowrap; transition: transform .1s, background .15s; }
.field button:hover { background: #fff; }
.field button:active { transform: translateY(1px); }
.field button:disabled { opacity: .6; cursor: default; }
.status { min-height: 1.4em; margin: 12px 2px 0; font-size: .95rem; }
.status.ok { color: var(--chalk); }
.status.err { color: #ff9a7a; }
.fine { margin: 2px 2px 0; font-size: .85rem; color: #6f6b64; }

/* the screen: the real face, a bezel barely there, its light on the surface below */
.screen-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bezel { width: 100%; padding: clamp(14px, 2.4vw, 30px); border-radius: clamp(18px, 2.6vw, 34px); background: radial-gradient(120% 120% at 50% 40%, #151515, #0b0b0b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 40px 80px -30px rgba(243, 242, 236, .08); cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; user-select: none; }
.bezel canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.bezel.knocked { animation: knock .42s cubic-bezier(.3, .7, .4, 1); }
@keyframes knock { 0% { transform: translate(0, 0) rotate(0); } 15% { transform: translate(-7px, 2px) rotate(-.6deg); }
  35% { transform: translate(5px, -1px) rotate(.4deg); } 60% { transform: translate(-2px, 0) rotate(-.15deg); } 100% { transform: none; } }
.hint { font-size: .9rem; color: #6f6b64; letter-spacing: .02em; transition: opacity .4s; }
.hint.gone { opacity: 0; }

.foot { display: flex; justify-content: space-between; gap: 12px; padding: 20px clamp(20px, 5vw, 64px) 26px; font-size: .82rem; color: #6f6b64; border-top: 1px solid rgba(233, 229, 222, .06); }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; gap: 26px; }
  .screen-wrap { order: -1; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .lead { max-width: none; }
}
@media (max-width: 420px) {
  .field { flex-direction: column; }
  .field button { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { .bezel.knocked { animation: none; } }
