/* ==========================================================================
   BarParty landing page
   Brand: neon speech bubble + beer mug (see ../logo). Neon tubes on a brick-night background.
   Mobile-first; no build step required.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #120d10;
  --surface: #1b1418;
  --surface-2: #231a1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #fbf3f5;
  --text-muted: #b8aab1;
  --text-dim: #948690;

  --amber: #ffb627;
  --coral: #ff6b5a;
  --pink: #ff4f9a;
  --violet: #8b6cff;
  --teal: #2ee6b6;
  --foam: #fff3da;
  --error: #ff7a8e;
  --on-accent: #1f0712;
  --grad: linear-gradient(120deg, #ff4f9a 0%, #ff7a6b 55%, #ffb627 100%);

  /* Neon glows (text-shadow): white-hot core, colored halo */
  --glow-amber: 0 0 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 182, 39, 0.75), 0 0 20px rgba(255, 182, 39, 0.4);
  --brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Crect width='120' height='60' fill='%23241a1f'/%3E%3Cpath d='M0 1H120M0 31H120M60 0V30M0 30V60M120 30V60' stroke='%23150f12' stroke-width='3'/%3E%3C/svg%3E");

  --radius: 20px;
  --radius-lg: 28px;

  --font-display: "Tilt Neon", ui-rounded, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 79, 154, 0.35);
  color: #fff;
}

