:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #25302a;
  background: #fff9f2;
  font-synthesis: none;
}

* { box-sizing: border-box; }

.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 189, 104, .22), transparent 26rem),
    radial-gradient(circle at 91% 86%, rgba(50, 145, 104, .16), transparent 27rem),
    #fff9f2;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  border: 1px solid rgba(41, 108, 78, .09);
  pointer-events: none;
}

body::before { width: 34rem; height: 34rem; left: -20rem; top: 28%; }
body::after { width: 26rem; height: 26rem; right: -15rem; top: -8rem; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.delivery-card {
  width: min(100%, 980px);
  min-height: 590px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(55, 91, 69, .10);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(63, 52, 37, .13), 0 3px 12px rgba(63, 52, 37, .06);
}

.visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #e9f2e9;
}

.brand-visual {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #ffe600;
}

.brand-visual::before,
.brand-visual::after { display: none; }

.brand-visual .brand-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.brand-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #252f7c;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 47, 124, .18);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.brand-badge svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

.visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -215px;
  bottom: -95px;
  border-radius: 50%;
  background: #397d5e;
  box-shadow: 250px -450px 0 125px #f6c56f;
}

.visual::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 180px;
  right: -210px;
  bottom: 48px;
  border: 42px solid rgba(255,255,255,.72);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.sun {
  position: absolute;
  top: 58px;
  left: 58px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff7d9;
  box-shadow: 0 0 0 17px rgba(255, 250, 214, .30);
}

.route {
  position: absolute;
  z-index: 1;
  width: 115%;
  height: 270px;
  left: -20%;
  border: 4px dashed rgba(255,255,255,.68);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
}

.route-one { top: 190px; transform: rotate(12deg); }
.route-two { top: 300px; left: 10%; transform: rotate(-18deg); }

.pin {
  position: absolute;
  z-index: 2;
  width: 36px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 52% 52% 52% 4%;
  transform: rotate(-45deg);
  background: #fff;
  box-shadow: 0 8px 20px rgba(38, 78, 58, .18);
}

