/* Vanish waitlist lab. Same tokens as the live landing (black/style.css): white page, Apple neutrals,
   Geist, one ink colour (#1D1D1F). The Vanish moment in each variation is the only bold thing. */

:root {
  --ink: #1d1d1f;
  --ink-hover: #3a3a3c;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --separator: rgba(0, 0, 0, 0.08);
  --separator-2: rgba(0, 0, 0, 0.14);
  --label: #1d1d1f;
  --label-2: rgba(60, 60, 67, 0.78); /* ≈ #5d5d63 on white, 6.3:1 */
  --label-3: rgba(60, 60, 67, 0.3);
  --err: #b42318;                      /* 6.4:1 on white; the only colour, used only for errors */
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.104 27.9%, 1.077 31.1%, 1.017 38.3%, 0.991 42.5%, 0.983 45.6%, 0.985 50.6%, 0.999 61.4%, 1.003 75.3%, 1);
  --shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06), 0 14px 36px -8px rgba(0, 0, 0, 0.2);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior-y: none; }
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--label); font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wl-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
noscript p { padding: 24px; }

/* brand: the dashed Vanish box */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.brand rect { stroke-dasharray: 2 1.6; stroke-width: 1.2; }
.brand circle { fill: currentColor; stroke: none; }

/* ---- the field + button (shared) ---------------------------------------------------------------- */
.wl-input { width: 100%; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--bg-2); font-size: 16px; /* 16px: no zoom on iOS */ outline: none; }
.wl-input::placeholder { color: rgba(60, 60, 67, 0.55); }
.wl-input:read-only { color: var(--label-2); }
.wl-btn { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-decoration: none;
  transition: background-color 160ms var(--ease), scale 420ms var(--spring), opacity 200ms var(--ease); }
