/* The Pact — landing. Poster, not pitch deck.
   Colors and type follow the Design Spec: Anton for posters, system for body. */

@font-face {
  font-family: "Anton";
  src: url("/fonts/Anton-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --off-white: #f7f6f2;
  --black: #0b0b0d;
  --blue: #1d4edb;
  --orange: #ff5a2a;
  --soft-gray: #e6e6e3;
  --mid-gray: #6b6872;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.join-page {
  min-height: 100vh;
  background: var(--blue);
  color: var(--off-white);
}

.poster {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 96px);
}

.poster--black { background: var(--black); color: var(--off-white); }
.poster--offwhite { background: var(--off-white); color: var(--black); }
.poster--blue { background: var(--blue); color: var(--off-white); }
.poster--blue .comment { color: rgba(247, 246, 242, 0.82); }
.poster.slim { min-height: 50vh; }

/* Top bar: transparent over the hero, solid once scrolled past */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(24px, 6vw, 96px);
  transition: background 0.2s ease;
}

.topbar .wordmark { color: var(--off-white); }

.topbar--solid { background: var(--black); }

.topbar-cta {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

.topbar-cta:hover { opacity: 0.9; }

.huge {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 9vw, 150px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.muted { color: var(--mid-gray); }
.accent-orange { color: var(--orange); }

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}

.meta.spaced { margin-top: 40px; }

.meta a { color: inherit; }

.comment {
  font-size: 17px;
  color: var(--mid-gray);
  margin-top: 24px;
}

.comment.center {
  text-align: center;
  margin-top: 0;
  line-height: 1.6;
}

.join-fallback {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 96px);
}

.join-fallback .meta {
  margin-top: clamp(32px, 6vh, 72px);
  color: rgba(247, 246, 242, 0.72);
}

.join-fallback .huge {
  margin-top: 16px;
  max-width: 960px;
}

.join-fallback .comment {
  max-width: 34em;
  color: rgba(247, 246, 242, 0.82);
}

.join-code {
  width: fit-content;
  margin-top: clamp(28px, 5vh, 56px);
  padding: 14px 18px;
  border: 1px solid rgba(247, 246, 242, 0.42);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(28px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--off-white);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 6vh, 72px);
}

.join-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--black);
  color: var(--off-white);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.join-button--secondary {
  background: rgba(247, 246, 242, 0.18);
  color: var(--off-white);
}

/* Hero (centered poster) */
.hero { align-items: center; }

.hero-card {
  width: min(680px, 100%);
  text-align: center;
  animation: hero-rise 0.6s ease-out both;
}

.hero-card .huge { font-size: clamp(40px, 8vw, 112px); }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .meta { margin-top: 8px; }
.hero .huge { margin-top: clamp(24px, 4vh, 48px); }

.clarity {
  font-size: 17px;
  line-height: 1.5;
  max-width: 34em;
  margin-top: clamp(24px, 4vh, 40px);
}

.hero .symbols { margin-top: clamp(20px, 3vh, 32px); }

.hero .comment { margin-top: clamp(24px, 4vh, 40px); }

.punch {
  margin-top: 10px;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 5.5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--orange);
}

/* Full-bleed blue CTA band, mid-black. Escapes the poster's side padding. */
.hero-band {
  align-self: stretch;
  margin-inline: calc(-1 * clamp(24px, 6vw, 96px));
  margin-top: clamp(40px, 8vh, 96px);
  padding: clamp(22px, 4vh, 40px) clamp(24px, 6vw, 96px);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.hero-band:hover { background: #1a44c0; }

.symbols {
  font-size: 20px;
  letter-spacing: 0.4em;
}

.symbols .safe { color: var(--blue); }
.symbols .over { color: var(--orange); }
.symbols .close { color: var(--mid-gray); }

.eye { width: 64px; }

/* The eye blinks. Rarely. (Design Spec §10: extremely subtle only.) */
@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%, 96% { transform: scaleY(0.08); }
}

.eye-blink {
  animation: blink 7s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .eye-blink { animation: none; }
  .hero-card { animation: none; }
}

/* Watcher section */
.watcher {
  align-items: center;
  text-align: center;
}

.eye-giant {
  width: min(420px, 70vw);
  margin-bottom: 64px;
}

.statement {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 5.5vw, 84px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* App screens row */
.phone-row {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.phone-row > img {
  display: block;
  width: min(280px, 70vw);
  height: auto;
}

.phone-row__mockup--milestone {
  border-radius: 30px;
  overflow: hidden;
  -webkit-clip-path: inset(0 round 30px);
  clip-path: inset(0 round 30px);
}

/* Product glimpse */
.glimpse-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.glimpse-inner > div { flex: 1 1 320px; }

.glimpse-inner img {
  width: min(360px, 80vw);
  height: auto;
}

/* Waitlist */
#waitlist-form {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  max-width: 560px;
}

#email {
  flex: 1;
  font-size: 17px;
  padding: 16px;
  border: 1px solid var(--black);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--black);
}

#email:focus { outline: 2px solid var(--blue); }

#waitlist-form button {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  border: none;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

#waitlist-form button:hover { opacity: 0.9; }

#form-note { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .topbar, .hero-band { transition: none; }
}

footer {
  background: var(--black);
  color: var(--off-white);
  padding: 48px clamp(24px, 6vw, 96px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

@media (max-width: 600px) {
  #waitlist-form { flex-direction: column; }
  footer { flex-direction: column; gap: 12px; }
}

/* Legal pages (imprint, privacy) */
.legal-page { background: var(--off-white); }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 96px);
  color: var(--black);
}

.legal .wordmark a { color: inherit; text-decoration: none; }

.legal-title {
  font-size: clamp(40px, 7vw, 96px);
  margin-top: 48px;
}

.legal .comment { margin-top: 16px; }

.legal h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 48px;
}

.legal p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 12px;
}

.legal a { color: var(--blue); }

.legal-footer {
  background: none;
  color: inherit;
  padding: 64px 0 0;
}
