/* =============================================================
   Local Delivery — Design Tokens
   Shopify-flavoured commerce direction, built on the L2u foundation.
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  /* ---- Local Delivery palette — bright yellow + ink black ---- */
  --ld-yellow:       #FFD60A;   /* primary brand yellow (logo) */
  --ld-yellow-deep:  #F0B400;
  --ld-yellow-soft:  #FFF4B8;
  --ld-yellow-tint:  #FFFBE3;

  /* legacy aliases — keep --ld-green-* names mapped so components don't all need edits */
  --ld-green:        #FFD60A;
  --ld-green-deep:   #0F0F0F;
  --ld-green-darker: #000000;
  --ld-green-tint:   #FFF4B8;
  --ld-green-soft:   #FFFBE3;

  --ld-accent:       #FF6B35;   /* speed / delivery / urgency */
  --ld-accent-tint:  #FFE9DE;

  --ld-l2u-blue:     #3B82F6;   /* Locate2u brand blue (logo) */
  --ld-l2u-blue-tint:#E8F1FE;

  --ld-ok:           #2DC275;   /* on-time / success */
  --ld-ok-tint:      #DDF4E6;

  --ld-ink:          #0F0F0F;   /* near-black, matches logo */
  --ld-ink-2:        #1F1F1F;
  --ld-ink-mute:     #5C5C5C;
  --ld-ink-soft:     #8A8A8A;
  --ld-line:         #E6E5DF;
  --ld-line-soft:    #F0EFE9;

  --ld-cream:        #FAF8F2;
  --ld-cream-2:      #F4F1E8;
  --ld-paper:        #FFFFFF;

  --ld-dark:         #0F0F0F;
  --ld-dark-2:       #161616;
  --ld-dark-3:       #222222;

  /* shadows */
  --ld-shadow-sm:    0 1px 2px rgba(15, 15, 15, 0.04);
  --ld-shadow-md:    0 4px 16px rgba(15, 15, 15, 0.06), 0 1px 2px rgba(15, 15, 15, 0.04);
  --ld-shadow-pop:   0 10px 30px rgba(15, 15, 15, 0.10), 0 2px 6px rgba(15, 15, 15, 0.06);
  --ld-shadow-cart:  0 20px 60px rgba(15, 15, 15, 0.18), 0 4px 12px rgba(15, 15, 15, 0.06);
  --ld-shadow-cta:   0 6px 0 var(--ld-ink), 0 14px 30px rgba(255, 214, 10, 0.35);

  /* radii — slightly softer than L2u to feel commerce-y */
  --ld-r-xs:  6px;
  --ld-r-sm:  8px;
  --ld-r-md:  12px;
  --ld-r-lg:  16px;
  --ld-r-xl:  20px;
  --ld-r-2xl: 24px;
  --ld-r-3xl: 32px;
  --ld-r-pill: 999px;

  --ld-font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ld-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ld-cream);
  color: var(--ld-ink);
  font-family: var(--ld-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- type ---- */
.ld-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ld-font-mono);
  font-weight: 600; font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ld-ink);
}
.ld-eyebrow-dot::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  background: var(--ld-yellow); border-radius: 50%;
  border: 1.5px solid var(--ld-ink);
}
.ld-display {
  font-family: var(--ld-font-sans);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -2.4px;
  color: var(--ld-ink);
  margin: 0;
}
.ld-h2 {
  font-family: var(--ld-font-sans);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  color: var(--ld-ink);
  margin: 0;
}
.ld-h3 {
  font-family: var(--ld-font-sans);
  font-weight: 800;
  font-size: 28px; line-height: 1.2;
  letter-spacing: -0.6px;
  color: var(--ld-ink);
  margin: 0;
}
.ld-h4 {
  font-family: var(--ld-font-sans);
  font-weight: 700;
  font-size: 20px; line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--ld-ink);
  margin: 0;
}
.ld-lead {
  font-family: var(--ld-font-sans);
  font-size: 19px; line-height: 1.55;
  color: var(--ld-ink-mute);
  margin: 0;
}
.ld-body {
  font-size: 16px; line-height: 1.6; color: var(--ld-ink-mute); margin: 0;
}
.ld-small { font-size: 14px; line-height: 1.5; color: var(--ld-ink-mute); }
.ld-mono { font-family: var(--ld-font-mono); font-size: 12px; letter-spacing: 0.4px; }

