:root {
  --bg-top: #ffffff;
  --bg-mid: #fdf9ea;
  --bg-bottom: #f5e7a8;
  --primary: #ceb549;
  --primary-dark: #a8922e;
  --text: #111827;
  --text-muted: #4b5563;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  --radius: 16px;
  --max-width: 720px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 2px solid var(--text);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 24px 0;
}

.card p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
}

.features {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-mid);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.features li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(206, 181, 73, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}

.footer {
  margin-top: auto;
  padding: 28px 16px 32px;
  border-top: 1px solid var(--border);
  background: rgba(245, 231, 168, 0.55);
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.social a:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copy {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.redirect-card {
  text-align: center;
  padding: 48px 28px;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.redirect-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .card {
    padding: 22px 18px;
  }

  .hero {
    padding-top: 36px;
  }
}
