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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f1f5f9;
  background: #0f1419;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}

.glow-a {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: #fd2401;
}

.glow-b {
  width: 280px;
  height: 280px;
  bottom: 10%;
  left: -80px;
  background: #0f766e;
  opacity: 0.25;
}

.brand {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
}

.brand-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

/* Tuile style icône iOS */
.app-tile {
  position: relative;
  display: block;
  width: 7.75rem;
  height: 7.75rem;
  padding: 0;
  margin: 0 0 1.25rem;
  border: none;
  border-radius: 1.65rem;
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 22px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 28px 52px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-tile:active {
  transform: translateY(0) scale(0.98);
}

.app-tile:focus-visible {
  outline: 2px solid #fd2401;
  outline-offset: 4px;
}

.app-tile.is-disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.app-tile.is-disabled:hover {
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 22px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-tile-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%);
  pointer-events: none;
}

.app-tile-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.app-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-tagline {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 18rem;
}

.app-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  background: #ffffff;
  color: #0f1419;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.store-button:hover {
  transform: translateY(-1px);
}

.store-button:active {
  transform: translateY(0);
}

.store-button.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.store-button-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.store-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-button-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
}

.store-button-store {
  font-size: 1.05rem;
  font-weight: 700;
}

.pending-notice {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  max-width: 20rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.08);
  border: 1px solid rgba(252, 211, 77, 0.25);
  border-radius: 0.75rem;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

.footer p {
  margin: 0.25rem 0;
}

.footer-note {
  color: #475569;
}
