/* Vynyl Studio: black, ivory, one pink. Type is the design; the Slab is the one loud thing. */
:root {
  --black: #000000;
  --grey: #1a1a1a;
  --grey-2: #262626;
  --ivory: #f5f5f5;
  --ivory-2: rgba(245, 245, 245, 0.64);
  --ivory-3: rgba(245, 245, 245, 0.42);
  --line: rgba(245, 245, 245, 0.12);
  --pink: #ff0066;

  --font: "Outfit", -apple-system, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--pink); color: var(--black); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.top.scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.brand-mark { width: 30px; height: auto; color: var(--ivory); }
.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: inherit; font-family: var(--font); cursor: pointer;
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.pill:hover { border-color: var(--pink); background: rgba(255, 0, 102, 0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 120px var(--gutter) clamp(40px, 7vw, 88px);
  overflow: hidden;
}
.hero-v {
  position: absolute; z-index: 0;
  top: 50%; right: -14vw;
  width: min(92vw, 1180px); height: auto;
  transform: translateY(-56%);
}
.hero-v-ivory { fill: var(--ivory); opacity: 0.06; }
.hero-v-pink { fill: var(--pink); }
.hero-copy { position: relative; z-index: 1; max-width: var(--wide); width: 100%; margin: 0 auto; }
.wordmark {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-weight: 800;
  font-size: clamp(84px, 17.5vw, 272px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  margin-left: -0.04em;
}
.lede { max-width: 34ch; margin: 0 0 28px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ivory-2); }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ivory-3); }
.fine a { color: var(--ivory-2); }

/* Load: the two strokes of the V land, then the words. The only unprompted motion on the page. */
@media (prefers-reduced-motion: no-preference) {
  .hero-v-ivory { animation: land-ivory 1.1s var(--ease) both; }
  .hero-v-pink { animation: land-pink 1.1s 0.18s var(--ease) both; transform-box: fill-box; }
  .hero-copy { animation: rise 0.9s 0.45s var(--ease) both; }
  @keyframes land-ivory { from { opacity: 0; transform: translate(-6%, -10%); } }
  @keyframes land-pink { from { opacity: 0; transform: translate(10%, -14%); } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}

/* inline signup */
.inline-signup {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 520px;
}
.inline-signup input[type="email"] { flex: 1 1 240px; }
.inline-signup .form-note { flex-basis: 100%; }

input[type="email"], input[type="text"], select {
  height: 54px; padding: 0 20px;
  background: var(--grey); color: var(--ivory);
  border: 1px solid transparent; border-radius: 999px;
  font: 400 17px var(--font);
  transition: border-color 0.2s var(--ease);
}
input[type="email"]::placeholder, input[type="text"]::placeholder { color: var(--ivory-3); }
input[type="email"]:hover, input[type="text"]:hover, select:hover { border-color: var(--line); }
input[type="email"]:focus, input[type="text"]:focus, select:focus { outline: none; border-color: var(--pink); }
input[aria-invalid="true"] { border-color: var(--pink); }

button[type="submit"] {
  height: 54px; padding: 0 26px;
  background: var(--pink); color: var(--black);
  border: 0; border-radius: 999px;
  font: 700 17px var(--font); letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
button[type="submit"]:hover { background: #ff2a80; }
button[type="submit"]:active { transform: scale(0.98); }
button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }

.form-note { margin: 4px 0 0; min-height: 1.5em; font-size: 15px; color: var(--ivory-2); }
.form-note.ok { color: var(--ivory); }
.form-note.ok::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px;
  background: var(--pink); border-radius: 50%; vertical-align: 1px;
}
.form-note.err { color: var(--pink); }

/* ---------- sections ---------- */
.section-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.software, .crews, .beta {
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
}

/* ---------- software: steps scroll past a pinned laptop ---------- */
.software-body {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(24px, 4vw, 48px);
}
.showcase {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 10vh;
  height: 80vh; min-height: 460px;
  cursor: grab; touch-action: pan-y;
}
.showcase:active { cursor: grabbing; }
.showcase canvas { width: 100% !important; height: 100% !important; }
.showcase.no-webgl { background: center / contain no-repeat url("/img/app/four-decks.png"); }
.steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.steps li { min-height: 62vh; display: flex; align-items: center; }
.steps li:first-child { min-height: 50vh; align-items: flex-start; padding-top: 10vh; }
.steps button {
  all: unset; box-sizing: border-box; display: block; width: 100%;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--line);
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.steps button:hover { opacity: 0.7; }
.steps button[aria-current="true"] { opacity: 1; border-left-color: var(--pink); }
.steps button:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
.steps h3 { margin: 0 0 10px; font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.steps p { margin: 0; color: var(--ivory-2); max-width: 36ch; font-size: 18px; line-height: 1.55; }

/* ---------- Slab ---------- */
.slab { background: var(--black); padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 72px); }
.slab-head {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px 56px; align-items: end;
}
.slab-head .section-title { font-size: clamp(64px, 11vw, 168px); line-height: 0.8; letter-spacing: -0.06em; }
.slab-head p { margin: 0; max-width: 46ch; color: var(--ivory-2); font-size: 19px; line-height: 1.5; }
.slab-stage { height: min(82vh, 820px); min-height: 440px; margin-top: clamp(16px, 3vw, 40px); }
.slab-stage iframe { width: 100%; height: 100%; border: 0; }
.slab-dims { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); font-size: 14px; color: var(--ivory-3); font-variant-numeric: tabular-nums; }

