/* =========================================================
   Foodlover Download Landing Page
   Design system: black & white base, sparing green accent,
   squircle corners, iOS-native feel.
   ========================================================= */

:root {
  --background: #fafafa;
  --foreground: #0a0a0a;
  --muted: #6b7280;
  --muted-bg: #f3f4f6;
  --border: #e5e7eb;
  --accent: #556b2f;
  --accent-hover: #404e27;
  --card-bg: #ffffff;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --muted: #9ca3af;
    --muted-bg: #1a1a1a;
    --border: #262626;
    --accent: #6b8538;
    --accent-hover: #7a9740;
    --card-bg: #141414;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   Layout
   ========================================================= */

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* =========================================================
   Logo
   ========================================================= */

.logo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 4px;
}

.logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =========================================================
   Typography
   ========================================================= */

.heading {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.subheading {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.5;
}

/* =========================================================
   Instruction Card (TikTok screen)
   ========================================================= */

.instruction-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin-top: 8px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.45;
  padding-top: 4px;
}

.step-text strong {
  font-weight: 600;
}

.dots-icon {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  vertical-align: middle;
  margin: 0 2px;
  color: var(--accent);
}

/* =========================================================
   Arrow Hint (TikTok screen)
   ========================================================= */

.arrow-hint {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 80px;
  height: 80px;
  color: var(--accent);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: bounce 1.6s ease-in-out infinite;
}

.arrow-hint svg {
  width: 60px;
  height: 60px;
}

.arrow-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
  white-space: nowrap;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* =========================================================
   Buttons
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 120ms ease, opacity 120ms ease;
  -webkit-tap-highlight-color: transparent;
  margin-top: 4px;
}

.button:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.button-primary {
  background: var(--foreground);
  color: var(--background);
}

.button-secondary {
  background: var(--muted-bg);
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* =========================================================
   Spinner
   ========================================================= */

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--muted-bg);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 8px 0;
}

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

/* =========================================================
   Small screens
   ========================================================= */

@media (max-height: 640px) {
  .heading {
    font-size: 24px;
  }
  .logo-wrap {
    width: 76px;
    height: 76px;
  }
  .arrow-hint {
    width: 60px;
    height: 60px;
  }
}
