/* Valla — Athlete Intake / Season 01
   Design source: project/Valla Athlete Signup.dc.html (Claude Design handoff) */

:root {
  --ink: #080808;
  --paper: #F2F2F0;
  --body: #f3f2f2;
  --acid: #7CFF00;
  --acid-hi: #9DFF40;
  --rule: #1C1C1A;
  --rule-2: #2A2A27;
  --rule-3: #3E3E39;
  --mute: #6E6E68;
  --mute-2: #8A8A84;
  --mute-3: #B6B6B0;
  --dim: #5A5A56;
  --field: #101010;
  --field-focus: #0F1708;
  --tab: #0E0E0D;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Archivo, system-ui, sans-serif;
  --display-stretch: expanded;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acid); text-decoration: none; }
a:hover { color: var(--acid-hi); }
::selection { background: var(--acid); color: var(--ink); }
input { caret-color: var(--acid); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

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

.vfade { animation: vfade 420ms cubic-bezier(.2, .7, .2, 1) both; }
.vfade-slow { animation: vfade 520ms cubic-bezier(.2, .7, .2, 1) both; }
.vfade-fast { animation: vfade 380ms cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .vfade, .vfade-slow, .vfade-fast { animation: none; }
  * { transition-duration: 1ms !important; }
}

[hidden] { display: none !important; }

.shell {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  padding: 18px clamp(20px, 4vw, 32px);
  border-bottom: 2px solid var(--rule);
}

.wordmark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.masthead__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.masthead__status {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}

.pip {
  width: 7px;
  height: 7px;
  background: var(--acid);
  display: block;
  flex: 0 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 11vw, 120px) clamp(20px, 4vw, 32px) clamp(48px, 8vw, 88px);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  display: block;
  width: 642px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 642 / 143;
  object-fit: contain;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 2.5vw, 20px);
  font-size: clamp(10px, 2.4vw, 12px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acid);
  text-align: center;
}

/* The acronym is long: on narrow screens the generous tracking pushes it to a
   second line and strands the pip on its own. Tighten it so it holds one line. */
@media (max-width: 460px) {
  .hero__eyebrow {
    letter-spacing: 0.14em;
    gap: 8px;
  }
}

.hero__lede {
  margin: clamp(24px, 4vw, 36px) 0 0;
  max-width: 62ch;
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
}

