/* ASKOFF waitlist. The page is an airlock: a door, one field to open it, and what is behind.
   Colours and typefaces are those of the app (Anybody for display, Geist for text). */

@font-face { font-family: "Anybody"; font-style: italic; font-weight: 900; font-display: swap; src: url("/fonts/anybody-black-italic.woff2") format("woff2"); }
@font-face { font-family: "Anybody"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/anybody-bold-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("/fonts/geist-regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("/fonts/geist-medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("/fonts/geist-semibold.woff2") format("woff2"); }

:root {
  --onyx: #050506;
  --hull: #111113;
  --hull-2: #18181b;
  --titanium: #3b3b40;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bone: #f6f6f2;
  --dim: #a9a9ae;
  --faint: #6e6e75;
  --volt: #c8f230;
  --volt-hi: #e2ff6b;
  --on-volt: #0b0d03;
  --alert: #ff5b3a;
  --display: "Anybody", "Arial Narrow", Impact, sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --slide: cubic-bezier(0.76, 0, 0.18, 1);
}

* { box-sizing: border-box; }
html { background: var(--onyx); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--bone);
  font: 400 1rem/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

/* ---- the airlock ---- */

.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.inside {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(200, 242, 48, 0.26), rgba(200, 242, 48, 0.05) 55%, transparent 75%),
    radial-gradient(90% 60% at 50% 110%, rgba(200, 242, 48, 0.12), transparent 70%),
    linear-gradient(180deg, #0c0d09, var(--onyx) 55%);
}
/* A picture of the inside of the ship, when there is one (img/inside.jpg, img/inside-m.jpg on phones). */
.has-inside .inside { background: linear-gradient(180deg, rgba(5, 5, 6, 0.08) 0%, rgba(5, 5, 6, 0.5) 34%, rgba(5, 5, 6, 0.93) 62%), url("/img/inside.jpg") center top / cover no-repeat; }

.door { position: fixed; top: 0; bottom: 0; width: 50.1%; overflow: hidden; z-index: 2; transition: transform 1.25s var(--slide) 0.5s; will-change: transform; }
.door.l { left: 0; }
.door.r { right: 0; }
.plate {
  position: absolute; top: 0; bottom: 0; width: 100vw;
  background:
    radial-gradient(80% 40% at 50% 100%, rgba(200, 242, 48, 0.09), transparent 70%),
    radial-gradient(60% 50% at 50% 38%, rgba(255, 255, 255, 0.045), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 2px, rgba(255, 255, 255, 0.03) 2px 3px, transparent 3px 148px),
    linear-gradient(90deg, #060607 0%, #141416 16%, #0d0d0f 38%, #101012 50%, #0d0d0f 62%, #141416 84%, #060607 100%);
}
.door.l .plate { left: 0; }
.door.r .plate { right: 0; }
/* The recessed panel of each half, and the hazard strip along the opening. */
.door::before {
  content: ""; position: absolute; top: 7%; bottom: 7%; width: 76%;
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 26px;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.03);
}
.door.l::before { right: 9%; border-right-color: rgba(200, 242, 48, 0.16); }
.door.r::before { left: 9%; border-left-color: rgba(200, 242, 48, 0.16); }
.door::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(135deg, rgba(200, 242, 48, 0.5) 0 9px, transparent 9px 22px);
  opacity: 0.35;
}
.door.l::after { right: 14px; }
.door.r::after { left: 14px; }
/* A picture of the door, when there is one (img/door.jpg, img/door-m.jpg on phones): each half shows its side. */
.has-door .plate { background: url("/img/door.jpg") center / cover no-repeat; }
.has-door .door::before, .has-door .door::after { display: none; }

.seam {
  position: fixed; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 3;
  background: linear-gradient(180deg, var(--volt-hi) 0%, var(--volt) 9%, rgba(200, 242, 48, 0.16) 20%, rgba(200, 242, 48, 0.16) 80%, var(--volt) 91%, var(--volt-hi) 100%);
  box-shadow: 0 0 16px 2px rgba(200, 242, 48, 0.5), 0 0 90px 12px rgba(200, 242, 48, 0.14);
  animation: breathe 4.8s ease-in-out infinite;
}
.has-door .seam { opacity: 0; animation: none; }
@keyframes breathe { 50% { opacity: 0.55; } }

/* The two locks that hold the halves together, each with its light. */
.clamp {
  position: fixed; left: 50%; width: 74px; height: 30px; margin-left: -37px; z-index: 3; border-radius: 9px;
  background: linear-gradient(180deg, #2a2a2e, #121214); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease, transform 0.5s var(--slide);
}
.clamp::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 4px; margin: -2px 0 0 -11px; border-radius: 2px; background: var(--volt); box-shadow: 0 0 12px var(--volt); }
.clamp.t { top: 9.5%; }
.clamp.b { bottom: 4%; display: none; }
.opening .clamp, .open .clamp { opacity: 0; transform: scaleX(0.2); }
body.has-door .clamp, body.instant .clamp { display: none; }

