/* Food Track — página de venda.
   Cores e fontes do design system do produto (ft-tokens.css), convertidas para OKLCH. */

:root {
  --bg: oklch(98.6% 0.006 70);
  --bg-sunken: oklch(96.2% 0.012 60);
  --surface: oklch(99.6% 0.002 70);
  --ink: oklch(20.9% 0.010 268);
  --ink-muted: oklch(46% 0.024 264);
  --ink-subtle: oklch(60% 0.021 263);
  --line: oklch(91.5% 0.008 60);
  --line-strong: oklch(86.2% 0.011 256);

  --brand: oklch(65% 0.202 37.4);          /* laranja da marca (#f0531c) */
  --brand-strong: oklch(54% 0.185 37.3);   /* botão e texto: contraste AA com branco */
  --brand-deep: oklch(47% 0.16 37);
  --brand-soft: oklch(94.4% 0.032 50.4);
  --on-brand: oklch(99.5% 0.003 60);

  --ok: oklch(55.8% 0.136 153.2);
  --ok-soft: oklch(94.6% 0.031 159.1);
  --warn: oklch(52% 0.12 65.3);
  --warn-soft: oklch(95.8% 0.05 88.1);
  --info: oklch(53% 0.165 258.6);

  --night: oklch(21% 0.018 40);
  --night-ink: oklch(96% 0.01 60);
  --night-muted: oklch(78% 0.02 50);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --fs-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --fs-hero: clamp(2.375rem, 1.7rem + 2.6vw, 3.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-pill: 999px;

  --sh-sm: 0 1px 2px oklch(21% 0.01 268 / 0.06), 0 1px 1px oklch(21% 0.01 268 / 0.04);
  --sh-md: 0 4px 12px oklch(21% 0.01 268 / 0.08), 0 1px 3px oklch(21% 0.01 268 / 0.04);
  --sh-lg: 0 32px 64px -24px oklch(30% 0.06 40 / 0.28), 0 12px 24px -12px oklch(21% 0.01 268 / 0.12), 0 2px 4px oklch(21% 0.01 268 / 0.04);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-state: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: var(--surface); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); z-index: 100; }
.skip:focus { top: var(--s-4); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: 600 var(--fs-md)/1.2 var(--font-display); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-state), background-color 160ms var(--ease-state), box-shadow 160ms var(--ease-state);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--brand-strong); color: var(--on-brand); box-shadow: 0 8px 20px -8px oklch(54% 0.185 37 / 0.6); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-sm { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
.ph { font-size: var(--fs-xs); opacity: 0.8; font-family: var(--font-body); font-weight: 500; }

/* ---------- Topo ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: oklch(98.6% 0.006 70 / 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; font: 600 1.125rem/1 var(--font-display); }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); }
.logo-mark svg { width: 20px; height: 20px; }
.nav { display: none; gap: var(--s-5); margin-inline-start: auto; font-size: var(--fs-sm); color: var(--ink-muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top-cta { display: flex; gap: var(--s-2); margin-inline-start: auto; }
.top-cta .btn-ghost { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .top-cta { margin-inline-start: var(--s-4); }
  .top-cta .btn-ghost { display: inline-flex; }
}

/* ---------- Herói ---------- */
.hero { position: relative; padding-block: var(--s-8) var(--s-9); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 30%, oklch(86% 0.09 45 / 0.55), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, oklch(95% 0.04 70 / 0.9), transparent 70%);
}
.hero-grid { display: grid; gap: var(--s-8); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep);
  font: 600 var(--fs-xs)/1.5 var(--font-body); letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: var(--fs-hero); line-height: 1.02; font-weight: 700; margin-block: var(--s-5) var(--s-5); }
