/* xs2-deeplink-site — minimal brand-aligned styles
 * Brand tokens mirrored from xs2-visitor-app design tokens:
 *   primary    #1A2445   navy
 *   primary-2  #2A3868   navy light (for gradient)
 *   accent     #66C76F   green
 *   bg         #FAFAFA
 *   text       #1A2445
 *   muted      #6B7280
 */

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FAFAFA;
  color: #1A2445;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #1A2445 0%, #2A3868 100%);
  padding: 56px 24px 96px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero .bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bubble-1 { width: 180px; height: 180px; top: -40px; left: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.bubble-2 { width: 120px; height: 120px; top: 30px; right: -30px;
  background: radial-gradient(circle at 40% 40%, rgba(102,199,111,0.12), rgba(102,199,111,0.03)); }
.bubble-3 { width: 90px; height: 90px; bottom: 40px; left: 20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); }
.bubble-4 { width: 60px; height: 60px; top: 50%; right: 18%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent); }

.hero-logo {
  position: relative;
  z-index: 2;
  width: 180px;
  height: auto;
  margin: 8px auto 16px;
  display: block;
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 16px 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero p {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 72px;
  display: block;
}

/* -- Content -------------------------------------------------------------- */

.content {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: -40px auto 0;
  padding: 0 20px 40px;
  position: relative;
  z-index: 3;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(26, 36, 69, 0.04),
    0 4px 12px rgba(26, 36, 69, 0.06),
    0 12px 32px rgba(26, 36, 69, 0.08);
  padding: 24px;
  text-align: center;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1A2445;
}

.card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #6B7280;
}

.card .small {
  font-size: 12px;
  color: #9CA3AF;
}

.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(26, 36, 69, 0.12);
  border-top-color: #66C76F;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 8px auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -- Buttons / store badges ---------------------------------------------- */

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: #1A2445;
  color: #fff;
}

.btn-primary:hover {
  background: #232F5A;
}

.btn-accent {
  background: #66C76F;
  color: #fff;
}

.btn-accent:hover {
  background: #57b860;
}

.btn-store {
  background: #000;
  color: #fff;
}

.btn-store .store-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.btn-secondary {
  background: transparent;
  color: #1A2445;
  border-color: rgba(26, 36, 69, 0.16);
}

.btn-link {
  background: transparent;
  color: #1A2445;
  text-decoration: underline;
  font-weight: 500;
  padding: 8px 4px;
  height: auto;
}

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

footer.site-footer {
  margin-top: auto;
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
}

/* -- Utility -------------------------------------------------------------- */

.hidden {
  display: none !important;
}

.error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .hero { padding: 80px 24px 120px; }
  .hero h1 { font-size: 32px; }
  .btn-row { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .btn { min-width: 200px; }
}