/* ---- buttons ---- */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border: none; border-radius: var(--ld-r-md);
  font-weight: 600; font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.ld-btn-primary {
  background: var(--ld-yellow); color: var(--ld-ink);
  border: 1.5px solid var(--ld-ink);
  box-shadow: 0 4px 0 var(--ld-ink);
  font-weight: 700;
}
.ld-btn-primary:hover { background: var(--ld-yellow-deep); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ld-ink); }
.ld-btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ld-ink); }
.ld-btn-ghost {
  background: transparent; color: var(--ld-ink);
  border: 1px solid var(--ld-line);
}
.ld-btn-ghost:hover { background: var(--ld-paper); border-color: var(--ld-ink-soft); }
.ld-btn-dark {
  background: var(--ld-ink); color: #fff;
}
.ld-btn-dark:hover { background: #000; }
.ld-btn-lg { padding: 17px 26px; font-size: 16px; }
.ld-btn-sm { padding: 9px 14px; font-size: 13px; }

/* ---- pill/chip ---- */
.ld-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--ld-paper);
  border: 1px solid var(--ld-line);
  border-radius: var(--ld-r-pill);
  font-size: 13px; color: var(--ld-ink-2);
}
.ld-pill-tint {
  background: var(--ld-yellow);
  border: 1px solid var(--ld-ink);
  color: var(--ld-ink);
  font-family: var(--ld-font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 11px;
}

/* ---- container ---- */
.ld-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.ld-container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.ld-section { padding: 96px 0; }
.ld-section-sm { padding: 64px 0; }

/* ---- card ---- */
.ld-card {
  background: var(--ld-paper);
  border: 1px solid var(--ld-line);
  border-radius: var(--ld-r-2xl);
  box-shadow: var(--ld-shadow-sm);
}

/* ---- success dot helper ---- */
.ld-ok-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ld-ok); }

/* ---- shopify dot ---- */
.ld-shop-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: #95BF47; color: #fff;
  font-weight: 900; font-size: 13px;
  font-family: var(--ld-font-sans);
}

/* ---- animation ---- */
@keyframes ldPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
@keyframes ldDrift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.ld-pulse { animation: ldPulse 1.8s ease-in-out infinite; }
/* ---- nav (mobile menu) ---- */
.ld-nav-toggle { display: none; }
@media (max-width: 900px) {
  .ld-nav-links, .ld-nav-cta { display: none !important; }
  .ld-nav-toggle { display: inline-flex !important; }
}
@media (min-width: 901px) {
  .ld-nav-mobile { display: none !important; }
}

/* ---- feature row responsive ---- */
.ld-feature-row { display: grid; gap: 64px; align-items: center; }
@media (max-width: 1100px) {
  .ld-feature-row { grid-template-columns: 1fr !important; gap: 40px; }
  .ld-feature-row > div { order: unset !important; grid-column: 1 !important; grid-row: auto !important; }
}

/* ---- responsive ---- */
.ld-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 56px;
  align-items: center;
}
.ld-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ld-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.ld-split-l { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ld-split-r { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ld-faq-split { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 80px; }
.ld-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 28px 32px; }

/* ---- legal pages ---- */
@media (max-width: 900px) {
  .ld-legal-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .ld-legal-toc { position: static !important; padding-bottom: 24px; border-bottom: 1px solid var(--ld-line); }
}

/* < 1180px : tighter */
@media (max-width: 1180px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .ld-section { padding: 80px 0; }
  .ld-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .ld-split-2, .ld-split-l, .ld-split-r, .ld-faq-split { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .ld-footer-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
}
@media (max-width: 720px) {
  .ld-container, .ld-container-wide { padding: 0 20px; }
  .ld-grid-3, .ld-grid-4 { grid-template-columns: 1fr; }
  .ld-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- smooth scrolling + sticky-nav anchor offset ---- */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 92px; }

/* ---- page transitions ---- */
/* cross-document fade between pages (Chrome / supporting browsers) */
@view-transition { navigation: auto; }
/* fade + lift on entry (works in every browser) */
@keyframes ldPageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#root, .ld-page { animation: ldPageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #root, .ld-page { animation: none; }
}

/* dashboard split → single column on smaller screens */
@media (max-width: 980px) {
  .ld-dash-split { grid-template-columns: 1fr !important; }
}
