/* Tacos King — single-card download landing. */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background:
    radial-gradient(80% 100% at 50% 0%, #FFE066 0%, #FFCC00 60%);
  position: relative;
  overflow-x: hidden;
}

/* The signature diagonal-line pattern over the yellow. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(17, 17, 17, 0.05) 0 2px,
      transparent 2px 18px
    );
  pointer-events: none;
  z-index: 0;
}

main.card {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 56px);
  gap: clamp(18px, 3vw, 28px);
}

.logo {
  width: clamp(160px, 28vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
  user-select: none;
  -webkit-user-drag: none;
}

h1 {
  font-family: 'Archivo Black', 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  color: #111111;
  max-width: 16ch;
}

.sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  margin: 0;
  color: #111111;
  opacity: 0.85;
  max-width: 36ch;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(8px, 2vw, 16px);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px;
}

.badge:hover { transform: translateY(-2px); filter: brightness(1.04); }
.badge:active { transform: translateY(0); }

.badge:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 4px;
}

.badge img {
  display: block;
  height: 56px;
  width: auto;
}

/* The Google Play badge has ~12% built-in transparent padding around the
   visible glyph. Render it slightly larger so the visible glyphs match
   the Apple badge's optical size. */
.badge-google img {
  height: 68px;
  margin: -6px 0;
}

@media (min-width: 720px) {
  .badge img { height: 64px; }
  .badge-google img { height: 78px; margin: -7px 0; }
}

@media (max-width: 380px) {
  .badge img { height: 48px; }
  .badge-google img { height: 58px; margin: -5px 0; }
  .badges { gap: 10px; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #111111;
  color: #FFCC00;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 10;
  max-width: calc(100vw - 32px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Respect users who'd rather not have animations. */
@media (prefers-reduced-motion: reduce) {
  .badge { transition: none; }
  .toast { transition: opacity 0.1s ease; }
}
