/* Daim Traders — tracking. Liquid glass, black & white; colour only for parcel stages. */
:root {
  --bg: #000;
  --ink: #fff;
  --ink-2: rgba(255,255,255,.66);
  --ink-3: rgba(255,255,255,.42);
  --glass: rgba(255,255,255,.065);
  --glass-2: rgba(255,255,255,.11);
  --stroke: rgba(255,255,255,.14);
  --hi: rgba(255,255,255,.22);
  --blob: rgba(255,255,255,.16);
  --shadow: 0 30px 60px -30px rgba(0,0,0,.8);

  --booked: #8b93ff;
  --transit: #f6b93b;
  --out: #22d3ee;
  --delivered: #34d399;
  --problem: #ff5d61;
  --returned: #c084fc;
  --stage: var(--transit);

  --wa: #25d366;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eeeeee;
    --ink: #000;
    --ink-2: rgba(0,0,0,.64);
    --ink-3: rgba(0,0,0,.42);
    --glass: rgba(255,255,255,.55);
    --glass-2: rgba(255,255,255,.8);
    --stroke: rgba(0,0,0,.08);
    --hi: rgba(255,255,255,.9);
    --blob: rgba(0,0,0,.14);
    --shadow: 0 30px 60px -34px rgba(0,0,0,.35);
    --booked: #4f56e0; --transit: #c98300; --out: #0891b2;
    --delivered: #059669; --problem: #e0282e; --returned: #9333ea;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--body);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-2); }
.small { font-size: .82rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }

/* Monochrome liquid backdrop */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(70px); background: var(--blob); }
.ambient span:nth-child(1) { width: 60vmax; height: 60vmax; top: -30vmax; left: -20vmax; }
.ambient span:nth-child(2) { width: 45vmax; height: 45vmax; bottom: -20vmax; right: -18vmax; opacity: .8; }
.ambient span:nth-child(3) { width: 30vmax; height: 30vmax; top: 40%; left: 55%; opacity: .5; }

/* Glass */
.glass {
  position: relative; background: var(--glass); border: 1px solid var(--stroke);
  border-radius: var(--r-lg); box-shadow: inset 0 1px 0 var(--hi), var(--shadow);
  backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  padding: 22px; overflow: hidden;
}

/* Header */
.top {
  max-width: 720px; margin: 0 auto; padding: 18px 18px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 38px; width: auto; }
.brand img { max-width: 170px; object-fit: contain; }
.brand .dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .light-only { display: none; }
  .brand .dark-only { display: block; }
}
.wordmark { font: 700 1.05rem/1 var(--display); letter-spacing: .02em; }
.wordmark b { font-weight: 400; margin-left: .3em; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 10px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem;
  background: var(--glass); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 var(--hi);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.pill:hover { background: var(--glass-2); }

main { max-width: 720px; margin: 0 auto; padding: 12px 16px 40px; display: grid; gap: 14px; }

/* Search */
.search h1 { font: 700 clamp(1.7rem, 7vw, 2.6rem)/1.08 var(--display); letter-spacing: -.02em; margin: 6px 0 8px; }
.lede { color: var(--ink-2); margin: 0 0 18px; max-width: 42ch; }
.field {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
  background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 999px;
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--ink-3); }
.field > svg { color: var(--ink-3); }
.field input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); outline: none;
  font: 600 1.1rem/1 var(--body); letter-spacing: .06em; font-variant-numeric: tabular-nums; padding: 10px 0;
}
.field input::placeholder { color: var(--ink-3); letter-spacing: .02em; font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 600 .98rem/1 var(--body); text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--glass-2); color: var(--ink); border: 1px solid var(--stroke); }
.btn.wa { background: var(--wa); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.wa-ico { width: 20px; height: 20px; }

.search.compact { padding: 14px; }
.search.compact h1, .search.compact .lede { display: none; }

.recent { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.recent span { font-size: .82rem; color: var(--ink-3); margin-right: 2px; }
.recent button {
  font: 500 .85rem var(--body); font-variant-numeric: tabular-nums; color: var(--ink-2);
  background: none; border: 1px solid var(--stroke); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}

/* Loading skeleton */
.loading { display: grid; gap: 12px; }
.skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--glass), var(--glass-2), var(--glass)); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
.skel.big { height: 42px; width: 75%; }
.skel.w40 { width: 40%; } .skel.w70 { width: 70%; } .skel.bar { height: 8px; }
@keyframes sh { to { background-position: -200% 0; } }

