/* Tokens follow the AfriHeritage Design System (colors_and_type.css). */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-Bold.woff2") format("woff2"); }

:root {
  --red: #ED333E;
  --deep-red: #AB2528;
  --ink: #131416;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.22);
  --focus-ring: rgba(237, 51, 62, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --edge: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); }
body {
  color: #fff;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--edge);
  background: radial-gradient(circle at 72% 52%, rgba(92, 21, 32, 0.55) 0%, rgba(74, 17, 27, 0.2) 34%, rgba(19, 20, 22, 0) 62%), var(--ink);
}

#globe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(19, 20, 22, 0.92) 0%, rgba(19, 20, 22, 0.8) 34%, rgba(19, 20, 22, 0) 54%);
}

/* The NAAHC bracket device from the proposal cover. */
.bracket {
  position: absolute;
  inset: 24px;
  z-index: 2;
  pointer-events: none;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.bracket::before, .bracket::after { content: ""; position: absolute; background: var(--line); }
.bracket::before { left: 0; top: 0; width: 1px; height: 28px; }
.bracket::after { right: 0; bottom: 0; width: 44px; height: 1px; }

/* Invisible box that sets the globe's position and size. */
.globe-anchor {
  position: absolute;
  left: 72%;
  top: 52%;
  width: min(50vw, 84vh);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.copy, .foot, .hint { position: relative; z-index: 3; }

.copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding-block: 40px;
  animation: rise 700ms var(--ease) both 120ms;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.brand { margin: 0 0 32px; font-size: 0; line-height: 0; }
.brand img { display: block; width: clamp(340px, 38vw, 560px); height: auto; }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.eyebrow span { color: var(--red); }

.lead { margin: 0 0 12px; font-size: 19px; line-height: 1.5; }
.status { margin: 0 0 32px; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }

.signup { display: flex; gap: 8px; max-width: 520px; }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.signup input[type="email"]::placeholder { color: var(--on-dark-3); }
.signup input[type="email"]:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, 0.11); box-shadow: 0 0 0 4px var(--focus-ring); }
.signup input[aria-invalid="true"] { border-color: var(--red); }

.signup button {
  flex: none;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 240ms var(--ease), transform 140ms var(--ease), box-shadow 240ms var(--ease);
}
.signup button:hover { background: var(--deep-red); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(237, 51, 62, 0.55); }
.signup button:active { transform: translateY(1px) scale(0.985); }
.signup button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.signup button[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.message { min-height: 22px; margin: 12px 0 4px 24px; font-size: 14px; line-height: 1.5; font-weight: 700; color: #ff9aa1; }
.message:empty { min-height: 0; margin-block: 8px 0; }
.message.done { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 700; color: #fff; }

.consent { margin: 8px 0 0 24px; max-width: 480px; font-size: 12px; line-height: 1.55; color: var(--on-dark-3); }
.consent a { color: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hint {
  position: absolute;
  right: var(--edge);
  bottom: var(--edge);
  margin: 0;
  max-width: 300px;
  text-align: right;
  font-size: 12px;
  line-height: 1.55;
  color: var(--on-dark-2);
  text-shadow: 0 0 6px var(--ink), 0 0 14px var(--ink), 0 0 2px var(--ink);
  pointer-events: none;
}
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }

.foot { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 12px; color: var(--on-dark-3); }
.foot a { color: var(--on-dark-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Short laptop screens: keep the sign-up above the fold. */
@media (min-width: 861px) and (max-height: 880px) {
  :root { --edge: 36px; }
  .copy { padding-block: 16px; }
  .brand { margin-bottom: 20px; }
  .brand img { width: clamp(300px, 54vh, 480px); }
  .eyebrow { margin-bottom: 14px; }
  .lead { margin-bottom: 8px; font-size: 17px; }
  .status { margin-bottom: 16px; }
  .signup input[type="email"], .signup button { height: 52px; }
}

@media (max-width: 860px) {
  :root { --edge: 32px; }
  .stage { background: radial-gradient(circle at 50% 146px, rgba(92, 21, 32, 0.7) 0%, rgba(19, 20, 22, 0) 260px), var(--ink); }
  .scrim { background: linear-gradient(180deg, rgba(19, 20, 22, 0) 225px, rgba(19, 20, 22, 0.86) 290px, rgba(19, 20, 22, 0.94) 100%); }
  .bracket { inset: 12px; }
  .globe-anchor { left: 50%; top: 146px; width: 236px; }
  .copy { justify-content: flex-start; padding-top: 240px; padding-bottom: 32px; }
  .brand { margin-bottom: 16px; }
  .brand img { width: min(100%, 340px); }
  .eyebrow { margin-bottom: 14px; }
  .status { margin-bottom: 20px; }
  .hint { position: relative; right: auto; bottom: auto; max-width: none; margin-bottom: 16px; text-align: left; }
  .lead { font-size: 17px; }
}

@media (max-width: 520px) {
  .eyebrow span:first-of-type { flex-basis: 100%; height: 0; overflow: hidden; }
  .signup { flex-direction: column; }
  .signup input[type="email"] { flex: none; width: 100%; }
  .signup button { width: 100%; }
  .message, .consent { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .copy { animation: none; }
  .signup input[type="email"], .signup button { transition: none; }
}
