/* The Scene — Founding 500 waitlist. Brand Kit v1: ink black canvas,
   pure white text, volt lime is the hit, ash for muted. Mobile-first,
   zero external requests, one action per screen. */

@font-face {
  font-family: "Archivo Black";
  src: url("assets/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --lime: #D9F758;
  --lime-bright: #E1FF55;
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --ash: #A7A7AD;
  --alert: #F87171;
  --display: "Archivo Black", "Arial Black", -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.stage {
  position: relative; z-index: 3;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.panel { animation: rise .6s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* pulse */
.pulse-wrap { margin-bottom: clamp(1rem, 4vh, 2rem); }
.pulse { width: min(420px, 82%); height: 56px; display: block; }
.pulse-line {
  fill: none; stroke: var(--lime); stroke-width: 7;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1100; stroke-dashoffset: 1100;
  animation: beat 2.2s var(--ease) forwards, glow 3.2s ease-in-out 2.2s infinite alternate;
  filter: drop-shadow(0 0 14px rgba(217, 247, 88, .5));
}
@keyframes beat { to { stroke-dashoffset: 0; } }
@keyframes glow { from { filter: drop-shadow(0 0 8px rgba(217,247,88,.35)); } to { filter: drop-shadow(0 0 20px rgba(217,247,88,.65)); } }

.kicker {
  font-weight: 700; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lime); margin-bottom: .8rem;
}

h1, h2 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.02em;
  font-size: clamp(3rem, 14vw, 5.5rem);
}
h2 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
.lime { color: var(--lime); }

.value-line {
  margin: 1.1rem 0 1.6rem;
  color: var(--ash);
  font-size: clamp(.98rem, 2.6vw, 1.12rem);
  line-height: 1.55;
  max-width: 34rem;
}
.value-line strong { color: var(--white); font-weight: 700; }

/* form */
.input-row { display: flex; gap: .55rem; flex-wrap: wrap; }

input[type="email"], .ref-link, select {
  flex: 1 1 220px;
  font-family: var(--body);
  font-size: 1.05rem;
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: .95rem 1.1rem;
  min-height: 56px;
}
input[type="email"]::placeholder { color: var(--ash); }
input[type="email"]:focus, select:focus {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(217, 247, 88, .18);
}

button, .share-btn {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--lime);
  border: none;
  border-radius: 14px;
  padding: .95rem 1.5rem;
  min-height: 56px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
button:hover, .share-btn:hover { background: var(--lime-bright); box-shadow: 0 0 24px rgba(217, 247, 88, .4); transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; transform: none; }

.form-error { color: var(--alert); font-weight: 600; margin-top: .6rem; font-size: .92rem; }

.consent-line { margin-top: .8rem; font-size: .8rem; color: var(--ash); line-height: 1.5; }
.consent-line a { color: var(--lime); }

.proof-line { margin-top: 1.4rem; font-size: .88rem; color: var(--ash); font-variant-numeric: tabular-nums; }
.proof-line strong { color: var(--lime); }

/* success step */
.priority-card {
  margin: 1.6rem 0;
  border: 2px solid rgba(217, 247, 88, .4);
  border-radius: 18px;
  padding: 1.2rem 1.3rem 1.4rem;
  background: rgba(217, 247, 88, .06);
  box-shadow: 0 0 34px rgba(217, 247, 88, .1);
}
.priority-title { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; }
.priority-sub { color: var(--ash); font-size: .92rem; line-height: 1.5; margin-top: .45rem; }

.ref-progress { display: flex; gap: .5rem; margin: 1rem 0; }
.ref-dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(217, 247, 88, .5);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s, box-shadow .3s;
}
.ref-dot.filled { background: var(--lime); box-shadow: 0 0 16px rgba(217, 247, 88, .55); }

.share-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.ref-link { font-size: .9rem; min-height: 52px; }
.share-btn { font-size: .85rem; min-height: 52px; padding: .7rem 1.1rem; }
.share-btn.whatsapp { background: var(--white); }
.share-btn.copied { background: var(--lime-bright); }

.uni-row label { display: block; font-weight: 600; margin-bottom: .5rem; }
.uni-row .opt { color: var(--ash); font-weight: 400; font-size: .85rem; }
select { appearance: none; }
.uni-saved { margin-top: .7rem; color: var(--lime); font-weight: 600; }

.foot {
  margin-top: 2.2rem;
  display: flex; align-items: center; gap: .6rem;
  color: var(--ash);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.foot-pulse { width: 44px; color: var(--lime); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  .pulse-line { animation: none; stroke-dashoffset: 0; }
  .panel { animation: none; }
  * { transition-duration: .01ms !important; }
}

.wa-community { width: 100%; margin: 1.2rem 0 0; font-size: .92rem; text-align: center; }
