/* =========================================================
   دُغري / DOGHRI — landing page
   Tokens live on :root; every class is prefixed dg-.
   ========================================================= */

:root {
  /* brand palette */
  --dg-yellow: #FFC233;      /* signal yellow — primary */
  --dg-yellow-deep: #F2A900;
  --dg-yellow-soft: #FFE6A6;
  --dg-ink: #1B1B1B;         /* asphalt — ink / buttons */
  --dg-chalk: #FFF8E7;       /* page background */
  --dg-road: #3A3A3A;        /* road grey */
  --dg-green: #19B36B;       /* success */
  --dg-red: #E5484D;         /* brake */
  --dg-white: #FFFFFF;
  --dg-paper: #FFFDF7;
  --dg-sand: #F3EBD6;
  --dg-muted: #5C5647;       /* body text on chalk, 7:1 */
  --dg-muted-dark: #BDB6A6;  /* body text on asphalt */
  --dg-line: rgba(27, 27, 27, .12);
  --dg-line-dark: rgba(255, 248, 231, .14);

  /* type */
  --dg-font-head: "Lemonada", "Tajawal", system-ui, sans-serif;
  --dg-font-body: "Tajawal", system-ui, sans-serif;

  /* shape + depth */
  --dg-r-sm: 12px;
  --dg-r: 20px;
  --dg-r-lg: 32px;
  --dg-shadow: 0 1px 0 rgba(27,27,27,.06), 0 12px 30px -12px rgba(27,27,27,.22);
  --dg-shadow-lg: 0 2px 0 rgba(27,27,27,.05), 0 40px 80px -30px rgba(27,27,27,.45);
  --dg-hard: 6px 6px 0 var(--dg-ink);

  /* layout + motion */
  --dg-container: 1240px;
  --dg-gutter: clamp(16px, 4vw, 40px);
  --dg-ease: cubic-bezier(.2, .8, .2, 1);
  --dg-dir: -1; /* travel direction: RTL moves toward the left */
}
[dir="ltr"] { --dg-dir: 1; }

/* ---------- base ----------
   Most pages load only this file. A few old vendor screens still load
   bootstrap + main.css underneath, so resets stay inside .dg-scope. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.dg-body {
  margin: 0;
  background: var(--dg-chalk);
  color: var(--dg-ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-family: var(--dg-font-body);
  font-size: 16.8px;
  line-height: 1.7;
}
.dg-scope { font-family: var(--dg-font-body); font-size: 16.8px; line-height: 1.7; }
.dg-scope :where(h1, h2, h3) { font-family: var(--dg-font-head); font-weight: 700; line-height: 1.15; color: inherit; }
.dg-scope :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.dg-scope p:last-child { margin-bottom: 0 !important; }
.dg-scope :where(ul, ol) { padding: 0; list-style: none; }
.dg-scope :where(ul li) { list-style: none; }
.dg-scope :where(a) { color: inherit; text-decoration: none; }
.dg-scope :where(button, input) { font: inherit; color: inherit; }
.dg-scope :where(img, svg) { display: block; }
.dg-scope :focus-visible { outline: 3px solid var(--dg-ink); outline-offset: 3px; border-radius: 8px; }
.dg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--dg-ink); color: var(--dg-chalk); padding: 10px 16px; border-radius: 10px; font-family: var(--dg-font-body); }
.dg-skip:focus { top: 12px; color: var(--dg-chalk); }

.dg-container { width: 100%; max-width: calc(var(--dg-container) + var(--dg-gutter) * 2); margin-inline: auto; padding-inline: var(--dg-gutter); }

.dg-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dg-ico--dir { transform: scaleX(calc(var(--dg-dir) * -1)); }   /* arrow drawn pointing left */
[dir="rtl"] .dg-ico--dir { transform: none; }
[dir="ltr"] .dg-ico--dir { transform: scaleX(-1); }
.dg-ico--up { transform: rotate(90deg); }

/* ---------- logo mark ---------- */
.dg-mark { --mk-ink: var(--dg-ink); --mk-bg: var(--dg-yellow); display: inline-grid; place-items: center; flex: none; }
.dg-mark svg { width: 100%; height: auto; }
.dg-mark__ink { stroke: var(--mk-ink); }
.dg-mark__dot { fill: var(--mk-ink); }
.dg-mark__lane { stroke: var(--mk-bg); fill: none; }
.dg-mark--tile { width: 46px; height: 46px; border-radius: 14px; background: var(--mk-bg); padding: 7px 6px 9px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.dg-mark--mini { width: 34px; height: 34px; border-radius: 10px; background: var(--mk-bg); padding: 5px 4px 6px; }
.dg-mark--footer { --mk-ink: var(--dg-ink); width: 56px; height: 56px; border-radius: 16px; background: var(--dg-yellow); padding: 9px 7px 11px; }
.dg-mark--app { width: 84px; height: 84px; border-radius: 24px; background: var(--dg-yellow); padding: 13px 11px 16px; box-shadow: 0 10px 0 -4px var(--dg-yellow-deep); }

.dg-brand { display: inline-flex; align-items: center; gap: 12px; }
.dg-brand__text { display: grid; line-height: 1; }
.dg-brand__ar { font-family: var(--dg-font-head); font-weight: 700; font-size: 26.4px; letter-spacing: -.01em; }
.dg-brand__lat { font-family: var(--dg-font-head); font-weight: 700; font-size: 9.92px; letter-spacing: .32em; color: var(--dg-muted); margin-top: 5px; }
.dg-brand--light .dg-brand__lat { color: var(--dg-muted-dark); }

/* ---------- buttons ---------- */
.dg-btn {
  --b-bg: var(--dg-ink); --b-fg: var(--dg-chalk);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--dg-font-body); font-weight: 800; font-size: 15.68px; white-space: nowrap;
  transition: transform .25s var(--dg-ease), box-shadow .25s var(--dg-ease), background .2s;
}
.dg-btn .dg-ico { width: 20px; height: 20px; transition: translate .3s var(--dg-ease); }
.dg-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(27,27,27,.6); }
.dg-btn:hover .dg-ico--dir { translate: calc(var(--dg-dir) * 4px) 0; }
.dg-btn:active { transform: translateY(0); }
.dg-btn--yellow { --b-bg: var(--dg-yellow); --b-fg: var(--dg-ink); }
.dg-btn--yellow:focus-visible { outline-color: var(--dg-yellow); }

/* ---------- header ---------- */
.dg-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--dg-chalk) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.dg-header.is-scrolled { border-color: var(--dg-line); box-shadow: 0 10px 30px -24px rgba(27,27,27,.5); }
.dg-header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.dg-nav { margin-inline-start: auto; }
.dg-nav__list { display: flex; gap: 6px; }
.dg-nav__list a {
  position: relative; display: block; padding: 10px 14px; font-weight: 500; font-size: 15.68px; border-radius: 999px;
  transition: background .2s;
}
.dg-nav__list a::after { /* lane marking underline */
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--dg-yellow-deep) 0 8px, transparent 8px 13px);
  transform: scaleX(0); transform-origin: var(--dg-origin, right); transition: transform .35s var(--dg-ease);
}
[dir="ltr"] .dg-nav__list a::after { transform-origin: left; }
.dg-nav__list a:hover::after, .dg-nav__list a:focus-visible::after { transform: scaleX(1); }
.dg-nav__mobile-cta { display: none; }
.dg-header__actions { display: flex; align-items: center; gap: 12px; }
.dg-lang { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(27,27,27,.06); }
.dg-lang__btn { border: 0; background: transparent; cursor: pointer; min-width: 40px; height: 34px; border-radius: 999px; font-weight: 800; font-size: 13.6px; font-family: var(--dg-font-body); }
.dg-lang__btn.is-active { background: var(--dg-ink); color: var(--dg-yellow); }
.dg-burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--dg-line); background: var(--dg-paper); cursor: pointer; place-items: center; }
.dg-burger__close { display: none; }
.dg-burger[aria-expanded="true"] .dg-burger__open { display: none; }
.dg-burger[aria-expanded="true"] .dg-burger__close { display: block; }

/* ---------- shared section heads ---------- */
.dg-section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.dg-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.dg-head--start { text-align: start; margin-inline: 0; }
.dg-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--dg-font-body); font-weight: 800; font-size: 14.4px; letter-spacing: .02em;
}
.dg-kicker::before { content: ""; width: 34px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--dg-ink) 0 10px, transparent 10px 15px); }
.dg-head--light .dg-kicker { color: var(--dg-yellow); }
.dg-head--light .dg-kicker::before { background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 10px, transparent 10px 15px); }
.dg-h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.015em; }
.dg-lead { margin-top: 18px; font-size: clamp(16.32px, 1.4vw, 18.4px); color: var(--dg-muted); }
.dg-head--light .dg-lead { color: var(--dg-muted-dark); }

/* yellow highlighter with lane marking */
.dg-hl { position: relative; display: inline-block; z-index: 0; padding-inline: .08em; }
.dg-hl::before { content: ""; position: absolute; z-index: -1; inset-inline: -.06em; bottom: .06em; height: .42em; background: var(--dg-yellow); border-radius: .12em; transform: skewX(-8deg); }

/* ---------- pill ---------- */
.dg-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 18px; border-radius: 999px; background: var(--dg-paper); border: 1px solid var(--dg-line); font-size: 14.4px; font-weight: 500; box-shadow: var(--dg-shadow); }
.dg-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--dg-green); }
.dg-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--dg-green); animation: dg-ping 1.8s var(--dg-ease) infinite; }
@keyframes dg-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* =========================================================
   HERO
   ========================================================= */
.dg-hero { position: relative; padding-top: clamp(28px, 5vw, 64px); overflow: clip; isolation: isolate; }
.dg-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dg-hero__sun { position: absolute; width: min(760px, 70vw); aspect-ratio: 1; border-radius: 50%; background: var(--dg-yellow); inset-inline-end: -12vw; top: -8%; max-height: 760px; }
.dg-hero__ghost { position: absolute; width: min(520px, 46vw); inset-inline-end: 3vw; top: 6%; color: rgba(27,27,27,.06); }
.dg-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 56px); min-height: min(calc(100vh - 76px - 120px), 700px); padding-bottom: 32px; }
.dg-hero__copy { position: relative; z-index: 2; max-width: 640px; }
.dg-hero__title { margin-top: 22px; font-weight: 700; font-size: clamp(46.4px, 7.2vw, 100.8px); line-height: 1.06; letter-spacing: -.02em; }
.dg-hero__title .dg-hl::before { height: .36em; bottom: .1em; }
.dg-hero__lead { margin-top: 22px; font-size: clamp(16.8px, 1.5vw, 19.52px); color: var(--dg-muted); max-width: 54ch; }