.wl-btn-inv { background: #fff; color: var(--ink); }
@media (hover: hover) { .wl-btn:hover:not([aria-disabled="true"]) { background: var(--ink-hover); } .wl-btn-inv:hover:not([aria-disabled="true"]) { background: #e8e8ed; } }
.wl-btn:active:not([aria-disabled="true"]) { scale: 0.97; transition-duration: 160ms, 80ms; }
.wl-btn[aria-disabled="true"] { cursor: progress; }
.wl-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wl-btn-inv:focus-visible { outline-color: #fff; }
/* the landing's Dust label: letters roll up on hover, breathe while busy */
.bx-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bx-lab { display: inline-flex; line-height: 1.25; clip-path: inset(0 -6px); pointer-events: none; }
.bx-ch { display: inline-block; white-space: pre; text-shadow: 0 1.25em 0 currentColor; transition: translate 460ms var(--ease) calc(var(--i) * 16ms); }
@media (hover: hover) { .wl-btn:hover:not([aria-disabled="true"]) > .bx-lab .bx-ch { translate: 0 -1.25em; } }
.wl-btn:focus-visible:not([aria-disabled="true"]) > .bx-lab .bx-ch { translate: 0 -1.25em; }
[data-state="loading"] .wl-btn .bx-ch { animation: bx-breathe 1.2s ease-in-out calc(var(--i) * 60ms) infinite; }
@keyframes bx-breathe { 50% { opacity: 0.4; } }

.wl-err { margin-top: 10px; color: var(--err); font-size: 14px; line-height: 20px; display: flex; gap: 6px; align-items: flex-start; }
.wl-err[hidden] { display: none; }
.wl-err::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: currentColor;
  -webkit-mask: radial-gradient(circle at 50% 72%, #000 1.2px, transparent 1.4px), linear-gradient(#000 0 0) 50% 22% / 1.6px 5px no-repeat, radial-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.wl-small { font-size: 13px; line-height: 20px; color: var(--label-2); }
.wl-count[hidden] { display: none; }

/* ---- lab switcher (not part of the page; ?bare removes it) ---------------------------------------- */
.lab-switch { position: fixed; z-index: 100; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: var(--shadow); font-size: 12px; }
.lab-switch a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; color: var(--label-2); text-decoration: none; white-space: nowrap; }
.lab-switch a:hover { color: var(--label); }
.lab-switch a[aria-current] { background: var(--ink); color: #fff; }
.lab-switch a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lab-switch .n { font-variant-numeric: tabular-nums; margin-right: 6px; opacity: 0.6; }
@media (max-width: 560px) { .lab-switch .t { display: none; } .lab-switch .n { margin: 0; opacity: 1; } .lab-switch a { padding: 0 11px; } }

/* =================================================================================================
   V1  Dust signup: a quiet centred page; the form row is the one thing that moves.
   ================================================================================================= */
.v1 { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 20px var(--gutter) 24px; }
.v1 .top { display: flex; align-items: center; height: 44px; }
.v1 .mid { display: grid; place-items: center; padding: clamp(40px, 8vh, 96px) 0; }
.v1 .col { width: min(100%, 560px); display: grid; justify-items: center; text-align: center; }
.v1 h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.v1 .lede { margin-top: 20px; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); line-height: 1.5; color: var(--label-2); text-wrap: balance; max-width: 30em; }
.v1 .lede strong { display: block; color: var(--label); font-weight: 500; }
.v1 .stage { position: relative; width: 100%; margin-top: 36px; display: grid; }
.v1 .stage > * { grid-area: 1 / 1; }
.v1 form { width: 100%; text-align: left; }
.v1 .row { position: relative; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--bg-2); transition: opacity 200ms var(--ease); }
.v1 .row .wl-input { background: transparent; height: 48px; }
.v1 .row:focus-within:not(:has(.wl-btn:focus-visible)) { box-shadow: 0 0 0 2px var(--ink); }
.v1 [aria-invalid="true"] { }
.v1 form[data-state="error"] .row { box-shadow: 0 0 0 1.5px var(--err); }
.v1 .notes { margin-top: 16px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.v1 .notes .wl-count { color: var(--label); font-weight: 500; font-size: 14px; }
.v1 .wl-err { justify-content: center; }
.v1 .done { display: grid; justify-items: center; align-content: start; gap: 10px; padding-top: 10px; text-align: center; visibility: hidden; }
.v1 .done-t { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; opacity: 0; }
.v1 .done-t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.v1 .done-s { margin-top: 14px; text-wrap: balance; color: var(--label-2); opacity: 0; transition: opacity 500ms var(--ease) 100ms; }
.v1 .done:focus { outline: none; }
.v1 .done:focus-visible .done-t { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
.v1.is-done .done { visibility: visible; }
.v1.is-done .done-s { opacity: 1; }
.v1.is-done form { visibility: hidden; }
.v1 .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* the Vanish selection box (SVG, so its dashes can march) */
.vbox { position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none; overflow: visible; opacity: 0;
  transition: translate 620ms var(--ease-out), width 620ms var(--ease-out), height 620ms var(--ease-out), opacity 260ms var(--ease); }
.vbox rect { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.vbox circle { fill: var(--ink); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale 460ms var(--spring); }
.vbox.on { opacity: 1; }
.vbox.on circle { scale: 1; }
.vbox.on circle:nth-of-type(2) { transition-delay: 40ms; } .vbox.on circle:nth-of-type(3) { transition-delay: 80ms; } .vbox.on circle:nth-of-type(4) { transition-delay: 120ms; }
.vbox.march rect { animation: march 0.9s linear infinite; }
@keyframes march { to { stroke-dashoffset: -18; } }
.vbox.snap { transition: opacity 260ms var(--ease); }

@media (max-width: 560px) {
  .v1 .row { flex-direction: column; padding: 6px; }
  .v1 .row .wl-btn { width: 100%; }
  .v1 .foot { flex-direction: column; gap: 4px; }
}

/* =================================================================================================
   V2  Before / after: the footage fills the page; the compare line is the page's axis.
   ================================================================================================= */
.v2 { --split: 50%; position: relative; min-height: 100svh; padding: 12px; background: #fff; }
.v2 .frame { position: relative; min-height: calc(100svh - 24px); border-radius: 20px; overflow: hidden; background: #2a2a2c; color: #fff; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; }
.v2 video, .v2 .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.v2 .shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 62%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 80%), linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.62)); }
/* the mark is only drawn on the Original side (right of the line) */
.v2 .marklayer { position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: inset(0 0 0 var(--split)); }
.v2 .mark { position: absolute; left: 50%; top: 21%; width: clamp(64px, 8vw, 104px); translate: -50% 0; opacity: 0.86; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.v2 .markbox { position: absolute; left: 50%; top: 21%; width: clamp(64px, 8vw, 104px); aspect-ratio: 100 / 102; translate: -50% 0; z-index: 0; pointer-events: none; }
.v2 .markbox::before { content: ""; position: absolute; inset: -14px; border: 1.5px dashed rgba(255, 255, 255, 0.9); border-radius: 6px; }
.v2 .markbox i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3); }
.v2 .markbox i:nth-child(1) { left: -18.5px; top: -18.5px; } .v2 .markbox i:nth-child(2) { right: -18.5px; top: -18.5px; }
.v2 .markbox i:nth-child(3) { left: -18.5px; bottom: -18.5px; } .v2 .markbox i:nth-child(4) { right: -18.5px; bottom: -18.5px; }
.v2 .line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 0 12px rgba(0, 0, 0, 0.25); z-index: 0; pointer-events: none; }
.v2 .tags { position: absolute; top: 72px; left: 0; right: 0; pointer-events: none; font-size: 13px; font-weight: 500; z-index: 0; }
.v2 .tags span { position: absolute; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.v2 .tags .l { right: calc(100% - var(--split) + 14px); }
.v2 .tags .r { left: calc(var(--split) + 14px); clip-path: inset(0 0 0 max(0px, calc(var(--split) - 100% + 0px))); }
.v2 .top { display: flex; align-items: center; height: 64px; padding: 0 clamp(16px, 2.4vw, 28px); position: relative; z-index: 1; }
.v2 .body { position: relative; z-index: 1; display: grid; align-content: end; justify-items: center; text-align: center; padding: 0 var(--gutter) clamp(20px, 4vh, 40px); gap: 0; }
.v2 h1 { font-size: clamp(2.375rem, 1.4rem + 3.2vw, 4.25rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; max-width: 13em; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25); }
.v2 .lede { margin-top: 14px; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); color: rgba(255, 255, 255, 0.86); }
.v2 .stage { display: grid; align-items: start; width: min(100%, 520px); min-height: 96px; margin-top: 28px; }
.v2 .stage > * { grid-area: 1 / 1; }
.v2 .card { display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: #fff; color: var(--label); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5); transition: opacity 240ms var(--ease), scale 240ms var(--ease); }
.v2 .card .wl-input { background: transparent; }
.v2 .card:focus-within:not(:has(.wl-btn:focus-visible)) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink), 0 20px 50px -12px rgba(0, 0, 0, 0.5); }
.v2 form[data-state="error"] .card { box-shadow: 0 0 0 2px var(--err), 0 20px 50px -12px rgba(0, 0, 0, 0.5); }
.v2 .wl-err { justify-content: center; margin-top: 10px; padding: 6px 12px; border-radius: 10px; background: #fff; justify-self: center; }
.v2 .reward { margin-top: 16px; font-weight: 500; font-size: 15px; }
.v2 .notes { margin-top: 6px; display: grid; gap: 2px; }
.v2 .notes p { color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 20px; }
.v2 .notes .wl-count { color: #fff; }
.v2 .done { display: grid; justify-items: center; gap: 8px; padding: 6px 0; visibility: hidden; clip-path: inset(0 calc(100% - var(--reveal, 0%)) 0 0); }
.v2 .done:focus { outline: none; }
.v2 .done:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 8px; }
.v2 .done-t { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.3); }
.v2 .done-t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.v2 .done-s { color: rgba(255, 255, 255, 0.86); text-wrap: balance; }
.v2.is-done .done { visibility: visible; }
.v2.is-done .card, .v2.is-done form .wl-err { opacity: 0; scale: 0.98; pointer-events: none; }
.v2.is-done .reward { visibility: hidden; }
.v2 .markbox { transition: opacity 400ms var(--ease); }
.v2.is-swept .markbox { opacity: 0; }
.v2 .foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 2.4vw, 28px) 18px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 560px) {
  .v2 { padding: 0; }
  .v2 .frame { border-radius: 0; min-height: 100svh; }
  .v2 .card { flex-direction: column; }
  .v2 .card .wl-btn { width: 100%; }
  .v2 .mark, .v2 .markbox { top: 17%; }
  .v2 .tags { top: 60px; }
  .v2 .foot { flex-direction: column; gap: 2px; padding-bottom: 64px; }
  .v2 video, .v2 .poster { object-position: 58% 50%; }
}

/* reduced motion: state changes are plain crossfades */
@media (prefers-reduced-motion: reduce) {
  .bx-ch { transition: none !important; animation: none !important; translate: none !important; }
  .wl-btn { scale: none !important; }
  .vbox, .vbox circle { transition: opacity 200ms linear !important; }
  .vbox.march rect { animation: none; }
}
form[data-done] .wl-btn { cursor: default; }
