

* { box-sizing: border-box; }
/* Match the published logo and the default brand accent in app-theme.css. */
html { --preview-brand-accent: #ff3d3d; background: #303030; color-scheme: dark; }
body { position: relative; isolation: isolate; margin: 0; color: #f5f5f5; font-family: var(--vbg-font-sans); }
button, input { font: inherit; }
:is(:focus, :focus-visible, :focus-within) { outline: none; box-shadow: none; }

.preview-background { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #303030; }
.preview-background .aurora-beam,.preview-background canvas { display: block; width: 100%; height: 100%; }
.preview-page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.preview-content { --preview-input-gap: 32px; width: min(100%, 380px); text-align: center; }
.preview-brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--preview-brand-accent);
  font-size: clamp(38px, 10vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.7px;
}
.preview-brand img { display: block; height: 1cap; width: auto; flex: none; }
.preview-form { margin-top: var(--preview-input-gap); }
.preview-controls { display: flex; flex-direction: column; }
.preview-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.preview-hint { margin: 0 0 14px; color: #b0b0b0; font-size: 13px; font-weight: 400; line-height: 20px; }
.preview-hint[data-invalid] { color: var(--preview-brand-accent); }
.preview-controls input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--ui-dropdown-trigger-radius,24px);
  corner-shape: var(--ui-corner-shape,superellipse(2));
  background: rgb(255 255 255 / 5%);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  color: #f5f5f5;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  caret-color: #f5f5f5;
}
.preview-controls input::placeholder { color: #737373; opacity: 1; }
.preview-controls input:focus { border-color: rgb(255 255 255 / 42%); }
.preview-controls input[aria-invalid=true]:focus, .preview-controls input[data-rejected]:focus { border-color: var(--preview-brand-accent); }
.preview-controls button {
  flex: none;
  width: 100%;
  min-width: 92px;
  height: 48px;
  margin-top: var(--preview-input-gap);
  border: 1px solid transparent;
  border-radius: 999px;
  corner-shape: round;
  padding: 0 18px;
  background: var(--preview-brand-accent);
  color: #303030;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease-out;
}
.preview-controls button:hover:not(:disabled) { background: var(--preview-brand-accent); }
.preview-controls button:active:not(:disabled) { transform: scale(.97); }
.preview-controls button:disabled { opacity: .4; cursor: default; }
.preview-message { min-height: 20px; margin: 12px 0 0; color: #b0b0b0; font-size: 13px; line-height: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .preview-controls input { background: rgb(68 68 68 / 90%); }
}
@media (prefers-reduced-transparency: reduce) { .preview-controls input { background: #444; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .preview-controls button { transition: none; } }

/* The brand wordmark shares the body face, independently of heading roles. */
.preview-brand { font-family:var(--vbg-font-sans); }

.waitlist-link {
  min-height: 44px;
  max-width: 100%;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: #b0b0b0;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
  text-underline-offset: 3px;
}
.waitlist-link:focus-visible { color: #f5f5f5; text-decoration: underline; }
.waitlist-link:active { color: #f5f5f5; }
.waitlist-dialog {
  position: fixed;
  width: min(420px, calc(100% - 32px));
  max-width: 800px;
  max-height: calc(100dvh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--app-surface-radius, 24px);
  corner-shape: var(--ui-corner-shape, superellipse(2));
  background: #303030;
  color: #f5f5f5;
  font: inherit;
}
.waitlist-dialog::backdrop { background: rgb(0 0 0 / 48%); }
html:has(.waitlist-dialog[open]) { overflow: hidden; }
.waitlist-dialog h2 { margin: 0 44px 24px 0; font-size: 24px; font-weight: 400; line-height: 30px; }
.waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  corner-shape: round;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.waitlist-close:focus-visible, .waitlist-close:active { opacity: .7; }
.waitlist-form { display: flex; flex-direction: column; }
.waitlist-form[hidden] { display: none; }
.waitlist-form label { margin-bottom: 8px; font-size: 13px; font-weight: 400; line-height: 20px; }
.waitlist-form input[type=email] {
  width: 100%;
  min-width: 0;
  max-width: 800px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--ui-control-corner-radius, 6px);
  corner-shape: var(--ui-corner-shape, superellipse(2));
  background: rgb(255 255 255 / 5%);
  color: inherit;
  font-size: 16px;
  line-height: 24px;
  caret-color: currentColor;
}
.waitlist-form input[type=email]:focus { border-color: rgb(255 255 255 / 42%); }
.waitlist-form .waitlist-updates {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 12px 0 0;
  color: #b0b0b0;
  cursor: pointer;
}
.waitlist-updates input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 4px;
  corner-shape: var(--ui-corner-shape, superellipse(2));
  background: transparent;
  cursor: inherit;
}
.waitlist-updates input:checked { border-color: var(--preview-brand-accent); background: var(--preview-brand-accent); }
.waitlist-updates input:focus-visible { border-color: #f5f5f5; }
.waitlist-updates input:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #303030;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.waitlist-updates:has(input:disabled) { cursor: default; opacity: .6; }
.waitlist-submit {
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--ui-control-corner-radius, 6px);
  corner-shape: var(--ui-corner-shape, superellipse(2));
  background: var(--preview-brand-accent);
  color: #303030;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
  transition: transform 120ms ease-out;
}
.waitlist-submit:active:not(:disabled) { transform: scale(.97); }
.waitlist-submit:disabled { opacity: .4; cursor: default; }
.waitlist-message { margin: 16px 0 0; color: #b0b0b0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.waitlist-message:empty { display: none; }
:is(.waitlist-link, .waitlist-close, .waitlist-submit, .waitlist-updates) { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .waitlist-link:hover { color: #f5f5f5; text-decoration: underline; }
  .waitlist-close:hover { background: rgb(255 255 255 / 8%); }
}
@supports (corner-shape: superellipse(2)) {
  .waitlist-dialog { --ui-control-corner-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .waitlist-submit { transition: none; } }