/* Notice */
.notice h2, .help h2 { font: 600 1.15rem/1.3 var(--display); margin: 0 0 6px; }
.notice p { color: var(--ink-2); margin: 0 0 16px; }

/* ===== Status — the hero ===== */
.status { padding: 22px 22px 18px; }
.status .glow {
  position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%;
  background: var(--stage); opacity: .28; filter: blur(60px); pointer-events: none;
}
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; }
.cn-chip { font-size: .85rem; color: var(--ink-2); }
.cn-chip b { color: var(--ink); font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; margin-left: 4px; }
.tools { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--ink);
}
.icon-btn.spin svg { animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.status-word {
  position: relative; margin: 22px 0 4px; color: var(--stage);
  font: 700 clamp(2.1rem, 10.5vw, 3.6rem)/1 var(--display); letter-spacing: -.035em;
  text-wrap: balance;
}
.status-sub { position: relative; margin: 0 0 22px; color: var(--ink-2); max-width: 48ch; }

.route { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; }
.city { display: grid; gap: 2px; }
.city b { font: 600 1.05rem/1.2 var(--display); }
.city.end { text-align: right; }
.track { position: relative; height: 22px; align-self: end; margin-bottom: 4px; }
.rail, .fill { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 2px; }
.rail { background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px); }
.fill { right: auto; width: 0; background: var(--stage); box-shadow: 0 0 12px var(--stage); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.parcel {
  position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border-radius: 5px;
  background: var(--stage); transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--stage) 25%, transparent);
  transition: left 1.2s cubic-bezier(.2,.8,.2,1);
}
.status.live .parcel { animation: pulse 2s ease-in-out 1.3s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--stage) 0%, transparent); } }