.hero h1 em { font-style: normal; color: var(--brand-strong); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.1em; height: 0.26em; z-index: -1;
  background: var(--brand-soft); border-radius: var(--r-pill);
}
.lead { font-size: var(--fs-lg); color: var(--ink-muted); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--ink-muted); }
.trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.stage { position: relative; padding-inline-end: clamp(48px, 12vw, 120px); padding-block-end: var(--s-7); }
.screen {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-lg);
}
.screen-bar { display: flex; gap: 6px; padding: 10px var(--s-3); background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.phone {
  position: absolute; right: 0; bottom: 0; width: clamp(120px, 32%, 220px);
  border-radius: 28px; padding: 8px; background: var(--ink);
  box-shadow: var(--sh-lg);
}
.phone img { border-radius: 20px; }
.tag {
  position: absolute; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-md); border: 1px solid var(--line);
  font: 600 var(--fs-xs)/1.2 var(--font-body); white-space: nowrap;
}
.tag b { color: var(--ok); }
.tag-a { left: -8px; top: -16px; }
@media (min-width: 1000px) {
  .hero { padding-block: var(--s-9) var(--s-10); }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: var(--s-7); }
  .tag-a { left: -32px; top: 24px; }
}

/* ---------- Faixa de negócios ---------- */
.ticker { border-block: 1px dashed var(--line-strong); background: var(--surface); }
.ticker ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6); padding-block: var(--s-5); font: 600 var(--fs-md)/1.4 var(--font-display); color: var(--ink-muted); }
.ticker li { display: inline-flex; align-items: center; gap: var(--s-3); }
.ticker li + li::before { content: "✦"; color: var(--brand); font-size: 0.75em; }

/* ---------- Seções ---------- */
.section { padding-block: var(--s-9); }
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--fs-2xl); line-height: 1.1; font-weight: 700; }
.section-head p { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--ink-muted); }
.kicker { display: block; margin-bottom: var(--s-3); font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); }

.feature { display: grid; gap: var(--s-6); align-items: center; padding-block: var(--s-7); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-copy h3 { font-size: var(--fs-xl); line-height: 1.15; font-weight: 700; }
.feature-copy > p { margin-top: var(--s-3); color: var(--ink-muted); }
.ticket {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4);
  padding: var(--s-1) var(--s-3); border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  font: 600 var(--fs-xs)/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink-muted);
  background: var(--surface);
}
.ticket b { color: var(--brand-strong); }
.checks { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.checks li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks strong { font-weight: 600; }
.feature-media { position: relative; min-width: 0; }
figure { margin: 0; }
figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--ink-subtle); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: var(--s-8); padding-block: var(--s-8); }
  .feature.flip { grid-template-columns: 7fr 5fr; }
  .feature.flip .feature-copy { order: 2; }
}

/* ---------- Cardápio (maquete feita em HTML: não há print do cardápio) ---------- */
.menu-mock { display: flex; justify-content: center; gap: var(--s-5); padding: var(--s-6) var(--s-4); border-radius: var(--r-2xl); background: linear-gradient(160deg, var(--brand-soft), var(--bg-sunken)); }
.mock-phone { width: min(100%, 280px); border-radius: 32px; padding: 8px; background: var(--ink); box-shadow: var(--sh-lg); }
.mock-screen { border-radius: 24px; background: var(--surface); padding: var(--s-4); display: grid; gap: var(--s-3); font-size: 0.8125rem; }
.mock-store { display: flex; align-items: center; gap: var(--s-3); }
.mock-store .logo-mark { width: 32px; height: 32px; }
.mock-store b { display: block; font: 600 0.9375rem/1.2 var(--font-display); }
.mock-store small { color: var(--ok); font-weight: 600; }
.mock-chips { display: flex; gap: var(--s-2); }
.mock-chips span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-sunken); font-weight: 600; font-size: 0.75rem; }
.mock-chips span:first-child { background: var(--ink); color: var(--surface); }
.mock-item { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); }
.mock-item b { font-weight: 600; }
.mock-item span { grid-column: 1; color: var(--ink-muted); font-size: 0.75rem; }
.mock-item em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 700; }
.mock-bag { display: flex; justify-content: space-between; padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); background: var(--brand-strong); color: var(--on-brand); font-weight: 600; }
.mock-track { display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-md); background: var(--ok-soft); }
.mock-track b { font-family: var(--font-display); }
.mock-track li { display: flex; gap: var(--s-2); align-items: center; color: var(--ink-muted); font-size: 0.75rem; }
.mock-track li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- Segurança (faixa escura) ---------- */
.dark-band { background: var(--night); color: var(--night-ink); border-radius: var(--r-2xl); padding: var(--s-7) var(--s-5); }
.dark-band .section-head p, .dark-band .feature-copy > p { color: var(--night-muted); }
.dark-band .kicker { color: oklch(78% 0.13 45); }
.dark-band .ticket { background: transparent; border-color: oklch(40% 0.03 40); color: var(--night-muted); }
.dark-band .ticket b { color: oklch(78% 0.13 45); }
.dark-band .checks li::before { background-color: oklch(32% 0.06 40); }
.dark-band .feature { padding-block: 0; }
.dark-band .screen { border-color: oklch(32% 0.03 40); }
@media (min-width: 900px) { .dark-band { padding: var(--s-8); } }

