/* ==========================================================================
   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(2.25rem, 6vw, 3.5rem) 1.25rem clamp(2.5rem, 7vw, 4rem);
  text-align: center;
  background-image: url("img/hero-stadium-sm.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

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

/* The launch-partner page and the post-signup state show no photo. These come
   after the min-width rule above on purpose, declared before it, they would
   lose to it on wide viewports and leak a sliver of the stadium. */
.hero-plain,
body.signed-up .hero-band {
  background-image: none;
  padding-bottom: 0;
}
.hero-plain::before,
body.signed-up .hero-band::before { background: none; }

/* Darkened just enough for the type, and faded into the page at the bottom so
   the band has no hard edge. */
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(1, 1, 1, .60) 0%,
      rgba(1, 1, 1, .34) 30%,
      rgba(1, 1, 1, .46) 62%,
      rgba(1, 1, 1, .86) 88%,
      var(--bg) 100%);
}

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

.logo-link { display: inline-block; text-decoration: none; }
.logo-link:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }

.logo {
  width: auto;
  height: clamp(34px, 7.5vw, 46px);
  display: block;
  margin: 0 auto clamp(1.1rem, 3vw, 1.6rem);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .6));
}
body.signed-up .logo, .hero-plain .logo { filter: none; }

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

h1 { font-size: clamp(1.95rem, 6.4vw, 3.1rem); }

/* Only type sitting on the stadium photo needs a shadow. Applied globally it
   painted a faint dark halo around headings on the plain black pages. */
.hero-band:not(.hero-plain) h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75), 0 2px 30px rgba(0, 0, 0, .55);
}

body.signed-up .hero-copy { display: none; }

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

/* ── lead column ────────────────────────────────────────────── */
.lead {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.sub {
  max-width: 46ch;
  margin: 0 auto;
  color: #c9c9c9;
  font-size: clamp(.98rem, 2.4vw, 1.08rem);
  font-weight: 300;
  line-height: 1.6;
}

.thanks-title, .partner-title {
  margin: clamp(.5rem, 2vw, 1rem) 0 .75rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.02em;
}
.thanks-title:focus, .partner-title:focus { outline: none; }

.rule {
  height: 1px;
  margin: clamp(1.75rem, 5vw, 2.5rem) 0;
  border: 0;
  background: var(--line);
}

/* ── card ───────────────────────────────────────────────────── */
.signup, .partner { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
.prefs, .partner { text-align: left; }

.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; text-align: left; }

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, select {
  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; }

select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a9a9a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
select option { background: var(--surface); color: var(--text); }

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

input[aria-invalid="true"], select[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; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover:not(:disabled) {
  background: #383838;
  box-shadow: none;
  filter: none;
}
.btn-secondary .spinner {
  border-color: rgba(255, 255, 255, .25);
  border-top-color: #ffffff;
}

.back-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link:hover { color: var(--yellow); }

.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, .promo { transition: none; }
  .fade-in { animation: 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;
}

/* ── preferences step ───────────────────────────────────────── */
.prefs-title {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.chips-group {
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

.chips-group legend {
  padding: 0;
  margin-bottom: .6rem;
  font-size: .82rem;
  font-weight: 500;
}

.chips-group .legend-sm {
  color: var(--muted);
  font-weight: 400;
}

.prefs-done-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(51, 204, 204, .3);
  border-radius: var(--radius-sm);
  background: rgba(51, 204, 204, .07);
  color: var(--teal);
  font-size: .92rem;
}
.prefs-done-msg .tick { font-weight: 700; }

/* ── 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: transparent;
  background: linear-gradient(100deg, var(--yellow), #ffb300);
  color: #1a1200;
  font-weight: 700;
}

.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;
}

/* ── api access promo ───────────────────────────────────────── */
.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 560px;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.promo:hover { border-color: #4a4a4a; background: #2b2b2b; }
.promo:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.promo-text { display: block; text-align: left; }
.promo-text strong {
  display: block;
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
}
.promo-link {
  display: block;
  margin-top: .2rem;
  color: var(--yellow);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

/* ── 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 {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(38, 38, 38, .5);
  color: var(--muted);
  font-size: .85rem;
}

.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; }

.legal-links {
  margin-top: 1rem;
  color: var(--muted-dim);
  font-size: .76rem;
}
.legal-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-links a:hover { color: var(--yellow); }
.legal-links .dot { padding: 0 .35rem; opacity: .6; }

.fine a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fine a:hover { color: var(--yellow); }

.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; }
}
