/* Shared palette and typography for the check-in landing page */
:root {
  color-scheme: dark;
  --bg: #06090f;
  --panel: rgba(15, 19, 26, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f4;
  --muted: #98a0c8;
  --accent: #82c0ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.35), transparent 40%),
    linear-gradient(180deg, #03050a 0%, #050b14 45%, #090f1c 100%);
}

main {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.location-card {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.25rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.location-card:hover,
.location-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.45);
  outline: none;
}

.location-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.location-count {
  color: var(--muted);
  font-size: 0.95rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.popout {
  width: min(520px, 100%);
  background: rgba(12, 16, 23, 0.95);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(12px);
}

.popout h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.popout-body {
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.popout-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popout-section[hidden] {
  display: none !important;
}

.section-title {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.popout-links {
  display: grid;
  gap: 0.65rem;
}

.popout-link {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: linear-gradient(140deg, rgba(130, 192, 255, 0.1), rgba(66, 163, 255, 0.1));
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.popout-link:hover,
.popout-link:focus-visible {
  border-color: var(--accent);
  background: linear-gradient(140deg, rgba(130, 192, 255, 0.18), rgba(66, 163, 255, 0.18));
  outline: none;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover,
.close-btn:focus-visible {
  color: var(--text);
  outline: none;
}

.ghost {
  width: 100%;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost:hover,
.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  outline: none;
}

@media (max-width: 520px) {
  .popout {
    padding: 1.2rem;
  }

  .popout h2 {
    font-size: 1.4rem;
  }
}

/* Floating help (?) icon — links to the setup & troubleshooting guide at /help */
.help-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.help-fab:hover,
.help-fab:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(130, 192, 255, 0.12);
  outline: none;
}