/* zone search */
.dg-zone { margin-top: 30px; max-width: 600px; }
.dg-zone__label { display: block; font-family: var(--dg-font-body); font-weight: 800; font-size: 15.2px; margin-bottom: 10px; }
.dg-zone__field {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 8px; padding-inline-start: 18px;
  background: var(--dg-white); border: 2px solid var(--dg-ink); border-radius: 999px; box-shadow: var(--dg-hard);
  /* Transform only: the hard shadow swaps without a transition so phones have
     nothing to repaint while the box lifts. */
  transition: transform .22s var(--dg-ease);
}
.dg-zone__field:focus-within { transform: translate(calc(var(--dg-dir) * 3px), -3px); box-shadow: 9px 9px 0 var(--dg-ink); }
.dg-zone__pin { color: var(--dg-ink); width: 22px; height: 22px; flex: none; }
.dg-zone__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 46px; font-size: 16px; }
.dg-zone__input::placeholder { color: #8A8473; }
.dg-zone__btn { min-height: 52px; }
.dg-zone__msg { min-height: 1.6em; margin-top: 12px; font-size: 15.2px; font-weight: 500; }
.dg-zone__msg.is-ok { color: #0E7A47; }
.dg-zone__msg.is-err { color: #B4232A; }
.dg-zone__msg.is-warn { color: #8A5B00; }
.dg-zone__count { font-family: var(--dg-font-head); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- area search: the road reacting to the search ----------
   Everything here animates transform or opacity only, each piece is a single
   short run, and the reduced-motion block at the end turns every one of them
   into the finished state. */

/* The dashed lane of the logo, sweeping once through the field on focus and
   again when an area is picked. */
.dg-zone__lane {
  position: absolute; inset-inline: 10px; bottom: 7px; height: 3px; border-radius: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 14px, transparent 14px 24px);
  opacity: 0;
}
.dg-zone__lane.is-sweep { animation: dg-zone-sweep .34s var(--dg-ease); }
@keyframes dg-zone-sweep {
  0% { opacity: 0; transform: translateX(calc(var(--dg-dir) * -34%)) scaleX(.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(var(--dg-dir) * 34%)) scaleX(1); }
}

/* The target pin: a nudge when the field wakes up, a landing when an area is picked. */
.dg-zone__pin.is-wake { animation: dg-pin-wake .36s var(--dg-ease); }
@keyframes dg-pin-wake {
  0% { transform: none; }
  45% { transform: translateY(-4px) scale(1.14); }
  100% { transform: none; }
}
.dg-zone__pin.is-land { animation: dg-pin-land .32s cubic-bezier(.3, 1.5, .5, 1); color: var(--dg-yellow-deep); }
@keyframes dg-pin-land {
  0% { transform: translateY(-9px) scale(1.25); }
  60% { transform: translateY(1px) scale(.9); }
  100% { transform: none; }
}

/* The ripple under a pick, and a gentle nudge when there is nothing to show. */
.dg-zone__field::after {
  content: ""; position: absolute; inset-inline-start: 10px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; border: 2px solid var(--dg-yellow-deep); opacity: 0; pointer-events: none; transform: scale(.3);
}
.dg-zone__field.is-snap::after { animation: dg-zone-ripple .42s var(--dg-ease); }
@keyframes dg-zone-ripple {
  0% { opacity: .9; transform: scale(.3); }
  100% { opacity: 0; transform: scale(2.6); }
}
.dg-zone__field.is-nudge { animation: dg-zone-nudge .28s var(--dg-ease); }
@keyframes dg-zone-nudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Suggestions: a short staggered entrance, matched words carrying the brand underline. */
.dg-zone__box { position: relative; }
.dg-zone__list {
  position: absolute; inset-inline: 0; top: calc(100% + 10px); z-index: 30; list-style: none; margin: 0; padding: 6px;
  background: var(--dg-paper); border: 2px solid var(--dg-ink); border-radius: var(--dg-r);
  box-shadow: var(--dg-hard); max-height: 320px; overflow-y: auto;
}
.dg-zone__opt {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: var(--dg-r-sm); cursor: pointer;
  animation: dg-opt-in .22s var(--dg-ease) both; animation-delay: calc(var(--i, 0) * 28ms);
}
.dg-zone__opt.is-active, .dg-zone__opt:hover { background: var(--dg-yellow-soft); }
.dg-zone__opt.is-active { box-shadow: inset 0 0 0 2px var(--dg-ink); }
/* The row that says there is no match. It cannot be picked, so it must not look like
   something that can be: no pointer, no hover, and it only says what to type instead. */
.dg-zone__opt--none { display: block; cursor: default; color: var(--dg-muted); font-size: 14px; line-height: 1.6; }
.dg-zone__opt--none:hover { background: none; }
.dg-zone__opt-name { font-weight: 500; }
.dg-zone__opt-sub { color: var(--dg-muted); font-size: 13px; }
/* The words the query reached, carrying the brand underline so the match
   explains itself even inside a highlighted row. */
.dg-zone__hit {
  background: none; color: inherit; font-weight: 800; padding: 0 1px;
  box-shadow: inset 0 -.4em 0 var(--dg-yellow-deep);
}
@keyframes dg-opt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The picked area, as a chip that snaps into place. */
.dg-zone__picked { margin-top: 10px; }
.dg-zone__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px;
  background: var(--dg-yellow); border: 2px solid var(--dg-ink); border-radius: 999px; font-size: 14.4px;
}
[dir="rtl"] .dg-zone__chip { padding: 6px 14px 6px 8px; }
.dg-zone__chip.is-in { animation: dg-chip-in .24s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes dg-chip-in { 0% { opacity: 0; transform: scale(.82); } 100% { opacity: 1; transform: none; } }
.dg-zone__chip-pin { width: 18px; height: 18px; flex: none; }
.dg-zone__chip-name { font-family: var(--dg-font-body); font-weight: 800; }
.dg-zone__chip-sub { color: rgba(27, 27, 27, .66); }
.dg-zone__chip-x {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: rgba(27, 27, 27, .1); color: var(--dg-ink);
  transition: transform .15s var(--dg-ease);
}
.dg-zone__chip-x:hover { transform: scale(1.12); }
.dg-zone__chip-x .dg-ico { width: 16px; height: 16px; }

/* Leaving for the stores list: one dashed lane rushing across the screen. */
.dg-rush { position: fixed; inset: 0; z-index: 999; pointer-events: none; overflow: hidden; }
.dg-rush__lane {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 140%;
  background: var(--dg-ink);
  animation: dg-rush-in .36s cubic-bezier(.5, 0, .3, 1) both;
}
.dg-rush__lane::after {
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 6px; margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 44px, transparent 44px 80px);
}
@keyframes dg-rush-in {
  from { transform: translateX(calc(var(--dg-dir) * -100%)); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  /* Every one of the above becomes its finished, still state. */
  .dg-zone__field, .dg-zone__chip-x { transition: none; }
  .dg-zone__lane, .dg-zone__field::after { animation: none; opacity: 0; }
  .dg-zone__pin, .dg-zone__opt, .dg-zone__chip, .dg-rush__lane { animation: none; }
  .dg-zone__opt { opacity: 1; transform: none; }
  .dg-zone__chip { opacity: 1; transform: none; }
  .dg-rush { display: none; }
}

.dg-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; }
.dg-hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15.2px; }
.dg-hero__trust .dg-ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--dg-green); color: var(--dg-white); stroke-width: 3; }

/* phone */
.dg-hero__visual { position: relative; display: grid; place-items: center; padding-block: 24px 40px; }
.dg-phone {
  position: relative; width: 300px; height: 612px; padding: 12px; border-radius: 48px;
  background: var(--dg-ink); box-shadow: var(--dg-shadow-lg), inset 0 0 0 2px #333, inset 0 0 0 5px #111;
  transform: rotate(-3deg); animation: dg-float 7s ease-in-out infinite;
}
[dir="ltr"] .dg-phone { transform: rotate(3deg); }
@keyframes dg-float { 50% { translate: 0 -10px; } }
.dg-phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: var(--dg-ink); z-index: 3; }
.dg-phone__screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--dg-chalk); display: flex; flex-direction: column; }
.dg-phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 0; font-size: 11.52px; font-weight: 600; direction: ltr; height: 38px; }
.dg-phone__sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.dg-phone__sig i { width: 3px; background: var(--dg-ink); border-radius: 1px; }
.dg-phone__sig i:nth-child(1) { height: 5px; } .dg-phone__sig i:nth-child(2) { height: 8px; } .dg-phone__sig i:nth-child(3) { height: 11px; }
.dg-app__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; }
.dg-app__top div { display: grid; line-height: 1.3; }
.dg-app__top small { font-size: 10.88px; color: var(--dg-muted); }
.dg-app__top b { font-family: var(--dg-font-head); font-size: 14.4px; }
.dg-map { position: relative; margin-inline: 12px; height: 150px; border-radius: 18px; overflow: hidden; border: 1px solid var(--dg-line); }
.dg-map__svg { width: 100%; height: 100%; }
.dg-map__eta { position: absolute; bottom: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--dg-ink); color: var(--dg-yellow); font-size: 11.84px; }
.dg-map__eta .dg-ico { width: 14px; height: 14px; }
.dg-track { padding: 14px 16px 6px; }
.dg-track__title { font-family: var(--dg-font-head); font-weight: 700; font-size: 17.92px; }
.dg-track__sub { font-size: 12.16px; color: var(--dg-muted); }
.dg-track__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.dg-track__bar li { height: 6px; border-radius: 6px; background: var(--dg-sand); position: relative; overflow: hidden; }
.dg-track__bar li::after { content: ""; position: absolute; inset: 0; background: var(--dg-ink); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--dg-ease); }
[dir="ltr"] .dg-track__bar li::after { transform-origin: left; }
.dg-track__bar li.is-done::after { transform: scaleX(1); }
.dg-track__bar li.is-done:last-child::after { background: var(--dg-green); }
.dg-track__items { margin-top: 12px; display: grid; gap: 6px; }
.dg-track__items li { display: flex; justify-content: space-between; font-size: 11.84px; padding-bottom: 6px; border-bottom: 1px dashed var(--dg-line); }
.dg-track__items li span:last-child { font-weight: 600; direction: ltr; }
.dg-rider { margin: auto 12px 14px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--dg-ink); color: var(--dg-chalk); }
.dg-rider__av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--dg-yellow); color: var(--dg-ink); font-family: var(--dg-font-head); font-weight: 700; }
.dg-rider__txt { display: grid; line-height: 1.35; flex: 1; }
.dg-rider__txt b { font-size: 13.76px; }
.dg-rider__txt small { font-size: 10.88px; color: var(--dg-muted-dark); }
.dg-rider__call { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--dg-green); color: var(--dg-white); }
.dg-rider__call .dg-ico { width: 18px; height: 18px; }

