/* ============================================================
   Otium Labs · Echo waitlist
   Brutalist visual system — locked 2026-04-28
   Palette: #000 / #7c3aed / #b388ff / #fff
   Type:    JetBrains Mono · Archivo Black · Space Grotesk · IBM Plex Mono
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: #7c3aed;
  color: #fff;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

/* ============================================================
   HERO SECTION (signup)
   ============================================================ */

.hero {
  min-height: 100vh;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.otium-mark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}

.otium-mark .accent { color: #7c3aed; }

.hero-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.echo-mark {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(140px, 26vw, 380px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin-bottom: 60px;
  position: relative;
}

.echo-mark::after {
  content: 'ECHO';
  position: absolute;
  left: 6px;
  top: 6px;
  -webkit-text-stroke: 2px #7c3aed;
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: -1;
}

.manifesto-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 24px;
}

.manifesto-headline em {
  color: #b388ff;
  font-style: normal;
}

.manifesto-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 56px;
}

/* ============================================================
   FORM
   ============================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.form-row {
  display: flex;
  gap: 0;
  border: 2px solid #fff;
  transition: border-color 0.15s;
}

.form-row:focus-within {
  border-color: #7c3aed;
}

.form input[type=email] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 24px 28px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-width: 0; /* prevent overflow on small viewports */
}

.form input[type=email]::placeholder {
  color: rgba(255, 255, 255, 0.35);
  text-transform: lowercase;
}

.form .summon-btn {
  background: #7c3aed;
  color: #fff;
  padding: 24px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.12s;
  white-space: nowrap;
}

.form .summon-btn:hover { background: #b388ff; color: #000; }
.form .summon-btn:active { transform: translate(1px, 1px); }
.form .summon-btn:disabled {
  background: rgba(124, 58, 237, 0.4);
  cursor: wait;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form .vow {
  background: #7c3aed;
  color: #fff;
  padding: 22px 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.12s;
}

.form .vow:hover { background: #b388ff; color: #000; }
.form .vow:active { transform: translate(1px, 1px); }
.form .vow:disabled {
  background: rgba(124, 58, 237, 0.4);
  cursor: wait;
}

.form .microcopy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.5);
}

.form-error {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 80, 80, 0.08);
  border-left: 3px solid #ff5050;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #ff7070;
  max-width: 720px;
}

/* ============================================================
   FOOTER BAR (in hero + confirmation)
   ============================================================ */

.footerbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   HAMMER SECTION
   ============================================================ */

.hammer-section {
  min-height: 100vh;
  background: #000;
  padding: 32px;
  border-top: 2px solid #7c3aed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hammer-line {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 1400px;
}

.hammer-line .quote {
  display: inline-block;
  color: #7c3aed;
}

/* ============================================================
   FREEDOM STRIP (animated pixel people)
   ============================================================ */

.freedom-strip {
  background: #000;
  border-top: 2px solid #7c3aed;
  padding: 140px 32px;
  text-align: center;
  overflow: hidden;
}

.freedom-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.freedom-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 80px;
  color: #fff;
}

.freedom-headline em { color: #7c3aed; font-style: normal; }

.pixel-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.pixel-figure {
  position: relative;
  width: 80px;
  height: 120px;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pixel-figure-wide { width: 120px; }

.pixel-figure svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes frame-flip {
  0%, 49.99% { opacity: 1; }
  50%, 100%  { opacity: 0; }
}

.anim-jacks svg  { animation: frame-flip 0.55s steps(1, end) infinite; }
.anim-jacks svg:nth-child(2) { animation-delay: -0.275s; }

.anim-run svg    { animation: frame-flip 0.40s steps(1, end) infinite; }
.anim-run svg:nth-child(2)   { animation-delay: -0.20s; }

.anim-dance svg  { animation: frame-flip 0.86s steps(1, end) infinite; }
.anim-dance svg:nth-child(2) { animation-delay: -0.43s; }

.anim-sleep svg  { animation: frame-flip 1.10s steps(1, end) infinite; }
.anim-sleep svg:nth-child(2) { animation-delay: -0.55s; }

.freedom-foot {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   COLOPHON FOOTER (waitlist page — minimal)
   ============================================================ */

.colophon {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 60px 32px 32px;
}

.colophon-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.colophon-foot strong {
  color: #fff;
  font-weight: 600;
}

.colophon-foot strong .dot { color: #7c3aed; }

/* ============================================================
   STATE 2 — CONFIRMATION
   ============================================================ */

.confirmation {
  min-height: 100vh;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000;
  position: relative;
}

.conf-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 80px;
}

.conf-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -0.01em;
  margin-bottom: 56px;
}

.conf-quality,
.conf-craft {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.conf-craft { margin-bottom: 60px; }

.conf-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: clamp(120px, 22vw, 320px);
  color: #7c3aed;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.conf-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b388ff;
  margin-bottom: 80px;
}

.conf-foot {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

/* Referral section on confirmation */

.referral-section {
  background: #000;
  border-top: 2px solid #7c3aed;
  padding: 100px 32px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.ref-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.ref-card {
  border: 2px solid #fff;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.ref-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.ref-copy-btn {
  background: #fff;
  color: #000;
  padding: 18px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.12s, color 0.12s;
}

.ref-copy-btn:hover { background: #7c3aed; color: #fff; }
.ref-copy-btn:active { transform: translate(1px, 1px); }
.ref-copy-btn.copied {
  background: #7c3aed;
  color: #fff;
}

.ref-explain {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 24px;
  max-width: 720px;
}

.ref-explain strong {
  color: #b388ff;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .hero,
  .hammer-section,
  .freedom-strip,
  .confirmation,
  .referral-section,
  .colophon {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .form input[type=email] {
    padding: 20px 22px;
    font-size: 16px;
  }

  .form .summon-btn {
    border-top: 2px solid #fff;
    padding: 20px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form .vow {
    width: 100%;
    text-align: center;
  }

  .ref-card {
    grid-template-columns: 1fr;
  }

  .ref-copy-btn {
    width: 100%;
  }

  .pixel-row {
    gap: 18px;
  }

  .topbar,
  .footerbar,
  .colophon-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 16px;
  }

  .echo-mark {
    margin-bottom: 40px;
  }

  .pixel-figure {
    width: 60px;
    height: 90px;
  }

  .pixel-figure-wide {
    width: 90px;
  }
}
