/* =========================================================
   Volley Dex — "Night Court"
   Floodlit indoor court after dark. Mikasa-ball palette,
   broadcast-scoreboard type, court-tape geometry.
   ========================================================= */

:root {
  /* Surfaces — deep court navy, not neutral black */
  --void: #070910;
  --court: #0d111a;
  --court-2: #131926;
  --court-3: #1a2233;

  /* Court tape */
  --line: rgba(233, 238, 250, 0.10);
  --line-soft: rgba(233, 238, 250, 0.055);
  --line-hard: rgba(233, 238, 250, 0.20);

  /* Ink */
  --ink: #eef1f8;
  --ink-dim: #98a2ba;
  --ink-faint: #5d6880;

  /* Accents — Mikasa yellow / net blue */
  --serve: #ffd400;
  --serve-deep: #e0b400;
  --net: #2f6bff;
  --flag: #ff4d3d;
  --live: #29d17c;

  --shell: min(1160px, 100% - 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 4.5rem; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: "Chivo", ui-sans-serif, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Atmosphere: floodlights + court grid + grain ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    /* floodlight bloom, top */
    radial-gradient(90ch 60ch at 50% -25%, rgba(255, 212, 0, 0.10), transparent 60%),
    /* cool rake from the left */
    radial-gradient(70ch 70ch at 8% 105%, rgba(47, 107, 255, 0.14), transparent 62%),
    /* court tape grid */
    repeating-linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 96px),
    var(--void);
  -webkit-mask-image: radial-gradient(120ch 90ch at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120ch 90ch at 50% 30%, #000 30%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: "Anton", ui-sans-serif, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.94;
  margin: 0;
}

a {
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--serve);
}

/* Wordmark ------------------------------------------------ */

.wordmark {
  display: inline-block;
  white-space: nowrap;
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.86;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span {
  position: relative;
  color: var(--serve);
}

/* Tape underscore under the accented word. */
.wordmark span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.075em;
  background: var(--serve);
  transform-origin: left;
  animation: tape-in 0.9s var(--ease) 0.35s both;
}

.wordmark--sm {
  font-size: 1.375rem;
}

@keyframes tape-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line-hard);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
    background-color 0.35s var(--ease), transform 0.18s var(--ease);
}

/* sweep fill on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--serve);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.42s var(--ease);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover {
  color: var(--void);
  border-color: var(--serve);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--serve);
  outline-offset: 3px;
}

.btn--primary {
  --btn-bg: var(--serve);
  --btn-ink: var(--void);
  border-color: var(--serve);
  font-weight: 700;
}

.btn--primary::before {
  background: var(--ink);
}

.btn--primary:hover {
  color: var(--void);
  border-color: var(--ink);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink-dim);
}

.btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.688rem;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(9, 12, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar__nav {
  display: flex;
  gap: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--serve);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.topbar__nav a:hover,
.topbar__nav a.is-active {
  color: var(--ink);
}

.topbar__nav a:hover::after,
.topbar__nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.topbar__user {
  margin-left: auto;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ==========================================================
   Landing / marketing page
   ========================================================== */

.hl { color: var(--serve); }

/* --- sticky marketing header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 12, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
}

/* --- section rhythm --- */
.section {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section__head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

.section__sub {
  margin-top: 1rem;
  color: var(--ink-dim);
  font-weight: 300;
  font-size: 1.05rem;
  text-wrap: pretty;
}

/* --- hero --- */
.hero {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.hero__title {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  margin: 0.4rem 0 0;
}

.hero__title .line2 { display: block; }

.hero__lede {
  max-width: 40rem;
  margin: 1.6rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--ink-dim);
  text-wrap: balance;
}

.hero__lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

/* --- interactive rally timeline (the signature) --- */
.mock {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--court-2), var(--court));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.mock__screen {
  position: relative;
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 8%, #142138 0%, #0a1120 62%);
}

.mock__court {
  position: absolute;
  inset: 14% 20%;
  border: 2px solid #2a3a5c;
  border-radius: 6px;
  transform: perspective(560px) rotateX(40deg);
}

.mock__court::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: var(--net);
  box-shadow: 0 0 16px var(--net);
}

.mock__court::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 25%;
  bottom: 25%;
  border-top: 1.5px dashed #2a3a5c;
  border-bottom: 1.5px dashed #2a3a5c;
}

.mock__label {
  position: relative;
  text-align: center;
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
}

.mock__label .who { color: var(--serve); }

.mock__label small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