/* floating notifications */
.dg-toast {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px;
  background: var(--dg-white); border-radius: 18px; box-shadow: var(--dg-shadow-lg); border: 1px solid var(--dg-line);
  width: 270px;
}
.dg-toast__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--dg-green); color: var(--dg-white); flex: none; }
.dg-toast__icon .dg-ico { width: 22px; height: 22px; stroke-width: 2.4; }
.dg-toast__icon--y { background: var(--dg-yellow); color: var(--dg-ink); }
.dg-toast__body { display: grid; line-height: 1.35; flex: 1; min-width: 0; }
.dg-toast__body b { font-family: var(--dg-font-body); font-size: 15.2px; }
.dg-toast__body small { font-size: 12.16px; color: var(--dg-muted); }
.dg-toast__time { align-self: flex-start; font-size: 11.2px; color: var(--dg-muted); }
.dg-toast--live { top: 13%; inset-inline-end: calc(50% + 70px); }
.dg-toast--price { bottom: 16%; inset-inline-start: calc(50% + 80px); width: 250px; }
.dg-toast--live.is-swap { animation: dg-toast-in .7s var(--dg-ease); }
@keyframes dg-toast-in { 0% { opacity: 0; transform: translateY(-14px) scale(.96); } 100% { opacity: 1; transform: none; } }
.dg-toast--live[data-state="3"] .dg-toast__icon { background: var(--dg-ink); color: var(--dg-yellow); }

/* road strip (hero bottom + footer top) */
.dg-road { position: relative; height: 72px; background: var(--dg-ink); overflow: hidden; }
.dg-road__lane {
  /* one tile wider at each end, so a transform can carry the marks past the
     edge instead of repainting the whole strip on every frame */
  position: absolute; inset-inline: -80px; top: 50%; height: 6px; translate: 0 -50%;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 44px, transparent 44px 80px);
  background-size: 80px 6px; animation: dg-lane 1.6s linear infinite;
}
@keyframes dg-lane { to { transform: translateX(calc(var(--dg-dir) * -80px)); } }
.dg-road--hero { margin-top: 8px; box-shadow: inset 0 6px 0 var(--dg-road), inset 0 -6px 0 var(--dg-road); }
.dg-road__traveller { position: absolute; top: 2px; inset-inline-start: -90px; width: 76px; animation: dg-drive 9s cubic-bezier(.45,0,.3,1) infinite; z-index: 2; }
.dg-bike { width: 76px; height: auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
[dir="rtl"] .dg-bike { transform: none; }
[dir="ltr"] .dg-bike { transform: scaleX(-1); }
.dg-road__traveller .dg-bike { background: none; }
.dg-road__traveller::before { content: ""; position: absolute; inset: 6px 4px 6px; border-radius: 14px; background: var(--dg-chalk); z-index: -1; }
@keyframes dg-drive { /* a transform, not an inset: the old one relaid the strip out on every frame */
  0% { transform: translateX(0); }
  70%, 100% { transform: translateX(calc(var(--dg-dir) * (100vw - 60px))); }
}
.dg-road__target {
  position: absolute; top: 50%; inset-inline-end: 34px; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%;
  border: 6px solid var(--dg-yellow); background: radial-gradient(circle, var(--dg-yellow) 0 7px, transparent 8px);
}
.dg-road__target::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--dg-yellow); opacity: .5; animation: dg-ping 1.8s infinite; }

/* =========================================================
   SERVICES
   ========================================================= */
.dg-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dg-svc { --c-bg: var(--dg-paper); --c-fg: var(--dg-ink); --c-muted: var(--dg-muted); --c-icon-bg: var(--dg-yellow); --c-icon-fg: var(--dg-ink); }
.dg-svc--feature { --c-bg: var(--dg-yellow); --c-icon-bg: var(--dg-ink); --c-icon-fg: var(--dg-yellow); --c-muted: #4A3E1E; }
.dg-svc--dark { --c-bg: var(--dg-ink); --c-fg: var(--dg-chalk); --c-muted: var(--dg-muted-dark); }
.dg-svc__link {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 280px; padding: 28px; overflow: hidden;
  background: var(--c-bg); color: var(--c-fg); border: 1.5px solid var(--dg-line); border-radius: var(--dg-r-lg);
  transition: transform .35s var(--dg-ease), box-shadow .35s var(--dg-ease), border-color .3s;
}
.dg-svc--feature .dg-svc__link, .dg-svc--dark .dg-svc__link { border-color: transparent; }
.dg-svc__link:hover { transform: translateY(-6px); box-shadow: var(--dg-hard); border-color: var(--dg-ink); }
.dg-svc--dark .dg-svc__link:hover { box-shadow: 6px 6px 0 var(--dg-yellow); }
.dg-svc__no { position: absolute; top: 22px; inset-inline-end: 26px; font-family: var(--dg-font-body); font-weight: 800; font-size: 13.6px; letter-spacing: .1em; opacity: .5; }
.dg-svc__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c-icon-bg); color: var(--c-icon-fg); transition: transform .45s var(--dg-ease); }
.dg-svc__icon .dg-ico { width: 32px; height: 32px; stroke-width: 1.8; }
.dg-svc__link:hover .dg-svc__icon { transform: translateX(calc(var(--dg-dir) * 10px)) rotate(calc(var(--dg-dir) * 6deg)); }
.dg-svc__title { margin-top: 22px; font-weight: 700; font-size: 25.6px; }
.dg-svc__text { margin-top: 8px; color: var(--c-muted); font-size: 15.68px; max-width: 36ch; }
.dg-svc__tag { position: absolute; top: 28px; inset-inline-start: 104px; padding: 4px 12px; border-radius: 999px; font-size: 12.16px; font-weight: 600; background: var(--dg-ink); color: var(--dg-yellow); }
.dg-svc--dark .dg-svc__tag { background: var(--dg-yellow); color: var(--dg-ink); }
.dg-svc__go { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--dg-font-body); font-weight: 800; font-size: 15.2px; }
.dg-svc__go .dg-ico { width: 20px; height: 20px; transition: translate .35s var(--dg-ease); }
.dg-svc__link:hover .dg-svc__go .dg-ico { translate: calc(var(--dg-dir) * 6px) 0; }
.dg-svc__lane { /* lane marking that draws along the bottom on hover */
  position: absolute; bottom: 0; inset-inline: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--dg-ink) 0 22px, transparent 22px 36px);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--dg-ease);
}
[dir="ltr"] .dg-svc__lane { transform-origin: left; }
.dg-svc--dark .dg-svc__lane { background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 22px, transparent 22px 36px); }
.dg-svc__link:hover .dg-svc__lane { transform: scaleX(1); }

/* feature card: bigger, with road illustration */
.dg-svc--feature { grid-row: span 2; }
.dg-svc--feature .dg-svc__link { min-height: 100%; padding: 36px; }
.dg-svc--feature .dg-svc__icon { width: 84px; height: 84px; border-radius: 26px; }
.dg-svc--feature .dg-svc__icon .dg-ico { width: 42px; height: 42px; }
.dg-svc--feature .dg-svc__tag { inset-inline-start: 136px; top: 40px; }
.dg-svc--feature .dg-svc__title { font-size: clamp(35.2px, 3.6vw, 49.6px); font-weight: 700; }
.dg-svc--feature .dg-svc__text { font-size: 17.28px; }
.dg-svc--feature .dg-svc__link::before {
  content: ""; position: absolute; inset-inline: -10%; bottom: 84px; height: 46px; background: var(--dg-ink);
  transform: rotate(calc(var(--dg-dir) * 6deg));
  box-shadow: 0 0 0 1px var(--dg-ink);
}
.dg-svc--feature .dg-svc__link::after {
  content: ""; position: absolute; inset-inline: -10%; bottom: 104px; height: 5px;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 26px, transparent 26px 44px);
  transform: rotate(calc(var(--dg-dir) * 6deg));
}
.dg-svc--feature .dg-svc__go { position: relative; z-index: 1; }

/* =========================================================
   MARQUEE
   ========================================================= */
.dg-marquee { background: var(--dg-yellow); border-block: 3px solid var(--dg-ink); overflow: hidden; padding-block: 18px; }
.dg-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: dg-marquee 34s linear infinite; }
.dg-marquee span { font-family: var(--dg-font-head); font-weight: 700; font-size: clamp(22.4px, 3vw, 36.8px); white-space: nowrap; }
.dg-marquee i { width: 70px; height: 8px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--dg-ink) 0 18px, transparent 18px 26px); flex: none; }
@keyframes dg-marquee { to { transform: translateX(calc(var(--dg-dir) * -50%)); } }
[dir="rtl"] .dg-marquee__track { animation-name: dg-marquee-rtl; }
@keyframes dg-marquee-rtl { to { transform: translateX(50%); } }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.dg-how { background: var(--dg-ink); color: var(--dg-chalk); overflow: hidden; }
.dg-how::before { /* faint grid of city blocks */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--dg-line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--dg-line-dark) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.dg-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 0; }
.dg-steps__road {
  position: absolute; inset-inline: 4%; top: 30px; height: 40px; border-radius: 40px; background: var(--dg-road);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.04);
}
.dg-steps__lane {
  position: absolute; inset-inline: 30px; top: 50%; height: 5px; translate: 0 -50%;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 26px, transparent 26px 44px);
  transform: scaleX(var(--p, 1)); transform-origin: right;
}
[dir="ltr"] .dg-steps__lane { transform-origin: left; }
.dg-steps__rider {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--dg-yellow); color: var(--dg-ink); box-shadow: 0 0 0 6px rgba(255,194,51,.25);
  inset-inline-start: calc(var(--p, 1) * (100% - 52px));
}
[dir="rtl"] .dg-steps__rider .dg-ico { transform: none; }
[dir="ltr"] .dg-steps__rider .dg-ico { transform: scaleX(-1); }
.dg-step { position: relative; padding-top: 100px; }
.dg-step__node {
  position: absolute; top: 22px; inset-inline-start: 24px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--dg-chalk); color: var(--dg-ink); border: 5px solid var(--dg-ink);
  font-family: var(--dg-font-head); font-weight: 700; font-size: 20.8px; z-index: 1;
}
.dg-step__node--end { background: var(--dg-yellow); }
.dg-step__node--end .dg-ico { width: 26px; height: 26px; stroke-width: 2.6; }
.dg-step__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1.5px solid var(--dg-line-dark); color: var(--dg-yellow); margin-bottom: 18px; }
.dg-step h3 { font-weight: 700; font-size: 20.8px; }
.dg-step p { margin-top: 8px; color: var(--dg-muted-dark); font-size: 15.68px; }

/* =========================================================
   WHY
   ========================================================= */
.dg-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.dg-why__intro .dg-head { margin-bottom: 40px; }
.dg-why__list { display: grid; gap: 14px; }
.dg-feat { display: flex; gap: 20px; padding: 26px; border-radius: var(--dg-r); background: var(--dg-paper); border: 1.5px solid var(--dg-line); transition: border-color .3s, transform .35s var(--dg-ease); }
.dg-feat:hover { border-color: var(--dg-ink); transform: translateX(calc(var(--dg-dir) * 6px)); }
.dg-feat__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--dg-yellow); flex: none; }
.dg-feat h3 { font-weight: 700; font-size: 20px; }
.dg-feat p { margin-top: 6px; color: var(--dg-muted); }

