/* ==========================================================================
   STX waitlist — theme lifted from www.stxapp.io
   bg #010101 / #1d1d1d · surface #262626 / #2e2e2e · muted #9a9a9a / #818181
   brand yellow #FFEE00 · brand orange #FF661F · accent teal #33CCCC
   type: Roboto
   ========================================================================== */

:root {
  --bg:            #010101;
  --bg-soft:       #1d1d1d;
  --surface:       #262626;
  --surface-2:     #2e2e2e;
  --line:          #3a3a3a;
  --text:          #ffffff;
  --muted:         #9a9a9a;
  --muted-dim:     #818181;
  --yellow:        #ffee00;
  --orange:        #ff661f;
  --teal:          #33cccc;
  --danger:        #ff5c5c;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 24px 60px -12px rgba(0, 0, 0, .8);
  --ring:          0 0 0 3px rgba(255, 238, 0, .22);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }

/* headings receive programmatic focus on step change; no visible ring wanted */
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── hero band (stadium creative) ───────────────────────────── */
.hero-band {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 9vw, 6.5rem) 1.25rem clamp(3.5rem, 10vw, 7rem);
  text-align: center;
  /* phones get the 900px file; only the wider breakpoint below pulls the
     1600px one, so a phone never downloads 364KB for a 390px band */
  background-image: url("img/hero-stadium-sm.jpg");
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
}

@media (min-width: 701px) {
  .hero-band { background-image: url("img/hero-stadium.jpg"); }
}

/* Darken the photo enough for the type to hold, but lightly — the stadium is
   the point. Strongest at the very top behind the logo, and at the bottom
   where it has to melt into the page. */
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(1, 1, 1, .62) 0%,
      rgba(1, 1, 1, .34) 34%,
      rgba(1, 1, 1, .30) 52%,
      rgba(1, 1, 1, .72) 84%,
      var(--bg) 100%);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  width: auto;
  height: clamp(36px, 8.5vw, 52px);
  display: block;
  margin: 0 auto clamp(1.4rem, 4vw, 2rem);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .6));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .7rem;
  border: 1px solid rgba(255, 238, 0, .38);
  border-radius: 999px;
  background: rgba(255, 238, 0, .1);
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75), 0 2px 30px rgba(0, 0, 0, .55);
}

.sub {
  max-width: 42ch;
  margin: 1rem auto 0;
  color: #d6d6d6;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8), 0 1px 18px rgba(0, 0, 0, .5);
}

.hero-cta {
  display: inline-block;
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
  padding: .85rem 1.9rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--yellow), var(--orange));
  color: #1a1200;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s, filter .15s, box-shadow .15s;
}
.hero-cta:hover {
  filter: brightness(1.07);
  box-shadow: 0 10px 30px -8px rgba(255, 153, 20, .55);
}
.hero-cta:active { transform: translateY(1px); }
.hero-cta:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* the CTA only makes sense while the form is the thing below */
@media (min-width: 900px) { .hero-cta { display: none; } }

/* ── layout ─────────────────────────────────────────────────── */
.wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

/* ── card ───────────────────────────────────────────────────── */
.card {
  max-width: 620px;
  margin: 0 auto;
  scroll-margin-top: 1.5rem;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow);
}

.card h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); }

.card-sub {
  margin: .5rem 0 1.75rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 300;
}

/* ── form fields ────────────────────────────────────────────── */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 460px) { .row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }

label {
  display: block;
  margin-bottom: .4rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.opt { color: var(--muted-dim); font-weight: 300; }

input, textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

textarea { resize: vertical; min-height: 78px; }

input::placeholder, textarea::placeholder { color: #6b6b6b; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(0, 0, 0, .5);
  box-shadow: var(--ring);
}

input[aria-invalid="true"] { border-color: var(--danger); }

.err, .form-err {
  min-height: 0;
  margin-top: .35rem;
  color: var(--danger);
  font-size: .8rem;
}
.err:empty, .form-err:empty { margin-top: 0; }
.form-err { margin-top: .85rem; text-align: center; }

/* ── button ─────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  margin-top: .6rem;
  padding: .95rem 1.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--yellow), var(--orange));
  color: #1a1200;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s, filter .15s, box-shadow .15s;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 8px 28px -6px rgba(255, 153, 20, .5);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #1a1200;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.6s; }
  .btn, input, textarea, .chip { transition: none; }
}

.link-btn {
  display: block;
  margin: 1.1rem auto 0;
  padding: .3rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text); }

.fine {
  margin-top: 1rem;
  color: var(--muted-dim);
  font-size: .76rem;
  font-weight: 300;
  text-align: center;
}

/* ── inline trade question ─────────────────────────────────── */
.ask {
  margin: 1.6rem 0 .4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.ask h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ask-sub {
  margin: .4rem 0 1.1rem;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 300;
}

/* ── step 2 ─────────────────────────────────────────────────── */
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  padding: .28rem .7rem;
  border: 1px solid rgba(51, 204, 204, .35);
  border-radius: 999px;
  background: rgba(51, 204, 204, .08);
  color: var(--teal);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.check { font-size: .9rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .87rem;
  font-weight: 500;
  transition: all .15s;
  user-select: none;
}

.chip:hover span { border-color: #555; color: var(--text); }

.chip input:checked + span {
  border-color: var(--yellow);
  background: rgba(255, 238, 0, .13);
  color: var(--yellow);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ── done ───────────────────────────────────────────────────── */
#done { text-align: center; }

.done-mark {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #1a1200;
  font-size: 1.7rem;
  font-weight: 700;
}

/* ── features gallery ──────────────────────────────────────── */
.features {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.features h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }

.features-sub {
  margin: .4rem 0 clamp(1.25rem, 3vw, 1.75rem);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 300;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.4vw, .85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots li { min-width: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Each creative carries a distinct value prop, so every one should be seen
   without a gesture: 4-up on desktop, 2-up on tablet, stacked on phones.
   A carousel hid three of the four behind a swipe. */
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .shots {
    grid-template-columns: 1fr;
    gap: .85rem;
    /* held well under the 560px native width to keep the stack from running
       away vertically, while the headlines stay readable */
    max-width: 340px;
    margin-inline: auto;
  }
}

/* ── footer + social ────────────────────────────────────────── */
.footer { margin-top: clamp(3rem, 7vw, 4.5rem); text-align: center; }

.social {
  display: flex;
  justify-content: center;
  gap: .65rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(38, 38, 38, .6);
  color: var(--muted);
  transition: all .16s;
}

.social a:hover {
  border-color: var(--yellow);
  background: rgba(255, 238, 0, .1);
  color: var(--yellow);
  transform: translateY(-2px);
}

.social a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.region {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .82rem;
}

.region a {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 238, 0, .35);
  padding-bottom: 1px;
  transition: border-color .15s;
}
.region a:hover { border-bottom-color: var(--yellow); }
.region a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.disclaimer {
  max-width: 54ch;
  margin: 1.75rem auto 0;
  color: var(--muted-dim);
  font-size: .74rem;
  font-weight: 300;
  line-height: 1.6;
}

.disclaimer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(154, 154, 154, .5);
  transition: color .15s, text-decoration-color .15s;
}
.disclaimer a:hover {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}
.disclaimer a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.copyright {
  margin-top: 1rem;
  color: #5e5e5e;
  font-size: .74rem;
}

/* ── step transition ────────────────────────────────────────── */
.fade-in { animation: fade .35s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}
