/* Mr Errand — marketing site styles
   Nigerian flag palette · Pacifico for brand · mobile-first · a11y-friendly */
:root {
  --brand: #008751;
  --brand-dark: #006b41;
  --brand-tint: #e6f5ee;
  --ink: #0f1a15;
  --ink-2: #3a4d43;
  --muted: #6b7c73;
  --bg: #ffffff;
  --surface: #f7faf8;
  --line: #e2ebe6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,66,40,.08), 0 4px 12px rgba(0,66,40,.06);
  --shadow-lg: 0 20px 60px rgba(0,66,40,.18), 0 10px 30px rgba(0,66,40,.10);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Layout */
.section { max-width: var(--container); margin: 0 auto; padding: 96px 24px; }
@media (max-width: 720px) { .section { padding: 64px 20px; } }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.02em;
  margin: 12px 0 12px;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow-light { background: rgba(255,255,255,.15); color: #fff; }

/* Flag ribbon */
.flag-ribbon { display: flex; height: 4px; width: 100%; }
.flag-stripe { flex: 1; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px;
  min-height: var(--nav-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.brand-name {
  font-family: 'Pacifico', cursive; font-size: 26px; color: var(--brand);
  line-height: 1; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 0; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: transparent; border: 0; padding: 10px;
  margin-left: auto; cursor: pointer; border-radius: 10px;
  transition: background .2s ease;
}
.nav-toggle:hover { background: var(--brand-tint); }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transform-origin: center;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-size: 15px; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Mobile menu — dynamic slide-down panel */
.mobile-menu {
  position: fixed; left: 0; right: 0;
  top: var(--nav-offset, var(--nav-h));
  z-index: 55;
  max-height: calc(100vh - var(--nav-offset, var(--nav-h)));
  overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px 20px 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-md);
  transform: translateY(-16px);
  opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
.mobile-menu[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  color: var(--ink); font-weight: 500; font-size: 17px;
  padding: 14px 8px; border-radius: 10px;
  transition: background .15s ease;
}
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu .btn { margin-top: 12px; align-self: stretch; }

/* Scrim behind the menu */
.mobile-scrim {
  position: fixed;
  top: var(--nav-offset, var(--nav-h)); left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(15,26,21,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.mobile-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* HERO */
.hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, var(--brand-tint) 0%, transparent 60%),
    radial-gradient(1000px 400px at -10% 20%, #f0fbf5 0%, transparent 60%),
    #fff;
  padding: 40px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand); font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-dot {
  width: 8px; height: 8px; background: var(--brand); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,135,81,.15); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,135,81,.08); } }

.hero-title {
  font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 22px; font-weight: 800;
}
.hero-title-line1 { display: block; color: var(--ink); }
.hero-title-line2 { display: block; color: var(--ink-2); font-weight: 700; margin-top: 4px; }
.brand-word {
  font-family: 'Pacifico', cursive; color: var(--brand);
  font-weight: 400; letter-spacing: .5px; font-size: 1.05em;
  display: inline-block; position: relative; padding-right: 8px;
}
.bike-track {
  display: inline-block; position: relative; width: 100%; height: 34px;
  overflow: hidden; margin-top: -6px;
}
.bike-loop {
  position: absolute; left: -40px; top: 0;
  animation: bikeLoop 3.2s linear infinite;
}
@keyframes bikeLoop {
  0%   { transform: translateX(0);              }
  100% { transform: translateX(calc(100vw + 80px)); }
}

.hero-tagline {
  color: var(--ink-2); font-size: 18px; max-width: 560px; margin: 0 0 32px;
}
.hero-tagline strong { color: var(--brand-dark); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0f1a15; color: #fff; padding: 12px 22px; border-radius: 14px;
  transition: transform .15s ease;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn em { font-style: normal; font-size: 11px; opacity: .8; letter-spacing: .05em; }
.store-btn strong { font-size: 15px; font-weight: 600; }

.waitlist {
  display: flex; gap: 8px; max-width: 460px; margin: 4px 0 8px;
  background: #fff; padding: 6px; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.waitlist input {
  flex: 1; border: 0; padding: 10px 16px; font: inherit; background: transparent;
  outline: none; min-width: 0;
}
.waitlist button { padding: 10px 20px; }
.waitlist-note { color: var(--muted); font-size: 13px; margin: 0 0 26px; }

.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.trust-pill .dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }

/* Hero phone mock */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone {
  width: 300px; height: 600px; background: #0f1a15; border-radius: 42px;
  padding: 12px; position: relative; box-shadow: var(--shadow-lg);
  border: 6px solid #1a2a22;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0f1a15; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; background: linear-gradient(180deg, #e8f5ee 0%, #fff 100%);
  border-radius: 30px; overflow: hidden; display: flex; flex-direction: column;
}
.phone-header {
  display: flex; align-items: center; gap: 8px; padding: 34px 18px 12px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.phone-header img { width: 24px; height: 24px; }
.phone-header span { font-family: 'Pacifico', cursive; color: var(--brand); font-size: 20px; }
.phone-map {
  flex: 1; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, #d4ebe0 0%, #e8f5ee 40%, #f4faf6 100%);
}
.phone-map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,135,81,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,135,81,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.map-pin {
  position: absolute; font-size: 22px; z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.15));
}
.pin-pickup { top: 30%; left: 20%; }
.pin-drop { top: 60%; right: 20%; }
.map-route {
  position: absolute; top: 38%; left: 24%; width: 55%; height: 24%;
  border-top: 3px dashed var(--brand); border-right: 3px dashed var(--brand);
  border-top-right-radius: 40px;
}
.map-bike {
  position: absolute; top: 42%; left: 25%; font-size: 22px; z-index: 3;
  animation: bikeMove 3.5s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.2));
}
@keyframes bikeMove {
  0%   { top: 42%; left: 25%; }
  50%  { top: 42%; left: 65%; }
  100% { top: 65%; left: 78%; }
}

