/* Food Loot — www.foodloot.app
   Warm near-black "candlelit" theme drawn from the treasure-chest logo:
   espresso surfaces, parchment text, brand orange + chest gold accents. */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0b08;
  --bg-deep: #010101;
  --surface: #1a120c;
  --surface-2: #22160e;
  --line: #33241a;
  --text: #f3e9dc;
  --text-dim: #b5a494;
  --orange: #e8862d;
  --orange-soft: #f09a4b;
  --gold: #f0b34e;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-nav .chip {
  color: var(--bg-deep);
  background: var(--orange);
  font-family: var(--display);
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
}
.site-nav .chip:hover { background: var(--gold); color: var(--bg-deep); }

/* ---------- hero ---------- */

.hero { text-align: center; padding: 40px 0 26px; }
.hero-chest {
  position: relative;
  width: min(300px, 62vw);
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 134, 45, 0.14), rgba(232, 134, 45, 0) 72%);
}
.hero-chest img { display: block; width: 100%; }
.hero-chest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(15, 11, 8, 0) 46%, var(--bg) 82%);
}
@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-chest, .hero h1, .hero .lede, .hero .stores { animation: settle 0.6s ease-out both; }
.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.16s; }
.hero .stores { animation-delay: 0.24s; }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}
.hero h1 .loot { color: var(--orange); }
.hero .lede {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 1.12rem;
}

/* ---------- store badges ---------- */

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  line-height: 1.25;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .small { display: block; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.store-badge .big { display: block; font-family: var(--display); font-weight: 500; font-size: 1.12rem; }
.stores-note { margin-top: 14px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- treasure trail (signature divider) ---------- */

.trail { display: block; width: min(560px, 80%); margin: 34px auto; color: var(--gold); opacity: 0.5; }
.trail svg { display: block; width: 100%; height: auto; }

/* ---------- features ---------- */

.features { padding: 10px 0 8px; }
.features h2, .get h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-align: center;
  margin-bottom: 34px;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
}
.card svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px auto 0; padding: 0; list-style: none; }
.facts li { color: var(--text-dim); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* ---------- get the app ---------- */

.get { text-align: center; padding: 12px 0 30px; }
.get h2 { margin-bottom: 12px; }
.get .sub { max-width: 560px; margin: 0 auto; color: var(--text-dim); }
.get .stores { margin-top: 26px; }
.get .nudge { margin-top: 22px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 40px; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .top img { height: 24px; width: auto; display: block; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { margin-top: 22px; color: var(--text-dim); font-size: 0.85rem; }
.site-footer .legal a { color: inherit; }

/* ---------- document pages (privacy, terms, support) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 26px 24px 30px; }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.15; }
.doc .updated { color: var(--text-dim); font-size: 0.92rem; margin: 10px 0 34px; }
.doc h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 38px 0 12px; }
.doc h3 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin: 24px 0 8px; }
.doc p, .doc ul { margin-bottom: 14px; color: var(--text); }
.doc ul { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc .note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { gap: 14px; }
  .site-footer .top { flex-direction: column; align-items: flex-start; }
}