/* Opening: the light floods, the halves part, the outside fades. */
.opening .seam, .open .seam { animation: flood 1.5s ease-out forwards; }
@keyframes flood {
  0% { opacity: 1; width: 2px; margin-left: -1px; }
  30% { opacity: 1; width: 26px; margin-left: -13px; background: var(--volt-hi); box-shadow: 0 0 120px 60px rgba(200, 242, 48, 0.45); }
  100% { opacity: 0; width: 60vw; margin-left: -30vw; background: linear-gradient(90deg, rgba(226, 255, 107, 0), rgba(226, 255, 107, 0.5), rgba(226, 255, 107, 0)); box-shadow: none; }
}
.opening .door.l, .open .door.l { transform: translateX(-101%); }
.opening .door.r, .open .door.r { transform: translateX(101%); }
.instant .door { transition: none; }
.instant .seam { animation: none; opacity: 0; }

/* ---- header ---- */

.top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 20px 0; }
.mark { display: block; width: 132px; }
.mark svg { display: block; width: 100%; height: auto; overflow: hidden; }
/* One colour, as in the app: the power symbol of the O is not green. */
.mark .ink, .mark .power { stroke: var(--bone); }
.lang {
  border: 1px solid var(--line-strong); background: rgba(5, 5, 6, 0.5); border-radius: 999px;
  padding: 7px 13px; font-size: 0.82rem; font-weight: 500; color: var(--dim); cursor: pointer;
}
.lang:hover { color: var(--bone); border-color: var(--bone); }

/* ---- outside the door ---- */

main { position: relative; }
.gate {
  position: relative; z-index: 3;
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 18px 22px 44px;
  max-width: 660px; margin: 0 auto;
  transition: opacity 0.45s ease, transform 0.6s ease;
}
/* The text sits on the opening: a dark halo keeps it readable over the light. */
.gate::before {
  content: ""; position: absolute; top: 6%; bottom: 4%; left: 50%; width: min(150%, 100vw); transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 5, 6, 0.82) 0%, rgba(5, 5, 6, 0.62) 60%, rgba(5, 5, 6, 0) 100%);
}
/* While the door opens, the outside steps aside so the inside is already in place behind it. */
/* Over a picture of the door: the halo is kept to the text, so the top of the door stays in view. */
.has-door .gate::before {
  top: 30%; bottom: 0;
  background: radial-gradient(closest-side, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.74) 58%, rgba(5, 5, 6, 0) 100%);
}
.has-door .sub { color: #c6c6ca; }
.has-door .fine { color: #8f8f96; }
.has-door .gate h1 { text-shadow: 0 2px 26px rgba(0, 0, 0, 0.75); }
.opening .gate { position: absolute; left: 0; right: 0; opacity: 0; transform: scale(0.97); pointer-events: none; }

.porthole {
  position: relative; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 50% 35%, #1d2112, #070806 70%);
  border: 5px solid #232326;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 9px #0c0c0e, 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 46px rgba(200, 242, 48, 0.2);
}
.porthole img { position: absolute; width: 154%; max-width: none; left: -27%; top: -13%; transition: opacity 0.35s ease; }
.porthole img.out { opacity: 0; }

.intercom {
  margin: 20px 0 0; min-height: 3em; max-width: 30em;
  font-size: 0.95rem; color: var(--dim); font-style: italic;
  transition: opacity 0.35s ease;
}
.intercom.out { opacity: 0; }
.intercom::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--volt);
  margin-right: 9px; vertical-align: 0.08em; box-shadow: 0 0 10px var(--volt);
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 0.96; letter-spacing: -0.005em; }
.gate h1 { margin-top: 14px; font-size: clamp(2.3rem, 10.5vw, 4.9rem); text-wrap: balance; }
.sub { margin: 16px 0 0; max-width: 31em; color: var(--dim); font-size: 1.02rem; text-wrap: pretty; }