.mock__timeline {
  padding: 1.1rem 1.2rem 1.4rem;
  border-top: 1px solid var(--line);
}

.mock__hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}

.mock__track {
  position: relative;
  height: 46px;
  background: rgba(4, 6, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.mock__serve {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 2px;
  background: var(--serve);
  opacity: 0.8;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s;
}

.mock__serve.opp { background: var(--net); }

.mock__serve:hover {
  transform: scaleY(1.15);
  box-shadow: 0 0 12px currentColor;
  opacity: 1;
}

.mock__serve.active {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.3), 0 0 16px var(--serve);
}

.mock__serve.opp.active {
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.3), 0 0 16px var(--net);
}

.mock__break {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: repeating-linear-gradient(45deg, #1c2942 0 4px, transparent 4px 8px);
  border-inline: 1px solid var(--line);
}

.mock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mock__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* --- cards: features + steps --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--court-2), var(--court));
}

.card__ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 212, 0, 0.09);
  border: 1px solid var(--serve-deep);
  margin-bottom: 1rem;
}

.card__ic svg {
  width: 20px;
  height: 20px;
  stroke: var(--serve);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-dim); font-size: 0.95rem; font-weight: 300; }

.steps { counter-reset: step; }

.step {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--court-2), var(--court));
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--serve);
  margin-bottom: 0.8rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-dim); font-size: 0.95rem; font-weight: 300; }

/* --- pricing --- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.6rem;
  background: linear-gradient(160deg, var(--court-2), var(--court));
}

.tier--feature {
  border-color: var(--serve-deep);
  background: linear-gradient(180deg, rgba(255, 212, 0, 0.06), var(--court) 45%);
}

.tier__name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tier--feature .tier__name { color: var(--serve); }

.tier__price {
  font-family: "Anton", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem;
}

.tier__price small {
  font-family: "Chivo", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-dim);
}

.tier ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }

.tier li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.tier li::before { content: "\25B8"; position: absolute; left: 0; color: var(--serve); }

/* --- faq --- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--court-2), var(--court));
  margin-bottom: 0.7rem;
  padding: 0 1.3rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: "Anton", sans-serif;
  color: var(--serve);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p {
  color: var(--ink-dim);
  font-weight: 300;
  padding: 0 0 1.2rem;
  max-width: 60rem;
}

/* --- closing cta --- */
.closer {
  border-top: 2px solid var(--serve);
  background: linear-gradient(180deg, rgba(255, 212, 0, 0.05), transparent 70%);
  text-align: center;
}

.closer .section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.closer h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }

.closer p {
  max-width: 38rem;
  margin: 1rem auto 2rem;
  color: var(--ink-dim);
  font-weight: 300;
}

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .section { padding-block: 2.8rem; }

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer nav a { color: var(--ink-faint); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

.site-footer__legal {
  margin-top: 1.8rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 60rem;
}

/* entrance animation — CSS-only so content is NEVER left hidden by a
   failed/late script. Ends visible via fill mode `both`; under
   prefers-reduced-motion the global duration override lands it on the
   final (visible) frame instantly. */
.reveal {
  animation: reveal-in 0.7s var(--ease) both;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Panels / cards ---------- */

.shell {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.shell--narrow {
  width: min(440px, 100% - 2.5rem);
}

/* vertically centred single-card pages (login) */
.shell--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-block: 3rem;
}

.panel {
  position: relative;
  background: linear-gradient(160deg, var(--court-2), var(--court));
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

/* tape strip across the panel top */
.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 74px;
  height: 3px;
  background: var(--serve);
}

.panel__title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.panel__sub {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
}

/* when the sub lives inside a step form, the flex gap adds the rest */
.form .panel__sub {
  margin-bottom: 0.9rem;
}

.page-head {
  margin-bottom: 1.85rem;
}

.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form.hidden,
.hidden {
  display: none;
}

label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-hard);
  border-radius: 2px;
  background: rgba(4, 6, 12, 0.55);
  color: var(--ink);
  font-family: "Chivo", sans-serif;
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input::placeholder {
  color: var(--ink-faint);
}

input:focus {
  outline: none;
  border-color: var(--serve);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.14);
}

select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-hard);
  border-radius: 2px;
  background: rgba(4, 6, 12, 0.55);
  color: var(--ink);
  font-family: "Chivo", sans-serif;
  font-size: 1rem;
}

select:focus {
  outline: none;
  border-color: var(--serve);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.14);
}

.label-optional {
  color: var(--ink-faint);
  letter-spacing: 0;
  text-transform: none;
}