.hero__lede p {
  margin: 0;
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.hero__lede .lede-lead {
  margin: 0;              /* it is an <h1>: drop the UA margin */
  font-family: var(--display);
  font-stretch: var(--display-stretch);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.stem {
  width: 2px;
  height: clamp(36px, 7vw, 64px);
  background: var(--rule-2);
  margin: clamp(32px, 6vw, 52px) 0;
}

.hero__step {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  font-size: clamp(36px, 9.5vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__kicker {
  margin: clamp(20px, 3vw, 30px) 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.btn-reel {
  margin-top: clamp(24px, 4vw, 34px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 2px solid var(--acid);
  color: var(--acid);
  border-radius: 0;
  cursor: pointer;
  padding: 16px 22px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(13px, 2.4vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.btn-reel:hover { background: var(--acid); color: var(--ink); }

/* Stands in for the reel button until the trailer exists. */
.hero__soon {
  margin: clamp(24px, 4vw, 34px) 0 0;
  font-weight: 800;
  font-size: clamp(13px, 2.4vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

/* ---------- Stat bar ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: var(--rule);
  border-bottom: 2px solid var(--rule);
  border-top: 2px solid var(--rule);
}

.stat {
  background: var(--ink);
  padding: 20px clamp(20px, 4vw, 32px);
}

.stat__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.stat__value {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  margin-top: 6px;
}

.stat__value--plain { font-weight: 400; }
.stat__value em { font-style: normal; color: var(--acid); }

/* "99/100" — the remaining count carries the accent, the capacity recedes. */
.stat__cap {
  color: var(--mute);
  font-weight: 400;
}

/* ---------- Main ---------- */

.intake {
  flex: 1;
  padding: clamp(44px, 8vw, 72px) clamp(20px, 4vw, 32px) clamp(64px, 10vw, 96px);
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.step-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
}

.tabs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 2px;
  background: var(--rule);
  border: 2px solid var(--rule);
}

.tab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  padding: clamp(20px, 4vw, 26px) clamp(18px, 4vw, 24px);
  cursor: pointer;
  border-radius: 0;
  font-family: var(--sans);
  border: 2px solid transparent;
  background: var(--tab);
  color: var(--paper);
  transition: background 240ms ease, color 240ms ease, border-color 160ms ease;
}

.tab:hover { border-color: var(--acid); }
.tab[aria-pressed="true"] { background: var(--acid); color: var(--ink); }

.tab__over {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.tab__name {
  font-family: var(--display);
  font-stretch: var(--display-stretch);
  font-size: clamp(18px, 4.4vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.track-note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute-2);
  max-width: 56ch;
}

.subtabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 2px;
  background: var(--rule);
  border: 2px solid var(--rule);
  width: 100%;
  max-width: 520px;
}

.subtabs--full { max-width: none; }

.subtab {
  padding: 16px 18px;
  cursor: pointer;
  border-radius: 0;
  text-align: left;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  background: var(--tab);
  color: var(--paper);
  transition: background 200ms ease, color 200ms ease, border-color 160ms ease;
}

.subtab:hover { border-color: var(--acid); }
.subtab[aria-pressed="true"] { background: var(--acid); color: var(--ink); }

.collegiate-mode {
  margin-top: 28px;
}

.collegiate-mode__label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

/* ---------- Fields ---------- */

.section {
  margin-top: 56px;
  border-top: 2px solid var(--rule);
  padding-top: 40px;
  display: grid;
  gap: 32px;
}

.fieldgrid {
  display: grid;
  gap: 32px;
}

.fieldgrid--pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.field {
  display: grid;
  gap: 10px;
}

.field__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}

.field__label .opt { color: var(--mute); }

.field input,
.field select,
.field textarea {
  background: var(--field);
  border: 2px solid var(--rule-2);
  border-left: 4px solid var(--acid);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  padding: 16px;
  border-radius: 0;
  width: 100%;
  min-width: 0;
  transition: border-color 160ms ease, background 160ms ease;
}

.field textarea {
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--rule-3);
  border-left-color: var(--acid);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--acid);
  background: var(--field-focus);
}

.field--muted input { border-left-color: var(--rule-2); }
.field--muted input:hover,
.field--muted input:focus { border-left-color: var(--acid); }

.choicegroup {
  display: grid;
  gap: 12px;
}

.choicegroup__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.intent {
  margin-top: 56px;
  border-top: 2px solid var(--rule);
  padding-top: 40px;
}

.intent__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}

.intent__tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2px;
  background: var(--rule);
  border: 2px solid var(--rule);
}

.tab__lead {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tab__sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.submit {
  margin-top: 48px;
  width: 100%;
  padding: clamp(20px, 4vw, 26px) clamp(18px, 4vw, 28px);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: var(--acid);
  color: var(--ink);
  text-align: left;
  font-family: var(--display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  font-size: clamp(18px, 4.5vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: background 180ms ease;
}

.submit:hover { background: var(--acid-hi); }
.submit[disabled] { opacity: 0.6; cursor: progress; }

.submit-note {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.form-error {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #FF6B4A;
}

/* ---------- Confirmation ---------- */

.confirm__mark {
  width: 44px;
  height: 44px;
  background: var(--acid);
  margin-bottom: 36px;
}

.confirm__title {
  margin: 0;
  font-family: var(--display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.confirm__line {
  margin: 28px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
  color: var(--mute-3);
}

.receipt {
  margin-top: 44px;
  border-top: 2px solid var(--rule);
  padding-top: 24px;
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.receipt__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt__row dt { color: var(--mute); margin: 0; }
.receipt__row dd { margin: 0; }
.receipt__row--accent dd { color: var(--acid); }

/* ---------- Video modal ---------- */

.reel {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: vfade 240ms ease both;
}

.reel__frame { width: 100%; max-width: 1000px; }

.reel__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.reel__title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
}

.reel__close {
  background: transparent;
  border: 2px solid var(--rule-2);
  color: var(--paper);
  border-radius: 0;
  cursor: pointer;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.reel__close:hover { border-color: var(--acid); color: var(--acid); }

.reel__stage {
  aspect-ratio: 16 / 9;
  border: 2px solid var(--rule);
  background: var(--field);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.colophon {
  border-top: 2px solid var(--rule);
  padding: 24px clamp(20px, 4vw, 32px);
  text-align: center;
}

.colophon a {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
}

.colophon a:hover { color: var(--acid); }
