/* FoodSpeed landing — shared styles. Tokens mirror docs/design-system/tokens.json. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f4f5f1;
  --surface: #fbfbf9;
  --surface-muted: #eaece7;
  --line: #e2e5e0;
  --ink: #111613;
  --ink-muted: #686e69;
  --ink-inverse: #ffffff;
  --primary: #00772b;
  --primary-pressed: #005c22;
  --primary-soft: #e3f2dc;
  --forest: #063d1b;
  --forest-deep: #022812;
  --zest: #8be32a;
  --zest-bright: #b8f42c;
  --on-zest: #0f1411;
  --danger: #c8281c;
  --danger-soft: #fef1ef;
  --warning: #b54708;
  --warning-soft: #fef3e2;
  --tint-cream: #fcf4d8;
  --tint-rose: #fce4e4;
  --tint-mint: #e0f8e4;
  --tint-peach: #fcecdc;
  --tint-gray: #eceeeb;
  --qr-plate: #ffffff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(3.25rem, 8.4vw, 9rem);
  --fs-h2: clamp(2.35rem, 5vw, 4.5rem);
  --fs-h3: clamp(1.3rem, 1.6vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1.35vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 44px;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-press: 110ms;
  --t-toggle: 220ms;
  --t-change: 360ms;
  --t-enter: 620ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

html { background: var(--bg); color-scheme: light; scroll-padding-top: 96px; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0;
  overflow-x: clip;
}
/* Faint grain over everything, like the app's generative covers */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--zest-bright); color: var(--on-zest); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.nav :focus-visible, .get :focus-visible, .contact__card--forest :focus-visible { outline-color: var(--zest-bright); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--ink-inverse); text-decoration: none; font-weight: 500;
  transform: translateY(-160%); transition: transform var(--t-toggle) var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.tabular { font-variant-numeric: tabular-nums; }

/* Type */
.h-hero {
  font-size: var(--fs-hero);
  line-height: 0.93;
  letter-spacing: -0.052em;
  font-weight: 500;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-muted); max-width: 40ch; text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.numeral { font-weight: 300; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }

/* Buttons */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease), background-color var(--t-toggle) var(--ease);
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.btn:active { transform: scale(0.965); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-pressed); }
.btn--zest { background: var(--zest); color: var(--on-zest); }
.btn--zest:hover { background: var(--zest-bright); }
.btn--tonal { background: var(--surface-muted); color: var(--ink); }
.btn--tonal:hover { background: #e1e4dd; }
.btn--ghost-inverse { background: rgba(255,255,255,0.1); color: #fff; }
.btn--ghost-inverse:hover { background: rgba(255,255,255,0.16); }

/* The border beam: a lime-to-green streak travelling round the one awaited action */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.beam::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--beam), transparent 0 74%, rgba(184, 244, 44, 0) 76%, var(--zest-bright) 86%, #fff 89%, var(--zest) 91%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 2.6s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes beam { to { --beam: 360deg; } }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 22px 0 18px;
  border-radius: 18px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 1.05rem; line-height: 1.1;
  transition: transform var(--t-press) var(--ease);
}
.store:active { transform: scale(0.97); }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 0.72rem; font-weight: 400; opacity: 0.72; margin-bottom: 2px; }
.store--soon { background: rgba(17, 22, 19, 0.06); color: var(--ink); padding-left: 22px; }
.store--soon small { opacity: 0.7; }

/* Nav: a floating ink pill, like the app's tab bar */
.nav {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  transition: transform var(--t-enter) var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(17, 22, 19, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
  max-width: 100%;
}
.nav__brand {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 12px 4px 4px;
  text-decoration: none; font-weight: 500; letter-spacing: -0.02em; font-size: 1.02rem;
  border-radius: 999px;
}
.nav__brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 2px; margin: 0 4px; }
.nav__links a {
  display: flex; align-items: center; height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-size: 0.9375rem; color: rgba(255,255,255,0.78);
  transition: color var(--t-toggle) var(--ease), background-color var(--t-toggle) var(--ease);
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav__links a[aria-current="true"] { color: #fff; background: rgba(255,255,255,0.1); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; }
.nav__burger { display: grid; gap: 5px; width: 18px; }
.nav__burger i { display: block; height: 1.5px; background: #fff; border-radius: 2px; transition: transform var(--t-change) var(--ease); }
.nav__menu[aria-expanded="true"] .nav__burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu {
  pointer-events: auto;
  position: absolute; top: calc(100% + 10px); left: 12px; right: 12px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(17, 22, 19, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  transform-origin: top center;
}
.menu ul { margin-bottom: 10px; }
.menu li a { display: block; padding: 14px 16px; font-size: 1.15rem; text-decoration: none; border-radius: 16px; }
.menu li a:hover { background: rgba(255,255,255,0.06); }
.menu .btn { width: 100%; }

@media (max-width: 1180px) { .nav__links { display: none; } .nav__menu { display: inline-flex; } }
@media (max-width: 374px) { .nav__cta { display: none; } }

/* Footer */
.footer { padding: clamp(64px, 9vw, 120px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 1.35rem; letter-spacing: -0.03em; }
.footer__logo img { border-radius: 11px; }
.footer__brand p { margin-top: 14px; color: var(--ink-muted); }
.footer__col h2 { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); margin-bottom: 14px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--primary); }
.footer__word {
  margin-top: clamp(48px, 7vw, 96px);
  font-size: min(16.6vw, 15.6rem);
  font-weight: 500; letter-spacing: -0.065em; line-height: 0.8;
  color: var(--surface-muted);
  white-space: nowrap; overflow: hidden;
  user-select: none;
  padding-bottom: 0.08em;
}
.footer__word .ch { display: inline-block; }
.footer__fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font-size: 0.8125rem; color: var(--ink-muted); }
.footer__fine a { color: inherit; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* In-app web view: the app draws its own header */
.in-app .nav, .in-app .footer, .in-app .skip, .in-app [data-hide-in-app] { display: none !important; }
.in-app body::after { display: none; }

/* Entrance used sparingly: rise from a blur, like FsReveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(10px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; transition: opacity var(--t-enter) var(--ease), transform 900ms var(--ease), filter var(--t-enter) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .beam::before { animation: none; background: none; }
}
