/* BoxScored waitlist mock — reuses site tokens, logo, buttons, founder chip/medal */
:root {
  --bg: #14181c; --bg2: #0f1215; --panel: #1b2128; --panel2: #222a33; --line: #2c3440; --line2: #384250;
  --text: #cdd6df; --muted: #8394a5; --white: #fff;
  --green: #00e054; --blue: #40bcf4;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--sans);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--white); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--white); margin: 0 0 .5rem; line-height: 1.2; }
p { margin: .4rem 0; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }

input, button { font: inherit; color: inherit; }
input {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: .7rem .9rem;
  color: var(--white);
  width: 100%;
  font-size: 16px;
}
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(64, 188, 244, .2); }
input::placeholder { color: #5d6c7a; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1.15rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  font-size: .85rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.btn-green { background: var(--green); color: #07240f; }
.btn-green:hover { background: #2bff7a; color: #07240f; }
.btn-green:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Logo — same construction as the app, scaled for a landing hero */
.logo { display: inline-flex; align-items: flex-start; gap: .35rem; color: var(--white); white-space: nowrap; }
.logo:hover { color: var(--white); }
.logo-balls { flex: none; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; }
.logo-tagline { font-family: var(--display); font-weight: 700; font-size: .55rem; letter-spacing: .01em; line-height: 1.15; color: var(--muted); margin-top: .18rem; white-space: nowrap; }
.logo-accent { color: var(--green); }

.hero-logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); white-space: nowrap; }
.hero-logo .logo-balls { width: 100px; height: 39px; }
.hero-logo .wordmark { font-size: 2.85rem; letter-spacing: -.04em; }
.hero-logo .logo-tagline { display: none; }

/* Founder chip — identical to the app (number, no #) */
.founder-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #00e054; color: #00e054; border-radius: 999px;
  padding: 1px 8px 1px 3px; font-size: 11px; font-weight: 800; line-height: 1;
  white-space: nowrap; vertical-align: middle; flex: none; letter-spacing: 0;
  text-transform: none; font-style: normal; background: transparent;
}
.founder-chip i {
  width: 15px; height: 15px; border-radius: 50%; background: #00e054; color: #14181c;
  font-style: normal; font-size: 9px; display: flex; align-items: center; justify-content: center;
  flex: none; font-weight: 800; line-height: 1;
}
.founder-chip.lg { font-size: 15px; padding: 3px 12px 3px 4px; gap: 6px; }
.founder-chip.lg i { width: 22px; height: 22px; font-size: 13px; }

/* Founder medal — landing size, not the profile-page responsive blow-up */
.founder-medal {
  position: relative; width: 132px; height: 154px;
  display: flex; flex-direction: column; align-items: center; flex: none; margin: 0 auto;
}
.founder-ribbon { display: flex; gap: 3px; margin-bottom: -10px; z-index: 0; }
.founder-ribbon div {
  width: 24px; height: 42px;
  background: linear-gradient(#00e054, #00a33d);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.founder-ribbon div:nth-child(2) { background: linear-gradient(#2c3440, #1c2228); }
.founder-disc {
  z-index: 1; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a333d, #161b20 70%);
  border: 3px solid #00e054;
  box-shadow: 0 0 0 2px #14181c, 0 0 0 4px #2c3440, 0 0 20px rgba(0, 224, 84, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.founder-lab { font-size: 8px; letter-spacing: 2px; color: #8394a5; font-weight: 700; }
.founder-num { font-size: 38px; font-weight: 900; color: #00e054; line-height: 1; margin: 2px 0; font-family: var(--display); }
.founder-sub { display: block; font-size: 7px; letter-spacing: 1.5px; color: #8394a5; font-weight: 700; }

.gb {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1em; padding: .1em .35em; border-radius: 3px;
  font: 800 .95rem/1.15 var(--mono); color: #0b0e11; background: var(--green);
}

/* Page frame */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 1.6rem;
  position: relative;
}
.page::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: min(640px, 100%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 224, 84, .08), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero, .features, .success { position: relative; z-index: 1; }

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo { margin-bottom: 1.35rem; }
.tagline {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.88rem; /* ~12.5% smaller than 2.15rem */
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--white);
  text-align: center;
  margin: 0 auto .7rem;
  max-width: 18em;
  width: 100%;
}
.tagline .logo-accent { color: var(--green); }
.pitch {
  margin: 0 auto 1.7rem;
  max-width: 34em;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
}

/* Form */
.signup { width: 100%; max-width: 540px; margin: 0 auto; }
.signup-row {
  display: flex;
  gap: .55rem;
  align-items: stretch;
}
.signup-row input { flex: 1; min-width: 0; }
.signup-row .btn { flex: none; padding: .7rem 1.25rem; }
.founder-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

/* What you get */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 2.4rem 0 0;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.15rem 1.15rem 1.2rem;
  text-align: left;
}
.feature-ico {
  display: flex;
  align-items: center;
  height: 28px;
  margin-bottom: .7rem;
}
.feature h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--white);
  margin: 0 0 .35rem;
}
.feature-rafters h2 { margin: 0 0 .35rem; }
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}
.ico-pin {
  width: 26px;
  height: 26px;
  color: var(--green);
}

