/* Crewgard waiting page
   Direction: night session, crew tag, guard tape. Asphalt base, signal yellow, ultraviolet second accent.
   Display type is Anton in caps, body is Barlow. */

:root {
  --asphalt: #0E0E12;
  --asphalt-2: #15151C;
  --surface: #1C1C25;
  --line: #2C2C38;
  --paper: #F5F3EA;
  --paper-dim: #B8B6AE;
  --muted: #7E7D86;
  --yellow: #FFD233;
  --yellow-ink: #1A1500;
  --violet: #8A7CFF;
  --go: #9BFF6B;

  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --tape: repeating-linear-gradient(135deg, var(--yellow) 0 14px, var(--asphalt) 14px 28px);
}

* { box-sizing: border-box; }

html { background: var(--asphalt); color: var(--paper); overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70rem 36rem at 100% -20%, rgba(138, 124, 255, 0.14), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(255, 210, 51, 0.08), transparent 60%),
    var(--asphalt);
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 1rem; z-index: 10; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* Guard tape */

.tape {
  height: 10px;
  background: var(--tape);
  opacity: 0.9;
}

/* Header */

.top {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}
.mark { width: 1.8rem; height: 1.8rem; color: var(--yellow); }

.lang { display: flex; gap: 0.2rem; }
.lang button {
  font: 700 0.8rem/1 var(--body);
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
}
.lang button:hover { color: var(--paper); }
.lang button[aria-current="true"] {
  color: var(--yellow-ink);
  background: var(--yellow);
}

/* Hero */

.hero {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.kicker {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper-dim);
  font-weight: 600;
  font-size: 1rem;
}
.tag {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  background: var(--violet);
  color: #0E0B1F;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 14ch;
  text-wrap: balance;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  color: var(--paper-dim);
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}

/* Buttons: squared, heavy, slanted shadow */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 100ms ease;
}
.btn.primary {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 5px 5px 0 var(--violet);
}
.btn.primary:hover { background: #FFDC5C; }
.btn.primary:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--violet); }
.btn.ghost {
  border-color: var(--paper);
  color: var(--paper);
  background: transparent;
}
.btn.ghost:hover { background: rgba(245, 243, 234, 0.08); }
.btn.ghost:active { transform: translate(1px, 1px); }

/* Phone mock */

.phone {
  position: relative;
  justify-self: center;
  width: min(100%, 21rem);
  aspect-ratio: 9 / 12.5;
  background:
    linear-gradient(160deg, #2A2440 0%, #15151C 50%, #0E0E12 100%);
  border: 6px solid #050507;
  border-radius: 30px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0.85rem 1rem;
  overflow: visible;
}

.sticker {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  transform: rotate(6deg);
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 3px 3px 0 var(--violet);
}

.phone-time {
  text-align: center;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(245, 243, 234, 0.92);
  margin-bottom: 1.1rem;
}

.toast {
  background: #1E1E28;
  color: var(--paper);
  border: 1px solid #34343F;
  border-left: 4px solid var(--yellow);
  border-radius: 14px;
  padding: 0.75rem 0.85rem 0.85rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-140%);
  opacity: 0;
}
.toast.in { animation: toast-in 600ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }

.toast-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.toast-app { font-weight: 700; color: var(--yellow); letter-spacing: 0.02em; }
.toast-title { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
.toast-body { font-size: 0.92rem; line-height: 1.35; margin-top: 0.2rem; color: var(--paper-dim); }

.toast-actions { display: flex; gap: 0.4rem; margin-top: 0.7rem; }
.chip {
  flex: 1 1 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  background: #2A2A36;
  color: var(--paper);
}
.chip.yes { background: var(--yellow); color: var(--yellow-ink); }

.tally {
  margin-top: 0.9rem;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid #2A2A36;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  opacity: 0;
}
.tally.in { animation: fade-in 400ms ease 700ms forwards; }

.live {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 0 rgba(155, 255, 107, 0.6);
  margin-right: 0.5rem;
  vertical-align: 0.55rem;
  animation: pulse 1.6s ease-out infinite;
}

.tally-count {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--yellow);
  margin-right: 0.5rem;
}
.tally-label { color: var(--paper-dim); font-size: 0.95rem; font-weight: 600; }
.tally-names {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.tally-names li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--paper);
  opacity: 0;
  animation: fade-in 300ms ease forwards;
}
.tally-names li span:last-child { color: var(--go); font-weight: 700; }
.tally-names li.late span:last-child { color: var(--muted); font-weight: 600; }

@keyframes toast-in {
  from { transform: translateY(-140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 255, 107, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(155, 255, 107, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .tally, .tally-names li, .live { animation: none !important; opacity: 1 !important; transform: none !important; }
  .btn { transition: none; }
}

/* Content blocks */

.block {
  max-width: 74rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.features li {
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.35rem;
  max-width: none;
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--line);
}
.features li:first-child::before { background: var(--tape); height: 6px; }
.features li:first-child h3 { color: var(--yellow); }
.features p { margin: 0; color: var(--paper-dim); max-width: var(--measure); }

.who-text p { max-width: var(--measure); color: var(--paper-dim); margin: 0 0 1rem; font-size: 1.1rem; }
.who-text p:last-child { margin-bottom: 0; }

.join { background: linear-gradient(180deg, transparent, rgba(138, 124, 255, 0.07)); }
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.join p { max-width: var(--measure); }
.join > p:first-of-type { color: var(--paper-dim); margin: 0 0 1.25rem; font-size: 1.1rem; }

/* Footer */

.foot {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { max-width: 48rem; margin: 0 0 0.75rem; }
.fine { color: var(--paper-dim); }

@media (max-width: 52rem) {
  .sticker { right: 0.4rem; top: -0.8rem; }
}

/* Larger screens */

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .features { grid-template-columns: 1fr 1fr; }
  .who { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
  .who h2 { margin: 0; }
}
