/* ==========================================================================
   Da-Ag landing page extras: hero tracker, proof strip, how-it-works, closing band.
   Loaded only by /index.html and /public/index.html (after the page's own styles).
   ========================================================================== */

/* ---- Hero: one-tap tracker ---------------------------------------------------- */
.hero-track {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 6px;
  width: min(100%, 560px); margin: 26px auto 0; padding: 6px 6px 6px 20px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 10, 40, .35), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  animation: fadeUp .6s .4s ease both;
  transition: box-shadow .3s var(--dgl-ease, ease), translate .3s var(--dgl-ease, ease);
}
.hero-track:focus-within { box-shadow: 0 22px 60px rgba(0, 10, 40, .45), 0 0 0 4px rgba(191, 10, 48, .35); translate: 0 -2px; }
.hero-track > i { color: var(--navy, #002868); opacity: .55; font-size: .95rem; }
.hero-track input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 600 1rem/1.2 'Inter', sans-serif; letter-spacing: .04em; color: #0b1b3b; padding: 14px 4px; text-transform: uppercase;
}
.hero-track input::placeholder { color: #8391a8; font-weight: 500; letter-spacing: 0; text-transform: none; }
.hero-track input:focus { box-shadow: none; }
.hero-track button {
  flex-shrink: 0; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 24px;
  background: linear-gradient(135deg, var(--red, #bf0a30), #e11d48); color: #fff;
  font: 800 .9rem 'Inter', sans-serif; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(191, 10, 48, .4);
}
.hero-track button i { transition: translate .25s var(--dgl-ease, ease); }
.hero-track button:hover i { translate: 4px 0; }
.hero-track.dgl-shake { animation: dgl-shake .32s ease; }
.hero-track-hint { position: relative; z-index: 10; margin-top: 10px; font-size: .75rem; color: rgba(255, 255, 255, .7); letter-spacing: .02em; animation: fadeUp .6s .5s ease both; }
@media (max-width: 480px) {
  .hero-track { padding-left: 16px; margin-top: 20px; }
  .hero-track button { padding: 13px 18px; }
  .hero-track button span { display: none; }       /* arrow-only button keeps the field roomy */
  .hero-track button { width: 48px; height: 48px; padding: 0; justify-content: center; }
}

/* ---- Proof strip: three numbers that count up when seen ------------------------- */
.dgl-proof { position: relative; z-index: 5; margin: 34px auto 0; padding: 0 20px; max-width: 1100px; }
.dgl-proof-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: #fff; border-radius: 22px; border: 1px solid var(--border, #e5e9f2);
  box-shadow: 0 24px 60px rgba(0, 28, 80, .14); overflow: hidden;
}
.dgl-proof-item { padding: 26px 16px; text-align: center; position: relative; }
.dgl-proof-item + .dgl-proof-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border, #e5e9f2); }
.dgl-num { font: 800 clamp(1.7rem, 4.6vw, 2.7rem)/1 'Inter', sans-serif; color: var(--navy, #002868); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dgl-num em { font-style: normal; color: var(--red, #bf0a30); }
.dgl-lbl { margin-top: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #64748b); }
@media (max-width: 560px) { .dgl-proof { margin-top: 22px; padding: 0 14px; } .dgl-proof-item { padding: 18px 6px; } .dgl-lbl { letter-spacing: .06em; font-size: .62rem; } }

/* ---- How it works -------------------------------------------------------------------- */
.dgl-how { padding-top: 64px; }
.dgl-steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 44px 0 0; padding: 0; counter-reset: none; }
.dgl-steps::before, .dgl-steps::after {
  content: ""; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; z-index: 0;
}
.dgl-steps::before { background: repeating-linear-gradient(90deg, #cfd8ea 0 8px, transparent 8px 16px); }
.dgl-steps::after { background: linear-gradient(90deg, var(--navy, #002868), var(--red, #bf0a30)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
.dgl-steps.dgl-in::after { transform: scaleX(1); }
.dgl-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.dgl-step-ico {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center;
  background: #fff; color: var(--navy, #002868); font-size: 1.45rem; border: 1px solid var(--border, #e5e9f2);
  box-shadow: 0 10px 28px rgba(0, 40, 104, .12); position: relative;
  transition: translate .35s var(--dgl-spring, ease), background .25s, color .25s;
}
.dgl-step-no {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px;
  background: var(--red, #bf0a30); color: #fff; font: 800 .72rem/24px 'Inter', sans-serif; box-shadow: 0 4px 10px rgba(191, 10, 48, .4);
}
@media (hover: hover) { .dgl-step:hover .dgl-step-ico { translate: 0 -6px; background: var(--navy, #002868); color: #fff; } }
.dgl-step h3 { font: 800 1.05rem/1.25 'Inter', sans-serif; color: var(--ink, #111827); margin-bottom: 6px; }
.dgl-step p { font-size: .88rem; line-height: 1.6; color: var(--muted, #64748b); max-width: 240px; margin: 0 auto; }
@media (max-width: 860px) {
  .dgl-steps { grid-template-columns: 1fr; gap: 6px; max-width: 460px; margin-left: auto; margin-right: auto; }
  .dgl-steps::before, .dgl-steps::after { top: 34px; bottom: 34px; left: 33px; right: auto; width: 3px; height: auto; }
  .dgl-steps::before { background: repeating-linear-gradient(180deg, #cfd8ea 0 8px, transparent 8px 16px); }
  .dgl-steps::after { transform-origin: 50% 0; transform: scaleY(0); }
  .dgl-steps.dgl-in::after { transform: scaleY(1); }
  .dgl-step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; padding: 14px 0; align-items: center; }
  .dgl-step-ico { margin: 0; grid-row: span 2; }
  .dgl-step p { margin: 0; max-width: none; }
  .dgl-step h3 { align-self: end; }
}

/* ---- Closing band --------------------------------------------------------------------- */
.dgl-band {
  position: relative; overflow: hidden; margin: 72px auto 0; max-width: 1100px; border-radius: 28px;
  padding: clamp(32px, 6vw, 56px); text-align: center; color: #fff;
  background: radial-gradient(900px 300px at 85% -20%, rgba(191, 10, 48, .55), transparent 60%),
              linear-gradient(135deg, #001a45, #003580);
  box-shadow: 0 30px 70px rgba(0, 28, 80, .3);
}
.dgl-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.dgl-band > * { position: relative; }
.dgl-band h2 { font: 800 clamp(1.6rem, 4.4vw, 2.6rem)/1.1 'Inter', sans-serif; letter-spacing: -.02em; margin-bottom: 10px; }
.dgl-band p { color: rgba(255, 255, 255, .78); max-width: 520px; margin: 0 auto 26px; line-height: 1.6; }
.dgl-band-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.dgl-band-cta a { text-decoration: none; padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: .92rem; display: inline-flex; align-items: center; gap: 9px; }
.dgl-band-cta .primary { background: var(--red, #bf0a30); color: #fff; box-shadow: 0 10px 28px rgba(191, 10, 48, .5); }
.dgl-band-cta .secondary { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.dgl-band-note { margin-top: 18px; font-size: .78rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 600px) { .dgl-band { margin-left: 14px; margin-right: 14px; border-radius: 22px; } .dgl-band-cta a { width: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .dgl-steps::after { transform: none !important; transition: none; }
  .hero-track { animation: none; }
}

/* ---- Fleet ---------------------------------------------------------------------------------- */
.dgl-fleet { padding-top: 30px; }
.dgl-ride-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.dgl-ride {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit;
  padding: 22px 16px 22px; background: #fff; border: 1px solid var(--border, #e5e9f2); border-radius: 22px;
  box-shadow: 0 8px 26px rgba(0, 40, 104, .06); transition: translate .35s var(--dgl-ease, ease), box-shadow .35s var(--dgl-ease, ease), border-color .25s;
}
@media (hover: hover) { a.dgl-ride:hover { translate: 0 -8px; box-shadow: 0 22px 46px rgba(0, 40, 104, .16); border-color: rgba(191, 10, 48, .35); } a.dgl-ride:hover img { scale: 1.08; } }
a.dgl-ride:active { scale: .98; }
.dgl-ride-img { width: 100%; height: 118px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 16px; background: radial-gradient(circle at 50% 70%, #eef3ff, #f9fbff 70%); }
.dgl-ride-img img { max-width: 78%; max-height: 96px; object-fit: contain; transition: scale .4s var(--dgl-spring, ease); }
.dgl-ride h3 { font: 800 1.1rem/1.2 'Inter', sans-serif; color: var(--ink, #111827); }
.dgl-ride p { margin: 6px 0 14px; font-size: .85rem; line-height: 1.5; color: var(--muted, #64748b); }
.dgl-ride-tag { margin-top: auto; padding: 5px 12px; border-radius: 99px; background: #eef3ff; color: var(--navy, #002868); font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.dgl-ride-tag.is-hot { background: var(--red, #bf0a30); color: #fff; box-shadow: 0 6px 14px rgba(191, 10, 48, .35); }
.dgl-ride.is-soon { opacity: .62; filter: grayscale(.6); }
.dgl-ride.is-soon .dgl-ride-tag { background: #eceff5; color: #6b7a92; }
@media (max-width: 860px) { .dgl-ride-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .dgl-ride { padding: 16px 10px; } .dgl-ride-img { height: 92px; } .dgl-ride-img img { max-height: 76px; } .dgl-ride p { font-size: .78rem; } }

/* ---- Why Da-Ag --------------------------------------------------------------------------- */
.dgl-why { padding-top: 70px; }
.dgl-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.dgl-why-card { padding: 24px 20px; border-radius: 22px; background: linear-gradient(160deg, #ffffff, #f4f7ff); border: 1px solid var(--border, #e5e9f2); transition: translate .35s var(--dgl-ease, ease), box-shadow .35s var(--dgl-ease, ease); }
@media (hover: hover) { .dgl-why-card:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(0, 40, 104, .12); } .dgl-why-card:hover .dgl-why-ico { background: var(--red, #bf0a30); color: #fff; rotate: -6deg; } }
.dgl-why-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 16px; background: var(--navy, #002868); color: #fff; font-size: 1.15rem; transition: background .3s, rotate .35s var(--dgl-spring, ease); }
.dgl-why-card h3 { font: 800 1.02rem/1.25 'Inter', sans-serif; margin-bottom: 6px; color: var(--ink, #111827); }
.dgl-why-card p { font-size: .87rem; line-height: 1.6; color: var(--muted, #64748b); }
@media (max-width: 860px) { .dgl-why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .dgl-why-card { padding: 18px 14px; } }
@media (max-width: 420px) { .dgl-why-grid { grid-template-columns: 1fr; } }

/* ---- Mobile quick-action bar ----------------------------------------------------------------- */
.dgl-sticky-cta { display: none; }
@media (max-width: 768px) {
  .dgl-sticky-cta {
    position: fixed; z-index: 900; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; padding: 8px;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 20px; border: 1px solid rgba(0, 40, 104, .08);
    box-shadow: 0 16px 40px rgba(0, 28, 80, .25); translate: 0 140%; transition: translate .4s var(--dgl-ease, ease);
  }
  .dgl-sticky-cta.is-on { translate: 0 0; }
  .dgl-sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; text-decoration: none; font: 800 .9rem 'Inter', sans-serif; }
  .dgl-sticky-cta .ghost { flex: 0 0 34%; background: #eef3ff; color: var(--navy, #002868); }
  .dgl-sticky-cta .solid { flex: 1; background: linear-gradient(135deg, var(--red, #bf0a30), #e11d48); color: #fff; box-shadow: 0 8px 20px rgba(191, 10, 48, .4); }
  .dgl-sticky-cta a:active { scale: .97; }
}

/* ---- Hero: two clear paths ---------------------------------------------------------------- */
.hero-cta--paths { gap: 14px; }
.hero-cta .dgl-path { padding: 12px 26px 12px 20px; gap: 14px; text-align: left; border-radius: 18px; min-width: 232px; }
.hero-cta .dgl-path > i { font-size: 1.35rem; width: 28px; text-align: center; }
.hero-cta .dgl-path span { display: flex; flex-direction: column; line-height: 1.2; }
.hero-cta .dgl-path b { font-size: 1rem; font-weight: 800; }
.hero-cta .dgl-path small { font-size: .74rem; font-weight: 600; opacity: .8; margin-top: 2px; }
.hero-login-hint { position: relative; z-index: 10; margin-top: 16px; font-size: .85rem; color: rgba(255, 255, 255, .85); animation: fadeUp .6s .35s ease both; }
.hero-login-hint a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); padding: 6px 2px; }
.hero-login-hint a:hover { text-decoration-color: #fff; }
.hero-login-hint i { font-style: normal; margin: 0 10px; opacity: .5; }
@media (max-width: 540px) {
  .hero-cta--paths { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .hero-cta .dgl-path { min-width: 0; width: 100%; justify-content: flex-start; padding: 13px 18px; }
}

/* ---- Header: log-in menu ---------------------------------------------------------------- */
.dgl-login { position: relative; }
.dgl-login > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; font: 700 .82rem 'Inter', sans-serif; color: var(--navy, #002868); user-select: none; }
.dgl-login > summary::-webkit-details-marker { display: none; }
.dgl-login > summary:hover, .dgl-login[open] > summary { background: var(--navy-light, #eef3ff); }
.dgl-caret { font-size: .65rem; transition: rotate .25s var(--dgl-ease, ease); }
.dgl-login[open] .dgl-caret { rotate: 180deg; }
.dgl-login-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 1200; width: 270px; padding: 8px; background: #fff; border: 1px solid var(--border, #e5e9f2);
  border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 28, 80, .22); animation: dgl-pop .25s var(--dgl-spring, ease) both; transform-origin: 90% 0;
}
.dgl-login-pop a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink, #111827); }
.dgl-login-pop a:hover { background: var(--navy-light, #eef3ff); }
.dgl-login-pop a > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--navy, #002868); color: #fff; font-size: .95rem; flex-shrink: 0; }
.dgl-login-pop a:last-child > i { background: var(--red, #bf0a30); }
.dgl-login-pop b { display: block; font-size: .9rem; font-weight: 800; }
.dgl-login-pop small { display: block; font-size: .75rem; color: var(--muted, #64748b); margin-top: 1px; }
@media (max-width: 560px) { .dgl-login { display: none; } }

/* ---- Mobile menu groups ----------------------------------------------------------------------- */
.mobile-menu .mm-label { margin: 14px 4px 2px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a9bb5; }
.mobile-menu a.mm-alt { background: var(--navy-light, #eef3ff); color: var(--navy, #002868); font-weight: 800; }

/* ---- Get started: two paths ------------------------------------------------------------------- */
.dgl-start { padding-top: 70px; scroll-margin-top: 90px; }
.dgl-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; align-items: stretch; }
.dgl-path-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 26px; background: #fff; border: 1px solid var(--border, #e5e9f2);
  box-shadow: 0 14px 40px rgba(0, 40, 104, .08); overflow: hidden; transition: translate .35s var(--dgl-ease, ease), box-shadow .35s var(--dgl-ease, ease);
}
.dgl-path-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red, #bf0a30), #e11d48); }
.dgl-path-card.is-rider::before { background: linear-gradient(90deg, var(--navy, #002868), #1d5fd6); }
@media (hover: hover) { .dgl-path-card:hover { translate: 0 -6px; box-shadow: 0 26px 56px rgba(0, 40, 104, .16); } }
.dgl-path-card header { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.dgl-path-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--red, #bf0a30), #e11d48); box-shadow: 0 10px 22px rgba(191, 10, 48, .35); }
.is-rider .dgl-path-ico { background: linear-gradient(135deg, var(--navy, #002868), #1d5fd6); box-shadow: 0 10px 22px rgba(0, 40, 104, .35); }
.dgl-path-card header small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red, #bf0a30); }
.is-rider header small { color: var(--navy, #002868); }
.dgl-path-card h3 { font: 800 1.35rem/1.2 'Inter', sans-serif; letter-spacing: -.01em; color: var(--ink, #111827); margin-top: 3px; }
.dgl-path-steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; position: relative; }
.dgl-path-steps li { position: relative; padding: 0 0 18px 48px; counter-increment: s; }
.dgl-path-steps li:last-child { padding-bottom: 0; }
.dgl-path-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem 'Inter', sans-serif; color: #fff; background: var(--red, #bf0a30); z-index: 1; }
.is-rider .dgl-path-steps li::before { background: var(--navy, #002868); }
.dgl-path-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; border-left: 2px dashed #d5deee; }
.dgl-path-steps b { display: block; font-size: .98rem; font-weight: 800; color: var(--ink, #111827); }
.dgl-path-steps span { display: block; margin-top: 2px; font-size: .86rem; line-height: 1.5; color: var(--muted, #64748b); }
.dgl-need { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: auto 0 20px; padding: 14px; border-radius: 16px; background: #f5f8ff; border: 1px dashed #cfdaee; }
.dgl-need small { flex: 0 0 100%; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a9bb5; }
.dgl-need span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #e0e8f5; font-size: .8rem; font-weight: 700; color: #26385c; }
.dgl-need span i { color: var(--navy, #002868); font-size: .8rem; }
.dgl-path-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 16px; text-decoration: none; font: 800 1rem 'Inter', sans-serif; color: #fff; transition: translate .25s var(--dgl-ease, ease), box-shadow .25s; }
.dgl-path-cta i { transition: translate .25s var(--dgl-ease, ease); }
.dgl-path-cta:hover i { translate: 5px 0; }
.dgl-path-cta.is-primary { background: linear-gradient(135deg, var(--red, #bf0a30), #e11d48); box-shadow: 0 12px 28px rgba(191, 10, 48, .38); }
.dgl-path-cta.is-dark { background: linear-gradient(135deg, var(--navy-deep, #001a45), var(--navy, #002868)); box-shadow: 0 12px 28px rgba(0, 40, 104, .35); }
.dgl-path-cta:active { scale: .98; }
.dgl-path-login { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--muted, #64748b); }
.dgl-path-login a { color: var(--navy, #002868); font-weight: 800; padding: 8px 4px; }
@media (max-width: 860px) { .dgl-paths { grid-template-columns: 1fr; } .dgl-path-card { padding: 24px 18px 20px; } .dgl-path-card h3 { font-size: 1.2rem; } }

/* keep each log-in link whole when the hint wraps on narrow screens */
.hero-login-hint { text-wrap: balance; }
.hero-login-hint a { white-space: nowrap; }
@media (max-width: 540px) { .hero-login-hint { max-width: 320px; margin-left: auto; margin-right: auto; } .hero-login-hint i { margin: 0 6px; } }

/* =====================================================================================================
   HERO MOTION
   The headline is static HTML (crawlers read it in full); motion only changes how it is painted.
   ===================================================================================================== */

/* intro splash: never shown to returning visitors, crawlers or no-JS visitors */
html.dgl-no-splash #splashOverlay { display: none !important; }
html.dgl-no-splash body.splash-active { overflow: auto; height: auto; }

.hero-content { padding: 48px 24px clamp(150px, 17vw, 250px); }
.hero-badge { margin-bottom: 22px; }

/* ---- Headline: barcode-scan reveal (static text; the scan only changes how it is painted) ------------------- */
.dgl-headline { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 14px; }

.dgl-scanbox { position: relative; width: 100%; }
.dgl-h1 {
  font: 800 clamp(2.1rem, 5.6vw, 4.7rem)/1.05 'Inter', system-ui, sans-serif; letter-spacing: -.035em; color: #fff; text-wrap: balance; font-optical-sizing: auto; max-width: 15.5em; margin: 0 auto;
  text-shadow: 0 8px 44px rgba(0, 10, 40, .5);
  /* a sliver is visible from the first frame, so the heading always counts as painted content */
  clip-path: inset(-14% 94% -14% 0); animation: dglScan 1.4s cubic-bezier(.5, 0, .2, 1) .3s forwards, dglFlash .9s ease 1.7s;
}
@keyframes dglScan { to { clip-path: inset(-14% -4% -14% 0); } }
@keyframes dglFlash { 40% { text-shadow: 0 0 34px rgba(255, 255, 255, .85), 0 8px 44px rgba(0, 10, 40, .5); } }
.dgl-beam {
  position: absolute; top: -8%; bottom: -8%; left: 6%; width: 3px; border-radius: 3px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, #ff5b7a 12%, #ff1f4b 50%, #ff5b7a 88%, transparent);
  box-shadow: 0 0 14px 3px rgba(255, 59, 92, .75), 0 0 46px 14px rgba(255, 59, 92, .35);
  animation: dglBeam 1.4s cubic-bezier(.5, 0, .2, 1) .3s forwards;
}
@keyframes dglBeam { 0% { left: 6%; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.dgl-h1 .is-accent {
  position: relative; color: transparent; text-shadow: none;
  background: linear-gradient(100deg, #ffffff 0%, #ffd3dc 45%, #ff6a86 100%); -webkit-background-clip: text; background-clip: text;
}
.dgl-h1 .is-accent::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .085em; border-radius: 99px; background: linear-gradient(90deg, #ff5b7a, #ffffff);
  transform: scaleX(0); transform-origin: 0 50%; animation: dglUnder .7s cubic-bezier(.2, .9, .25, 1) 1.55s forwards; box-shadow: 0 0 18px rgba(255, 91, 122, .7);
}
@keyframes dglUnder { to { transform: scaleX(1); } }
.dgl-kinetic { margin: 16px 0 0; font-size: clamp(1rem, 2.2vw, 1.3rem); font-weight: 600; color: rgba(255, 255, 255, .92); animation: fadeUp .7s ease 1.7s both; }

@media (prefers-reduced-motion: reduce) {
  .dgl-h1 { animation: none; clip-path: none; }
  .dgl-beam { display: none; }
  .dgl-h1 .is-accent::after { animation: none; transform: scaleX(1); }
  .dgl-kinetic { animation: none; }
}

/* ---- Delivery story scene ------------------------------------------------------------------------------------ */
.dgl-scene { position: absolute; left: 0; right: 0; bottom: 100px; z-index: 6; pointer-events: none; display: flex; justify-content: center; transition: transform .5s var(--dgl-ease, ease); }
.dgl-route { width: min(100%, 1500px); height: auto; display: block; overflow: visible; opacity: .95; filter: drop-shadow(0 6px 18px rgba(0, 10, 40, .35)); }
.dgl-status {
  position: absolute; right: clamp(8px, 4vw, 90px); top: -6px; height: 36px; min-width: 210px; padding: 0 16px; border-radius: 99px; overflow: hidden;
  background: rgba(8, 18, 50, .55); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 10, 40, .35); font-size: 12.5px; font-weight: 800; color: #fff; letter-spacing: .01em;
}
.dgl-status span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; white-space: nowrap; animation: dglS1 12s infinite; }
.dgl-status .s2 { animation-name: dglS2; }
.dgl-status .s3 { animation-name: dglS3; }
.dgl-status .s1 i { color: #ffb3c0; } .dgl-status .s2 i { color: #fff; } .dgl-status .s3 i { color: #4ade80; }
@keyframes dglS1 { 0% { opacity: 0; transform: translateY(8px); } 3%, 12% { opacity: 1; transform: none; } 15%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes dglS2 { 0%, 13% { opacity: 0; transform: translateY(8px); } 16%, 52% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes dglS3 { 0%, 54% { opacity: 0; transform: translateY(8px); } 58%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-8px); } }

/* paused off-screen / frozen for reduced motion */
.hero-wrap.is-paused .dgl-rot > span, .hero-wrap.is-paused .dgl-status span, .hero-wrap.is-paused .dgl-h1 .is-accent { animation-play-state: paused; }
.hero-wrap.is-still .dgl-status .s3 { opacity: 1; transform: none; animation: none; }
.hero-wrap.is-still .dgl-rot > span:first-child { opacity: 1; transform: none; animation: none; }

@media (max-width: 760px) {
  .dgl-scene { bottom: 84px; }
  .dgl-status { height: 30px; min-width: 176px; font-size: 11px; top: -22px; right: 50%; translate: 50% 0; }
  .hero-content { padding-bottom: clamp(120px, 34vw, 170px); }
}
@media (prefers-reduced-motion: reduce) {
  .dgl-h1 .w, .dgl-h1 .is-accent { opacity: 1; transform: none; filter: none; animation: none; }
  .dgl-h1 .is-accent::after { transform: scaleX(1); animation: none; }
  .dgl-rot > span { animation: none; }
  .dgl-rot > span:first-child { opacity: 1; transform: none; }
  .dgl-status span { animation: none; }
  .dgl-status .s3 { opacity: 1; }
}

/* the original descriptive line stays in the HTML for search engines, but reads as secondary */
.hero-sub { font-size: clamp(.86rem, 1.5vw, 1rem); font-weight: 500; opacity: .8; margin-bottom: 18px; }

/* ---- Route story: pure CSS, one 12s loop (pickup pulses > route draws > rider glides > drop-off turns green) ---- */
.dgl-route .rt-base { stroke: #fff; stroke-opacity: .3; stroke-width: 3; stroke-dasharray: 0.6 1.6; stroke-linecap: round; }
.dgl-route .rt-draw { stroke: url(#dglRg); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; animation: rtDraw 12s linear infinite; }
.dgl-route .rt-glow, .dgl-route .rt-rider { stroke-linecap: round; stroke-dasharray: 0.01 100; stroke-dashoffset: 0; opacity: 0; animation: rtRide 12s linear infinite; }
.dgl-route .rt-glow { stroke: #ff3b5c; stroke-width: 34; }
.dgl-route .rt-rider { stroke: #ff3b5c; stroke-width: 24; }
.dgl-route .rt-rider::after { content: ""; }
.dgl-route .rt-pulse { fill: #ff5b7a; transform-box: fill-box; transform-origin: center; animation: rtPulse 2.4s ease-out infinite; }
.dgl-route .rt-dest { fill: #fff; stroke: #fff; stroke-width: 3; animation: rtDest 12s linear infinite; }
.dgl-route .rt-ripple { fill: none; stroke: #4ade80; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rtRipple 12s ease-out infinite; }
.dgl-route .rt-check { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: rtCheck 12s linear infinite; }

@keyframes rtDraw { 0%, 9% { stroke-dashoffset: 100; opacity: 0; } 11% { opacity: 1; } 50% { stroke-dashoffset: 0; opacity: 1; } 93% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes rtRide {
  0%, 13% { stroke-dashoffset: 0; opacity: 0; }
  15% { stroke-dashoffset: 0; opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  55% { stroke-dashoffset: -100; opacity: 1; }
  58%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes rtPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes rtDest { 0%, 54% { fill: #fff; } 57%, 93% { fill: #22c55e; } 100% { fill: #fff; } }
@keyframes rtRipple { 0%, 55% { transform: scale(1); opacity: 0; } 56% { transform: scale(1); opacity: .9; } 72%, 100% { transform: scale(5); opacity: 0; } }
@keyframes rtCheck { 0%, 56% { opacity: 0; } 59%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* one pause switch for the whole hero */
.hero-wrap.is-paused .dgl-route * { animation-play-state: paused; }
/* reduced motion: show the happy ending, still */
@media (prefers-reduced-motion: reduce) {
  .dgl-route .rt-draw { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .dgl-route .rt-glow, .dgl-route .rt-rider, .dgl-route .rt-pulse, .dgl-route .rt-ripple { animation: none; opacity: 0; }
  .dgl-route .rt-dest { animation: none; fill: #22c55e; }
  .dgl-route .rt-check { animation: none; opacity: 1; }
}
.hero-wrap.is-still .dgl-route .rt-draw { animation: none; stroke-dashoffset: 0; opacity: 1; }

/* splash headlines are now <p>: keep the splash look exactly as it was */
#splashOverlay p.flash-headline { margin: 0; }

/* on small phones the status pill would sit on top of the tracker hint: the route story carries the message alone */
@media (max-width: 520px) { .dgl-status { display: none; } }

/* =====================================================================================================
   HERO LEGIBILITY: the text always has enough contrast against the picture behind it (day and night).
   A soft navy scrim sits behind the text block only, so the city stays visible around it.
   ===================================================================================================== */
.hero-content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 -14% 12% -14%;
  background: radial-gradient(ellipse 50% 52% at 50% 44%, rgba(2, 20, 66, .66) 0%, rgba(2, 20, 66, .54) 40%, rgba(2, 20, 66, .24) 68%, rgba(2, 20, 66, 0) 100%);
}
.dgl-h1 { text-shadow: 0 2px 4px rgba(0, 12, 44, .55), 0 10px 44px rgba(0, 12, 44, .6); }
.dgl-kinetic, .hero-sub { text-shadow: 0 1px 3px rgba(0, 12, 44, .8), 0 4px 20px rgba(0, 12, 44, .6); }
.hero-login-hint, .hero-track-hint { text-shadow: 0 1px 3px rgba(0, 12, 44, .85), 0 3px 14px rgba(0, 12, 44, .6); }
.hero-sub { opacity: .92; }

/* =====================================================================================================
   TABLET RANGE (561-1180px): iPad portrait and landscape
   ===================================================================================================== */

/* hero: do not stretch to the full height of a tall portrait screen */
@media (min-width: 561px) and (max-width: 1180px) {
  .hero-wrap { min-height: min(96vh, 820px); }
  .hero-content { padding-top: 36px; padding-bottom: clamp(130px, 18vw, 200px); }
  .dgl-h1 { font-size: clamp(2.5rem, 6.2vw, 3.8rem); }
}
/* landscape tablets: the status pill would sit on the tracker box, the route story carries the message alone */
@media (min-width: 761px) and (max-width: 1180px) and (orientation: landscape) { .dgl-status { display: none; } }

/* get started: two cards side by side from 700px */
@media (min-width: 700px) and (max-width: 860px) {
  .dgl-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dgl-path-card { padding: 22px 18px 20px; }
  .dgl-path-card header { gap: 12px; margin-bottom: 18px; }
  .dgl-path-ico { width: 48px; height: 48px; border-radius: 15px; font-size: 1.2rem; }
  .dgl-path-card h3 { font-size: 1.08rem; }
  .dgl-path-steps li { padding-left: 42px; }
  .dgl-path-steps b { font-size: .92rem; }
  .dgl-path-steps span { font-size: .82rem; }
  .dgl-need span { font-size: .74rem; padding: 5px 10px; }
}

/* how it works: 2 x 2 on tablets instead of one narrow centred column */
@media (min-width: 561px) and (max-width: 860px) {
  .dgl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; max-width: none; margin-left: 0; margin-right: 0; }
  .dgl-steps::before, .dgl-steps::after { display: none; }
  .dgl-step { display: block; text-align: center; padding: 0 6px; }
  .dgl-step-ico { margin: 0 auto 16px; }
  .dgl-step h3 { align-self: auto; }
  .dgl-step p { margin: 0 auto; max-width: 280px; }
}

/* ---- Get the app: install the customer app and the rider app straight from the website ---- */
.dgl-getapp { padding-top: 30px; padding-bottom: 30px; scroll-margin-top: 90px; }
.dgl-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.dgl-app-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border-radius: 24px; background: #fff;
  border: 1px solid var(--border, #e5e9f2); box-shadow: 0 12px 34px rgba(0, 40, 104, .08);
  border-top: 5px solid var(--navy, #002868);
}
.dgl-app-card.is-rider { border-top-color: var(--red, #bf0a30); }
.dgl-app-head { display: flex; align-items: center; gap: 14px; }
.dgl-app-head img { width: 60px; height: 60px; border-radius: 15px; flex: 0 0 60px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.dgl-app-card h3 { font: 800 1.15rem/1.25 'Inter', sans-serif; color: #0b1b3b; }
.dgl-app-card p { color: #5b6b82; line-height: 1.55; font-size: .95rem; }
.dgl-app-cta {
  margin-top: auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--navy, #002868); color: #fff; font: 800 .95rem 'Inter', sans-serif; text-decoration: none;
  transition: background .2s, translate .2s;
}
.dgl-app-card.is-rider .dgl-app-cta { background: var(--red, #bf0a30); }
.dgl-app-cta:hover { translate: 0 -2px; filter: brightness(1.12); }
.dgl-apps-note { text-align: center; margin-top: 18px; color: #5b6b82; font-size: .92rem; }
.dgl-apps-note a { color: var(--navy, #002868); font-weight: 700; }
@media (max-width: 700px) { .dgl-apps { grid-template-columns: 1fr; } .dgl-app-card { padding: 20px; } }
.dgl-getapp .sec-head { text-align: center; }
.dgl-getapp .sec-head .sec-sub { margin-left: auto; margin-right: auto; max-width: 560px; }