.pin span { width: 11px; height: 11px; border-radius: 50%; background: #ed744b; }
.pin-one { left: 61px; top: 188px; }
.pin-two { right: 55px; top: 92px; transform: rotate(-45deg) scale(.72); }

.scooter { position: absolute; z-index: 3; left: 50%; top: 55%; width: 250px; height: 190px; transform: translate(-50%, -50%); }
.delivery-box { position: absolute; left: 20px; top: 53px; width: 83px; height: 72px; display: grid; place-items: center; color: #fff; font: 800 23px Manrope, sans-serif; background: #ed744b; border-radius: 12px 12px 5px 5px; box-shadow: inset 0 7px rgba(255,255,255,.12); }
.rider-head { position: absolute; left: 126px; top: 22px; width: 42px; height: 42px; border-radius: 50%; background: #f2b68b; border: 9px solid #253d32; }
.rider-body { position: absolute; left: 101px; top: 64px; width: 87px; height: 79px; background: #f4c65f; border-radius: 45px 18px 14px 16px; transform: rotate(10deg); }
.bike-body { position: absolute; left: 71px; top: 121px; width: 133px; height: 35px; border-radius: 50% 50% 15px 15px; background: #f7f0df; border-bottom: 9px solid #294b3b; transform: skewX(-12deg); }
.wheel { position: absolute; top: 142px; width: 47px; height: 47px; border: 9px solid #263d33; border-radius: 50%; background: #eff1e6; box-shadow: inset 0 0 0 4px #9db3a7; }
.wheel-left { left: 64px; }
.wheel-right { left: 172px; }

.card-content {
  align-self: center;
  padding: 54px 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  color: #2e7a57;
  background: #edf8f1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #39a871; box-shadow: 0 0 0 0 rgba(57,168,113,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(57,168,113,0); } 100% { box-shadow: 0 0 0 0 rgba(57,168,113,0); } }

h1 {
  margin: 0;
  color: #243b31;
  font: 800 clamp(2rem, 4vw, 3.05rem)/1.08 Manrope, sans-serif;
  letter-spacing: -.045em;
}

h1 span {
  display: inline;
  padding: 0 .13em;
  color: #252f7c;
  background: #ffe600;
  border-radius: .18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.description { margin: 21px 0 27px; color: #66716b; font-size: 16px; line-height: 1.65; }
.description strong { color: #34483f; }

.courier { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; padding: 13px 15px; border: 1px solid #e7ece7; border-radius: 15px; background: #fbfcfa; }
.avatar { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #347957; font-weight: 700; }
.courier div:nth-child(2) { display: grid; gap: 2px; }
.courier span { color: #88908b; font-size: 12px; }
.courier strong { color: #30443a; font-size: 14px; }
.status-icon { width: 27px; height: 27px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; color: #2d8a5e; background: #e5f6ec; font-size: 13px; font-weight: 700; }

button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 15px;
  color: #252f7c;
  background: #ffe600;
  box-shadow: 0 12px 24px rgba(207, 179, 0, .25);
  font: 700 15px "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

button:hover { transform: translateY(-2px); background: #f2da00; box-shadow: 0 15px 30px rgba(207, 179, 0, .32); }
button:focus-visible { outline: 3px solid rgba(37, 47, 124, .25); outline-offset: 4px; }
button:disabled { cursor: wait; transform: none; opacity: .72; }
button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }

.feedback { display: none; margin: 13px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; text-align: center; }
.feedback.visible { display: block; }
.feedback.success { color: #246d4c; background: #eaf7ef; }
.feedback.error { color: #9f3e2b; background: #fff0eb; }
.success-celebration {
  position: relative;
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 17px 18px;
  overflow: hidden;
  color: #235d43;
  background: linear-gradient(135deg, #effaf3, #e3f5e9);
  border: 1px solid #c7ead4;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(46, 122, 87, .13);
}

.success-celebration.show {
  display: flex;
  animation: celebrationIn .65s cubic-bezier(.2, .9, .25, 1.25) both;
}

.success-check {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: #36a36d;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(54, 163, 109, .12);
  animation: checkPop .7s .22s cubic-bezier(.2, .95, .2, 1.35) both;
}

.success-check svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawCheck .55s .55s ease forwards; }
.success-copy { position: relative; z-index: 1; display: grid; gap: 4px; }
.success-copy strong { font: 800 15px Manrope, sans-serif; }
.success-copy span { color: #5b7969; font-size: 12px; line-height: 1.45; }
.spark { position: absolute; width: 8px; height: 8px; background: #f0b84c; transform: rotate(45deg); opacity: 0; }
.spark-one { right: 27px; top: 15px; animation: sparkle 1.5s .45s ease infinite; }
.spark-two { right: 65px; bottom: 12px; width: 6px; height: 6px; background: #e66a43; animation: sparkle 1.5s .8s ease infinite; }
.spark-three { left: 78px; top: 9px; width: 5px; height: 5px; background: #45ad78; animation: sparkle 1.5s 1.05s ease infinite; }

.delivery-card.location-confirmed .scooter { animation: scooterArrives 1.1s cubic-bezier(.2,.8,.2,1) both; }
.delivery-card.location-confirmed .brand-image { animation: brandCelebrate 1s cubic-bezier(.2,.8,.2,1) both; }
.delivery-card.location-confirmed .brand-badge { animation: badgeCelebrate .8s .15s cubic-bezier(.2,.9,.25,1.2) both; }
.delivery-card.location-confirmed .pulse-dot { background: #36a36d; animation: none; box-shadow: 0 0 0 5px rgba(54,163,109,.13); }

@keyframes celebrationIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes checkPop {
  0% { transform: scale(0) rotate(-25deg); }
  75% { transform: scale(1.12) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: rotate(45deg) scale(.2); }
  45% { opacity: 1; transform: rotate(135deg) scale(1); }
}

@keyframes scooterArrives {
  0% { margin-left: -38px; opacity: .25; }
  65% { margin-left: 6px; opacity: 1; }
  100% { margin-left: 0; opacity: 1; }
}

@keyframes brandCelebrate {
  0%, 100% { transform: scale(1); }
  48% { transform: scale(1.045); }
}

@keyframes badgeCelebrate {
  0% { opacity: 0; transform: translateX(-50%) translateY(15px) scale(.88); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; color: #939a96; font-size: 11px; text-align: center; }
.privacy svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 760px) {
  .page-shell { padding: 18px 12px; }
  .delivery-card { grid-template-columns: 1fr; border-radius: 24px; }
  .visual { min-height: 245px; }
  .visual::before { width: 340px; height: 340px; left: -130px; bottom: -155px; }
  .sun { top: 35px; left: 38px; width: 45px; height: 45px; }
  .pin-one { left: 35px; top: 125px; }
  .pin-two { right: 30px; top: 38px; }
  .scooter { top: 48%; transform: translate(-50%, -50%) scale(.72); }
  .card-content { padding: 36px 25px 30px; }
  h1 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
