/* Lili Eats website. Brand colours match the app (src/theme.ts). */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --sand: #f4ede4;
  --line: #ece5dc;
  --ink: #1c1712;
  --text: #3a332c;
  --muted: #7a7068;
  --brand: #f25c05;
  --brand-deep: #d24a00;
  --brand-soft: #fff0e5;
  --green: #12804a;
  --green-soft: #e5f5ec;
  --gold: #ffb800;
  --red: #c62828;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .06), 0 8px 24px rgba(60, 30, 10, .08);
  --shadow-lg: 0 2px 4px rgba(60, 30, 10, .08), 0 24px 60px rgba(60, 30, 10, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.eyebrow { display: inline-block; font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 244, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.logo .mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo .mark svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; }
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: 17px; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; border-radius: 999px; padding: 16px 26px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(242, 92, 5, .32); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 15px; color: #fff; }
.nav .btn:hover { background: var(--brand-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }
.play { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 20px 10px 16px; }
.play:hover { background: #000; }
.play small { display: block; font-size: 11px; letter-spacing: .04em; opacity: .8; text-transform: uppercase; }
.play strong { display: block; font: 700 19px/1.1 var(--display); }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 8px 14px; }
.chip.mtn { background: #ffcc00; color: #1a1a1a; }
.chip.telecel { background: #e60000; color: #fff; }
.chip.at { background: #0033a0; color: #fff; }
.chip.place { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 270px; border-radius: 38px; background: #111; padding: 9px; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; background: var(--sand); }
.phones .p1 { left: 50%; top: 10px; transform: translateX(-90%) rotate(-5deg); z-index: 2; }
.phones .p2 { left: 50%; top: 50px; transform: translateX(-5%) rotate(5deg); }
.blob { position: absolute; inset: 40px 0 0 10%; background: radial-gradient(closest-side, #ffd9bf, rgba(255, 217, 191, 0)); z-index: -1; }
.float-card { position: absolute; z-index: 3; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.float-card b { display: block; color: var(--ink); font-size: 15px; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.fc1 { left: 0; bottom: 70px; }
.fc2 { right: 0; top: 70px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 470px; margin-top: 10px; }
  .phone { width: 210px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .fc2 { top: 20px; }
  .fc1 { bottom: 20px; }
}

/* Steps / cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-top: 8px; }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 20px/1 var(--display); background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 18px; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--brand-soft); margin-bottom: 18px; }

/* MoMo band */
.band { background: var(--ink); color: #e9e1d8; border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; }
.band .lead { color: #bfb3a7; }
.band .eyebrow { color: #ff9a5c; }
.ussd { display: grid; gap: 12px; }
.ussd div { background: #2a231d; border-radius: 16px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ussd b { color: #fff; font-size: 17px; }
.ussd span { font-size: 14px; color: #bfb3a7; }
.ussd .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 40px 24px; border-radius: 24px; } }

/* Communities */
.town { position: relative; overflow: hidden; border-radius: 24px; padding: 32px; color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.town h3 { color: #fff; font-size: 34px; }
.town p { color: rgba(255, 255, 255, .85); margin-top: 6px; }
.town .emoji { position: absolute; top: 20px; right: 24px; font-size: 64px; }
.town.tk { background: linear-gradient(135deg, #0f6b8f, #0b3f5c); }
.town.of { background: linear-gradient(135deg, #2f8a3c, #145c2b); }
.town .areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.town .areas span { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 11px; font-size: 13px; }

/* Split CTA */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split a { text-decoration: none; display: block; border-radius: 28px; padding: 40px; color: var(--ink); transition: transform .2s; }
.split a:hover { transform: translateY(-3px); }
.split .rider { background: #ffe7d6; }
.split .rest { background: #fff3c9; }
.split p { color: var(--text); margin: 10px 0 22px; max-width: 420px; }
.split .go { font-weight: 700; color: var(--brand-deep); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split a { padding: 28px; } }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Footer */
.foot { background: var(--sand); padding: 56px 0 40px; margin-top: 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .small { color: var(--muted); font-size: 14px; margin-top: 14px; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 820px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Join pages */
.page-hero { padding: 56px 0 24px; }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } }
.stat-card { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 28px; }
.stat-card .big { font: 800 52px/1 var(--display); color: var(--green); letter-spacing: -0.03em; }
.stat-card .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.stat-card .row:last-child { border: 0; }
.stat-card .row b { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 5px 12px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: 14px; margin-top: 1px; }

/* Forms */
.form-shell { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 40px; max-width: 820px; margin: 40px auto 0; }
@media (max-width: 640px) { .form-shell { padding: 24px 18px; border-radius: 22px; } }
fieldset { border: 0; padding: 0; margin: 0 0 32px; }
legend { font: 700 20px/1.2 var(--display); color: var(--ink); padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
legend .n { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
label.f .opt { font-weight: 500; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: 16px/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
input.bad, select.bad { border-color: var(--red); background: #fff6f5; }
textarea { min-height: 90px; resize: vertical; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: 15px; }
.radio-row input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.radio-row input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.upload { position: relative; display: grid; place-items: center; text-align: center; gap: 4px; border: 2px dashed var(--line); border-radius: 16px; padding: 22px 14px; background: var(--bg); cursor: pointer; min-height: 140px; transition: border-color .15s; }
.upload:hover { border-color: var(--brand); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .u-ic { font-size: 28px; }
.upload b { color: var(--ink); font-size: 15px; }
.upload small { color: var(--muted); }
.upload.has { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.upload img.prev { max-height: 120px; border-radius: 10px; }
.upload.bad { border-color: var(--red); background: #fff6f5; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; background: var(--bg); padding: 16px; border-radius: 14px; }
.consent input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin-top: 1px; }
.form-error { display: none; background: #fff0ee; color: var(--red); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-weight: 600; }
.form-error.show { display: block; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.submit-row .muted { color: var(--muted); font-size: 14px; }
.success { display: none; text-align: center; padding: 20px 0; }
.success.show { display: block; }
.success .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 42px; margin: 0 auto 20px; }
.success p { color: var(--muted); max-width: 460px; margin: 12px auto 0; }
.ref { display: inline-block; margin-top: 18px; font: 700 18px/1 var(--display); background: var(--sand); padding: 12px 18px; border-radius: 12px; color: var(--ink); letter-spacing: .04em; }

/* Legal page */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 40px; }
.doc .meta { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc .summary { background: var(--surface); border-radius: 18px; padding: 22px 24px; margin: 32px 0; box-shadow: var(--shadow); }
.doc .summary ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc section { padding: 24px 0; border-top: 1px solid var(--line); }
.doc section h2 { font-size: 23px; margin-bottom: 10px; }
.doc section p, .doc section ul { margin: 0 0 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .tw { overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc td:first-child { font-weight: 600; color: var(--ink); min-width: 130px; }
.doc #delete { background: var(--brand-soft); border-radius: 18px; padding: 24px; border: 0; margin-top: 8px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 84px; }
.phones .solo { transform: translateX(-50%) rotate(-4deg); }