.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.steps li { font-size: .74rem; line-height: 1.25; color: var(--ink-3); padding-top: 10px; border-top: 3px solid var(--stroke); }
.steps li.done { color: var(--ink-2); border-color: var(--ink-3); }
.steps li.now { color: var(--ink); font-weight: 600; border-color: var(--stage); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--stroke); border-radius: var(--r-md); overflow: hidden; position: relative; }
.facts div { background: var(--glass); padding: 12px 14px; }
.facts dt { font-size: .76rem; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Stage themes */
.stage-booked    { --stage: var(--booked); }
.stage-transit   { --stage: var(--transit); }
.stage-out       { --stage: var(--out); }
.stage-delivered { --stage: var(--delivered); }
.stage-problem   { --stage: var(--problem); }
.stage-returned  { --stage: var(--returned); }

/* Help strip */
.help { display: grid; gap: 14px; border-color: color-mix(in srgb, var(--problem) 45%, var(--stroke)); }
.help p { margin: 0; color: var(--ink-2); }
.help.ok { border-color: var(--stroke); }
.help.ok .btn { display: none; }

/* Timeline */
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.card-head h2, .shop h2 { font: 600 1.05rem/1.3 var(--display); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--stroke); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c, var(--ink-3)); background: var(--bg); }
.timeline li:first-child .dot { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.timeline .ev { font-weight: 600; }
.timeline li:not(:first-child) .ev { font-weight: 500; color: var(--ink-2); }
.timeline .meta { font-size: .82rem; color: var(--ink-3); }
.timeline .meta b { color: var(--ink-2); font-weight: 500; }
.timeline .more { margin-top: 4px; background: none; border: 0; color: var(--ink-2); font: 600 .9rem var(--body); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

/* Shop */
.shop { display: grid; gap: 16px; padding: 0; }
.shop-text { padding: 22px 22px 0; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shop-actions .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.map { position: relative; min-height: 220px; border-top: 1px solid var(--stroke); background: var(--glass); display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (prefers-color-scheme: dark) { .map iframe { filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9); } }
.map-load { background: var(--glass-2); color: var(--ink); border: 1px solid var(--stroke); border-radius: 999px; padding: 10px 20px; font: 600 .9rem var(--body); cursor: pointer; }
@media (min-width: 640px) {
  .shop { grid-template-columns: 1fr 1.1fr; gap: 0; }
  .shop-text { padding: 22px; }
  .map { border-top: 0; border-left: 1px solid var(--stroke); min-height: 240px; }
}

/* Contact list */
.contact { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.contact li > svg { color: var(--ink-3); margin-top: 2px; }
.contact span { display: block; font-size: .76rem; color: var(--ink-3); }
.contact a, .contact b { font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Social */
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 var(--hi);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.social a:hover { background: var(--glass-2); }
.social svg { width: 20px; height: 20px; }

/* Footer + TCS attribution (quiet) */
.foot { max-width: 720px; margin: 0 auto; padding: 0 16px 110px; text-align: center; color: var(--ink-3); font-size: .78rem; }
.source { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.source img { height: 14px; width: auto; opacity: .75; }
@media (prefers-color-scheme: dark) { .source img { filter: brightness(0) invert(1); opacity: .6; } }
.foot p { margin: 8px 0 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 15px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.wa-float .wa-ico { width: 24px; height: 24px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: .25s; z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* One orchestrated reveal for the result */
#result:not([hidden]) > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
#result > *:nth-child(2) { animation-delay: .06s; }
#result > *:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .pill span { display: none; } .pill { padding: 0 10px; }
  .steps li { font-size: .68rem; }
}
.facts { grid-template-columns: 1fr 1fr; }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ===== Packed / checking stages ===== */
.stage-packed   { --stage: var(--booked); }
.stage-checking { --stage: var(--transit); }

/* The "packed and handed to TCS" scene */
.scene { margin: 18px 0 4px; position: relative; }
.scene svg { width: 100%; height: auto; display: block; overflow: visible; }
.scene .bx, .scene .wm, .scene .tape, .scene .tick, .scene .road, .scene .wheel {
  fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.scene .wm { stroke: var(--ink-3); stroke-width: 1.6; }
.scene .road { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 8 10; animation: road 1.2s linear infinite; }
.scene .tape { stroke: var(--stage); stroke-width: 3; stroke-dasharray: 42; stroke-dashoffset: 42; animation: tape 7s ease-in-out infinite; }
.scene .tick { stroke: var(--stage); stroke-width: 2.4; stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick 7s ease-in-out infinite; }
.scene .sc-van { animation: van 7s cubic-bezier(.45,.05,.35,1) infinite; }
.scene .wheel { stroke: var(--stage); }
.scene .ping { fill: var(--stage); stroke: none; opacity: 0; animation: ping 7s ease-in-out infinite; }
@keyframes road { to { stroke-dashoffset: -18; } }
@keyframes tape { 0%, 8% { stroke-dashoffset: 42; } 22%, 100% { stroke-dashoffset: 0; } }
@keyframes tick { 0%, 20% { stroke-dashoffset: 20; opacity: 0; } 32%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes van  { 0%, 28% { transform: translateX(100px); } 78%, 100% { transform: translateX(222px); } }
@keyframes ping { 0%, 74% { opacity: 0; transform: scale(.4); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: .35; transform: scale(1); } }
.scene .ping { transform-origin: 282px 46px; }

/* What happens next */
.next-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.next-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.next-steps .mark {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3);
  display: grid; place-items: center; margin-top: 1px;
}
.next-steps .mark svg { width: 12px; height: 12px; stroke-width: 2.6; }
.next-steps li.done .mark { border-color: var(--stage); color: var(--stage); }
.next-steps li.now .mark { border-color: var(--stage); border-style: dashed; animation: rot 6s linear infinite; }
.next-steps b { display: block; font-weight: 600; font-size: .96rem; }
.next-steps span { display: block; font-size: .82rem; color: var(--ink-3); }
.next-steps li.wait b { color: var(--ink-2); font-weight: 500; }

/* ===== Google reviews ===== */
.reviews { padding: 20px 0 20px 20px; }
.rev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 20px; }
.rev-score { display: flex; align-items: center; gap: 12px; }
.rev-score > b { font: 700 2rem/1 var(--display); letter-spacing: -.02em; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; stroke: var(--ink-3); stroke-width: 1.6; fill: none; }
.stars svg.on { fill: var(--ink); stroke: var(--ink); }
.stars.small svg { width: 13px; height: 13px; }
.rev-head .btn { min-height: 38px; padding: 0 14px; font-size: .86rem; white-space: nowrap; }
.rev-track {
  display: flex; gap: 12px; margin-top: 16px; padding: 2px 20px 6px 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev {
  flex: 0 0 78%; max-width: 300px; scroll-snap-align: start;
  background: var(--glass-2); border: 1px solid var(--stroke); border-radius: var(--r-md);
  padding: 14px; display: grid; gap: 8px; align-content: start;
}
.rev p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.rev footer { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rev .who { font-weight: 600; font-size: .88rem; }
.rev .when { font-size: .76rem; color: var(--ink-3); }
@media (min-width: 640px) { .rev { flex-basis: 46%; } }
.rev-head { flex-wrap: wrap; row-gap: 10px; }
#revCount { white-space: nowrap; font-size: .78rem; }