/* ---------- Grade de extras ---------- */
.extras { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.extra { padding: var(--s-5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.extra h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--s-2); }
.extra p { font-size: var(--fs-sm); color: var(--ink-muted); }
.extra-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-4); border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-strong); }
.extra-ico svg { width: 20px; height: 20px; }

/* ---------- Planos ---------- */
.plan {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center;
  padding: var(--s-7) var(--s-5); border-radius: var(--r-2xl);
  background: var(--brand-strong); color: var(--on-brand);
}
.plan::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(72% 0.17 50 / 0.55), transparent 65%); pointer-events: none;
}
.plan h2 { font-size: var(--fs-2xl); line-height: 1.1; font-weight: 700; }
.plan p { margin-top: var(--s-4); font-size: var(--fs-lg); color: oklch(95% 0.03 50); max-width: 46ch; }
.plan ul { display: grid; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-sm); }
.plan li::before { content: "→ "; }
.plan .btn-ghost { flex-wrap: wrap; row-gap: 0; position: relative; z-index: 1; background: var(--surface); border-color: transparent; color: var(--brand-deep); }
.plan .btn-ghost:hover { background: var(--brand-soft); }
@media (min-width: 900px) { .plan { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-8); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 860px; }
.faq details { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5); cursor: pointer; list-style: none;
  font: 600 var(--fs-md)/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-sunken); color: var(--brand-strong); font-size: 1.25rem; line-height: 1;
  transition: transform 200ms var(--ease-state);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-muted); }

/* ---------- Final + rodapé ---------- */
.closing { text-align: center; padding-block: var(--s-9); }
.closing h2 { font-size: var(--fs-2xl); line-height: 1.1; }
.closing p { margin: var(--s-4) auto 0; max-width: 48ch; color: var(--ink-muted); font-size: var(--fs-lg); }
.closing .cta-row { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding-block: var(--s-6); font-size: var(--fs-sm); color: var(--ink-muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Movimento: só transform/opacity ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 480ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 40ms; }
.hero-copy > :nth-child(3) { animation-delay: 80ms; }
.hero-copy > :nth-child(4) { animation-delay: 120ms; }
.hero-copy > :nth-child(5) { animation-delay: 160ms; }
.stage { animation: rise 560ms 120ms var(--ease-out) both; }
.js .reveal { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Delivery: celular do entregador em destaque ---------- */
.phone-panel { display: flex; align-items: center; justify-content: center; gap: var(--s-6); padding: var(--s-6) var(--s-4); border-radius: var(--r-2xl); background: linear-gradient(160deg, var(--brand-soft), var(--bg-sunken)); }
.phone.phone-solo { position: static; width: min(62%, 260px); flex: none; }
.phone-notes { display: none; gap: var(--s-4); max-width: 220px; }
.phone-notes li { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-md); font-size: var(--fs-sm); color: var(--ink-muted); }
.phone-notes b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
@media (min-width: 560px) { .phone-notes { display: grid; } }