.dg-receipt {
  position: relative; margin: 0; max-width: 400px; padding: 26px 26px 34px; background: var(--dg-white); border-radius: 20px 20px 0 0;
  box-shadow: var(--dg-shadow-lg); transform: rotate(calc(var(--dg-dir) * -2deg));
  --zig: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
  padding-bottom: 48px;
}
.dg-receipt__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px dashed var(--dg-line); }
.dg-receipt__head b { font-family: var(--dg-font-head); font-size: 19.2px; }
.dg-receipt__head span { color: var(--dg-muted); font-size: 13.6px; direction: ltr; }
.dg-receipt__rows { margin: 0; }
.dg-receipt__rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--dg-line); }
.dg-receipt__rows dt { color: var(--dg-muted); }
.dg-receipt__rows dd { margin: 0; font-weight: 600; direction: ltr; }
.dg-receipt__zero dd { color: #0E7A47; }
.dg-receipt__zero dd::after { content: " ✓"; }
.dg-receipt__total { border-bottom: 0 !important; padding-top: 16px !important; }
.dg-receipt__total dt, .dg-receipt__total dd { font-family: var(--dg-font-head); font-weight: 700; color: var(--dg-ink); font-size: 22.4px; }
.dg-receipt__stamp {
  position: absolute; bottom: 58px; inset-inline-start: 18px; padding: 6px 14px; border: 3px solid var(--dg-green); color: #0E7A47; border-radius: 10px;
  font-family: var(--dg-font-body); font-weight: 800; font-size: 13.6px; transform: rotate(calc(var(--dg-dir) * 8deg)); background: rgba(25,179,107,.08);
  display: none;
}

/* =========================================================
   STATS
   ========================================================= */
.dg-stats { background: var(--dg-yellow); padding-block: clamp(56px, 7vw, 88px); position: relative; }
.dg-stats::before, .dg-stats::after { content: ""; position: absolute; inset-inline: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--dg-ink) 0 30px, transparent 30px 50px); }
.dg-stats::before { top: 0; } .dg-stats::after { bottom: 0; }
.dg-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dg-stat { text-align: center; padding-inline: 8px; position: relative; }
.dg-stat + .dg-stat::before { content: ""; position: absolute; inset-inline-start: -12px; top: 15%; bottom: 15%; width: 2px; background: rgba(27,27,27,.18); }
.dg-stat__num { font-family: var(--dg-font-head); font-weight: 700; font-size: clamp(35.2px, 4.6vw, 62.4px); line-height: 1.05; direction: ltr; font-variant-numeric: tabular-nums; }
.dg-stat__lbl { margin-top: 8px; font-weight: 600; font-size: 16.32px; }

/* =========================================================
   EARN
   ========================================================= */
.dg-earn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dg-earn-card {
  position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 44px); border-radius: var(--dg-r-lg);
  background: var(--dg-paper); border: 2px solid var(--dg-ink); box-shadow: var(--dg-hard); overflow: hidden;
}
.dg-earn-card--dark { background: var(--dg-ink); color: var(--dg-chalk); box-shadow: 6px 6px 0 var(--dg-yellow); }
.dg-earn-card__art { height: 150px; margin-bottom: 18px; }
.dg-earn-card__art svg { height: 100%; width: auto; }
.dg-earn-card__kicker { font-weight: 600; color: var(--dg-muted); font-size: 15.2px; }
.dg-earn-card--dark .dg-earn-card__kicker { color: var(--dg-yellow); }
.dg-earn-card__title { margin-top: 6px; font-weight: 700; font-size: clamp(27.2px, 2.8vw, 36.8px); }
.dg-earn-card__list { margin-top: 20px; display: grid; gap: 12px; }
.dg-earn-card__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dg-earn-card__list .dg-ico { width: 36px; height: 36px; padding: 7px; border-radius: 11px; background: var(--dg-yellow); color: var(--dg-ink); }
.dg-earn-card--dark .dg-earn-card__list .dg-ico { background: var(--dg-road); color: var(--dg-yellow); }
.dg-earn-card__foot { margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* store badges */
.dg-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.dg-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 16px; border-radius: 14px;
  background: var(--dg-ink); color: var(--dg-white); border: 1.5px solid rgba(255,255,255,.18); direction: ltr;
  transition: transform .25s var(--dg-ease), box-shadow .25s;
}
.dg-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); }
.dg-badge__logo { width: 24px; height: 24px; }
.dg-badge span { display: grid; line-height: 1.05; text-align: left; }
.dg-badge small { font-size: 9.92px; letter-spacing: .06em; font-family: system-ui, sans-serif; opacity: .9; }
.dg-badge b { font-size: 17.92px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; letter-spacing: -.01em; }
.dg-badge--light { background: var(--dg-chalk); color: var(--dg-ink); border-color: transparent; }
.dg-badges--sm .dg-badge { height: 46px; padding: 0 14px 0 12px; border-radius: 12px; }
.dg-badges--sm .dg-badge b { font-size: 15.68px; }
.dg-badges--sm .dg-badge__logo { width: 20px; height: 20px; }
.dg-badge--lg { height: 62px; padding: 0 22px 0 18px; }
.dg-badge--lg .dg-badge__logo { width: 28px; height: 28px; }
.dg-badge--lg b { font-size: 20.8px; }

/* =========================================================
   DOWNLOAD BAND
   ========================================================= */
.dg-download { padding-block: 24px clamp(48px, 7vw, 80px); }
.dg-download__inner { position: relative; }
.dg-download__inner::before {
  content: ""; position: absolute; inset: 0 var(--dg-gutter); border-radius: 40px; background: var(--dg-ink); z-index: -1;
}
.dg-download__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; color: var(--dg-chalk); isolation: isolate; overflow: hidden; border-radius: 40px; }
.dg-download__copy { padding: clamp(36px, 6vw, 80px); padding-inline-end: 0; }
.dg-download__title { font-weight: 700; font-size: clamp(35.2px, 5vw, 64px); line-height: 1.1; }
.dg-download__copy p { margin: 18px 0 30px; color: var(--dg-muted-dark); font-size: 17.92px; }
.dg-download__art { align-self: stretch; position: relative; display: grid; place-items: end center; padding-top: 40px; min-height: 340px; }
.dg-download__art::before { content: ""; position: absolute; width: 440px; aspect-ratio: 1; border-radius: 50%; background: var(--dg-yellow); bottom: -160px; inset-inline-start: 50%; translate: calc(var(--dg-dir) * -50%) 0; }
[dir="rtl"] .dg-download__art::before { translate: 50% 0; }
.dg-mini-phone {
  position: relative; width: 230px; height: 330px; margin-bottom: -40px; border-radius: 38px 38px 0 0; background: var(--dg-chalk); color: var(--dg-ink);
  border: 10px solid #0d0d0d; border-bottom: 0; display: flex; flex-direction: column; align-items: center; padding-top: 34px;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6);
}
.dg-mini-phone > b { margin-top: 14px; font-family: var(--dg-font-head); font-weight: 700; font-size: 25.6px; line-height: 1; }
.dg-mini-phone > small { color: var(--dg-muted); font-size: 12.8px; margin-top: 6px; }
.dg-mini-phone__grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 44px); gap: 10px; }
.dg-mini-phone__grid i { width: 44px; height: 44px; border-radius: 13px; background: var(--dg-white); border: 1px solid var(--dg-line); display: grid; place-items: center; }
.dg-mini-phone__grid .dg-ico { width: 22px; height: 22px; }
.dg-mini-phone__grid i:first-child { background: var(--dg-yellow); border-color: transparent; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.dg-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.dg-quote { position: relative; padding: 30px; border-radius: var(--dg-r-lg); background: var(--dg-paper); border: 1.5px solid var(--dg-line); }
.dg-quote--y { background: var(--dg-yellow); border-color: transparent; margin-top: 36px; }
.dg-quote__mark { position: absolute; top: 24px; inset-inline-end: 24px; width: 40px; height: 40px; opacity: .22; stroke-width: 2.2; }
.dg-stars { display: flex; gap: 2px; color: var(--dg-yellow-deep); }
.dg-quote--y .dg-stars { color: var(--dg-ink); }
.dg-stars .dg-ico { width: 20px; height: 20px; fill: currentColor; stroke-width: 1; }
.dg-quote blockquote { margin: 16px 0 24px; font-size: 17.6px; line-height: 1.75; font-weight: 500; }
.dg-quote__who { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 2px dashed var(--dg-line); }
.dg-quote--y .dg-quote__who { border-color: rgba(27,27,27,.25); }
.dg-quote__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--dg-ink); color: var(--dg-yellow); font-family: var(--dg-font-head); font-weight: 700; font-size: 17.6px; }
.dg-quote__who > span:last-child { display: grid; line-height: 1.35; }
.dg-quote__who small { color: var(--dg-muted); }
.dg-quote--y .dg-quote__who small { color: #4A3E1E; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.dg-news { padding-top: 0; }
.dg-news__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
  padding: clamp(30px, 5vw, 60px); border-radius: var(--dg-r-lg); background: var(--dg-white); border: 2px solid var(--dg-ink); box-shadow: var(--dg-hard);
}
.dg-news__title { font-weight: 700; font-size: clamp(30.4px, 3.6vw, 44.8px); }
.dg-news__copy p { margin-top: 10px; color: var(--dg-muted); font-size: 16.8px; }
.dg-news__form { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-news__input { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--dg-line); background: var(--dg-chalk); outline: 0; transition: border-color .2s; text-align: left; }
.dg-news__input:focus { border-color: var(--dg-ink); }
.dg-news__input[aria-invalid="true"] { border-color: var(--dg-red); }
.dg-news__form .dg-btn { min-height: 56px; padding-inline: 28px; }
.dg-news__msg { flex-basis: 100%; min-height: 1.5em; font-weight: 500; font-size: 15.2px; }
.dg-news__msg.is-ok { color: #0E7A47; } .dg-news__msg.is-err { color: #B4232A; }
.dg-news__lane { position: absolute; bottom: 0; inset-inline: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 30px, transparent 30px 50px); }

/* =========================================================
   FOOTER
   ========================================================= */