.phone-card {
  background: #fff; padding: 14px; border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,.05);
}
.phone-card-row { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.phone-card-body { flex: 1; display: flex; flex-direction: column; }
.phone-card-body strong { font-size: 14px; }
.phone-card-body span { font-size: 12px; color: var(--muted); }
.phone-price { font-weight: 700; color: var(--brand-dark); }
.phone-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.pill {
  flex: 1; padding: 8px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: 12px; color: var(--ink);
}
.pill-primary { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone { width: 250px; height: 500px; }
  .hero-ctas { justify-content: center; }
  .hero-copy { text-align: center; }
  .waitlist { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
}

/* How */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 980px; margin: 0 auto;
}
.how-col {
  padding: 32px; background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.how-col-alt { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-color: transparent; }
.how-col-alt .step-num-alt { background: #fff; color: var(--brand); }
.how-col-alt span { color: rgba(255,255,255,.85); }
.how-col-alt strong { color: #fff; }
.how-title { margin-top: 0; margin-bottom: 24px; }
.how-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand); font-size: 13px; font-weight: 600;
}
.how-badge-alt { background: rgba(255,255,255,.2); color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; font-size: 16px; margin-bottom: 2px; }
.steps span { font-size: 14px; color: var(--muted); }

@media (max-width: 720px) { .how-grid { grid-template-columns: 1fr; } }

/* Features */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { max-width: none; padding-left: 24px; padding-right: 24px; }
.features .section-head { max-width: var(--container); }
.feature-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: #fff; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  font-size: 34px; width: 60px; height: 60px; border-radius: 16px;
  background: var(--brand-tint); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* Tasker band */
.tasker-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; max-width: none; padding-left: 24px; padding-right: 24px;
}
.tasker-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.tasker-title {
  font-size: clamp(28px, 4vw, 44px); margin: 12px 0 16px; letter-spacing: -.02em;
}
.tasker-body { font-size: 17px; opacity: .92; margin-bottom: 22px; max-width: 520px; }
.tasker-bullets { list-style: none; padding: 0; margin: 0 0 28px; }
.tasker-bullets li {
  padding-left: 28px; position: relative; margin-bottom: 10px; font-size: 15px; opacity: .95;
}
.tasker-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.15); width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.tasker-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.stat {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat-lbl { font-size: 13px; opacity: .8; }

@media (max-width: 720px) {
  .tasker-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .tasker-bullets li { text-align: left; }
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; padding: 4px 20px; transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; margin-left: 12px;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band {
  text-align: center; padding: 80px 24px; background: var(--brand-tint);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { color: var(--ink-2); margin: 0 0 28px; font-size: 17px; }

/* Footer */
.footer {
  background: #0f1a15; color: #cfdcd5; padding: 60px 24px 30px;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a, .footer li span { color: #cfdcd5; font-size: 14px; }
.footer a:hover { color: #fff; }
.brand-footer .brand-name { color: #fff; }
.footer-tagline { font-size: 14px; color: #8fa79b; margin: 12px 0 0; max-width: 340px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.socials a:hover { background: var(--brand); color: #fff; }
.footer-bottom {
  max-width: var(--container); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #8fa79b;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