.field-hint {
  margin: -0.1rem 0 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--serve);
  background: rgba(255, 212, 0, 0.08);
  color: var(--ink);
  font-size: 0.813rem;
}

.notice--ok {
  border-left-color: var(--live);
  background: rgba(41, 209, 124, 0.08);
}

.notice--error {
  border-left-color: var(--flag);
  background: rgba(255, 77, 61, 0.09);
  color: #ffb3ab;
}

.inline-form {
  display: inline;
}

.inline-form .btn {
  margin: 0;
}

/* the 6-digit code deserves scoreboard treatment */
#pin {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  padding-block: 0.75rem;
}

.form .btn {
  margin-top: 0.9rem;
}

.hint {
  margin: 0 0 1.4rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
}

.hint strong {
  color: var(--serve);
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
}

.error {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--flag);
  background: rgba(255, 77, 61, 0.09);
  color: #ffb3ab;
  font-size: 0.813rem;
}

.error.hidden {
  display: none;
}

.form-foot {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.688rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-align: center;
}

.form-foot a {
  color: var(--ink-dim);
}

/* ---------- Profile ---------- */

.datalist {
  margin: 0;
  border-top: 1px solid var(--line);
}

.datalist div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.datalist dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.datalist dd {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.badge--admin {
  color: var(--serve);
  background: rgba(255, 212, 0, 0.09);
}

/* ---------- Player ---------- */

.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.stage video {
  display: block;
  width: 100%;
  height: auto;
  /* keep the whole player above the fold on laptop screens */
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}

/* corner registration marks — broadcast framing */
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--serve);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.stage::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.stage::after {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.688rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--live);
}

.dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(41, 209, 124, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(41, 209, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 209, 124, 0); }
}

/* ---------- Tables ---------- */

.table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.75rem 0 0.85rem;
}

.table-head h2 {
  font-size: 1.125rem;
  color: var(--ink);
}

.count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--court-2), var(--court));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  white-space: nowrap;
}

thead th {
  position: sticky;
  top: 0;
  padding: 0.75rem 1.1rem;
  background: var(--court-3);
  border-bottom: 1px solid var(--line-hard);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: left;
}

tbody td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background-color 0.2s var(--ease);
}

tbody tr:hover {
  background: rgba(255, 212, 0, 0.045);
}

td.num {
  color: var(--ink-faint);
}

.flag-yes { color: var(--live); }
.flag-no  { color: var(--ink-faint); }

.empty {
  padding: 2rem 1.1rem;
  color: var(--ink-faint);
  font-size: 0.813rem;
  text-align: center;
}

/* ---------- Service status ---------- */

.status-hero {
  --tone: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone);
  border-radius: 3px;
  background: linear-gradient(160deg, var(--court-2), var(--court));
}

.status-hero--live    { --tone: var(--live); }
.status-hero--stale   { --tone: var(--serve); }
.status-hero--waiting { --tone: var(--ink-dim); }
.status-hero--offline { --tone: var(--flag); }

.status-lamp {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 0 var(--tone);
}

.status-hero--live .status-lamp {
  animation: pulse 2.4s ease-out infinite;
}

.status-head {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  color: var(--ink);
}

.status-sub {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-dim);
}

.status-recheck {
  margin-left: auto;
  flex: none;
}

.queue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.queue-cell {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1rem 1.2rem;
  background: linear-gradient(160deg, var(--court-2), var(--court));
}

.queue-cell b {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.queue-cell span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.queue-cell--fail b { color: var(--flag); }

.job-error {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--flag);
}

.table-note {
  margin: 0.75rem 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.688rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

@media (max-width: 560px) {
  .queue-grid { grid-template-columns: repeat(2, 1fr); }
  .status-recheck { display: none; }
}

/* ---------- Entrance choreography ---------- */

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

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .tiers {
    grid-template-columns: 1fr;
  }

  .site-footer__grid { flex-direction: column; }
}

@media (max-width: 760px) {
  /* keep only the CTA button in the header; anchors live in the page */
  .site-nav a:not(.btn) { display: none; }

  .mock__screen { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1160px, 100% - 2rem);
  }

  /* row 1: wordmark + log out, row 2: nav. The email is dropped —
     it's too long to sit inline and lives on /profile anyway. */
  .topbar {
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  .topbar__user {
    display: none;
  }

  #logout-btn {
    margin-left: auto;
  }

  .topbar__nav {
    order: 5;
    width: 100%;
    gap: 1.15rem;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* long emails have nowhere to go on one line — stack the pairs */
  .datalist div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .datalist dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