.dg-footer { background: var(--dg-ink); color: var(--dg-chalk); margin-top: 0; }
.dg-road--footer { height: 40px; background: var(--dg-road); }
.dg-road--footer .dg-road__lane { height: 5px; }
.dg-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 40px; }
.dg-footer__brand p { margin-top: 18px; color: var(--dg-muted-dark); max-width: 30ch; }
.dg-social { display: flex; gap: 10px; margin-top: 22px; }
.dg-social a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; border: 1.5px solid var(--dg-line-dark); transition: background .2s, color .2s, border-color .2s; }
.dg-social a:hover { background: var(--dg-yellow); color: var(--dg-ink); border-color: var(--dg-yellow); }
.dg-social .dg-ico { width: 21px; height: 21px; }
.dg-footer__col h3 { font-size: 16px; font-weight: 700; color: var(--dg-yellow); margin-bottom: 16px; }
.dg-footer__col ul { display: grid; gap: 10px; }
.dg-footer__col a { color: #E6DFCD; transition: color .2s; }
.dg-footer__col a:hover { color: var(--dg-yellow); }
.dg-footer__col :focus-visible, .dg-footer :focus-visible { outline-color: var(--dg-yellow); }
.dg-footer__contact li { display: flex; align-items: center; gap: 10px; color: #E6DFCD; }
.dg-footer__contact .dg-ico { width: 20px; height: 20px; color: var(--dg-yellow); }
.dg-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px 28px; border-top: 1px solid var(--dg-line-dark); color: var(--dg-muted-dark); font-size: 14.4px; }
/* A discreet ODbL credit: OpenStreetMap asks to be named wherever its data shows, and the place names in the area search are its. */
.dg-footer__credit { font-size: 12.8px; opacity: .72; }
.dg-footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dg-footer__credit a:hover, .dg-footer__credit a:focus-visible { color: var(--dg-chalk); }
.dg-footer__top { display: inline-flex; align-items: center; gap: 6px; color: var(--dg-chalk); }
.dg-footer__top .dg-ico { width: 18px; height: 18px; }

/* =========================================================
   REVEAL (only hidden when JS is running and motion allowed)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .dg-js .dg-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--dg-ease), transform .8s var(--dg-ease); transition-delay: var(--d, 0s); }
  .dg-js .dg-reveal.is-in { opacity: 1; transform: none; }
  .dg-js .dg-receipt.dg-reveal.is-in { transform: rotate(calc(var(--dg-dir) * -2deg)); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .dg-toast--live { inset-inline-end: calc(50% + 40px); }
  .dg-toast--price { inset-inline-start: calc(50% + 40px); }
}
@media (max-width: 1080px) {
  .dg-nav__list a { padding: 10px 10px; font-size: 14.72px; }
  .dg-header__cta span { display: none; }
  .dg-header__cta { padding: 0; width: 48px; }
  .dg-hero__grid { grid-template-columns: 1fr 1fr; }
  .dg-hero__title { font-size: clamp(44.8px, 6.6vw, 73.6px); }
  .dg-toast { width: 240px; }
  .dg-toast--live { top: 6%; inset-inline-end: auto; inset-inline-start: -10px; }
  .dg-toast--price { bottom: 8%; inset-inline-start: auto; inset-inline-end: -6px; width: 220px; }
  .dg-services__grid { grid-template-columns: repeat(2, 1fr); }
  .dg-svc--feature { grid-row: span 1; grid-column: span 2; }
  .dg-svc--feature .dg-svc__link { min-height: 340px; }
  .dg-footer__grid { grid-template-columns: 1fr 1fr; }
  .dg-why__grid { gap: 40px; }
}
@media (max-width: 860px) {
  .dg-header__inner { height: 68px; gap: 12px; }
  .dg-burger { display: grid; }
  .dg-header__cta { display: none; }
  .dg-nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0; padding: 18px var(--dg-gutter) 26px;
    background: var(--dg-chalk); border-bottom: 2px solid var(--dg-ink);
    transform: translateY(-110%); visibility: hidden; transition: transform .4s var(--dg-ease), visibility .4s;
    z-index: -1;
  }
  .dg-nav.is-open { transform: none; visibility: visible; }
  .dg-nav__list { flex-direction: column; gap: 2px; }
  .dg-nav__list a { font-size: 18.4px; padding: 14px 6px; border-bottom: 1px dashed var(--dg-line); border-radius: 0; font-family: var(--dg-font-head); font-weight: 700; }
  .dg-nav__list a::after { display: none; }
  .dg-nav__mobile-cta { display: inline-flex; width: 100%; margin-top: 18px; }
  .dg-header__actions { margin-inline-start: auto; }
  .dg-nav { margin-inline-start: 0; }

  .dg-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .dg-hero__copy { max-width: none; }
  .dg-hero__sun { width: 560px; inset-inline-end: -220px; top: auto; bottom: 40px; }
  .dg-hero__ghost { display: none; }
  .dg-hero__visual { padding-block: 40px 30px; }

  .dg-steps { grid-template-columns: 1fr; gap: 34px; padding-inline-start: 96px; }
  .dg-steps__road { inset-inline: 22px auto; top: 0; bottom: 0; width: 40px; height: auto; }
  .dg-steps__lane { inset-inline: auto; left: 50%; top: 24px; bottom: 24px; width: 5px; height: auto; translate: -50% 0; background: repeating-linear-gradient(180deg, var(--dg-yellow) 0 22px, transparent 22px 38px); transform: scaleY(var(--p, 1)); transform-origin: top; }
  .dg-steps__rider { inset-inline-start: 50%; translate: 50% 0; top: calc(var(--p, 1) * (100% - 52px)); }
  [dir="ltr"] .dg-steps__rider { translate: -50% 0; }
  .dg-step { padding-top: 0; }
  .dg-step__node { top: -4px; inset-inline-start: -88px; width: 52px; height: 52px; font-size: 18.4px; }
  .dg-steps__rider { display: none; }

  .dg-why__grid { grid-template-columns: 1fr; }
  .dg-receipt { margin-inline: auto; }
  .dg-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .dg-stat:nth-child(3)::before { display: none; }
  .dg-earn__grid { grid-template-columns: 1fr; }
  .dg-download__inner { grid-template-columns: 1fr; }
  .dg-download__copy { padding: 44px 30px 0; text-align: center; }
  .dg-download__copy .dg-badges { justify-content: center; }
  .dg-download__art { min-height: 300px; padding-top: 10px; }
  .dg-testi__grid { grid-template-columns: 1fr; }
  .dg-quote--y { margin-top: 0; }
  .dg-news__card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dg-brand__ar { font-size: 23.2px; }
  .dg-mark--tile { width: 42px; height: 42px; }
  .dg-hero__title { font-size: clamp(43.2px, 13vw, 57.6px); }
  .dg-zone__field { flex-wrap: wrap; border-radius: 22px; padding: 8px; padding-inline-start: 14px; }
  .dg-zone__input { flex-basis: calc(100% - 40px); }
  .dg-zone__btn { width: 100%; }
  .dg-phone { width: 272px; height: 560px; border-radius: 44px; }
  .dg-toast { width: 226px; padding: 10px 12px; gap: 10px; }
  .dg-toast__icon { width: 34px; height: 34px; }
  .dg-toast--live { top: 0; inset-inline-start: -4px; }
  .dg-toast--price { bottom: 2%; inset-inline-end: -4px; width: 210px; }
  .dg-toast__time { display: none; }
  .dg-road--hero { height: 60px; }
  .dg-road__traveller, .dg-bike { width: 62px; }
  .dg-road__target { width: 38px; height: 38px; inset-inline-end: 18px; border-width: 5px; }
  .dg-services__grid { grid-template-columns: 1fr; gap: 14px; }
  .dg-svc--feature { grid-column: span 1; }
  .dg-svc__link { min-height: 0; padding: 24px; }
  .dg-svc--feature .dg-svc__link { min-height: 380px; padding: 28px; }
  .dg-svc--feature .dg-svc__tag { inset-inline-start: 124px; top: 32px; }
  .dg-steps { padding-inline-start: 80px; }
  .dg-steps__road { inset-inline-start: 14px; }
  .dg-step__node { inset-inline-start: -78px; }
  .dg-feat { padding: 20px; gap: 16px; }
  .dg-feat__icon { width: 48px; height: 48px; }
  .dg-stat__num { font-size: 33.6px; }
  .dg-stat + .dg-stat::before { display: none; }
  .dg-earn-card__art { height: 120px; }
  .dg-earn-card__foot .dg-btn { width: 100%; }
  .dg-badges--sm { width: 100%; }
  .dg-badges--sm .dg-badge { flex: 1; justify-content: center; }
  .dg-badge--lg { height: 56px; }
  .dg-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .dg-footer__brand { grid-column: 1 / -1; }
  .dg-footer__col:last-child { grid-column: 1 / -1; }
  .dg-footer__bottom { flex-direction: column; text-align: center; }
  .dg-news__form .dg-btn { width: 100%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dg-road__traveller { animation: none; inset-inline-start: calc(100% - 150px); }
  .dg-marquee__track { animation: none; }
  .dg-phone { animation: none; }
}

/* ---------- Lemonada tuning (wide, round display face) ---------- */
.dg-hero__title { font-size: clamp(41.6px, 6.4vw, 89.6px); line-height: 1.25; letter-spacing: 0; }
.dg-hero__sub { margin-top: 14px; font-family: var(--dg-font-head); font-weight: 600; font-size: clamp(17.6px, 1.8vw, 23.2px); }
.dg-h2 { line-height: 1.35; letter-spacing: 0; font-size: clamp(28px, 3.8vw, 48px); }
.dg-svc--feature .dg-svc__title { font-size: clamp(30.4px, 3vw, 41.6px); line-height: 1.3; }
.dg-svc__title { font-size: 22.4px; line-height: 1.35; }
.dg-download__title { font-size: clamp(30.4px, 4.2vw, 54.4px); line-height: 1.35; }
.dg-earn-card__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; }
.dg-news__title { font-size: clamp(27.2px, 3vw, 38.4px); line-height: 1.35; }
.dg-stat__num { font-size: clamp(32px, 4vw, 54.4px); }
.dg-brand__ar { font-size: 24px; line-height: 1.1; }
.dg-step h3, .dg-feat h3 { font-size: 18.4px; line-height: 1.45; }
.dg-marquee span { font-size: clamp(20px, 2.6vw, 32px); }
@media (max-width: 560px) {
  .dg-hero__title { font-size: clamp(36.8px, 12vw, 51.2px); }
  .dg-h2 { font-size: 26.4px; }
  .dg-stat__num { font-size: 28.8px; }
  .dg-brand__ar { font-size: 20.8px; }
}

