/* FoodFate site — same palette and type as the app.
   Type: SF Pro Rounded (the app's font) on Apple devices via ui-rounded;
   Nunito elsewhere as the closest rounded match. */
:root {
  --bg: #FFF7EE;
  --bg-soft: #FFEFE0;
  --card: #FFFFFF;
  --line: #EADCCB;
  --ink: #2B2018;
  --ink-soft: #75655A;
  --accent: #D9481A;
  --accent-fill: #FF6B35;
  --go: #2F8A4C;
  --peach: #FFD9B8;
  --frame: #2B2018;
  color-scheme: light;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 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; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-weight: 700; font-size: 16px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* Phone frame around real screenshots */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1206 / 2622;
  border-radius: 44px;
  padding: 9px;
  background: var(--frame);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 60px -20px rgba(43, 32, 24, 0.35);
}
.phone img, .phone picture { width: 100%; height: 100%; border-radius: 36px; object-fit: cover; }
.phone.tilt-l { transform: rotate(-3deg); }
.phone.tilt-r { transform: rotate(2.5deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 21px; color: var(--ink-soft); max-width: 30ch; margin: 0 0 30px; }
.hero .phone { margin-left: auto; max-width: 320px; }

.store { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px 13px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 800; line-height: 1.15; }
.store small { display: block; font-weight: 600; font-size: 12px; opacity: 0.7; }
.store[aria-disabled="true"] { cursor: default; }
.fine { font-size: 15px; color: var(--ink-soft); margin-top: 14px; }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-top: 1.5px solid var(--line); }
.row.flip .copy { order: 2; }
.row .shot { display: flex; justify-content: center; }
.row h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 16px; }
.row p { color: var(--ink-soft); margin: 0 0 14px; max-width: 42ch; }
.kicker { font-size: 15px; font-weight: 800; color: var(--accent); margin: 0 0 10px; }
.row ul { list-style: none; padding: 0; margin: 18px 0 0; }
.row li { padding: 8px 0 8px 26px; position: relative; color: var(--ink); font-weight: 600; }
.row li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); }

/* Light + dark pair */
.pair { padding: 72px 0; border-top: 1.5px solid var(--line); }
.pair h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 12px; text-align: center; }
.pair > p { text-align: center; color: var(--ink-soft); margin: 0 auto 44px; max-width: 46ch; }
.pair .phones { display: flex; justify-content: center; gap: 28px; }
.pair .phone { max-width: 260px; }
.pair figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(260px, 42vw); }
.pair figcaption { font-weight: 800; font-size: 15px; color: var(--ink-soft); }

/* Closing note */
.note { padding: 72px 0 32px; border-top: 1.5px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.note h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.note p { color: var(--ink-soft); margin: 0 0 12px; }

/* Prose pages (privacy, support) */
.prose { max-width: 680px; margin: 0 auto; padding: 16px 0 56px; }
.prose h1 { font-size: 40px; margin: 8px 0 8px; }
.prose h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.prose .meta { color: var(--ink-soft); margin: 0 0 24px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.qa { border-top: 1.5px solid var(--line); padding: 18px 0; }
.qa h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.qa p { margin: 0; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1.5px solid var(--line); margin-top: 32px; padding: 26px 0 44px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; text-align: left; }
  .hero .phone { margin: 0 auto; max-width: 270px; }
  .row, .note { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .row.flip .copy { order: 0; }
  .row .shot { order: 2; }
  .row .phone { max-width: 250px; }
  .pair .phones { gap: 14px; }
  .pair .phone { border-radius: 30px; padding: 6px; }
  .pair .phone img, .pair .phone picture { border-radius: 25px; }
  .phone.tilt-l, .phone.tilt-r { transform: none; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .nav { gap: 16px; font-size: 15px; }
  .hero p { font-size: 19px; }
}

/* FAQ */
.faq { padding: 64px 0 24px; border-top: 1.5px solid var(--line); }
.faq h2 { font-size: clamp(30px, 3.8vw, 42px); margin: 0 0 18px; }
.faq details { border-top: 1.5px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 900; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 10px 0 0; max-width: 62ch; }
