/* The Hungry List — marketing site.
   Palette mirrors the iOS app's Terracotta theme (light + dark). */

:root {
  --bg: #FCEDE6;
  --bg-deep: #F7DFD3;
  --bg-top: #F0D1C1;
  --card: #F4DBCF;
  --card-solid: #FFF6F0;
  --primary: #C95A3C;
  --primary-deep: #9C3A22;
  --text: #2C1810;
  --text-muted: #6B4636;
  --text-faint: #8A7F77;
  --rim: rgba(44, 24, 16, 0.10);
  --nav-bg: rgba(252, 237, 230, 0.82);
  --font: 'Hanken Grotesk', -apple-system, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
[data-theme="dark"] {
  --bg: #150B08;
  --bg-deep: #0A0504;
  --bg-top: #2A150E;
  --card: #170C08;
  --card-solid: #1F110B;
  --primary: #DE7456;
  --primary-deep: #C95A3C;
  --text: #F7DFD3;
  --text-muted: #C9A896;
  --text-faint: #8A7F77;
  --rim: rgba(247, 223, 211, 0.12);
  --nav-bg: rgba(21, 11, 8, 0.82);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #150B08; --bg-deep: #0A0504; --bg-top: #2A150E;
    --card: #170C08; --card-solid: #1F110B;
    --primary: #DE7456; --primary-deep: #C95A3C;
    --text: #F7DFD3; --text-muted: #C9A896; --text-faint: #8A7F77;
    --rim: rgba(247, 223, 211, 0.12);
    --nav-bg: rgba(21, 11, 8, 0.82);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--primary); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rim);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo-icon { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: var(--primary); display: grid; place-items: center; }
.nav-logo-icon img { width: 100%; height: 100%; display: block; }
.nav-logo-text { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-link:hover { color: var(--primary); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.contact-pill {
  background: var(--primary); color: #fff; border-radius: 999px;
  padding: 9px 20px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .15s ease;
}
.contact-pill:hover { background: var(--primary-deep); }

.theme-toggle {
  background: none; border: 1px solid var(--rim); border-radius: 999px;
  width: 40px; height: 40px; cursor: pointer; color: var(--text);
  display: grid; place-items: center; transition: border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .sun { display: none; }
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
}

/* Signature: the Hungry Meter — fills as you scroll, 🤤 rides the tip. */
.hunger-track {
  position: sticky; top: 68px; z-index: 49;
  height: 4px; background: transparent;
  pointer-events: none;
}
.hunger-fill {
  position: relative; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary));
  border-radius: 0 4px 4px 0;
}
.hunger-face {
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-52%);
  font-size: 15px; line-height: 1;
}

/* ---------- Mobile nav ---------- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  position: sticky; top: 72px; z-index: 48;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rim); padding: 8px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: 10px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-top), var(--bg) 70%);
  padding: 72px 24px 96px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-solid); border: 1px solid var(--rim);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--text-muted);
  margin-bottom: 22px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6.5vw, 68px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-h1 em { font-style: italic; color: var(--primary); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.store-cta {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 26px -12px var(--primary);
  transition: background .15s ease, transform .15s ease;
}
.store-cta:hover { background: var(--primary-deep); transform: translateY(-1px); }

.food-float {
  position: absolute; z-index: 0; pointer-events: none;
  opacity: var(--opacity, .8);
  transform: rotate(var(--r, 0deg));
  animation: float var(--duration, 6s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes float {
  from { transform: rotate(var(--r)) translateY(0); }
  to   { transform: rotate(var(--r)) translateY(-16px); }
}

/* ---------- Phone frame ---------- */
.phone-wrap { display: flex; justify-content: center; position: relative; z-index: 1; }
.phone {
  border-radius: 44px; border: 10px solid #1a1a1c; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
  max-width: 300px; background: #1a1a1c;
  transition: transform .25s ease;
}
.phone:hover { transform: translateY(-4px); }
.phone img { display: block; width: 100%; height: auto; }
.hero-phone .phone { transform: rotate(2.5deg); }
.hero-phone .phone:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.12;
  margin-bottom: 16px;
}
.how { background: var(--bg-deep); }
.story { background: var(--bg-deep); }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.reverse .phone-wrap { order: -1; }
.feature-copy p { color: var(--text-muted); font-size: 17px; max-width: 44ch; }

/* App tag chips as structural labels — the app's own vocabulary. */
.tag-chip {
  display: inline-block;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 999px; padding: 5px 13px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  margin-bottom: 14px;
}

