/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FFFCF6;
  color: #1a1a1a;
}

a { color: inherit; text-decoration: none; }

/* ============================================
   Landing Page
   ============================================ */

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(to bottom, #F93B27, #FFAC30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 64px 16px 32px;
  gap: 32px;
  text-align: center;
  color: white;
}

/* Welcome header */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.landing-header img {
  width: 40px;
  height: 20px;
}

.landing-header span { font-size: 18px; }
.landing-header strong { font-size: 18px; font-weight: 700; }

/* Tagline */
.landing-tagline {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 400px;
}

/* Category icons grid */
.categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.categories-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 78px;
}

.categories-row.centered {
  justify-content: space-evenly;
  padding: 0 64px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 4px;
}

.category-item img {
  width: 40px;
  height: 40px;
}

.category-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA section */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: white;
  color: #F93B27;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.9; }

/* Download badges */
.download-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.download-badges a { display: block; }

.download-badges img {
  height: 40px;
  width: auto;
}

/* Login link */
.login-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
}

.login-row a {
  font-weight: 700;
  text-decoration: underline;
}

/* Footer links */
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-links a:hover { text-decoration: underline; }
.footer-dot { font-weight: 700; }

/* ============================================
   Legal Pages (Terms, Privacy)
   ============================================ */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 32px;
  border-bottom: 1px solid #eee;
  margin-bottom: 32px;
}

.legal-nav img { height: 20px; }
.legal-nav a { font-weight: 600; color: #F93B27; }

.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: #666;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul, .legal-page ol {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page a { color: #F93B27; text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 380px) {
  .landing { padding: 48px 12px 24px; gap: 24px; }
  .landing-tagline { font-size: 24px; }
  .categories-row.centered { padding: 0 40px; }
}

@media (min-width: 768px) {
  .landing { padding: 80px 24px 48px; }
  .landing-tagline { font-size: 36px; max-width: 500px; }
}
