:root {
  --red: #d71920;
  --red-dark: #a50f15;
  --ink: #1f1414;
  --muted: #6b5b5b;
  --card: #ffffff;
  --bg: #fff5f4;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(215, 25, 32, 0.18), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(215, 25, 32, 0.14), transparent 45%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 28px;
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(165, 15, 21, 0.18);
}

/* Logo từng app (khách / tài xế / nhà hàng): giữ trọn ảnh, không cắt. */
.icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 28px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px rgba(165, 15, 21, 0.22);
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding: 14px 20px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* Vệt sáng chéo nhẹ trên nút - cảm giác bóng như huy hiệu cửa hàng. */
.store::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

/* Nội dung nằm TRÊN vệt sáng để logo/chữ không bị mờ. */
.store .logo,
.store .text,
.store .arrow { position: relative; z-index: 1; }

.store .badge { z-index: 2; }

.store:active { transform: scale(0.98); }

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

.store .logo {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.store svg { width: 28px; height: 28px; }

.store .text { text-align: left; line-height: 1.15; }

.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.8; }

.store strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }

.store .arrow {
  margin-left: auto;
  font-size: 22px;
  opacity: 0.55;
}

/* App Store: đen bóng → xám than, logo Apple trắng. */
.store.apple {
  background: linear-gradient(135deg, #2b2b2e 0%, #0b0b0c 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.store.apple .logo { background: rgba(255, 255, 255, 0.1); }

/* Google Play: nền trắng, logo tam giác 4 màu chuẩn nhận diện Google. */
.store.google {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: #202124;
  border-color: #dfe3ea;
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.12);
}

.store.google .logo { background: #eef2f8; }

.store.google::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 40%);
}

/* Nút đúng loại máy của khách: lên đầu, viền phát sáng đỏ thương hiệu. */
.store.recommended {
  order: -1;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--red),
    0 16px 32px rgba(215, 25, 32, 0.35);
  animation: glow 2.4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--red), 0 16px 32px rgba(215, 25, 32, 0.30); }
  50%      { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff4d55,  0 18px 40px rgba(215, 25, 32, 0.50); }
}

@media (prefers-reduced-motion: reduce) {
  .store.recommended { animation: none; }
}

.badge {
  display: none;
  position: absolute;
  top: -1px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 0 0 10px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff3b44, var(--red));
}

.store.recommended .badge { display: block; }

.buttons { padding: 6px; }

.note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 20px;
  font-size: 12px;
  color: #a39494;
}

/* Liên kết sang trang tải app khác (khách / tài xế / nhà hàng). */
.other-apps {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.other-apps a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.other-apps a:hover { text-decoration: underline; }
