/* Boughi Food site. The values are docs/UI_GUIDE.md's palette (packages/mobile-kit/src/look.ts), light and dark. */
@font-face { /* ds-allow-hardcode: @font-face descriptors cannot use variables */ font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { /* ds-allow-hardcode: @font-face descriptors cannot use variables */ font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { /* ds-allow-hardcode: @font-face descriptors cannot use variables */ font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/dm-sans-700.woff2") format("woff2"); }

:root {
  --page: #FFFFFF;
  --surface: #FFFFFF;
  --raised: #F3F3F3;
  --line: #E8E8E8;
  --ink: #111111;
  --muted: #5E5E5E;
  --accent: #111111;
  --on-accent: #FFFFFF;
  --brand: #0B7A4B;
  --brand-soft: #E6F6EE;
  --on-brand-soft: #0A5C39;
  --warning-soft: #FFF5DF;
  --info-soft: #E8F3F7;
  --r-control: 8px;
  --r-card: 12px;
  --r-sheet: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 56px; --s8: 88px;
  --max: 1120px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-body: 17px; --fs-lead: 20px; --fs-sub: 18px; --fs-small: 14px; --fs-tiny: 11px; --fs-brand: 19px; --fs-h3: 20px; --fs-file: 18px;
  --fs-h1: clamp(38px, 5.6vw, 64px); --fs-h2: clamp(28px, 3.4vw, 40px);
  --tap: 52px; --tap-sm: 44px; --header: 68px; --scroll-gap: 80px;
  --measure: 640px; --measure-narrow: 540px; --measure-lead: 520px;
  --icon: 22px; --icon-file: 28px; --icon-card: 40px; --badge: 32px; --edge: 3px;
  --pill: 999px; --lift: 0.12s; --sha-width: 200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #161616;
    --raised: #262626;
    --line: #2F2F2F;
    --ink: #FFFFFF;
    --muted: #ADADAD;
    --accent: #FFFFFF;
    --on-accent: #000000;
    --brand: #3DD68C;
    --brand-soft: #12352A;
    --on-brand-soft: #8FE3BE;
    --warning-soft: #352A10;
    --info-soft: #12303D;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--scroll-gap); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s5); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0; }
.fine { font-size: var(--fs-small); color: var(--muted); margin-top: var(--s4); }
.sub { color: var(--muted); font-size: var(--fs-sub); margin-top: var(--s3); max-width: var(--measure); }
.sub.left { max-width: var(--measure-narrow); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s4); }

:focus-visible { outline: var(--edge) solid var(--brand); outline-offset: var(--edge); border-radius: var(--r-control); }

.ic { width: var(--icon); height: var(--icon); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-big { width: var(--icon-card); height: var(--icon-card); stroke-width: 1.6; color: var(--brand); margin-bottom: var(--s4); }

/* Buttons: one main action is black (white in dark). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s5); border-radius: var(--pill);
  font: 700 var(--fs-body)/1 var(--font); text-decoration: none; cursor: pointer; border: 0;
  transition: transform var(--lift) ease, opacity var(--lift) ease;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn-dark { background: var(--accent); color: var(--on-accent); }
.btn-light { background: var(--raised); color: var(--ink); }
.btn-sm { min-height: var(--tap-sm); padding: 0 var(--s4); font-size: var(--fs-small); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: var(--s5); min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 700; font-size: var(--fs-brand); text-decoration: none; }
.brand img { border-radius: var(--r-control); }
.top nav { display: flex; gap: var(--s5); margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: var(--s2) 0; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding: var(--s7) 0 var(--s8); }
.hero-in > * { min-width: 0; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s6); align-items: center; }
.lead { font-size: var(--fs-lead); color: var(--muted); margin-top: var(--s5); max-width: var(--measure-lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
@media (max-width: 920px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: var(--s6); } }

/* ds-allow-hardcode:start (the hero art is an illustration of the two programs drawn in CSS, with made-up dishes: its sizes and tints are drawing, not interface) */
.hero-art { position: relative; min-height: 470px; min-width: 0; }
.pc-mock { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12); }
.pc-bar { display: flex; align-items: center; gap: 6px; padding: var(--s3) var(--s4); background: var(--raised); }
.pc-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pc-bar b { margin-left: var(--s3); font-size: 12px; color: var(--muted); font-weight: 500; }
.pc-body { display: grid; grid-template-columns: 1.7fr 1fr; min-height: 300px; }
.pc-menu { padding: var(--s4); }
.pc-cats { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.pc-cats i { font-style: normal; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--raised); }
.pc-cats i.on { background: var(--accent); color: var(--on-accent); }
.pc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.t { border-radius: var(--r-control); padding: var(--s3); min-height: 74px; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: #111111; /* ds-allow-hardcode: tile text stays dark on its light fill in both themes */ }
.t b { font-weight: 700; line-height: 1.2; }
.t span { opacity: 0.75; }
.t1 { background: #FBD5CF; } .t2 { background: #FDE6B3; } .t3 { background: #FBD5CF; }
.t4 { background: #C9ECD6; } .t5 { background: #FDE6B3; } .t6 { background: #CBE6F1; }
.pc-ticket { border-left: 1px solid var(--line); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); font-size: 12px; }
.pc-ticket h4 { font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.pc-ticket h4 em { font-style: normal; font-size: 11px; color: var(--on-brand-soft); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.pc-ticket p { display: flex; justify-content: space-between; gap: var(--s2); color: var(--muted); }
.pc-total { display: flex; justify-content: space-between; margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.pc-pay { background: var(--accent); color: var(--on-accent); text-align: center; font-weight: 700; font-size: 14px; padding: var(--s3); border-radius: var(--r-control); }

.phone-mock { position: absolute; left: -28px; bottom: 0; width: 196px; height: 330px; background: var(--surface); border: 6px solid var(--ink); border-radius: 30px; padding: var(--s5) var(--s3) var(--s3); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; gap: var(--s2); }
.ph-notch { position: absolute; top: 8px; left: 50%; width: 50px; height: 6px; margin-left: -25px; border-radius: 999px; background: var(--ink); }
.ph-search { display: flex; align-items: center; gap: 6px; background: var(--raised); border-radius: 999px; padding: 8px 10px; font-size: 10px; color: var(--muted); }
.ph-search .ic { width: 14px; height: 14px; }
.phone-mock h4 { font-size: 14px; margin-top: var(--s2); }
.ph-card { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: var(--muted); }
.ph-card b { color: var(--ink); font-size: 12px; }
.ph-img { height: 70px; border-radius: var(--r-card); margin-bottom: 4px; }
.p1 { background: #FBD5CF; } .p2 { background: #FDE6B3; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; font-size: 9px; color: var(--muted); }
.ph-tabs i { font-style: normal; }
.ph-tabs i.on { color: var(--ink); font-weight: 700; }
@media (max-width: 920px) { .hero-art { min-height: 400px; } }
@media (max-width: 520px) { .phone-mock { width: 150px; height: 250px; left: -8px; } .hero-art { min-height: 400px; } .pc-body { grid-template-columns: 1fr; } .pc-ticket { display: none; } }

/* ds-allow-hardcode:end */

/* Sections */
.section { padding: var(--s8) var(--s5); }
.band { background: var(--raised); padding: var(--s8) 0; }
.band .card, .band .panel { background: var(--surface); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s6); }
.card { border: 1px solid var(--line); border-radius: var(--r-sheet); padding: var(--s5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.card p { color: var(--muted); font-size: var(--fs-body); }
.card .who { color: var(--brand); font-weight: 700; font-size: var(--fs-small); }
.card .btn { margin-top: auto; }
.card p:nth-of-type(2) { margin-bottom: var(--s4); }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); counter-reset: s; }
.steps li { border-top: var(--edge) solid var(--ink); padding-top: var(--s4); }
.steps .n { display: inline-grid; place-items: center; width: var(--badge); height: var(--badge); border-radius: 50%; background: var(--brand-soft); color: var(--on-brand-soft); font-weight: 700; font-size: var(--fs-small); margin-bottom: var(--s3); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--muted); font-size: var(--fs-body); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s7); align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }
.ticks { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; }
.ticks .ic { color: var(--brand); margin-top: var(--edge); stroke-width: 2.4; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: var(--s5); }
.panel h3 { margin-bottom: var(--s4); }
.panel dt { font-weight: 700; color: var(--brand); margin-top: var(--s4); }
.panel dt:first-of-type { margin-top: 0; }
.panel dd { margin: var(--s1) 0 0; color: var(--muted); }
.panel dd b { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s5); }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.how { margin: 0; padding-left: var(--s5); display: grid; gap: var(--s3); color: var(--muted); }
.how b, .how i { color: var(--ink); }
.how li::marker { color: var(--brand); font-weight: 700; }

/* Downloads */
.group { margin-top: var(--s6); margin-bottom: var(--s3); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.group small { font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.files li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s4); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4) var(--s5); }
.f-name { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.f-name .ic { width: var(--icon-file); height: var(--icon-file); color: var(--brand); }
.f-name b { display: block; font-size: var(--fs-file); }
.f-name span { display: block; color: var(--muted); font-size: var(--fs-small); }
.f-meta { color: var(--muted); font-size: var(--fs-small); text-align: right; }
.f-meta span { display: block; }
.f-meta .sha { font-family: var(--mono); font-size: var(--fs-tiny); word-break: break-all; max-width: var(--sha-width); }
@media (max-width: 720px) {
  .files li { grid-template-columns: 1fr; }
  .f-meta { text-align: left; }
  .f-meta .sha { max-width: none; }
  .files .btn { width: 100%; }
}

.foot { border-top: 1px solid var(--line); padding: var(--s6) 0; color: var(--muted); }
.foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); }
.foot .brand { color: var(--ink); }
