@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #14151a;
  --muted: #6b7280;
  --line: #ececef;
  --accent: #ff3d8b;
  --sky: #87ceeb;
  --pixel: "Press Start 2P", monospace;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* whole landing fills the viewport — flex column, no scrollbars */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* full-height scene: cotton clouds + a computer mouse on the right, a grassy
   field as the ground, and a signup card floating over it. Background layers,
   top → bottom: field (foreground) over the computer mouse over the cotton. */
.hero {
  position: relative;
  min-height: 100dvh;
  background-color: #fff;
  background-image: url(/foreground.png), url(/computer_mouse.png), url(/cotton.webp);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center bottom, left -2% top 3%, center 46%;
  background-size: 100% auto, min(58vw, 560px) auto, min(180vw, 1400px) auto;
  /* flex centering (not grid place-items, which content-sizes the child and
     ignores its max-width, leaving the card 430px wide on small phones) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}
.hero-inner {
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 2;
}
.mice {
  position: absolute;
  top: clamp(-200px, -13vh, -70px);
  right: 0;
  width: min(58vw, 640px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* tilted, overlaid wordmark */
.mark {
  font-family: var(--pixel);
  font-size: clamp(22px, 6.4vw, 54px);
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 0 0 22px;
  text-align: center;
  transform: rotate(-4deg);
  image-rendering: pixelated;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.65);
}
.mark-top {
  display: inline-block;
  font-size: 0.4em;
  color: var(--accent);
  transform: rotate(-2deg);
}

/* signup card — padded container floating over the scene */
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(3px);
}
.tag {
  font-family: var(--pixel);
  font-size: clamp(11px, 2.4vw, 13px);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.lede {
  margin: 12px 0 6px;
  text-align: center;
  color: #1b2b33;
}
.seelive {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.seelive a { color: var(--accent); text-decoration: none; }
.seelive a:hover { text-decoration: underline; }

form.signup {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}
input[type="email"],
input[type="text"] {
  width: 100%;
  font: 14px var(--mono);
  color: var(--fg);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
input:focus { outline: none; border-color: var(--fg); }
input:user-invalid { border-color: #e0668a; }

button {
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
form.signup button { width: 100%; padding: 15px; }
button:hover { background: var(--accent); border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }

.result { margin: 12px 0 0; min-height: 1.2em; font-size: 13px; text-align: center; }
.result a { color: var(--accent); }
.result.err { color: #d11; }
.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* small, subtle credit/links just below the card */
.site-footer {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(20, 32, 24, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.site-footer a { color: rgba(20, 32, 24, 0.75); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* prose pages (privacy / terms) */
.prose {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 90px) 24px 64px;
}
.prose .mark { text-align: left; font-size: clamp(20px, 5vw, 30px); }
.prose h2 {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 1px;
  margin: 30px 0 10px;
}
.prose p, .prose li { color: #2a2c33; }
.prose ol, .prose ul { margin: 8px 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; line-height: 1.65; }
.prose pre.snippet { margin: 14px 0; }
.prose .pill { margin: 2px 0; }
.prose a { color: var(--accent); }
.prose .muted { color: var(--muted); font-size: 12.5px; margin-top: 28px; }

/* shared bits still used by the verify page */
label {
  display: block;
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 18px 0 7px;
  text-transform: uppercase;
}
.pill, .snippet {
  font-family: var(--mono);
  background: #fafafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pill { display: inline-block; padding: 7px 11px; font-size: 13px; word-break: break-all; }
.snippet {
  display: block;
  padding: 13px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: #2a2c33;
}
.ok { font-family: var(--pixel); font-size: 10px; color: #1a8f4a; letter-spacing: 1px; }
.err { font-family: var(--pixel); font-size: 10px; color: #d11; letter-spacing: 1px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
footer { margin-top: 44px; font-size: 12px; color: var(--muted); }
footer a { color: var(--muted); }