/* ---------- crews ---------- */
.crews-lede { max-width: 44ch; margin: 24px 0 0; color: var(--ivory-2); font-size: 19px; line-height: 1.5; }
.crew-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px);
  margin: clamp(48px, 6vw, 80px) 0 0;
}
.crew { margin: 0; }
.crew-plate {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 18%;
  border: 1px solid var(--line);
}
.crew-plate img, .crew-plate svg { width: 100%; height: auto; }
.crew figcaption { margin-top: 14px; color: var(--ivory-2); font-size: 15px; }
.crew figcaption strong { display: block; color: var(--ivory); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
/* Each plate is a slice of the theme it names, so the three looks are visible side by side. */
.crew--vynyl .crew-plate { background: var(--black); border-radius: 22px; }
.crew--vynyl .crew-plate svg { width: 56%; }
.crew--eastbound .crew-plate {
  background: #050505; border-radius: 0; border-color: rgba(250, 248, 243, 0.14);
  box-shadow: inset 0 -3px 0 #ffcc1f;
}
.crew--awakened .crew-plate {
  background: radial-gradient(120% 90% at 70% 10%, #3a1670 0%, #1e0b44 38%, #06041a 100%);
  border-radius: 12px; border-color: rgba(196, 160, 255, 0.2);
}

/* ---------- beta ---------- */
.beta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 7vw, 120px); align-items: start;
  border-top: 1px solid var(--line);
}
.beta-copy .section-title { font-size: clamp(56px, 8vw, 120px); line-height: 0.86; letter-spacing: -0.055em; }
.beta-copy p { max-width: 38ch; margin: 28px 0 0; color: var(--ivory-2); font-size: 19px; line-height: 1.5; }
.signup { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-size: 15px; font-weight: 500; color: var(--ivory-2); }
.signup input[type="email"], .signup input[type="text"], .signup select { width: 100%; border-radius: 14px; }
.optional { margin-left: 6px; color: var(--ivory-3); font-weight: 400; }
.handle { position: relative; }
.handle span { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ivory-3); pointer-events: none; }
.signup .handle input { padding-left: 38px; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f5f5f5' stroke-opacity='.6' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; padding-right: 48px;
}
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--grey); border-radius: 14px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; height: 46px; border-radius: 10px;
  color: var(--ivory-2); font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.choice input:checked + span { background: var(--ivory); color: var(--black); }
.choice input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.signup button[type="submit"] { width: 100%; margin-top: 6px; border-radius: 14px; }
.signup .fine { margin-top: -8px; }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--wide); margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ivory-3);
}
.foot p { margin: 0 auto 0 0; }
.foot .brand-mark { width: 26px; }
.foot a { color: var(--ivory-2); text-decoration: none; }
.foot a:hover { color: var(--ivory); }

/* ---------- privacy page ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 140px var(--gutter) 96px; }
.doc h1 { margin: 0 0 32px; font-weight: 800; font-size: clamp(48px, 8vw, 88px); line-height: 0.9; letter-spacing: -0.055em; }
.doc h2 { margin: 40px 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ivory-2); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  /* Phones and tablets: the laptop sits on top, the steps become a list you tap to change the screen. */
  .software-body { grid-template-columns: minmax(0, 1fr); }
  .showcase { grid-column: 1; position: relative; top: 0; height: 56vh; min-height: 320px; }
  .steps { grid-row: 2; display: grid; gap: 8px; }
  .steps li, .steps li:first-child { min-height: 0; padding-top: 0; }
  .steps button { padding: 14px 0 14px 18px; opacity: 0.5; }
  .steps button:not([aria-current="true"]) p { display: none; }
  .slab-head, .beta { grid-template-columns: minmax(0, 1fr); }
  .crew-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
  .brand span { display: none; }
  .hero { align-items: end; padding-top: 96px; }
  .hero-v { top: 30%; right: -30vw; width: 140vw; }
  .inline-signup button { flex: 1 1 100%; }
  .slab-stage { height: 62vh; min-height: 380px; }
}