/* How-it-works steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: 26px; margin-top: 26px; }
.step-chip {
  display: inline-block;
  background: var(--primary); color: #fff;
  border-radius: 999px; padding: 6px 15px;
  font-size: 14px; font-weight: 800;
  margin-bottom: 8px;
}
.step p { color: var(--text-muted); max-width: 42ch; }

/* ---------- Pro ---------- */
.pro-card {
  background: var(--card-solid);
  border: 1px solid var(--rim);
  border-radius: 26px;
  padding: 48px;
  max-width: 680px; margin: 0 auto;
  text-align: center;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .25);
}
.pro-badge {
  display: inline-block; vertical-align: middle;
  background: var(--primary); color: #fff;
  border-radius: 8px; padding: 3px 11px;
  font-family: var(--font); font-size: 0.45em; font-weight: 800; letter-spacing: 0.06em;
  transform: translateY(-0.35em);
}
.pro-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
  margin: 26px auto 26px; max-width: 460px;
  text-align: left;
}
.pro-list li { color: var(--text-muted); font-weight: 600; padding-left: 26px; position: relative; }
.pro-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  box-shadow: inset 0 0 0 4px var(--primary);
}
.pro-trial { font-weight: 800; color: var(--primary); font-size: 17px; }

/* ---------- CTA + footer ---------- */
.cta-section { background: linear-gradient(180deg, var(--bg), var(--bg-deep)); text-align: center; }
.cta-h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 54px); font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.cta-sub { color: var(--text-muted); font-size: 18px; margin-bottom: 28px; }

.footer { border-top: 1px solid var(--rim); padding: 30px 24px; background: var(--bg-deep); }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 14px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--primary); }

/* ---------- Support page ---------- */
.support-main { max-width: 640px; margin: 0 auto; padding: 72px 24px 96px; }
.support-main h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(34px, 5vw, 46px); margin-bottom: 18px;
}
.support-main p { color: var(--text-muted); margin-bottom: 16px; font-size: 17px; }
.support-main a { font-weight: 700; }

/* ---------- Legal pages (privacy / terms) ---------- */
.privacy-hero {
  background: linear-gradient(180deg, var(--bg-top), var(--bg));
  text-align: center;
  padding: 72px 24px 56px;
}
.privacy-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.08;
  margin-bottom: 16px;
}
.privacy-updated {
  display: inline-block;
  background: var(--card-solid); border: 1px solid var(--rim);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--text-muted);
}
.privacy-body {
  max-width: 720px; margin: 0 auto;
  padding: 56px 24px 96px;
}
.privacy-body h2 {
  font-family: var(--display);
  font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
  margin-bottom: 14px;
}
.privacy-body p { color: var(--text-muted); margin-bottom: 14px; }
.privacy-body p strong,
.privacy-body li strong { color: var(--text); }
.privacy-body a { font-weight: 700; }
.privacy-body ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.privacy-body li { color: var(--text-muted); padding-left: 24px; position: relative; }
.privacy-body li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  box-shadow: inset 0 0 0 3px var(--primary);
}
.privacy-divider { border: none; border-top: 1px solid var(--rim); margin: 40px 0; }
.privacy-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--card-solid);
  border: 1px solid var(--rim); border-radius: 16px;
  overflow: hidden;
  margin: 6px 0 18px;
  font-size: 15px;
}
.privacy-table th, .privacy-table td { padding: 12px 16px; text-align: left; }
.privacy-table th {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-bottom: 1px solid var(--rim);
}
.privacy-table td { color: var(--text-muted); border-bottom: 1px solid var(--rim); }
.privacy-table td:first-child { color: var(--text); font-weight: 600; }
.privacy-table tr:last-child td { border-bottom: none; }

/* ---------- Motion ---------- */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .food-float { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .phone, .store-cta { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-inner, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .phone-wrap { order: 0; }
  .hero { padding: 48px 20px 72px; }
  .section { padding: 64px 20px; }
  .feature-row + .feature-row { margin-top: 72px; }
  .pro-card { padding: 34px 24px; }
  .pro-list { grid-template-columns: 1fr; }
  .hunger-track { top: 64px; }
  .contact-pill { padding: 8px 16px; font-size: 14px; }
  .privacy-hero { padding: 52px 20px 40px; }
  .privacy-body { padding: 44px 20px 72px; }
  .privacy-table th, .privacy-table td { padding: 10px 12px; }
}
