/* benchwise waitlist: shared tokens, header, signup, footer. Direction styles live in a.css / b.css. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format("woff2"); }
@font-face { font-family: Sora; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/sora-latin.woff2) format("woff2"); }

:root {
  --bg: #f2f5f6;          /* fresh ice */
  --bg-2: #e8eef0;
  --surface: #ffffff;
  --ink: #15171a;         /* charcoal */
  --ink-2: #545a62;
  --ink-3: #6a7178;
  --line: #d6dee2;
  --rink: #b9c7ce;        /* rink hairlines */
  --paint-red: #d4555b;
  --paint-blue: #4a7fc8;
  --volt: #c6ff3d;
  --hl: rgba(198, 255, 61, .85);
  --err: #b42318;
  --ok: #3f6f00;
  --focus: #15171a;
  --btn-bg: #15171a;
  --btn-fg: #ffffff;
  --btn-sweep: #c6ff3d;
  --btn-sweep-fg: #15171a;
  --field: #ffffff;
  --field-line: #8c969c;
  --shadow: 0 1px 0 rgba(21, 23, 26, .04), 0 12px 32px -14px rgba(30, 50, 60, .28);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1012;
    --bg-2: #13171a;
    --surface: #161a1d;
    --ink: #eef1ee;
    --ink-2: #a3aaa8;
    --ink-3: #858d8c;
    --line: #252b2f;
    --rink: #2c353b;
    --paint-red: #c4565a;
    --paint-blue: #4f86d1;
    --hl: rgba(198, 255, 61, .9);
    --err: #ff9d8c;
    --ok: #c6ff3d;
    --focus: #c6ff3d;
    --btn-bg: #c6ff3d;
    --btn-fg: #15171a;
    --btn-sweep: #eef1ee;
    --btn-sweep-fg: #15171a;
    --field: #13171a;
    --field-line: #5f696f;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: Manrope, system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--volt); color: #15171a; }
html { scrollbar-color: var(--ink-3) var(--bg); accent-color: var(--ink); }
input { caret-color: var(--ink); }
@media (prefers-color-scheme: dark) { input { caret-color: var(--volt); } }

.skip { position: fixed; left: 12px; top: 12px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus { transform: none; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); max-width: 1440px; margin: 0 auto;
}
.lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.lockup svg { width: 30px; height: 30px; }
.lockup b { font-weight: 800; font-size: 21px; letter-spacing: -.035em; line-height: 1; }
.top-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent;
  border: 1px solid var(--line); cursor: pointer; text-decoration: none;
  transition: border-color 200ms, background-color 200ms;
}
.top-cta:hover { border-color: var(--ink); }
.top-cta .tick { width: 14px; height: 14px; display: none; }
.is-joined .top-cta .tick { display: block; }
.is-joined .top-cta { border-color: transparent; background: var(--bg-2); }
.top-cta.away { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.top-cta { transition: border-color 200ms, background-color 200ms, opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s; }
.top-cta.away { transition: opacity 200ms, transform 200ms, visibility 0s 200ms; }

/* ---------- owl mark (shared) ---------- */
.owl .eyes { transition: transform 420ms var(--ease-out); }
.owl .eye { transform-box: fill-box; transform-origin: center; }
.owl.blink .eye { animation: blink 260ms var(--ease-io); }
.owl.nod { animation: nod 700ms var(--ease-out); }
@keyframes blink { 45%, 55% { transform: scaleY(.08); } }
@keyframes nod { 30% { transform: translateY(3%); } 60% { transform: translateY(-1%); } }

/* ---------- signup ---------- */
.signup-wrap { position: relative; width: 100%; max-width: 460px; }
.signup { position: relative; }
.signup-label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.input-wrap { position: relative; flex: 1; min-width: 0; }
.signup input[type=email] {
  width: 100%; height: 54px; padding: 0 44px 0 16px; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--field-line);
  box-shadow: var(--shadow); outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.signup input::placeholder { color: var(--ink-3); font-weight: 500; }
.signup input:hover { border-color: var(--ink-3); }
.signup input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--hl), var(--shadow); }
@media (prefers-color-scheme: dark) { .signup input:focus { border-color: var(--volt); box-shadow: 0 0 0 4px rgba(198, 255, 61, .18), var(--shadow); } }
.signup[data-state=invalid] input { border-color: var(--err); }
.signup[data-state=invalid] input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 18%, transparent), var(--shadow); }
.valid-dot {
  position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
  opacity: 0; transform: scale(.4); transition: opacity 180ms, transform 280ms var(--ease-out); color: var(--ok);
}
.signup.looks-ok .valid-dot { opacity: 1; transform: none; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  transition: transform 140ms var(--ease-out), color 260ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* volt sweep on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--btn-sweep);
  transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out);
}
@media (hover: hover) { .btn:hover::before { transform: scaleX(1); } .btn:hover { color: var(--btn-sweep-fg); } }
.btn:active { transform: scale(.975); }
.btn:focus-visible { outline-offset: 3px; border-radius: 14px; }
.btn-spin {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite;
}
.signup[data-state=sending] .btn-spin, .signup[data-state=waiting] .btn-spin { display: inline-block; }
.signup[data-state=sending] .btn, .signup[data-state=waiting] .btn { cursor: progress; color: var(--btn-fg); }
.signup[data-state=sending] .btn::before, .signup[data-state=waiting] .btn::before { transform: scaleX(0); }
@keyframes spin { to { transform: rotate(360deg); } }

.msg { min-height: 22px; margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.msg:empty { visibility: hidden; }
.msg .ico { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-right: 6px; }
.signup[data-state=invalid] .msg, .msg.is-err { color: var(--err); }
.msg.is-wait { color: var(--ink-2); }
.msg .fix { font: inherit; font-weight: 800; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.fine { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 560px) {
  .field { flex-direction: row; gap: 0; }
  .signup input[type=email] { border-radius: 14px 0 0 14px; border-right: 0; height: 58px; padding-right: 48px; }
  .btn { height: 58px; border-radius: 0 14px 14px 0; padding: 0 24px; }
  .btn:focus-visible { border-radius: 0 14px 14px 0; }
}

/* ---------- joined (success) ---------- */
.joined { position: relative; outline: none; }
.joined-head { display: flex; align-items: center; gap: 14px; }
.check { width: 48px; height: 48px; flex: none; }
.check circle { fill: var(--volt); transform-box: fill-box; transform-origin: center; }
.check path { fill: none; stroke: #15171a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.joined h2 { margin: 0; font-family: Sora, Manrope, sans-serif; font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.joined p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.joined .who { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color 160ms, transform 140ms var(--ease-out);
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.ghost { background: none; box-shadow: none; border-color: transparent; color: var(--ink-2); padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; }
.chip.ghost:hover { color: var(--ink); }
.copied { font-size: 13px; font-weight: 700; color: var(--ok); align-self: center; opacity: 0; transition: opacity 200ms; }
.copied.show { opacity: 1; }

.joined.enter .check circle { animation: pop 520ms var(--ease-out) both; }
.joined.enter .check path { animation: draw 420ms 260ms var(--ease-out) both; }
.joined.enter h2, .joined.enter p, .joined.enter .share { animation: rise 520ms var(--ease-out) both; }
.joined.enter p { animation-delay: 90ms; }
.joined.enter .share { animation-delay: 170ms; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  font-size: 13px; color: var(--ink-2);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; border-radius: 4px; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .btn-spin { animation: spin 1.6s linear infinite !important; }
}
