/* Instrument Sans Variable (OFL), the same face as the FacelessHype app. Latin subset only. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations");
}

/* Tokens match the app: monochrome canvas, one violet accent. System theme. */
:root {
  --ink: #ffffff;
  --surface: #f6f6f7;
  --line: #e3e3e8;
  --fg: #0b0b0d;
  --muted: #62626d;
  --accent: #5b3ff5;
  --danger: #d92d20;
  --success: #138a4b;
  --shadow: 0 24px 60px rgba(15, 15, 30, 0.16);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0b0b0d;
    --surface: #141416;
    --line: #27272c;
    --fg: #f5f5f4;
    --muted: #9d9da8;
    --accent: #a395ff;
    --danger: #ff5d5f;
    --success: #3ccf7e;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #0b0b0d;
  --surface: #141416;
  --line: #27272c;
  --fg: #f5f5f4;
  --muted: #9d9da8;
  --accent: #a395ff;
  --danger: #ff5d5f;
  --success: #3ccf7e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1240px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; font-weight: 650; font-size: 20px; letter-spacing: -0.03em; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.brand .mark { flex: none; margin: -4px 0 -4px -6px; }
.status { font-size: 14px; color: var(--muted); }

/* Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 32px;
}
.copy { max-width: 560px; }
h1 {
  margin: 0;
  font-size: clamp(46px, 12.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 650;
  text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}

/* Waitlist form */
.join { margin-top: 32px; position: relative; }
.field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.join.invalid .field { border-color: var(--danger); box-shadow: none; }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  outline: none;
}
.field input::placeholder { color: var(--muted); opacity: 0.8; }
.field button {
  flex-shrink: 0;
  border: 0;
  border-radius: 11px;
  background: var(--fg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 120ms var(--ease), opacity 160ms var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
.field button:active { transform: scale(0.97); }
.field button:focus-visible { outline-offset: 2px; }
.field button[disabled] { opacity: 0.6; cursor: progress; }
.note { margin: 12px 2px 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.join.invalid .note, .note.error { color: var(--danger); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 420px) {
  .field { flex-direction: column; padding: 6px; }
  .field input { padding: 12px; }
  .field button { width: 100%; padding: 14px 18px; }
}

/* Success */
.done {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  outline: none;
  animation: rise 360ms var(--ease) both;
}
.done svg { flex-shrink: 0; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 4px; width: 28px; height: 28px; }
.done-title { margin: 0; font-weight: 600; font-size: 17px; }
.done-body { margin: 2px 0 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.done-body strong { color: var(--fg); font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The deck: three of our own Shorts, fanned like phones on a table. */
.deck {
  position: relative;
  margin: 0 auto;
  width: min(100%, 360px);
  aspect-ratio: 360 / 350;
}
.short {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 42%;
  aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
  outline-offset: -1px;
  transform-origin: 50% 100%;
}
.short video { display: block; width: 100%; height: 100%; object-fit: cover; }
.s1 { transform: translateX(-100%) rotate(-7deg) translateY(4%); z-index: 1; }
.s2 { transform: translateX(-50%); z-index: 2; top: 0; }
.s3 { transform: translateX(0%) rotate(7deg) translateY(4%); z-index: 1; }

.foot { padding-top: 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }

@media (min-width: 900px) {
  .page { padding-left: 40px; padding-right: 40px; padding-top: 28px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 40px 0; }
  .deck { width: min(100%, 520px); aspect-ratio: 520 / 520; margin-right: 0; }
  .short { border-radius: 24px; width: 45%; }
  .s1 { transform: translateX(-106%) rotate(-8deg) translateY(4%); }
  .s3 { transform: translateX(6%) rotate(8deg) translateY(4%); }
  
/* Plain pages: thanks, 404, no-JS errors */
body.plain { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.plain-card { max-width: 460px; }
.plain-card h1 { font-size: clamp(36px, 9vw, 56px); }
.plain-card p { color: var(--muted); font-size: 17px; }
.plain-card a { color: var(--fg); font-weight: 600; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
