/* Headroom — dorflerpatrik.com/headroom
   Shared ground for the three sections: tokens, type, the email form.
   Each section owns its own file: hero.css, coach.css, end.css. */

:root {
  --wall: #b81f37;
  --accent: #ff4d63;
  --ink: #fff;
  --page: #000;
  --muted: rgba(235, 235, 245, 0.6);
  --hair: rgba(255, 255, 255, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --max: 1080px;
  --gutter: max(20px, 4vw);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.47;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; text-align: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ================= JOIN ================= */
.join {
  display: flex; gap: 8px;
  width: min(100%, 480px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
}
.join-email {
  flex: 1; min-width: 0;
  font: inherit; font-size: 17px; color: #fff;
  background: none; border: 0; outline: none;
  padding: 0 4px 0 18px;
}
.join-email::placeholder { color: rgba(255, 255, 255, 0.55); }
.join-go {
  flex: none;
  font-size: 17px; font-weight: 600;
  color: #000; background: #fff;
  border-radius: 999px;
  height: 48px; padding: 0 22px;
  cursor: pointer;
  transition: transform 0.2s var(--out), opacity 0.2s;
}
.join-go:active { transform: scale(0.96); }
.join-go:disabled { opacity: 0.6; cursor: default; }
.join:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85); }
.join-note { margin-top: 14px; font-size: 15px; color: var(--muted); min-height: 1.47em; }
.join-note[data-tone="error"] { color: #fff; font-weight: 600; }
.done-mark { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; animation: rise 0.5s var(--out) both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 380px) {
  .join { flex-direction: column; border-radius: 28px; }
  .join-email { height: 48px; }
}
