/* Yuzli website styles
 * Palette mirrored from src/lib/theme.ts (cream field, lime wordmark,
 * sun-yellow scan accent). Wordmark/headings use Fredoka, body uses Nunito —
 * the same pairing as the app.
 */

:root {
  --cream-bg: #FDFBF5;
  --warm-bg: #F7F4EA;
  --card-tint: #F7F8E9;
  --card-white: #FFFFFF;

  --ink: #1F2419;
  --ink-dim: #2B3422;
  --ink-soft: #5C6A4F;
  --muted: #9DA391;
  --muted-light: #C2C6B5;

  --brand-green: #4D7E20;
  --brand-green-deep: #2D5210;
  --brand-green-soft: #688C28;
  --brand-yellow: #FFD649;
  --brand-yellow-deep: #E5B41A;

  --pill-bg: #EAF2D2;
  --pill-text: #4D7E20;

  --hairline: rgba(0, 0, 0, 0.05);
  --divider: rgba(0, 0, 0, 0.04);

  --font-display: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-bg) 0%, var(--warm-bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Soft floating blobs in the brand lime + sun-yellow */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blobs::before,
.blobs::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.blobs::before {
  background: var(--pill-bg);
  top: -120px;
  right: -120px;
  animation: drift 16s ease-in-out infinite;
}

.blobs::after {
  background: #FFF1C2;
  bottom: -160px;
  left: -160px;
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

/* Landing layout */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.landing-content {
  max-width: 540px;
  width: 100%;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  margin-bottom: 28px;
  box-shadow:
    0 12px 36px rgba(77, 126, 32, 0.22),
    0 4px 14px rgba(31, 36, 25, 0.08);
}

/* Score-style pill above the title */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.score-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green-soft);
}

.app-title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-green);
  margin-bottom: 14px;
  line-height: 1.05;
}

.tagline {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.description {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* Store badge / coming-soon */
.store-row {
  display: flex;
  justify-content: center;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream-bg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.coming-soon .badge-sub {
  color: var(--muted-light);
  font-weight: 600;
  font-size: 12px;
}

/* Footer */
.landing-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-green);
}

.copyright {
  color: var(--muted);
  font-size: 13px;
}

/* Legal / content pages */
.legal-page {
  position: relative;
  z-index: 1;
}

.legal-container {
  max-width: 760px;
  margin: 32px auto;
  padding: 40px 32px;
  background: var(--card-white);
  border-radius: 24px;
  box-shadow:
    0 12px 40px rgba(31, 36, 25, 0.08),
    0 2px 8px rgba(31, 36, 25, 0.04);
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.legal-header .back-link {
  color: var(--brand-green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.legal-header .back-link:hover {
  color: var(--brand-green-deep);
  text-decoration: underline;
}

.legal-container h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}

.legal-container .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-container h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.legal-container h3 {
  color: var(--ink-dim);
  font-size: 16px;
  font-weight: 800;
  margin: 18px 0 8px;
}

.legal-container p {
  color: var(--ink-dim);
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-container ul {
  margin: 0 0 16px 24px;
  color: var(--ink-dim);
}

.legal-container li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-container a {
  color: var(--brand-green);
  font-weight: 700;
}

.legal-container a:hover {
  color: var(--brand-green-deep);
}

/* Callout box for the health/allergen disclaimer */
.callout {
  background: var(--card-tint);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--brand-yellow-deep);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p {
  margin-bottom: 0;
  color: var(--ink-dim);
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

.legal-footer p {
  color: var(--muted);
  margin-bottom: 6px;
}

.legal-footer a {
  color: var(--brand-green);
}

/* Responsive */
@media (max-width: 600px) {
  .app-icon {
    width: 104px;
    height: 104px;
    border-radius: 26px;
  }

  .app-title {
    font-size: 46px;
  }

  .tagline {
    font-size: 20px;
  }

  .description {
    font-size: 15px;
  }

  .legal-container {
    margin: 16px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .legal-container h1 {
    font-size: 28px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