form { width: 100%; max-width: 470px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px;
  background: rgba(17, 17, 19, 0.92); border: 1px solid var(--line-strong);
  font-size: 1.05rem; text-align: center;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px rgba(200, 242, 48, 0.16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn.volt { background: var(--volt); color: var(--on-volt); }
.btn.volt:hover { background: var(--volt-hi); }
.btn.ghost { background: rgba(17, 17, 19, 0.7); border-color: var(--line-strong); color: var(--bone); }
.btn.ghost:hover { border-color: var(--bone); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
#go { height: 56px; font-size: 1.05rem; }

.msg { min-height: 1.5em; margin: 10px 0 0; font-size: 0.92rem; color: var(--alert); }
.msg button { background: none; border: 0; padding: 0; color: var(--bone); text-decoration: underline; cursor: pointer; }
.fine { margin: 6px 0 0; max-width: 34em; font-size: 0.8rem; color: var(--faint); }
.count { margin: 18px 0 0; font-size: 0.9rem; color: var(--dim); }
.count b { color: var(--volt); font-weight: 600; }

/* ---- inside ---- */

.deck {
  position: relative; z-index: 1;
  max-width: 1040px; margin: 0 auto; padding: 8px 22px 56px;
  text-align: center;
  animation: arrive 0.9s ease 0.9s both;
}
.instant .deck { animation: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } }

.hosts { display: flex; justify-content: center; height: 168px; margin-top: 4px; }
.hosts img { height: 100%; width: auto; }
.granted { margin: 10px 0 0; color: var(--volt); font-weight: 600; font-size: 0.95rem; }
.deck h2 { margin-top: 8px; font-size: clamp(2rem, 8.4vw, 3.9rem); text-wrap: balance; }
.deck h2 .n { color: var(--volt); white-space: nowrap; }
.deck > .sub { margin-left: auto; margin-right: auto; }

.cols { display: grid; gap: 26px; margin-top: 30px; text-align: left; }
.pass, .crew { background: rgba(13, 13, 15, 0.86); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.pass { display: flex; flex-direction: column; align-items: center; }
.pass img { width: min(100%, 250px); border-radius: 18px; border: 1px solid var(--line-strong); background: var(--hull); aspect-ratio: 9 / 16; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.hint { margin: 12px 0 0; font-size: 0.82rem; color: var(--faint); }
.pass .hint { text-align: center; }

.crew h3 { font-size: 1.7rem; }
.crewline { margin: 8px 0 0; color: var(--dim); }
.crewline b { color: var(--bone); font-weight: 600; }

.rail { list-style: none; margin: 20px 0 0; padding: 0; }
.rail li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 16px; }
.rail li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--titanium); }
.rail li:last-child { padding-bottom: 0; }
.rail li:last-child::before { display: none; }
.rail .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--titanium); color: var(--dim); font: italic 900 1.05rem var(--display); background: var(--onyx);
}
.rail .what { align-self: center; }
.rail .what b { display: block; font-weight: 600; }
.rail .what span { display: block; font-size: 0.86rem; color: var(--faint); }
.rail li.done .n { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }
.rail li.done::before { background: var(--volt); }
.rail li.done .what span { color: var(--volt); }
.rail li.next .n { border-color: var(--volt); color: var(--volt); }

.link { display: flex; gap: 8px; margin-top: 22px; }
.link input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--onyx); border: 1px solid var(--line-strong); font-size: 0.9rem; color: var(--dim); }
.shares { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shares .btn { flex: 1 1 auto; min-height: 46px; padding: 0 16px; font-size: 0.92rem; }
.shares #invite { flex-basis: 100%; }

.forget { display: block; margin: 26px auto 0; background: none; border: 0; padding: 6px; font-size: 0.8rem; color: var(--faint); text-decoration: underline; cursor: pointer; }

/* ---- what is behind the door ---- */

.about {
  position: relative; z-index: 3;
  padding: 54px max(22px, calc((100% - 760px) / 2)) 30px;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0), var(--onyx) 90px);
}
.about h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
.about ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.about li { padding-left: 18px; border-left: 2px solid var(--volt); }
.about li strong { display: block; font-weight: 600; }
.about li span { display: block; color: var(--dim); }
.tease { margin: 26px 0 0; color: var(--dim); }

footer { position: relative; z-index: 3; background: var(--onyx); padding: 26px 22px max(30px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.8rem; color: var(--faint); }
footer p { margin: 4px 0; }

/* ---- wider screens ---- */

@media (min-width: 620px) {
  .clamp.b { display: block; }
  .mark { width: 164px; }
  .top { padding-left: 34px; padding-right: 34px; }
  .porthole { width: 128px; height: 128px; }
  .field { flex-direction: row; }
  .field input { text-align: left; }
  #go { flex: none; }
  .hosts { height: 210px; }
}
@media (min-width: 900px) {
  .gate { max-width: 1000px; }
  .gate h1 { font-size: clamp(4rem, 6.4vw, 5.8rem); max-width: 11.5em; }
  .cols { grid-template-columns: 320px 1fr; align-items: start; gap: 30px; }
  .pass, .crew { padding: 26px; }
  .about ul { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (max-height: 640px) {
  .porthole { width: 84px; height: 84px; }
  .intercom { margin-top: 12px; }
  form { margin-top: 18px; }
}
@media (orientation: portrait) {
  .has-door .plate { background-image: url("/img/door-m.jpg"); }
  .has-inside .inside { background-image: linear-gradient(180deg, rgba(5, 5, 6, 0.08) 0%, rgba(5, 5, 6, 0.5) 34%, rgba(5, 5, 6, 0.93) 62%), url("/img/inside-m.jpg"); }
}
@media (prefers-reduced-motion: reduce) {
  .door { transition-duration: 0.01s; transition-delay: 0s; }
  .seam, .opening .seam, .open .seam { animation: none; }
  .opening .seam, .open .seam { opacity: 0; }
  .deck { animation: none; }
  .intercom, .porthole img { transition: none; }
}

/* ---- the privacy page ---- */
.doc { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; padding: 30px 22px 60px; }
.doc h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
.doc h2 { font-size: 1.25rem; margin-top: 34px; }
.doc p, .doc li { color: var(--dim); }
.doc strong { color: var(--bone); font-weight: 600; }
.doc .todo { color: var(--alert); }
.plain { background: var(--onyx); }