/* Success */
.success {
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
}
body.is-success .signup-block { display: none; }
body.is-success .success { display: flex; }
.success-chip { margin: 0 0 .55rem; }
.success .founder-medal { margin: .7rem auto 1rem; }
.rafters-header {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.88rem;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--white);
  text-align: center;
  margin: 0 0 .15rem;
}
.success-number {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 0 0 .7rem;
}
.success-copy {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28em;
  margin: 0 0 1.35rem;
}
.share-preview {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .9rem 1rem;
  text-align: left;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.share-preview .handle { color: var(--white); font-weight: 700; }
.btn-share { min-width: 200px; text-decoration: none; }
.btn-share:hover { color: #07240f; }
.btn-share svg { width: 14px; height: 14px; flex: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  margin-top: auto;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: .88rem;
}
.footer-inner a { color: var(--muted); font-weight: 600; }
.footer-inner a:hover { color: var(--white); }
.footer-sep { color: var(--line2); }

@media (max-width: 720px) {
  .page { padding: 1.45rem 1rem 1rem; justify-content: flex-start; }
  body.is-success .page { justify-content: center; }
  .hero-logo { margin-bottom: 1.1rem; }
  .hero-logo .logo-balls { width: 72px; height: 28px; }
  .hero-logo .wordmark { font-size: 2.15rem; }
  .tagline, .rafters-header { font-size: 1.35rem; } /* ~13% smaller than 1.55rem */
  .success-number { font-size: 1.2rem; }
  .pitch { font-size: 1rem; margin-bottom: 1.35rem; }
  .pitch-last { display: block; }
  .signup-row { flex-direction: column; }
  .signup-row .btn { width: 100%; padding: .85rem 1.15rem; }
  .features { grid-template-columns: 1fr; gap: .65rem; margin-top: 1.6rem; }
  .feature { padding: .95rem 1rem; }
  .founder-medal { width: 118px; height: 138px; }
  .founder-disc { width: 98px; height: 98px; }
  .founder-num { font-size: 34px; }
  .founder-ribbon div { width: 22px; height: 38px; }
  .footer-inner { padding: 1rem; gap: .7rem 1rem; }
}

@media (max-width: 400px) {
  .hero-logo { gap: .38rem; }
  .hero-logo .logo-balls { width: 62px; height: 24px; }
  .hero-logo .wordmark { font-size: 1.85rem; }
  .tagline, .rafters-header { font-size: 1.2rem; } /* ~13% smaller than 1.38rem */
  .success-number { font-size: 1.1rem; gap: .4rem; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.play-chip {
  display: inline-flex; align-items: center;
  font: 700 .68rem/1 var(--mono);
  color: var(--green);
  border: 1px solid rgba(0, 224, 84, .45);
  background: rgba(0, 224, 84, .08);
  border-radius: 3px;
  padding: .28rem .45rem;
  letter-spacing: .04em;
}
.success:focus, .success:focus-visible { outline: none; }
.share-preview { max-width: 420px; }

/* Live form + success states */
.form-error {
  display: none;
  margin: .7rem 0 0;
  color: #ff4f4f;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}
.form-error.show { display: block; }
.btn[disabled] { opacity: .55; cursor: default; }
body.is-success-anon .success-chip { display: none; }
body.is-success-anon .founder-medal { display: none; }
body.is-loading-number .success-chip { visibility: hidden; }
body.is-loading-number .founder-num { visibility: hidden; }
