/* MN Food — web. The customer app's palette and shapes, set for a page.
   Light only, like the app. Tokens mirror core/.../design/Theme.kt. */

:root {
  --bg: #FBFAF9;
  --surface: #FFFFFF;
  --surface-muted: #F3F2F1;
  --ink: #1C1C1E;
  --text: #17171A;
  --text-muted: #8B8A90;
  --text-faint: #B4B2B8;
  --stroke: #ECEAE8;
  --stroke-strong: #D6D3D0;
  --accent: #EC5A2C;
  --accent-soft: rgba(236, 90, 44, .12);
  --ready: #1E9E5A;
  --shadow: 0 10px 30px rgba(43, 33, 24, .10), 0 2px 8px rgba(43, 33, 24, .06);
  --shadow-float: 0 22px 60px rgba(43, 33, 24, .22), 0 6px 16px rgba(43, 33, 24, .10);
  --gutter: 22px;
  --display: "Archivo", "Roboto", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #FBFAF9; }
body {
  margin: 0; background: #FBFAF9; color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.placeholder { background: var(--accent-soft); color: var(--accent); padding: 0 6px; border-radius: 6px; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- the mark, where a menu bar would have been ---------- */
.hero-mark { width: 56px; height: 43px; object-fit: contain; }
.home-mark { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; text-decoration: none; }
.home-mark img { width: 46px; height: 36px; object-fit: contain; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 16px;
  border-radius: 18px; background: #1C1C1E; color: #FBFAF9; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.store:hover { transform: translateY(-2px); }
.store.is-off { opacity: .42; box-shadow: none; cursor: default; }
.store.is-off:hover { transform: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 10.5px; letter-spacing: .08em; opacity: .66; line-height: 1; margin-bottom: 3px; }
.store b { display: block; font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
@media (max-width: 520px) {
  .stores { flex-direction: column; gap: 10px; }
  .store { width: 100%; height: 62px; justify-content: flex-start; padding-left: 20px; }
}

/* ---------- hero: the whole landing page ---------- */
.hero { position: relative; padding-top: calc(56px + env(safe-area-inset-top, 0px)); padding-bottom: 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: calc(100svh - 140px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.hero-copy .hero-mark { margin-bottom: -4px; }
.hero h1 { font-size: clamp(60px, 10.5vw, 148px); line-height: .9; font-weight: 900; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--text-muted); max-width: 40ch; }
.hero-lede b { color: var(--text); font-weight: 600; }
.hero-note { font-size: 14px; color: var(--text-muted); }
.hero-art { position: relative; height: 640px; }
.glow {
  position: absolute; right: -140px; top: -160px; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(236,90,44,.32) 0%, rgba(236,90,44,0) 68%);
}
.ring { position: absolute; left: -120px; bottom: -60px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid var(--stroke-strong); opacity: .7; pointer-events: none; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .hero-art { height: 560px; }
}
@media (max-width: 520px) {
  .hero { padding-top: calc(40px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(44px, 12vw, 60px); }
  .hero-lede { font-size: 17px; max-width: none; }
  .hero-art { height: 600px; margin-top: 8px; }
  .glow { right: -200px; top: -120px; }
}

/* ---------- phone frames ---------- */
.phone {
  position: absolute; border-radius: 40px; border: 11px solid #1C1C1E; background: #1C1C1E; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
}
.phone.front { width: 300px; height: 620px; left: 50%; top: 20px; margin-left: -70px; transform: rotate(-4deg); z-index: 2; }
.phone.back { width: 260px; height: 540px; left: 50%; top: 90px; margin-left: -250px; transform: rotate(6deg); z-index: 1; }
.screen {
  position: absolute; left: 0; top: 0; width: 412px; height: 892px; transform-origin: 0 0;
  background: #FBFAF9; color: #17171A; font-family: "Roboto", system-ui, sans-serif; overflow: hidden; display: flex; flex-direction: column;
}
.phone.front .screen { transform: scale(.6748); }
.phone.back .screen { transform: scale(.5777); }
.screen * { box-sizing: border-box; }
@media (max-width: 960px) {
  .phone.front { margin-left: -120px; }
  .phone.back { margin-left: -280px; }
}
@media (max-width: 520px) {
  /* one phone, whole, upright: the page is being read on the very device it shows */
  .phone.front { width: 270px; height: 558px; left: 50%; top: 16px; margin-left: -135px; transform: rotate(-2deg); border-width: 10px; border-radius: 36px; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
  .phone.front .screen { transform: scale(.6068); }
  .phone.back { display: none; }
}

/* the menu screen */
.ps-head { flex: none; padding: 36px 0 16px; }
.ps-row { display: flex; align-items: center; padding: 6px 21px 0 22px; }
.ps-mark { width: 46px; height: 46px; object-fit: contain; flex: none; margin-right: 14px; }
.ps-who { flex: 1; min-width: 0; }
.ps-hi { font: 400 15px/15px "Roboto", sans-serif; color: #8B8A90; }
.ps-open { display: flex; align-items: center; gap: 7px; margin-top: 7px; font: 400 14px/17px "Roboto", sans-serif; color: rgba(23,23,26,.72); }
.ps-open i { width: 9px; height: 9px; border-radius: 50%; background: #1E9E5A; }
.ps-avatar { width: 44px; height: 44px; border-radius: 50%; background: #FBE3D2; margin-left: 14px; flex: none; overflow: hidden; }
.ps-h1 { margin-top: 24px; padding: 0 22px; font: 800 34px/36px "Roboto", sans-serif; letter-spacing: -1px; }
.ps-h1 span { color: #EC5A2C; }
.ps-search { margin: 18px 22px 0; height: 52px; border-radius: 16px; background: #fff; border: 1px solid #ECEAE8; display: flex; align-items: center; gap: 12px; padding: 0 16px; font: 400 16px/16px "Roboto", sans-serif; color: #B4B2B8; }
.ps-list { flex: 1; min-height: 0; overflow: hidden; padding: 0 22px; display: flex; flex-direction: column; gap: 12px; }
.ps-sec { display: flex; align-items: baseline; gap: 10px; padding: 16px 0 2px; }
.ps-sec b { font: 700 20px/22px "Roboto", sans-serif; letter-spacing: -.3px; }
.ps-sec span { font: 400 13px/13px "Roboto", sans-serif; color: #8B8A90; }
.ps-item { display: flex; align-items: center; background: #fff; border: 1px solid #ECEAE8; border-radius: 22px; padding: 12px 14px; flex: none; }
.ps-photo { position: relative; width: 74px; height: 74px; border-radius: 18px; overflow: hidden; background: #F3F2F1; flex: none; margin-right: 14px; }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-star { position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 50%; background: #1C1C1E; display: grid; place-items: center; }
.ps-text { flex: 1; min-width: 0; }
.ps-name { font: 600 17px/22px "Roboto", sans-serif; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-desc { margin-top: 5px; font: 400 13px/18px "Roboto", sans-serif; color: #8B8A90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-price { margin-top: 9px; font: 700 17px/22px "Roboto", sans-serif; letter-spacing: -.2px; }
.ps-add { width: 38px; height: 38px; border-radius: 13px; background: #1C1C1E; display: grid; place-items: center; flex: none; margin-left: 17px; }
.ps-nav { position: absolute; left: 18px; right: 18px; bottom: 38px; height: 70px; border-radius: 26px; background: #1C1C1E; box-shadow: 0 16px 44px rgba(43,33,24,.28); display: flex; align-items: center; padding: 0 8px; }
.ps-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: rgba(255,255,255,.55); font: 400 11px/11px "Roboto", sans-serif; position: relative; }
.ps-tab.on { color: #EC5A2C; font-weight: 500; }
.ps-tab svg { width: 22px; height: 22px; }
.ps-badge { position: absolute; top: -4px; left: calc(50% + 2px); width: 17px; height: 17px; border-radius: 50%; background: #EC5A2C; color: #fff; font: 700 10px/17px "Roboto", sans-serif; text-align: center; }

/* the tracking screen */
.ts-top { flex: none; display: flex; align-items: center; padding: 42px 22px 6px; }
.ts-title { flex: 1; text-align: center; font: 500 16px/16px "Roboto", sans-serif; }
.ts-body { flex: 1; min-height: 0; overflow: hidden; padding: 20px 22px 0; display: flex; flex-direction: column; align-items: center; }
.ts-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 17px; border-radius: 999px; background: #EC5A2C; color: #fff; font: 700 13px/16px "Roboto", sans-serif; letter-spacing: 1px; }
.ts-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ts-num { margin-top: 18px; display: flex; align-items: flex-end; gap: 6px; }
.ts-num b { font: 800 76px/76px "Roboto", sans-serif; letter-spacing: -2.5px; }
.ts-num span { font: 500 26px/26px "Roboto", sans-serif; color: #8B8A90; padding-bottom: 8px; }
.ts-cap { margin-top: 8px; font: 400 16px/22px "Roboto", sans-serif; color: #8B8A90; }
.ts-bar { margin-top: 22px; width: 100%; height: 8px; border-radius: 5px; background: rgba(23,23,26,.10); overflow: hidden; }
.ts-bar i { display: block; width: 20%; height: 8px; border-radius: 5px; background: #EC5A2C; }
.ts-steps { width: 100%; margin-top: 24px; display: flex; flex-direction: column; }
.ts-step { display: flex; }
.ts-mark { display: flex; flex-direction: column; align-items: center; flex: none; margin-right: 14px; }
.ts-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.ts-dot.done { background: #EC5A2C; }
.ts-dot.now { background: #fff; border: 2px solid #EC5A2C; box-shadow: 0 0 0 5px rgba(236,90,44,.16); }
.ts-dot.now i { width: 9px; height: 9px; border-radius: 50%; background: #EC5A2C; }
.ts-dot.next { background: #fff; border: 2px solid #D6D3D0; }
.ts-line { width: 2px; height: 30px; margin: 3px 0; background: rgba(23,23,26,.12); }
.ts-line.done { background: #EC5A2C; }
.ts-text { padding: 2px 0 10px; }
.ts-text b { display: block; font: 500 16px/19px "Roboto", sans-serif; }
.ts-text span { display: block; margin-top: 4px; font: 400 13px/17px "Roboto", sans-serif; color: #8B8A90; }
.ts-text.faint b, .ts-text.faint span { color: #B4B2B8; }
.ts-card { width: 100%; margin-top: 18px; background: #fff; border: 1px solid #ECEAE8; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ts-lineitem { display: flex; align-items: center; gap: 12px; font: 400 14.5px/21px "Roboto", sans-serif; }
.ts-lineitem img { width: 40px; height: 40px; border-radius: 18px; object-fit: cover; border: 1px solid #ECEAE8; }
.ts-lineitem span { flex: 1; }

/* ---------- footer ---------- */
.foot { padding-block: 28px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--text-muted); border-top: 1px solid var(--stroke); }
.foot .wrap { display: flex; flex-direction: column; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--text); }
.foot .where { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: center; }
.foot .where span { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-width: 520px) {
  .foot nav, .foot .where { flex-direction: column; align-items: flex-start; }
}

/* ---------- entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .4s; }
@keyframes settle-l { from { opacity: 0; transform: rotate(-4deg) translateY(40px); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes settle-r { from { opacity: 0; transform: rotate(6deg) translateY(40px); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes settle-s { from { opacity: 0; transform: rotate(-2deg) translateY(30px); } to { opacity: 1; transform: rotate(-2deg); } }
.phone.front { animation: settle-l .9s cubic-bezier(.22, 1, .36, 1) .25s both; }
.phone.back { animation: settle-r .9s cubic-bezier(.22, 1, .36, 1) .4s both; }
@media (max-width: 520px) { .phone.front { animation-name: settle-s; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .phone.front, .phone.back { animation: none; }
  .store { transition: none; }
}

/* ---------- legal / long-form pages ---------- */
.doc { padding-block: calc(48px + env(safe-area-inset-top, 0px)) 96px; }
.doc .wrap { max-width: 760px; }
.doc header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.doc h1 { font-size: clamp(38px, 6vw, 64px); line-height: .98; font-weight: 900; letter-spacing: -.04em; }
.doc .meta { font-size: 15px; color: var(--text-muted); }
.doc h2 { font-size: 26px; font-weight: 800; margin-top: 44px; margin-bottom: 12px; }
.doc h3 { font-family: var(--body); font-size: 18px; font-weight: 600; margin-top: 26px; margin-bottom: 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-block: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc table { width: 100%; border-collapse: collapse; margin-block: 14px 20px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--stroke); }
.doc th { color: var(--text-muted); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.doc .table-wrap { overflow-x: auto; }
.doc .callout { margin-block: 20px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); display: flex; gap: 14px; align-items: flex-start; }
.doc .callout .step-icon { width: 42px; height: 42px; border-radius: 14px; flex: none; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.doc .callout .step-icon svg { width: 21px; height: 21px; }
.doc a { color: var(--accent); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.doc .toc a { text-decoration: none; color: var(--text); font-size: 14px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); }
.doc .toc a:hover { border-color: var(--stroke-strong); }
.doc .contact-list { display: flex; flex-direction: column; gap: 8px; }
.doc .contact-list a { text-decoration: none; color: var(--text); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.doc .muted { color: var(--text-muted); font-size: 15px; }
@media (max-width: 640px) {
  .doc { padding-top: calc(32px + env(safe-area-inset-top, 0px)); padding-bottom: 64px; }
  .doc h1 { font-size: clamp(34px, 10vw, 48px); }
  .doc h2 { font-size: 23px; margin-top: 36px; }
  .doc p, .doc li { font-size: 16.5px; }
  .doc .toc a { min-height: 40px; display: inline-flex; align-items: center; }
  /* tables stack: each row becomes a short entry, the first cell its name */
  .doc thead { display: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr { padding: 14px 0; border-top: 1px solid var(--stroke); }
  .doc tr:last-child { border-bottom: 1px solid var(--stroke); }
  .doc td { border: 0; padding: 0; }
  .doc td:first-child { font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .doc td:nth-child(2) { font-size: 15.5px; }
  .doc td:last-child { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
}