/* ---------- editorial pass: asymmetric heads, solid header, bento services ---------- */
.dg-header { background: var(--dg-chalk); backdrop-filter: none; -webkit-backdrop-filter: none; }
.dg-head {
  max-width: none; margin-inline: 0; text-align: start;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "k k" "t l"; column-gap: clamp(32px, 6vw, 96px); align-items: end;
}
.dg-head .dg-kicker { grid-area: k; justify-self: start; }
.dg-head .dg-h2 { grid-area: t; }
.dg-head .dg-lead { grid-area: l; margin-top: 0; padding-inline-start: 22px; border-inline-start: 4px solid var(--dg-yellow); }
.dg-head--light .dg-lead { border-color: var(--dg-yellow); }
.dg-head--start { display: block; }
.dg-head--start .dg-lead { margin-top: 18px; }
.dg-h2 { font-size: clamp(32px, 4.6vw, 62.4px); line-height: 1.22; }
.dg-hero__title { line-height: 1.16; }
.dg-svc--dark { grid-column: span 2; }
.dg-services__grid { grid-auto-flow: dense; }
.dg-svc--dark .dg-svc__link { min-height: 240px; }
.dg-svc--dark .dg-svc__text { max-width: 48ch; }
.dg-svc--dark .dg-svc__link::before { /* straight road to a door target */
  content: ""; position: absolute; inset-inline-end: 28px; bottom: 34px; width: 34%; height: 5px;
  background: repeating-linear-gradient(90deg, var(--dg-yellow) 0 18px, transparent 18px 30px);
}
.dg-svc--dark .dg-svc__link::after {
  content: ""; position: absolute; inset-inline-end: 12px; bottom: 22px; width: 30px; height: 30px; border-radius: 50%;
  border: 5px solid var(--dg-yellow); background: radial-gradient(circle, var(--dg-yellow) 0 5px, transparent 6px);
}
.dg-toast--price { width: 280px; }
.dg-magnetic { will-change: transform; }
@media (max-width: 1080px) {
  .dg-svc--dark { grid-column: span 2; }
}
@media (max-width: 860px) {
  .dg-head { grid-template-columns: 1fr; grid-template-areas: "k" "t" "l"; }
  .dg-head .dg-lead { margin-top: 18px; }
}
@media (max-width: 560px) {
  .dg-svc--dark { grid-column: span 1; }
  .dg-svc--dark .dg-svc__link::before, .dg-svc--dark .dg-svc__link::after { display: none; }
  .dg-h2 { font-size: clamp(25.6px, 8vw, 33.6px); }
  .dg-toast--price { width: 220px; }
}
.dg-svc--dark, .dg-svc--dark:is(*) { order: 1; grid-column: 1 / -1; }
.dg-services__grid { grid-auto-flow: row; }
.dg-svc--dark .dg-svc__link { min-height: 0; padding-block: 32px; padding-inline-end: 42%; }
.dg-svc--dark .dg-svc__link::before { width: 30%; bottom: 50%; inset-inline-end: 80px; }
.dg-svc--dark .dg-svc__link::after { bottom: calc(50% - 13px); inset-inline-end: 40px; width: 32px; height: 32px; }
@media (max-width: 560px) { .dg-svc--dark .dg-svc__link { padding-inline-end: 24px; } }
/* road from node 1 to node 4, rider stops right before the door */
@media (min-width: 861px) {
  .dg-steps__road { inset-inline-start: 20px; inset-inline-end: calc((100% - 72px) / 4 - 84px); }
  .dg-steps__rider { inset-inline-start: calc(var(--p, 1) * (100% - 52px - 70px)); }
}
/* why: editorial ruled list instead of boxed cards */
.dg-why__list { gap: 0; border-top: 3px solid var(--dg-ink); counter-reset: why; }
.dg-feat { counter-increment: why; position: relative; background: none; border: 0; border-radius: 0; padding: 28px 0; border-bottom: 2px dashed var(--dg-line); }
.dg-feat:hover { transform: none; border-color: var(--dg-line); }
.dg-feat::after { content: "0" counter(why); position: absolute; top: 26px; inset-inline-end: 0; font-family: var(--dg-font-head); font-weight: 700; font-size: 14.4px; color: var(--dg-muted); }
.dg-feat__icon { border-radius: 6px; transition: transform .4s var(--dg-ease), background .3s; }
.dg-feat:hover .dg-feat__icon { transform: translateX(calc(var(--dg-dir) * 8px)); background: var(--dg-ink); color: var(--dg-yellow); }
.dg-feat h3 { font-size: 20.8px; padding-inline-end: 40px; }
.dg-why__list { margin-top: 12px; }
.dg-head { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); }
.dg-h2, .dg-hero__title, .dg-download__title { text-wrap: balance; }
/* testimonials: one loud quote + two quiet ones */
.dg-testi__grid { grid-template-columns: 1.35fr 1fr; gap: 20px; }
.dg-quote--y { order: -1; grid-row: span 2; margin-top: 0; padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; border-radius: 6px var(--dg-r-lg) var(--dg-r-lg) var(--dg-r-lg); }
.dg-quote--y blockquote { font-family: var(--dg-font-head); font-weight: 600; font-size: clamp(21.6px, 2.3vw, 30.4px); line-height: 1.6; margin-block: 24px 32px; }
.dg-quote--y .dg-quote__who { margin-top: auto; }
.dg-quote--y .dg-quote__mark { width: 72px; height: 72px; opacity: .9; top: 32px; }
.dg-quote:not(.dg-quote--y) { background: none; border: 0; border-top: 3px solid var(--dg-ink); border-radius: 0; padding: 26px 0 8px; }
.dg-quote:not(.dg-quote--y) .dg-quote__mark { top: 22px; inset-inline-end: 0; }
@media (max-width: 860px) { .dg-testi__grid { grid-template-columns: 1fr; } .dg-quote--y { grid-row: auto; } }
.dg-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.dg-hero__grid > *, .dg-why__grid > *, .dg-earn__grid > *, .dg-download__inner > *, .dg-news__card > * { min-width: 0; }
@media (max-width: 860px) { .dg-hero__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .dg-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "t" "l"; }
}
@media (max-width: 560px) {
  .dg-h2 { font-size: 27.2px; line-height: 1.4; }
  .dg-toast--price { width: 250px; }
  .dg-svc--feature .dg-svc__link { min-height: 0; padding-bottom: 170px; }
  .dg-svc--feature .dg-svc__link::before { bottom: 78px; }
  .dg-svc--feature .dg-svc__link::after { bottom: 98px; }
  .dg-svc--feature .dg-svc__go { position: absolute; bottom: 24px; inset-inline-start: 28px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__icon { width: 52px; height: 52px; border-radius: 16px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__title { margin-top: 14px; }
}
@media (max-width: 560px) {
  .dg-quote--y .dg-quote__mark { width: 44px; height: 44px; top: 26px; }
  .dg-quote--y blockquote { margin-top: 28px; }
}
@media (max-width: 1080px) and (min-width: 861px) { .dg-toast--live { top: -18px; } }
@media (max-width: 860px) { .dg-toast--live { top: 0; } .dg-hero__visual { padding-top: 64px; } }
[lang="en"] .dg-hero__title { font-size: clamp(36.8px, 5.2vw, 73.6px); }
[lang="en"] .dg-h2 { font-size: clamp(27.2px, 3.8vw, 51.2px); }
@media (max-width: 1080px) {
  .dg-svc--feature .dg-svc__link { min-height: 0; padding-bottom: 170px; }
  .dg-svc--feature .dg-svc__link::before { bottom: 72px; transform: rotate(calc(var(--dg-dir) * 2.5deg)); }
  .dg-svc--feature .dg-svc__link::after { bottom: 92px; transform: rotate(calc(var(--dg-dir) * 2.5deg)); }
  .dg-svc--feature .dg-svc__go { position: absolute; bottom: 22px; inset-inline-start: 36px; }
}
@media (max-width: 560px) {
  .dg-svc--feature .dg-svc__link::before, .dg-svc--feature .dg-svc__link::after { transform: rotate(calc(var(--dg-dir) * 5deg)); }
  .dg-svc--feature .dg-svc__go { inset-inline-start: 28px; }
}
.dg-download { padding-bottom: 0; }
.dg-testi { padding-top: clamp(72px, 8vw, 104px); }

/* =========================================================
   SITE PARTS (Laravel layout)
   ========================================================= */

/* the legacy landing theme (main.css) reads these on the inner pages */
:root {
  --base-1: #1B1B1B; --base-rgb: 27, 27, 27;
  --base-2: #3A3A3A; --base-rgb-2: 58, 58, 58;
  --primary-clr: #1B1B1B;
  --title-clr: #1B1B1B; --title-rgb: 27, 27, 27;
  --body-clr: #5C5647;
  --body-bg: #FFF8E7;
  --section-bg: #FFFDF7;
  --header-bg: #FFF8E7;
  --heading-fonts: "Tajawal", system-ui, sans-serif;
  --body-fonts: "Tajawal", system-ui, sans-serif;
}
body.dg-body--page { font-family: var(--dg-font-body); }
.dg-body--page .section-header .title { font-family: var(--dg-font-head); font-weight: 700; color: var(--dg-ink); }
.dg-body--page .cmn--btn { background: var(--dg-ink); color: var(--dg-chalk); border-radius: 999px; }
.dg-body--page .cmn--btn:hover { color: var(--dg-yellow); }

/* main.css styles every <header>; keep ours as designed */
header.dg-header { position: sticky; top: 0; z-index: 50; }
header.dg-header.active { animation: none; background: var(--dg-chalk); }
header.dg-header.active::after { display: none; }

.dg-header { color: var(--dg-ink); }
.dg-nav__list a.is-current::after { transform: scaleX(1); }
.dg-nav__join { display: none; }

.dg-lang__btn { display: inline-grid; place-items: center; padding: 0 10px; color: var(--dg-ink); line-height: 1; }
.dg-lang__btn:hover { color: var(--dg-ink); background: rgba(27,27,27,.08); }
.dg-lang__btn.is-active, .dg-lang__btn.is-active:hover { background: var(--dg-ink); color: var(--dg-yellow); }

.dg-join { position: relative; }
.dg-join__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--dg-line); background: transparent; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.dg-join__btn:hover, .dg-join__btn[aria-expanded="true"] { border-color: var(--dg-ink); }
.dg-join__btn .dg-ico { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .25s var(--dg-ease); }
.dg-join__btn[aria-expanded="true"] .dg-ico { transform: rotate(90deg); }
.dg-join__list {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 240px; padding: 8px; z-index: 5;
  background: var(--dg-paper); border: 2px solid var(--dg-ink); border-radius: 18px; box-shadow: var(--dg-hard);
}
.dg-join__list[hidden] { display: none; }
.dg-join__list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .2s; }
.dg-join__list a:hover { background: var(--dg-yellow-soft); color: var(--dg-ink); }
.dg-join__list .dg-ico { width: 20px; height: 20px; }

.dg-btn--line { --b-bg: transparent; --b-fg: var(--dg-ink); box-shadow: inset 0 0 0 2px var(--dg-ink); }
.dg-btn--lg { min-height: 62px; padding-inline: 26px; border-radius: 16px; }
.dg-btn--wa { --b-bg: var(--dg-white); --b-fg: var(--dg-ink); box-shadow: inset 0 0 0 2px var(--dg-ink); }
.dg-btn--wa .dg-ico { width: 30px; height: 30px; padding: 5px; margin-inline-start: -8px; border-radius: 50%; background: var(--dg-green); color: var(--dg-white); stroke-width: 2.1; }
.dg-btn--wa:hover { box-shadow: inset 0 0 0 2px var(--dg-ink), 0 10px 22px -10px rgba(27,27,27,.6); color: var(--dg-ink); }
.dg-download .dg-btn--wa, .dg-footer .dg-btn--wa { --b-bg: transparent; --b-fg: var(--dg-chalk); box-shadow: inset 0 0 0 2px rgba(255,248,231,.55); }
.dg-download .dg-btn--wa:hover, .dg-footer .dg-btn--wa:hover { color: var(--dg-chalk); box-shadow: inset 0 0 0 2px var(--dg-chalk); }

/* hero additions */
.dg-hero__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; color: var(--dg-muted); font-weight: 500; font-size: 15.5px; }
.dg-hero__visual { display: block; }
.dg-hero__stage { position: relative; display: grid; place-items: center; width: 100%; }
.dg-map__rider { will-change: transform; }

/* receipt payment line */
.dg-receipt__pay dd { font-weight: 700; color: var(--dg-ink); direction: inherit; }

/* promotional banners from the admin */
.dg-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.dg-promo { position: relative; overflow: hidden; border-radius: var(--dg-r-lg); border: 1.5px solid var(--dg-line); background: var(--dg-sand); }
.dg-promo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.dg-promo__txt { position: absolute; inset: auto 0 0; display: grid; padding: 18px 22px; color: var(--dg-chalk); background: linear-gradient(transparent, rgba(27,27,27,.85)); }
.dg-promo__txt b { font-family: var(--dg-font-head); font-size: 19px; }

