/* ============================================================
   Clear Food — clearfood.app
   Light mode, tokens mirror the app's light theme
   (Clear-Food-App/lib/theme.js) and the layout mirrors
   calai.app section-for-section, minus pages we don't have
   (FAQ/Blog/Press/Login/Android).
   ============================================================ */

:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --surface-alt: #F3F3F1;
  --text: #000000;
  --muted: #6E6E6E;
  --accent: #000000;
  --on-accent: #FFFFFF;

  --good: #3DAF7A;
  --mid: #C4872A;
  --bad: #BC4040;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);

  --font-display: -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Nav -------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}

/* -------------------- Apple store badge (real asset, nav/hero/footer) -------------------- */

.badge-img {
  height: 52px;
  width: auto;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.badge-img:hover { transform: translateY(-1px); opacity: 0.85; }

.badge-img.small { height: 38px; }

/* -------------------- Hero -------------------- */

.hero {
  padding: 72px 0 0;
  position: relative;
  background: #FFFFFF;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.rating-pill .stars {
  color: #F5A623;
  font-size: 13px;
  letter-spacing: 1px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy { padding-bottom: 56px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ---- Shortcuts-style "hold to open" row ---- */

.shortcut-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--surface-alt);
  transition: transform 0.08s ease, background 0.15s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.shortcut-row.pressing {
  background: var(--border-strong);
  transform: scale(0.98);
}

.shortcut-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
}

.shortcut-icon img { width: 100%; height: 100%; }

.shortcut-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
  white-space: nowrap;
}

.shortcut-title {
  font-weight: 600;
  color: var(--text);
}

.shortcut-sub {
  color: var(--muted);
  white-space: nowrap;
}

.shortcut-menu {
  flex: none;
  color: var(--muted);
  display: flex;
  margin-left: 4px;
}

/* ---- hero visual: real device mockup ---- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: end;
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
}

/* -------------------- Footer -------------------- */

footer {
  background: var(--surface-alt);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

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

/* -------------------- Focus states -------------------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-visual img { max-width: 340px; }
  .hero p.lede { max-width: 100%; }
  .footer-top { flex-direction: column; gap: 32px; }
}