/* ---------- Utilities ---------- */
.container {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only,
.is-done .form-status {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the sprite rendered (not display:none) so its gradient works everywhere. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.nowrap {
  white-space: nowrap;
}

/* Hosts for the <use href="#i-mark"> logo mark; each can override the stroke width. */
.mark-svg {
  stroke-width: 10;
}

/* Honeypot field for bots — hidden from people and assistive tech */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.875rem;
  --pad-x: 1.375rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font: 650 1rem/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--primary {
  background: var(--pink);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 14px rgba(255, 79, 154, 0.55), 0 0 36px rgba(255, 79, 154, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 18px rgba(255, 79, 154, 0.75), 0 0 48px rgba(255, 79, 154, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--sm {
  --pad-y: 0.625rem;
  --pad-x: 1.05rem;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-busy="true"] {
  cursor: progress;
  filter: saturate(0.7);
}

.btn[aria-busy="true"] .icon {
  animation: nudge 0.9s ease-in-out infinite;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 18, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.site-header .btn {
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  /* The lockup SVG includes room for its glow; pull it back so the ink lines up with the gutter. */
  margin-left: -6px;
}

.brand__lockup {
  width: auto;
  height: 54px;
}

@media (max-width: 420px) {
  .brand__lockup {
    height: 46px;
  }
}

@media (max-width: 350px) {
  .brand__lockup {
    height: 38px;
  }
}

.site-nav {
  display: none;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }

  .site-header .btn {
    margin-left: 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px));
  padding-bottom: clamp(88px, 12vw, 150px);
  overflow: clip;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 30% at 50% 24%, rgba(255, 79, 154, 0.22), transparent 70%),
    radial-gradient(30% 25% at 30% 26%, rgba(46, 230, 182, 0.10), transparent 70%),
    radial-gradient(60% 35% at 50% 80%, rgba(255, 182, 39, 0.08), transparent 70%),
    var(--brick);
}

/* Vignette, and fade the brick into the page at the bottom */
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 30%, transparent 35%, rgba(10, 6, 8, 0.72)),
    linear-gradient(180deg, rgba(18, 13, 16, 0.2) 0%, transparent 18%, transparent 62%, var(--bg) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 182, 39, 0.5);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-out infinite;
}

.hero__logo {
  width: min(780px, 100% + 24px);
  /* The SVG carries transparent room for its glow; tuck it in so the spacing looks even. */
  margin: 4px -12px -18px;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .hero__logo {
    width: min(400px, 100% + 24px);
    margin-bottom: -10px;
  }
}

.hero__lede {
  max-width: 700px;
  margin-top: 22px;
  color: var(--text-muted);
  text-wrap: balance;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero-form {
  width: 100%;
  max-width: 520px;
  margin-top: 32px;
}

.hero-form__row {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form__row:focus-within {
  border-color: rgba(255, 182, 39, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.14), 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}

.hero-form__row:has([aria-invalid="true"]) {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(255, 122, 142, 0.14);
}

.hero-form input {
  flex: 1;
  min-width: 0;
  padding: 0 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.hero-form input::placeholder {
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .hero-form__row {
    flex-direction: column;
    padding: 8px;
    border-radius: 20px;
  }

  .hero-form input {
    padding: 0.85rem 0.75rem;
  }
}

.form-status {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-status:empty {
  margin: 0;
}

.form-status.is-error {
  color: var(--error);
}

.form-note {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points .icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
  stroke-width: 2.25;
}

/* ---------- Form success state (shared) ---------- */
.is-done > :not(.form-success):not(.form-status) {
  display: none !important;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(46, 230, 182, 0.35);
  border-radius: 18px;
  background: rgba(46, 230, 182, 0.08);
  text-align: left;
  outline: none;
  animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-success__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #06231b;
}

.form-success__icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.75;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.form-success__text {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.form-success__text strong {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Hero product preview ("stage")
   Everything inside scales with the stage width via container query units.
   ========================================================================== */
.stage {
  position: relative;
  max-width: 1000px;
  margin: clamp(48px, 6vw, 72px) auto clamp(40px, 7vw, 80px);
  container-type: inline-size;
}

.stage__glow {
  position: absolute;
  inset: 8% 12% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 79, 154, 0.35), rgba(139, 108, 255, 0.2) 55%, transparent);
  filter: blur(40px);
}

/* --- TV --- */
.tv {
  container-type: inline-size;
  width: 74cqi;
  margin-inline: auto;
  padding: 1cqi;
  border-radius: 2.2cqi;
  background: linear-gradient(180deg, #2a2a3e, #0f0f18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -40px rgba(255, 79, 154, 0.45),
    0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

.tv__screen {
  display: flex;
  flex-direction: column;
  gap: 2.6cqi;
  aspect-ratio: 16 / 9;
  padding: 3.8cqi 4.4cqi 3cqi;
  overflow: hidden;
  border-radius: 1.3cqi;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(139, 108, 255, 0.28), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(255, 79, 154, 0.22), transparent 55%),
    #110e1d;
}

.tv__bar {
  display: flex;
  align-items: center;
  gap: 2cqi;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.75cqi;
  font-weight: 600;
}

.tv__round {
  padding: 0.7cqi 1.7cqi;
  border-radius: 999px;
  background: rgba(255, 182, 39, 0.16);
  color: var(--amber);
}

.timer {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 7cqi;
  aspect-ratio: 1;
}

.timer svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer__track,
.timer__fill {
  fill: none;
  stroke-width: 3.5;
}

.timer__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.timer__fill {
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 36;
  transition: stroke 0.3s;
}

.stage.is-live .timer__fill {
  stroke-dashoffset: 0;
}

.stage.is-live.is-running .timer__fill {
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset var(--timer-duration, 10s) linear, stroke 0.3s;
}

.stage.is-low .timer__fill {
  stroke: var(--pink);
}

.timer__num {
  font-family: var(--font-display);
  font-size: 2.6cqi;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tv__question {
  max-width: 92%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 4.1cqi;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tv__answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5cqi;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.ans,
.pbtn {
  --c: var(--amber);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  color: #fff;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s, box-shadow 0.5s, color 0.4s;
}

.ans--a, .pbtn--a { --c: #ffb627; }
.ans--b, .pbtn--b { --c: #ff4f9a; }
.ans--c, .pbtn--c { --c: #8b6cff; }
.ans--d, .pbtn--d { --c: #2ee6b6; }

.ans {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  padding: 1.6cqi 2cqi;
  border-radius: 1.4cqi;
  font-family: var(--font-display);
  font-size: 3cqi;
  font-weight: 700;
}

/* Answer shapes (so colors are never the only cue) */
.ans__shape {
  flex: none;
  aspect-ratio: 1;
  background: var(--c);
}

.ans .ans__shape {
  width: 2.4cqi;
}

.ans--a .ans__shape, .pbtn--a .ans__shape { clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.ans--b .ans__shape, .pbtn--b .ans__shape { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ans--c .ans__shape, .pbtn--c .ans__shape { border-radius: 50%; }
.ans--d .ans__shape, .pbtn--d .ans__shape { border-radius: 18%; transform: scale(0.88); }

.ans::after {
  content: "✓";
  margin-left: auto;
  font-size: 2.6cqi;
  opacity: 0;
}

.stage.is-reveal .ans:not(.is-correct-answer) {
  opacity: 0.28;
}

.stage.is-reveal .ans.is-correct-answer {
  background: var(--c);
  color: var(--on-accent);
  transform: scale(1.03);
  box-shadow: 0 0 4cqi -0.5cqi var(--c);
}

.stage.is-reveal .ans.is-correct-answer .ans__shape {
  background: var(--on-accent);
}

.stage.is-reveal .ans.is-correct-answer::after {
  opacity: 1;
}

.tv__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqi;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6cqi;
}

.tv__status {
  display: grid;
  justify-items: end;
  margin-left: auto;
}

.tv__status > * {
  grid-area: 1 / 1;
  transition: opacity 0.4s;
}

.tv__count b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tv__reveal {
  color: var(--teal);
  font-weight: 700;
  opacity: 0;
}

.stage.is-reveal .tv__count {
  opacity: 0;
}

.stage.is-reveal .tv__reveal {
  opacity: 1;
}

.tv__venue {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqi;
}

.tv__venue-mark {
  width: 2.4cqi;
  height: 2.4cqi;
  stroke-width: 14;
}

/* --- Phone --- */
.phone {
  container-type: inline-size;
  position: absolute;
  right: -2cqi;
  bottom: -8cqi;
  width: 19cqi;
  padding: 0.7cqi;
  border-radius: 3.4cqi;
  background: linear-gradient(160deg, #34344a, #111119);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 60px -15px rgba(0, 0, 0, 0.85),
    0 24px 70px -24px rgba(139, 108, 255, 0.6);
  transform: rotate(4deg);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6cqi;
  aspect-ratio: 9 / 18.5;
  padding: 16cqi 7cqi 8cqi;
  overflow: hidden;
  border-radius: 14cqi;
  background: linear-gradient(180deg, #17142a, #0d0b17);
}

.phone__notch {
  position: absolute;
  top: 4cqi;
  left: 50%;
  width: 30cqi;
  height: 7cqi;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone__team {
  display: flex;
  align-items: center;
  gap: 4cqi;
  line-height: 1.2;
}

.phone__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 16cqi;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  color: var(--on-accent);
  font-size: 5.5cqi;
  font-weight: 800;
}

.phone__team b {
  display: block;
  color: #fff;
  font-size: 6.6cqi;
}

.phone__team small {
  color: var(--text-dim);
  font-size: 5.2cqi;
}

.phone__answers {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  gap: 4cqi;
}

.pbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4cqi;
  border-radius: 6cqi;
  font-family: var(--font-display);
  font-size: 11cqi;
  font-weight: 800;
}

.pbtn .ans__shape {
  width: 9cqi;
}

.pbtn.is-picked {
  background: var(--c);
  color: var(--on-accent);
  box-shadow: 0 0 0 1.2cqi rgba(255, 255, 255, 0.9);
}

.pbtn.is-picked .ans__shape {
  background: var(--on-accent);
}

.stage.is-reveal .pbtn:not(.is-picked) {
  opacity: 0.25;
}

.phone__status {
  display: grid;
  padding: 4.5cqi;
  border-radius: 5cqi;
  background: rgba(255, 255, 255, 0.06);
  font-size: 5.6cqi;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.4s;
}

.phone__status > * {
  grid-area: 1 / 1;
  transition: opacity 0.4s;
}

.phone__correct {
  color: var(--teal);
  opacity: 0;
}

.stage.is-reveal .phone__status {
  background: rgba(46, 230, 182, 0.14);
}

.stage.is-reveal .phone__locked {
  opacity: 0;
}

.stage.is-reveal .phone__correct {
  opacity: 1;
}

/* --- Leaderboard card --- */
.lb {
  container-type: inline-size;
  position: absolute;
  left: -2cqi;
  bottom: -13cqi;
  width: 23cqi;
  padding: 1.5cqi;
  border: 1px solid var(--border-strong);
  border-radius: 2cqi;
  background: rgba(22, 20, 36, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transform: rotate(-3deg);
}

.lb__title {
  display: flex;
  align-items: center;
  gap: 3cqi;
  margin-bottom: 4.5cqi;
  color: var(--amber);
  font-size: 5cqi;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb__title .icon {
  width: 7cqi;
  height: 7cqi;
}

.lb__rows {
  --gap: 3cqi;
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb__row {
  display: flex;
  align-items: center;
  gap: 4cqi;
  padding: 3.6cqi 4.4cqi;
  border: 1px solid transparent;
  border-radius: 4cqi;
  background: rgba(255, 255, 255, 0.05);
  font-size: 5.4cqi;
  transform: translateY(calc(var(--shift, 0) * (100% + var(--gap))));
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lb__row.is-you {
  border-color: rgba(255, 79, 154, 0.4);
  background: rgba(255, 79, 154, 0.14);
}

.lb__pos {
  width: 5cqi;
  color: var(--text-dim);
  font-weight: 800;
}

.lb__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.lb__pts {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lb__pts.is-bump {
  animation: bump 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--teal);
}

@container (max-width: 700px) {
  .tv {
    width: 88cqi;
    margin-left: 0;
  }

  .phone {
    right: 0;
    bottom: -22cqi;
    width: 27cqi;
  }

  .lb {
    display: none;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 112px);
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 14%, rgba(255, 255, 255, 0.022) 86%, transparent);
}

.section--tight {
  padding-block: clamp(56px, 7vw, 88px);
}

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: #ffe2a6;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: var(--glow-amber);
}

.section-head h2,
.venues h2,
.signup h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  letter-spacing: -0.015em;
}

.section-lede {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

/* Colored icon tile used by steps and cards */
.step__icon,
.card__icon {
  --c: var(--amber);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
  color: var(--c);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.step:nth-child(2) .step__icon { --c: var(--pink); }
.step:nth-child(3) .step__icon { --c: var(--violet); }
.step:nth-child(4) .step__icon { --c: var(--teal); }

.step__num {
  position: absolute;
  top: 22px;
  right: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.96875rem;
}

/* ---------- Features (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card h3 {
  margin: 20px 0 10px;
  font-size: 1.375rem;
}

.card > p,
.card__copy p {
  color: var(--text-muted);
}

.card > p {
  margin-bottom: 24px;
}

.card > .mini,
.card > .chips {
  margin-top: auto;
}

.bento .card:nth-child(2) .card__icon { --c: var(--violet); }
.bento .card:nth-child(3) .card__icon { --c: var(--teal); }
.bento .card:nth-child(4) .card__icon { --c: var(--pink); }
.bento .card:nth-child(5) .card__icon { --c: var(--coral); }
.bento .card:nth-child(6) .card__icon { --c: var(--violet); }

.card--wide .mini,
.card--full .mini {
  margin-top: 24px;
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--wide,
  .card--full {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
  }

  .card--wide .mini,
  .card--full .mini {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .card--wide {
    grid-column: span 2;
  }
}

/* Mini UI mockups inside cards */
.mini {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(6, 6, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
}

.mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mini__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 182, 39, 0.12);
  color: var(--amber);
  font-size: 0.75rem;
  white-space: nowrap;
}

.mini__label {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.qrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.qrow + .qrow {
  margin-top: 8px;
}

.qrow.is-rolling {
  border-color: rgba(255, 182, 39, 0.3);
  background: rgba(255, 182, 39, 0.05);
}

.qrow__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.qrow__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.qrow__q {
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}

.qrow__a {
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
}

.qrow__skeleton {
  width: 88%;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.qrow__skeleton--short {
  width: 38%;
  margin-top: 5px;
}

.qrow__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-muted);
}

.qrow__btn.is-active {
  border-color: rgba(255, 182, 39, 0.5);
  background: rgba(255, 182, 39, 0.1);
  color: var(--amber);
}

.qrow__btn.is-active .icon {
  animation: spin 1.4s linear infinite;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  font-weight: 500;
}

.chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.chips li:nth-child(4n + 2)::before { background: var(--pink); }
.chips li:nth-child(4n + 3)::before { background: var(--violet); }
.chips li:nth-child(4n + 4)::before { background: var(--teal); }

.mini--grade {
  text-align: center;
}

.grade__answer {
  margin: 4px 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.grade__actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  margin-top: 14px;
}

.grade__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.grade__btn--no {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.grade__btn--yes {
  border-color: rgba(46, 230, 182, 0.4);
  background: rgba(46, 230, 182, 0.14);
  color: var(--teal);
}

.mini--pair {
  text-align: center;
}

.pair__code {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 12px;
}

.pair__code span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.pair__code span:nth-child(3) {
  margin-right: 8px;
}

.pair__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
}

.optin__stars {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 1.125rem;
  letter-spacing: 4px;
}

.optin__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.optin__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--amber);
  color: var(--on-accent);
}

.optin__box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.mini--team {
  display: grid;
  gap: 8px;
}

.member {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "avatar name role"
    "avatar scope role";
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.member__avatar {
  grid-area: avatar;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.member__avatar--1 { background: var(--amber); }
.member__avatar--2 { background: var(--pink); }
.member__avatar--3 { background: var(--teal); }

.member__name {
  grid-area: name;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.member__scope {
  grid-area: scope;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.3;
}

.member__role {
  grid-area: role;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* "Also on tap" list */
.also {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  padding: 28px clamp(20px, 3vw, 32px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .also {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 36px;
  }
}

.also__title {
  font-size: 1.125rem;
  white-space: nowrap;
}

.also__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.also__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.also__list .icon {
  color: var(--teal);
}

/* ---------- Why BarParty ---------- */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 820px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 79, 154, 0.8);
  border-radius: 14px;
  background: rgba(255, 79, 154, 0.1);
  color: #ffd1e4;
  box-shadow: 0 0 14px rgba(255, 79, 154, 0.45), inset 0 0 10px rgba(255, 79, 154, 0.25);
}

.benefit__icon .icon {
  stroke-width: 2;
}

.benefit h3 {
  margin: 22px 0 8px;
  font-size: 1.25rem;
}

.benefit p {
  color: var(--text-muted);
}

.compare-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  padding-top: 24px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

/* Keep row labels visible while the table scrolls sideways on phones */
.compare tbody th,
.compare thead td {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 22%;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.compare td {
  color: var(--text-muted);
}

.compare .compare__us {
  background: linear-gradient(180deg, rgba(255, 182, 39, 0.08), rgba(255, 79, 154, 0.07));
  color: var(--text);
  font-weight: 600;
}

.compare thead .compare__us {
  color: var(--text);
}

.compare__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare__brand svg {
  width: 26px;
  height: 26px;
  stroke-width: 12;
}

.compare tbody td.compare__us {
  position: relative;
  padding-left: 48px;
}

.compare tbody td.compare__us::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306231b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Venues ---------- */
.venues {
  max-width: 920px;
  text-align: center;
}

.venue-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.venue-list li {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
  font-weight: 500;
}

.venue-list li:first-child {
  border-color: transparent;
  background: var(--pink);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(255, 79, 154, 0.5);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
}

.faq__list {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s;
}

.faq details[open] {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 20px 24px;
  border-radius: 18px;
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f3ff' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.25s, background-color 0.25s;
}

.faq details[open] summary::after {
  background-color: rgba(255, 182, 39, 0.2);
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline-offset: -2px;
}

.faq details p {
  max-width: 68ch;
  padding: 0 24px 22px;
  color: var(--text-muted);
}

/* ---------- Signup ---------- */
.signup-section {
  padding-top: clamp(24px, 4vw, 48px);
}

.signup {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 182, 39, 0.14), transparent 55%),
    radial-gradient(70% 100% at 100% 100%, rgba(255, 79, 154, 0.16), transparent 55%),
    var(--surface);
}

@media (min-width: 920px) {
  .signup {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
  }
}

.signup__lede {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.perks {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.perks .icon {
  margin-top: 4px;
  color: var(--teal);
}

.signup-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(8, 8, 14, 0.6);
}

.signup-form .form-status,
.signup-form .form-note {
  margin-top: 0;
  text-align: center;
}

.signup-form .btn {
  margin-top: 4px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}

.field__req {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
}

.field-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field input::placeholder {
  color: var(--text-dim);
}

.field input:hover,
.field select:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--amber);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.16);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(255, 122, 142, 0.14);
}

.field select {
  padding-right: 42px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a7c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

.field select:has(option[value=""]:checked) {
  color: var(--text-dim);
}

.field select option {
  background: var(--surface-2);
  color: var(--text);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--amber);
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-footer .brand__lockup {
  height: 40px;
}

.site-footer__tag {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.site-footer__nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__legal {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

@media (min-width: 900px) {
  .site-footer__inner {
    flex-direction: row;
    gap: 20px 32px;
    text-align: left;
  }

  .site-footer__tag {
    margin-right: auto;
  }
}

/* ---------- Server-rendered status pages (404, no-JS sign-up result) ---------- */
.status-page {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 32px;
  min-height: 100vh;
  padding: 48px var(--gutter);
  text-align: center;
  background:
    radial-gradient(50% 40% at 20% 10%, rgba(255, 182, 39, 0.14), transparent 70%),
    radial-gradient(50% 40% at 85% 90%, rgba(255, 79, 154, 0.14), transparent 70%);
}

.status-page__card {
  max-width: 520px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.status-page h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.035em;
}

.status-page p {
  margin: 14px auto 28px;
  color: var(--text-muted);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { --delay: 80ms; }
[data-delay="2"] { --delay: 160ms; }
[data-delay="3"] { --delay: 240ms; }

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 182, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(46, 230, 182, 0); }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