/* referral line (only when the admin wrote one) */
.dg-refer { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 20px 26px; border: 2px dashed var(--dg-ink); border-radius: var(--dg-r); }
.dg-refer__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--dg-yellow); }

/* download band */
.dg-download__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dg-mark--img { padding: 0; overflow: hidden; }
.dg-mark--img img { width: 100%; height: 100%; object-fit: cover; }

/* DB images inside the brand shapes */
.dg-feat__icon img { width: 28px; height: 28px; object-fit: contain; }
img.dg-quote__av { object-fit: cover; }

/* footer */
.dg-footer__wa { margin-top: 22px; }
.dg-footer .dg-badges { margin-top: 18px; }
.dg-social img { width: 20px; height: 20px; filter: invert(1); }
.dg-footer__contact span { overflow-wrap: anywhere; }

/* welcome dialog after a registration */
.dg-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 2px solid var(--dg-ink); border-radius: var(--dg-r-lg); background: var(--dg-chalk); color: var(--dg-ink); box-shadow: var(--dg-hard); }
.dg-dialog::backdrop { background: rgba(27,27,27,.55); }
.dg-dialog__body { display: grid; justify-items: center; gap: 16px; padding: 40px 32px 34px; text-align: center; }
.dg-dialog__body h2 { font-size: 24px; line-height: 1.4; }
.dg-dialog__body p { color: var(--dg-muted); }

@media (max-width: 1180px) {
  .dg-join__btn { padding: 0 12px; }
}
@media (max-width: 860px) {
  .dg-join { display: none; }
  .dg-nav__join { display: grid; gap: 10px; margin-top: 18px; }
  .dg-nav__join .dg-btn { width: 100%; }
  .dg-hero__alt { margin-top: 18px; }
  .dg-download__actions { justify-content: center; }
}
@media (max-width: 560px) {
  .dg-hero__alt .dg-btn { width: 100%; }
  .dg-download__actions .dg-btn { width: 100%; }
  .dg-refer { align-items: flex-start; padding: 18px; }
}

/* =========================================================
   «مشوارك بيدفع حاله» — carry a parcel on a trip you already make
   ========================================================= */
.dg-trip { background: var(--dg-paper); border-block: 1px solid var(--dg-line); overflow: hidden; }
.dg-trip__grid {
  display: grid; gap: 18px clamp(28px, 5vw, 72px); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  grid-template-areas: "head map" "dir map" "steps map" "trust map" "cta map";
}
.dg-trip__copy { display: contents; }
.dg-trip__head { grid-area: head; }
.dg-trip__head .dg-lead { max-width: 56ch; }
.dg-trip__dir { grid-area: dir; display: inline-flex; justify-self: start; padding: 4px; border-radius: 999px; background: rgba(27,27,27,.06); }
.dg-trip__dir[hidden] { display: none; }
.dg-trip__dir button { border: 0; background: transparent; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 800 14.4px/1 var(--dg-font-body); color: var(--dg-ink); transition: background .2s, color .2s; }
.dg-trip__dir button[aria-pressed="true"] { background: var(--dg-ink); color: var(--dg-yellow); }
.dg-trip__steps { grid-area: steps; display: grid; gap: 14px; counter-reset: s; }
.dg-trip__steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-trip__no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--dg-yellow); border: 2px solid var(--dg-ink); font-family: var(--dg-font-head); font-size: 17px; }
.dg-trip__steps b { display: block; font-size: 17.6px; line-height: 1.4; }
.dg-trip__steps span:not(.dg-trip__no) { color: var(--dg-muted); font-size: 15.2px; }
.dg-trip__trust { grid-area: trust; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--dg-r); background: #E3F6EC; color: #0D5C36; font-weight: 700; font-size: 15.2px; }
.dg-trip__trust .dg-ico { width: 22px; height: 22px; color: var(--dg-green); margin-top: 2px; }
.dg-trip__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; }
.dg-trip__cta .dg-btn { min-height: 52px; }

.dg-trip__map { grid-area: map; margin: 0; position: sticky; top: 96px; padding: 18px 10px; border-radius: var(--dg-r-lg); background: var(--dg-chalk); border: 2px solid var(--dg-ink); box-shadow: var(--dg-hard); }
.dg-trip__map svg { display: block; width: 100%; height: auto; max-height: 560px; direction: ltr; overflow: visible; }
.dg-trip__land { fill: var(--dg-sand); stroke: var(--dg-ink); stroke-width: 3; stroke-linejoin: round; }
.dg-trip__places text, .dg-trip__sealbl, .dg-trip__chip text { font-family: var(--dg-font-body); font-weight: 800; font-size: 13px; fill: var(--dg-ink); paint-order: stroke; stroke: var(--dg-chalk); stroke-width: 4px; stroke-linejoin: round; }
.dg-trip__sealbl { font-weight: 700; fill: var(--dg-muted); letter-spacing: .04em; }
.dg-trip__chip text { fill: var(--dg-yellow); stroke: none; font-size: 13.5px; }

/* still frame: rider mid-route, the southbound arrival shown */
.dg-trip__rider { transform: translate(120px, 272px); }
.dg-trip { --bike: 1.5; }
.dg-trip__flip { transform: scale(var(--bike)); transition: transform .3s var(--dg-ease); }
.dg-trip.is-north .dg-trip__flip { transform: scale(calc(var(--bike) * -1), var(--bike)); }
.dg-trip__arrive--n { display: none; }
.dg-trip.is-north .dg-trip__arrive--n { display: inline; }
.dg-trip.is-north .dg-trip__arrive--s { display: none; }
.dg-trip__chip { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .dg-trip.is-playing .dg-trip__rider { animation: dg-ride-s 9s cubic-bezier(.45, 0, .3, 1) infinite; }
  .dg-trip.is-playing.is-north .dg-trip__rider { animation-name: dg-ride-n; }
  .dg-trip.is-playing .dg-trip__box { animation: dg-handoff 9s ease infinite; transform-box: fill-box; }
  .dg-trip.is-playing .dg-trip__arrive { animation: dg-arrive 9s ease infinite; }
  .dg-trip.is-playing .dg-trip__chip { animation: dg-fare 9s var(--dg-ease) infinite; }
}
@keyframes dg-ride-s { 0%, 6% { transform: translate(148px, 44px); } 74%, 100% { transform: translate(92px, 500px); } }
@keyframes dg-ride-n { 0%, 6% { transform: translate(92px, 500px); } 74%, 100% { transform: translate(148px, 44px); } }
@keyframes dg-handoff { 0%, 75% { opacity: 1; transform: none; } 82%, 96% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 1; transform: none; } }
@keyframes dg-arrive { 0%, 74% { opacity: 0; } 79%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dg-fare { 0%, 78% { transform: scale(.6); } 84% { transform: scale(1.08); } 88%, 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .dg-trip__grid {
    grid-template-columns: minmax(0, 1fr) 150px; column-gap: 14px;
    grid-template-areas: "head head" "dir dir" "steps map" "trust trust" "cta cta";
  }
  .dg-trip__map { position: static; padding: 10px 4px; border-radius: 20px; box-shadow: 4px 4px 0 var(--dg-ink); align-self: start; }
  .dg-trip__map svg { max-height: none; }
  .dg-trip__places text { font-size: 21px; stroke-width: 6px; }
  .dg-trip__sealbl { display: none; }
  .dg-trip__chip { display: none; }
  .dg-trip { --bike: 2; }
  .dg-trip__steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .dg-trip__no { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
  .dg-trip__steps b { font-size: 16px; }
  .dg-trip__steps span:not(.dg-trip__no) { font-size: 14.4px; }
  .dg-trip__dir { justify-self: stretch; }
  .dg-trip__dir button { flex: 1; padding: 0 10px; }
  .dg-trip__cta .dg-btn { flex: 1 1 180px; }
}

/* phones: the services read as a compact two-column board instead of five tall cards */
@media (max-width: 640px) {
  .dg-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dg-svc--feature { grid-column: 1 / -1; }
  .dg-svc--feature .dg-svc__link { min-height: 300px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__link { padding: 18px 16px; border-radius: 22px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__icon { width: 48px; height: 48px; border-radius: 15px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__icon .dg-ico { width: 26px; height: 26px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__title { margin-top: 14px; font-size: 19.2px; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__text { font-size: 14.4px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__no, .dg-svc:not(.dg-svc--feature) .dg-svc__tag { display: none; }
  .dg-svc:not(.dg-svc--feature) .dg-svc__go { padding-top: 12px; font-size: 14.4px; }
}

/* toasts (toastr) in the brand: asphalt card, the icon on the reading side */
#toast-container > div { font-family: var(--dg-font-body); font-weight: 700; border-radius: 16px; opacity: 1; box-shadow: 0 14px 30px -14px rgba(27,27,27,.6); background-color: var(--dg-ink); }
#toast-container > .toast-success { background-color: #0D6B3E; }
#toast-container > .toast-error { background-color: #B4232A; }
[dir="rtl"] #toast-container > div { padding: 15px 52px 15px 18px; background-position: right 16px center; text-align: right; }

/* Entry to the customer web app: header login + hero actions */
.dg-header__login {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--dg-line); color: var(--dg-ink); font-weight: 700; font-size: 15px; white-space: nowrap;
  text-decoration: none; transition: border-color .2s, background .2s;
}
.dg-header__login:hover { border-color: var(--dg-ink); background: var(--dg-white); }
.dg-header__login .dg-ico { width: 18px; height: 18px; }
.dg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.dg-hero__actions .dg-btn { flex: 1 1 200px; justify-content: center; }
.dg-hero__note { margin-top: 10px; font-size: 14px; color: var(--dg-road); }
.dg-nav__mobile-cta + .dg-nav__mobile-cta { margin-top: 10px; }
@media (max-width: 1080px) {
  .dg-header__login span { display: none; }
  .dg-header__login { padding: 0; width: 42px; justify-content: center; }
}
@media (max-width: 860px) { .dg-header__login { display: none; } }
@media (max-width: 560px) { .dg-hero__actions .dg-btn { flex-basis: 100%; } }
@media (min-width: 1011px) { .dg-nav__list a { white-space: nowrap; } }
@media (max-width: 1400px) {
  .dg-header__login span { display: none; }
  .dg-header__login { padding: 0; width: 42px; justify-content: center; }
}
@media (max-width: 1260px) { .dg-header__login { display: none; } }
@media (max-width: 1180px) {
  .dg-header__cta span { display: none; }
  .dg-header__cta { padding: 0; width: 48px; }
}
@media (max-width: 1010px) { .dg-header__cta { display: none; } }

/* =========================================================
   MOTION PASS — everything arrives along the road
   Transform and opacity only, 150-450ms, small staggers.
   Entrances above the fold are plain CSS animations with
   fill-mode, so the content ends up visible even if landing.js
   never downloads. Everything below the fold rides the existing
   .dg-reveal / IntersectionObserver machinery.
   Reduced motion: the global rule further up collapses every
   animation and transition to .001ms, which lands each of these
   on its finished state; the loops are switched off explicitly
   in the block at the end.
   ========================================================= */
:root {
  --dg-ease-road: cubic-bezier(.16, 1, .3, 1);   /* quick off the mark, long settle - an arrival */
  --dg-ease-pop: cubic-bezier(.34, 1.45, .5, 1); /* a small overshoot - something landing */
}

/* ---------- load-time entrance (no JS involved) ---------- */
@keyframes dg-enter-road { from { opacity: 0; transform: translate3d(calc(var(--dg-dir) * -34px), 0, 0); } }
@keyframes dg-enter-up { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
.dg-enter { animation: dg-enter-road var(--dg-t, .4s) var(--dg-ease-road) var(--e, 0s) both; }

/* ---------- hero: the whole block lands inside the first second ---------- */
.dg-hero .dg-pill.dg-enter { --e: 0s; --dg-t: .34s; animation-name: dg-enter-up; }
.dg-hero__title.dg-enter { --e: .04s; --dg-t: .44s; }
.dg-hero__sub.dg-enter { --e: .12s; }
.dg-hero__lead.dg-enter { --e: .18s; }
.dg-hero__actions.dg-enter { --e: .3s; --dg-t: .36s; animation-name: dg-enter-up; }
.dg-hero__trust.dg-enter { --e: .34s; --dg-t: .3s; animation-name: dg-enter-up; }
.dg-hero__note.dg-enter { --e: .38s; --dg-t: .3s; animation-name: dg-enter-up; }
.dg-hero__alt.dg-enter { --e: .44s; --dg-t: .32s; animation-name: dg-enter-up; }

/* the lane marking paints itself under the highlighted word */
@keyframes dg-hl-draw { from { transform: skewX(-8deg) scaleX(0); } }
.dg-hero__title .dg-hl::before {
  transform-origin: right;
  animation: dg-hl-draw .42s var(--dg-ease-road) .34s both;
}
[dir="ltr"] .dg-hero__title .dg-hl::before { transform-origin: left; }

/* the trust ticks drop in one behind the other */
@keyframes dg-tick-in { from { opacity: 0; transform: scale(.4); } }
.dg-hero__trust li .dg-ico { animation: dg-tick-in .3s var(--dg-ease-pop) var(--e, .5s) both; }
.dg-hero__trust li:nth-child(1) .dg-ico { --e: .48s; }
.dg-hero__trust li:nth-child(2) .dg-ico { --e: .55s; }
.dg-hero__trust li:nth-child(3) .dg-ico { --e: .62s; }
.dg-hero__trust li:nth-child(n+4) .dg-ico { --e: .69s; }

/* the backdrop opens up behind the copy */
@keyframes dg-sun-in { from { opacity: 0; transform: scale(.84); } }
.dg-hero__sun { animation: dg-sun-in .6s var(--dg-ease-road) both; }
.dg-hero__ghost { animation: dg-sun-in .6s var(--dg-ease-road) .1s both; }

/* the phone rises into frame; the float loop on .dg-phone is untouched */
@keyframes dg-stage-in { from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.96); } }
.dg-hero__stage { animation: dg-stage-in .5s var(--dg-ease-road) .1s both; }

/* the two notifications land after the phone.
   Scoped to the un-mounted island: once main.jsx sets data-dg-mounted the
   React toasts bring their own entrance and must not be animated twice. */
@keyframes dg-toast-drop { from { opacity: 0; transform: translate3d(0, -16px, 0) scale(.92); } }
@keyframes dg-toast-rise { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.92); } }
.dg-hero__stage:not([data-dg-mounted]) .dg-toast--live { animation: dg-toast-drop .4s var(--dg-ease-pop) .42s both; }
.dg-hero__stage:not([data-dg-mounted]) .dg-toast--price { animation: dg-toast-rise .4s var(--dg-ease-pop) .54s both; }

/* buttons: a real press, and the arrow leads the way on keyboard focus too */
.dg-btn:active { transform: translateY(1px) scale(.985); }
.dg-btn:focus-visible .dg-ico--dir { translate: calc(var(--dg-dir) * 4px) 0; }

/* ---------- reveal variants (below the fold, IntersectionObserver) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* section heads arrive from up the road instead of floating up */
  .dg-js .dg-head.dg-reveal,
  .dg-js .dg-trip__head.dg-reveal {
    transform: translate3d(calc(var(--dg-dir) * -36px), 0, 0);
    transition-duration: .45s;
  }
  .dg-js .dg-head.dg-reveal.is-in,
  .dg-js .dg-trip__head.dg-reveal.is-in { transform: none; }

  /* cards and list rows: shorter travel, quicker, with a touch of scale */
  .dg-js .dg-svc.dg-reveal,
  .dg-js .dg-step.dg-reveal,
  .dg-js .dg-feat.dg-reveal,
  .dg-js .dg-quote.dg-reveal,
  .dg-js .dg-earn-card.dg-reveal,
  .dg-js .dg-promo.dg-reveal,
  .dg-js .dg-stat.dg-reveal {
    transform: translate3d(0, 26px, 0) scale(.97);
    transition-duration: .42s;
  }
  .dg-js .dg-svc.dg-reveal.is-in,
  .dg-js .dg-step.dg-reveal.is-in,
  .dg-js .dg-feat.dg-reveal.is-in,
  .dg-js .dg-quote.dg-reveal.is-in,
  .dg-js .dg-earn-card.dg-reveal.is-in,
  .dg-js .dg-promo.dg-reveal.is-in,
  .dg-js .dg-stat.dg-reveal.is-in { transform: none; }

  /* the trip steps come in along the road, one behind the other */
  .dg-js .dg-trip__steps li.dg-reveal {
    transform: translate3d(calc(var(--dg-dir) * -28px), 0, 0);
    transition-duration: .4s;
  }
  .dg-js .dg-trip__steps li.dg-reveal.is-in { transform: none; }
}

/* ---------- services: each card's icon arrives, then hands over to hover ---------- */
@keyframes dg-svc-icon {
  0% { opacity: 0; transform: translate3d(calc(var(--dg-dir) * -30px), 0, 0) rotate(calc(var(--dg-dir) * -16deg)) scale(.72); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
/* backwards, never forwards: once it has run the icon must go back to the
   stylesheet value so :hover and :focus-visible can move it again. */
.dg-js .dg-svc.dg-reveal.is-in .dg-svc__icon {
  animation: dg-svc-icon .46s var(--dg-ease-pop) calc(var(--d, 0s) + .1s) backwards;
}
.dg-svc__link:focus-visible { transform: translateY(-6px); box-shadow: var(--dg-hard); border-color: var(--dg-ink); }
.dg-svc--dark .dg-svc__link:focus-visible { box-shadow: 6px 6px 0 var(--dg-yellow); }
.dg-svc__link:focus-visible .dg-svc__icon { transform: translateX(calc(var(--dg-dir) * 10px)) rotate(calc(var(--dg-dir) * 6deg)); }
.dg-svc__link:focus-visible .dg-svc__go .dg-ico { translate: calc(var(--dg-dir) * 6px) 0; }
.dg-svc__link:focus-visible .dg-svc__lane { transform: scaleX(1); }
.dg-svc__link:active { transform: translateY(-2px) scale(.99); }
.dg-svc__lane { transition-duration: .42s; }

/* ---------- content pages: one restrained reveal, nothing more ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dg-js .dg-pagesec.dg-reveal { transform: translate3d(0, 20px, 0); transition-duration: .36s; }
  .dg-js .dg-pagesec.dg-reveal.is-in { transform: none; }
}
.dg-pagehead .dg-kicker.dg-enter { --e: 0s; --dg-t: .3s; animation-name: dg-enter-up; }
.dg-pagehead__title.dg-enter { --e: .04s; --dg-t: .4s; }
.dg-pagehead__lead.dg-enter { --e: .12s; --dg-t: .36s; }

/* ---------- loops stop when their section is off screen ---------- */
.dg-road.is-idle .dg-road__traveller, .dg-road.is-idle .dg-road__lane { animation-play-state: paused; }
.dg-marquee.is-idle .dg-marquee__track { animation-play-state: paused; }
.dg-hero.is-idle .dg-phone, .dg-hero.is-idle .dg-pulse::after, .dg-hero.is-idle .dg-road__target::after { animation-play-state: paused; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dg-hero__title .dg-hl::before { animation: none; transform: skewX(-8deg); }
  .dg-enter, .dg-hero__sun, .dg-hero__ghost, .dg-hero__stage,
  .dg-hero__trust li .dg-ico, .dg-hero__stage .dg-toast, .dg-svc .dg-svc__icon {
    animation: none; opacity: 1; transform: none;
  }
}

/* ---------- the trip section: the road fills in behind the rider ----------
   One 9s loop drives all of it, so the trail, the bob, the hand-off, the
   arrival and the fare chip stay on the same beat. landing.js only plays it
   while the section is on screen; with no JS, reduced motion or Data Saver
   the still frame below is what you get: rider mid-route, arrival shown. */
.dg-trip__trail { opacity: 0; }
.dg-trip__ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
.dg-trip__badge { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* same easing as dg-ride-*, so the green edge stays under the back wheel */
  .dg-trip.is-playing .dg-trip__trail { animation: dg-trip-trail-s 9s cubic-bezier(.45, 0, .3, 1) infinite; }
  .dg-trip.is-playing.is-north .dg-trip__trail { animation-name: dg-trip-trail-n; }
  .dg-trip.is-playing .dg-trip__bob { animation: dg-trip-bob .55s ease-in-out infinite; }
  .dg-trip.is-playing .dg-trip__ping { animation: dg-trip-ping 9s ease-out infinite; }
  .dg-trip.is-playing .dg-trip__badge { animation: dg-trip-badge 9s var(--dg-ease-pop) infinite; }

  .dg-js .dg-trip__map.dg-reveal {
    transform: translate3d(calc(var(--dg-dir) * -30px), 0, 0) scale(.97);
    transition-duration: .45s;
  }
  .dg-js .dg-trip__map.dg-reveal.is-in { transform: none; }
}
@keyframes dg-trip-trail-s {
  0%, 6% { opacity: 1; stroke-dashoffset: 100; }
  74%, 92% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes dg-trip-trail-n {
  0%, 6% { opacity: 1; stroke-dashoffset: -100; }
  74%, 92% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes dg-trip-bob { 50% { transform: translateY(-1.6px); } }
@keyframes dg-trip-ping {
  0%, 73% { opacity: 0; transform: scale(.55); }
  77% { opacity: .85; transform: scale(.85); }
  89%, 100% { opacity: 0; transform: scale(2.6); }
}
@keyframes dg-trip-badge {
  0%, 73% { transform: scale(.25); }
  80%, 93% { transform: scale(1); }
  100% { transform: scale(.25); }
}

/* the direction toggle answers the press */
.dg-trip__dir button { transition: background .2s, color .2s, transform .18s var(--dg-ease); }
.dg-trip__dir button:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .dg-trip__trail, .dg-trip__ping { animation: none; opacity: 0; }
  .dg-trip__bob, .dg-trip__badge { animation: none; transform: none; }
}
