/* GO_ingALLIN night design, from the owner's Pencil redesign (October 2026).
   Every public page links this file (src/partials/head.html). The team
   console is the one exception: it keeps style.css + admin.css.

   Night ground because the design is a concert-poster at night: the blush
   ticket is the one light object on the page, so the eye goes to it first.

   Fonts are self-hosted (the CSP allows no font service). Bricolage Grotesque
   carries the display voice, Roboto the reading text, Caveat only the sign-off. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(fonts/bricolage-grotesque.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url(fonts/roboto.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url(fonts/caveat-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #171211;
  --surface: #211a19;
  --line: #3c2f2f;
  --wine: #9d454b;        /* ink on blush: eyebrow, done segments   */
  --rose: #d17d82;        /* the one accent: Cek, Shopee, "sekarang" */
  --cream: #ffe7dd;       /* the ticket, same blush as the logo panel */
  --cream-deep: #ecc9bb;  /* unfilled segments, perforation dots      */
  --plum: #3c1f21;        /* WhatsApp and help cards                  */
  --ink: #1a1312;
  --ink-soft: #4a3533;    /* reading text on blush                    */
  --ink-muted: #6b5250;   /* small print on blush                     */
  --text: #f6e8e3;
  --muted: #c4b0b0;
  --dim: #a8999a;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r: 14px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
.ticket :focus-visible, .tile-shopee:focus-visible { outline-color: var(--wine); }
/* #results takes focus from script so a screen reader starts on the answer.
   It is not a control, so it gets no ring; every control keeps its own. */
#results:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- shared pieces ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font: 700 16px/1.2 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { filter: brightness(.95); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-rose { background: var(--rose); color: var(--ink); }
.btn-block { display: flex; width: 100%; }

.h2 { font: 800 21px/1.15 var(--display); letter-spacing: -.4px; }
.fine { font-size: 13px; color: var(--muted); }
.fine.dim { color: var(--dim); }

/* The ticket: blush card with a torn-off stub. The perforation is the
   identity motif, used on both pages so the lookup feels like the stub
   of the card on the home page. */
.ticket {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r);
}
.ticket-main { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; }
.eyebrow {
  font: 700 11px/1.3 var(--body);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wine);
}
.ticket-title {
  font: 800 28px/1.05 var(--display);
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: -.8px;
}
.ticket-body { font-size: 15px; color: var(--ink-soft); }
.perf {
  position: relative;
  height: 20px;
  margin: 0 18px;
  background: radial-gradient(circle, var(--cream-deep) 2px, transparent 2.5px) center / 16px 20px repeat-x;
}
.perf::before, .perf::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
}
.perf::before { left: -28px; }
.perf::after { right: -28px; }
.stub { padding: 10px 20px 18px; }
.stub-hint { font-size: 13px; color: var(--ink-muted); }

/* Order ID field, light version (on the ticket) and dark version (lookup). */
.order-form { display: flex; gap: 8px; padding-top: 6px; }
.field {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--cream-deep);
  border-radius: 12px;
  background: #fff7f3;
  color: var(--ink);
  font: 500 16px var(--body);   /* 16px stops iOS zooming on focus */
  letter-spacing: .5px;
  -webkit-appearance: none;
  appearance: none;
}
.field::placeholder { color: #7a605c; opacity: 1; }

/* ---- home --------------------------------------------------------------- */

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero" "ribbon" "actions";
}

.hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px var(--gutter) 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(23, 18, 17, .3), var(--bg)),
    linear-gradient(rgba(23, 18, 17, .62), rgba(23, 18, 17, .62)),
    url(backdrop.webp) center / cover;
}
.logo {
  width: 320px;
  max-width: 82vw;
  height: auto;
  border-radius: 17px;
  /* the only shadow on the page: lifts the logo card off the poster photo */
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.greeting {
  max-width: 12ch;
  font: 800 34px/1.02 var(--display);
  font-size: clamp(30px, 8.5vw, 56px);
  letter-spacing: -1px;
  color: var(--cream);
}

.ribbon-wrap { grid-area: ribbon; position: relative; height: 64px; overflow: hidden; }
.ribbon {
  position: absolute;
  left: -40px; right: -40px; top: 14px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  background: var(--rose);
  color: var(--ink);
  font: 800 13px/1 var(--body);
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.actions { grid-area: actions; display: flex; flex-direction: column; gap: 16px; padding: 20px var(--gutter) 32px; }

/* Two tiles that differ on purpose: progress is a quiet dark tile, Shopee is
   the rose one because it is the only action that leaves for a shop. */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--r);
  text-decoration: none;
}
.tile:hover { filter: brightness(1.08); }
.tile-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  max-width: 100%;
  margin-bottom: 8px;
  border-radius: var(--r);
  background: var(--cream);
}
.tile-badge img { width: 90%; height: auto; }
.tile-title { font: 700 17px/1.15 var(--display); }
.tile-desc { font-size: 14px; }
.tile-shopee { background: var(--rose); color: var(--ink); }
.tile-shopee .tile-desc { color: #3a2422; }

.wa, .link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--plum);
  text-decoration: none;
}
.wa:hover, .link-card:hover { filter: brightness(1.12); }
.wa-text, .link-card-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wa-desc { font-size: 14px; color: var(--muted); }
.bubble {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 26px 26px 26px 6px;
  background: var(--cream);
  font-size: 24px;
  transform: rotate(6deg);
}

.socials { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 8px; }
.socials-label { font: 400 15px/1.4 var(--body); color: var(--muted); }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  font: 700 15px var(--body);
  text-decoration: none;
}
.pill:hover { filter: brightness(1.08); }
.pill-ig { background: var(--cream); color: var(--ink); }
.pill-x { background: var(--surface); color: var(--text); border: 1.5px solid var(--rose); }

.update { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.signoff {
  padding: 20px 0 4px;
  font: 700 26px/1.1 "Caveat", cursive;
  color: var(--rose);
  text-align: center;
  transform: rotate(-2deg);
}
.foot { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.foot-links a:hover { color: var(--text); }

/* ---- lookup ------------------------------------------------------------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  padding: 12px var(--gutter) 0;
  border-bottom: 1px solid var(--line);
}
/* Five destinations do not fit a 375px row, so on a phone the menu is its
   own row that scrolls sideways (app.js scrolls the current page into view). */
.topnav {
  position: relative;
  display: flex;
  gap: 20px;
  width: calc(100% + 2 * var(--gutter));
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--cream); font-weight: 700; border-bottom-color: var(--rose); }
.wordmark { display: flex; flex-direction: column; padding: 4px 0; text-decoration: none; }
.wordmark-name { font: 800 22px/1.1 var(--display); letter-spacing: -.5px; color: var(--cream); }
.wordmark-sub { font: 500 12px var(--body); letter-spacing: .4px; color: var(--rose); }

.track, .page { display: flex; flex-direction: column; gap: 28px; padding: 20px var(--gutter) 28px; }
.track-top { display: flex; flex-direction: column; gap: 14px; }
.track-intro { display: flex; flex-direction: column; gap: 6px; }
.page-title { font: 800 26px/1.1 var(--display); letter-spacing: -.6px; }
.page-hint { max-width: 64ch; color: var(--muted); font-size: 15px; }

.search { display: flex; gap: 8px; }
.search-field { position: relative; flex: 1; min-width: 0; display: flex; }
.search-field svg {
  position: absolute;
  left: 16px; top: 50%;
  width: 20px; height: 20px;
  margin-top: -10px;
  color: var(--muted);
  pointer-events: none;
}
.search .field {
  padding-left: 46px;
  min-height: 56px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
}
.search .field::placeholder { color: var(--dim); }
.search .btn { min-height: 56px; min-width: 80px; font-size: 18px; }

.order + .order { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.order-count { margin-bottom: 16px; color: var(--muted); }

/* Phone order is ticket, contents, note and payment, journey, help; on
   desktop the same pieces sit in two columns, so the wrappers dissolve below
   1024px. Contents come straight after the ticket: what was ordered is the
   first thing a buyer checks (owner, 2026-11-16). */
.cols { display: flex; flex-direction: column; gap: 28px; }
.col { display: contents; }
.o-ticket, .o-items, .o-pay { order: 1; }   /* DOM order: ticket, items, note, payment */
.o-timeline { order: 2; }
.o-photos { order: 3; }
.o-help { order: 4; }
.o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; }
.o-4 { order: 4; } .o-5 { order: 5; } .o-6 { order: 6; }

.ticket-title .emoji { font-size: .85em; }
.ticket-eta { font-size: 14px; color: var(--ink-soft); }
.ticket-eta strong { color: var(--ink); }
.bar { display: flex; gap: 4px; padding-top: 8px; }
.bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--cream-deep); }
.bar i.done { background: var(--wine); }
.bar i.now { background: var(--rose); }
.stub-grid { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px 20px; }
/* Order ID and item count never break; a long batch name wraps between them. */
.stub-grid > div { flex: none; white-space: nowrap; }
.stub-grid > div:nth-child(2):not(:last-child) { flex: 0 1 auto; min-width: 0; white-space: normal; }
.stub-grid > div:last-child { text-align: right; }
.stub-grid dt { font: 500 12px var(--body); color: var(--ink-muted); }
.stub-grid dd { margin: 3px 0 0; font: 800 17px/1.2 var(--display); overflow-wrap: break-word; }

.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.step.done:not(:last-child)::after { background: var(--rose); }
.marker {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 16px;
}
.step.done .marker { background: var(--plum); border-color: var(--rose); }
.step.now .marker { background: var(--cream); border: 3px solid var(--rose); }
.step.next .marker span { opacity: .45; }
.step-text { display: flex; flex-direction: column; gap: 3px; padding-top: 7px; min-width: 0; }
.step-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; }
.step.now .step-title { color: var(--rose); font-weight: 700; font-size: 17px; }
.step.next .step-title { color: var(--dim); }
.step-sub { font-size: 14px; color: var(--muted); }
/* Proof photos under the stage they show, so the journey is also the album.
   80px squares: three fit beside the marker on a 360px phone. */
.step-photos { list-style: none; margin: 8px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step-photo { display: block; width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.step-photo:hover { border-color: var(--rose); }
.step-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.now-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--rose);
  color: var(--ink);
  font: 700 12px/1.4 var(--body);
}

/* An order whose batches sit on different stages (orders.js splitTicket and
   splitTimeline). The ticket lists each batch with a bar of its own. */
.tb-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tb-row { display: flex; flex-direction: column; gap: 4px; }
.tb-name { font: 700 16px/1.25 var(--display); overflow-wrap: anywhere; }
.tb-stage { font-size: 14px; color: var(--ink-soft); }
.tb-stage b { color: var(--wine); }
.tb-row .bar { padding-top: 4px; }
.tb-row .bar i { height: 6px; }

/* A rung some batches went past and none stopped on: drawn half done, and
   the line runs on dashed to the furthest batch. */
.step.part .marker { background: var(--plum); border: 1px dashed var(--rose); }
.step.line-done:not(:last-child)::after { background: var(--rose); }
.step.line-part:not(:last-child)::after {
  background: repeating-linear-gradient(to bottom, var(--rose) 0 5px, transparent 5px 10px);
}
.timeline.split .step-text { flex: 1; }

/* One card per batch on the rung it is at. 72px photos: three still fit
   inside the card beside the marker on a 360px phone. */
.batch-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.step.now .batch-card { border-color: rgba(209, 125, 130, .55); }
.bc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bc-name { font: 700 15px/1.25 var(--display); overflow-wrap: anywhere; }
.bc-count { flex: none; font-size: 13px; color: var(--muted); }
.bc-status { font-size: 14px; color: var(--rose); }
.bc-items { font-size: 13px; color: var(--dim); }
.bc-eta { font-size: 14px; color: var(--muted); }
.bc-eta strong { color: var(--text); font-weight: 500; }
.batch-card .step-photos { margin-top: 6px; }
.batch-card .step-photo { width: 72px; height: 72px; }
/* Photos of a batch that already moved past this rung, or of the whole order. */
.past-group { margin-top: 8px; }
.past-cap { font-size: 13px; color: var(--muted); }
.past-group .step-photos { margin-top: 6px; }

.items-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.items {
  list-style: none;
  margin: 12px 0 0;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.item { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.item + .item { border-top: 1px solid var(--line); }
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-name { font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.item-var, .item-stage { font-size: 14px; color: var(--muted); }
.item-stage { color: var(--rose); }
/* Batch heading inside Isi paket, on a split order. */
.group-row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 4px; }
.item + .group-row { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.group-name { font: 700 15px/1.25 var(--display); overflow-wrap: anywhere; }
.group-stage { font-size: 13px; color: var(--rose); }
.group-row + .item { border-top: 0; }
.qty { flex: none; font: 800 18px var(--display); color: var(--cream); }

.help {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--plum);
}
.help h2 { font: 800 18px/1.2 var(--display); }
.help p { font-size: 15px; color: var(--muted); }

/* Pembayaran: total, paid, left. The amount left is the one number that
   matters, so it alone gets the accent. */
.pay-list {
  margin: 12px 0 8px;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; }
.pay-row + .pay-row { border-top: 1px solid var(--line); }
.pay-row dt { font-size: 15px; color: var(--muted); }
.pay-row dd { margin: 0; font: 700 16px var(--display); white-space: nowrap; }
.pay-left dt { color: var(--text); font-weight: 500; }
.pay-left dd { font: 800 20px var(--display); color: var(--rose); }
.pay-done dd { color: var(--cream); }
/* A note the team wrote for this buyer. Text only, line breaks kept. */
.buyer-note {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.buyer-note p { margin-top: 8px; font-size: 15px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }

/* The split of what is left: smaller, indented under Sisa pelunasan. */
.pay-split { padding: 8px 0 8px 12px; }
.pay-row.pay-split { border-top: 0; }
.pay-split dt, .pay-split dd { font-size: 14px; color: var(--muted); font-weight: 500; }

/* Not found, wrong format, failed to load, still loading. */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 8px; text-align: center; }
.empty-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; height: 120px;
  margin-bottom: 4px;
  border-radius: var(--r);
  background: var(--cream);
}
.empty-badge img { width: 96px; height: 96px; }
.empty h2 { font: 800 22px/1.15 var(--display); letter-spacing: -.4px; }
.empty p { max-width: 38ch; color: var(--muted); font-size: 15px; }
.empty a:not(.btn) { color: var(--rose); text-underline-offset: 3px; }
.empty .btn { margin-top: 6px; width: 100%; max-width: 420px; }
.pending { padding: 24px 0; color: var(--muted); text-align: center; }
.pending p::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid var(--line);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin .8s linear infinite;   /* tells you the search is running */
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- inner pages: products, cara order, biaya, bantuan ------------------ */

.page-head { display: flex; flex-direction: column; gap: 6px; }
.measure { max-width: 760px; }

/* Links inside reading text: rose so they read as links on every night
   surface (6.2:1 on the page, 5.7:1 on cards). */
.page-hint a, details.faq a, .help p a, .journey a, .note-card a {
  color: var(--rose);
  text-underline-offset: 3px;
}

/* Owner decisions that are still open render as this marker (render.py). */
.tbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--rose);
  border-radius: 6px;
  color: var(--rose);
  font-size: .9em;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--plum);
  color: var(--muted);
  font-size: 14px;
}
.note-card h2 { font: 800 17px/1.2 var(--display); color: var(--text); }

/* Rows of links to other guides. The chevron marks the whole row as the
   tap target; it is the only arrow on these pages. */
.link-list { list-style: none; margin: 12px 0 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.link-list a::after { content: "\203A"; margin-left: auto; padding-left: 12px; color: var(--rose); font-size: 20px; }
.link-list a:hover { color: var(--rose); }

/* Expandable rows: FAQ answers and the order steps. */
details.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  cursor: pointer;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose);
  font: 700 18px/1 var(--body);
}
details.faq[open] > summary::after { content: "\2212"; }
details.faq > summary:hover { color: var(--rose); }
details.faq > p { padding: 0 0 14px; color: var(--muted); font-size: 15px; }

.faq-section { order: 2; }
.faq-group {
  margin-top: 12px;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.faq-group details + details { border-top: 1px solid var(--line); }
.faq-group details:target > summary { color: var(--rose); }

/* The same rail as "Perjalanan merch-mu", numbered instead of pictured
   because these are things you do, not places your parcel is. */
.journey { list-style: none; margin: 16px 0 0; padding: 0; }
.journey > li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding-bottom: 8px; }
.journey > li:last-child { padding-bottom: 0; }
.journey > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 40px; bottom: 0;
  width: 2px;
  background: var(--rose);
}
.journey .marker {
  margin-top: 6px;
  border-color: var(--rose);
  background: var(--plum);
  color: var(--cream);
  font: 800 15px/1 var(--display);
}
.journey details { flex: 1; min-width: 0; }
.journey-static > li { padding-bottom: 18px; }
.journey-static > li > p { padding-top: 13px; font-size: 15px; }

/* Three ways to buy, coloured by the channel they go through, the same
   colours as on the home page: rose is Shopee, plum is the WhatsApp group. */
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.compare-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.compare-card h3 { font: 800 21px/1.15 var(--display); letter-spacing: -.3px; }
.compare-card dl { display: flex; flex-direction: column; }
.compare-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.compare-card dt { font-size: 14px; color: var(--muted); }
.compare-card dd { font-weight: 500; font-size: 15px; text-align: right; }
.compare-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  color: var(--rose);
  font-weight: 700;
  text-underline-offset: 3px;
}
.compare-shop { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.compare-shop dl > div { border-top-color: rgba(26, 19, 18, .22); }
.compare-shop dt { color: #3a2422; }
.compare-shop .compare-link { color: var(--ink); }
.compare-group { background: var(--surface); }
.compare-personal { background: var(--plum); }

/* Product progress */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.filter-wide { grid-column: 1 / -1; }
.filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.filters .field { border-color: var(--line); background: var(--surface); color: var(--text); }
.filters .field::placeholder { color: var(--dim); }
.filters .search-field .field { padding-left: 46px; }
.select-wrap { position: relative; display: flex; }
.select-wrap select { flex: 1; padding-right: 40px; cursor: pointer; }
.select-wrap select option { background: var(--surface); color: var(--text); }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.btn-text {
  justify-self: start;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--rose);
  font: 700 15px var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.stage-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stage-summary li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
}
.chip-label { font-weight: 500; }
.stage-summary-count { color: var(--muted); }

#progress { display: flex; flex-direction: column; gap: 28px; }
.progress-total { margin-bottom: -12px; }
.group-head { display: flex; align-items: flex-start; gap: 14px; }
.group-head .marker { border-color: var(--rose); background: var(--plum); }
.group-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 3px; }
.group-title { font: 800 20px/1.15 var(--display); letter-spacing: -.3px; }
.group-desc { font-size: 14px; color: var(--muted); }
.rows {
  list-style: none;
  margin: 12px 0 0;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-product { font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.row-batch { font-size: 13px; color: var(--muted); }
.row-qty { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.row-unit { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Product photo: a square crop, 56px so it is a real tap target on a phone.
   The --line fill shows while it loads instead of a hole in the row. */
.row-photo { flex: none; display: block; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--line); }
.row-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-view {
  width: min(calc(100vw - 32px), 560px);
  max-height: calc(100vh - 32px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
}
.photo-view::backdrop { background: rgba(23, 18, 17, .85); }
/* contain, not cover: this is where the whole item has to be visible. */
.photo-view img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 10px; }
.photo-view-name { margin: 12px 0 14px; font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.photo-view .btn { width: 100%; }

/* Stage photos on the order lookup. Square crops in a two-column grid: big
   enough on a phone to see the parcel, and a tap opens the whole photo. */
.photo-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.photo-tile:hover { border-color: var(--rose); }
.photo-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.photo-cap { margin-top: 6px; padding: 0 4px; font-weight: 500; font-size: 15px; }
.photo-sub { padding: 0 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* Biaya */
.fact-list {
  margin: 12px 0 0;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.fact-list > div { padding: 14px 0; }
.fact-list > div + div { border-top: 1px solid var(--line); }
.fact-list dt { margin-bottom: 4px; font-weight: 700; font-size: 16px; }
.fact-list dd { margin: 0; color: var(--muted); font-size: 15px; }

.calc { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.field[aria-invalid="true"] { border-color: var(--wine); border-width: 2px; }

#estimate:empty { display: none; }
.estimate-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.estimate-card h2 { font: 800 18px/1.2 var(--display); }
.estimate-table { width: 100%; border-collapse: collapse; }
.estimate-table th { padding: 8px 12px 8px 0; color: var(--muted); font-weight: 400; font-size: 14px; text-align: left; }
.estimate-table td { color: var(--cream); font: 800 24px/1.1 var(--display); text-align: right; white-space: nowrap; }
.estimate-card .hint { color: var(--dim); font-size: 13px; }
#estimate .empty {
  align-items: flex-start;
  padding: 16px 20px;
  border: 1px solid var(--rose);
  border-radius: var(--r);
  background: var(--plum);
  text-align: left;
}
#estimate .empty h2 { font-size: 18px; }
#estimate .empty ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* Bantuan: jump chips on a phone, a plain list beside the answers on desktop */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-label { width: 100%; color: var(--muted); font-size: 13px; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  text-decoration: none;
}
.jump a:hover { border-color: var(--rose); }

/* ---- guides and policies: long reading pages ---------------------------- */

.prose { font-size: 16px; line-height: 1.6; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 14px; }
.prose > h2, .prose > div > h2 { margin-top: 40px; font: 800 22px/1.2 var(--display); letter-spacing: -.4px; }
.prose > :first-child { margin-top: 0; }
.prose h3 { font: 800 18px/1.25 var(--display); }
.prose p, .prose li { color: var(--text); }
.prose a:not(.btn) { color: var(--rose); text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }
.prose ul > li + li { margin-top: 6px; }
.prose ul > li::marker { color: var(--rose); }
.prose .lead { max-width: 64ch; color: var(--muted); font-size: 17px; }

/* Ready stock photos. Photos lead the page because they are what a buyer
   came to see; the how-to-buy text follows. */
.prose > .stock { margin-top: 28px; }
.stock h2 { font: 800 22px/1.2 var(--display); letter-spacing: -.4px; }
.prose .stock-note { margin-top: 6px; color: var(--muted); font-size: 15px; }
.prose .stock-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .stock-grid > li + li { margin-top: 0; }
.prose a.stock-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.prose a.stock-card:hover { border-color: var(--rose); }
.stock-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.stock-name { margin-top: 6px; padding: 0 4px; font-weight: 500; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.stock-go { margin-top: auto; padding: 4px 4px 0; font-size: 13px; color: var(--rose); }
@media (min-width: 1024px) {
  .prose .stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.callout, .policy-status {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--plum);
  color: var(--muted);
  font-size: 15px;
}
.policy-status { border-style: dashed; border-color: var(--rose); }
.policy-status strong { color: var(--text); }
.stamp { color: var(--muted); font-size: 14px; }
.country-links { color: var(--muted); }

/* Numbered steps: the same rail as the order journey and Cara order. */
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li {
  position: relative;
  min-height: 36px;
  padding: 6px 0 18px 50px;
  counter-increment: step;
}
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: var(--plum);
  color: var(--cream);
  font: 800 15px/34px var(--display);
  text-align: center;
}
ol.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--rose);
}

/* Term and answer pairs, on the same dark card as Isi paket. */
dl.facts {
  margin: 0;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
dl.facts dt { padding-top: 14px; font-weight: 700; font-size: 15px; color: var(--text); }
dl.facts dd { margin: 4px 0 0; padding-bottom: 14px; color: var(--muted); font-size: 15px; }
dl.facts dd + dt { border-top: 1px solid var(--line); }

/* The hand-off to WhatsApp: the same plum card as "Ada yang janggal?". */
.handoff {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--plum);
}
.prose .handoff h2 { margin: 0; font: 800 19px/1.2 var(--display); }
.handoff p { color: var(--muted); font-size: 15px; }
.btn-primary {
  flex-direction: column;
  min-height: 56px;
  padding: 10px 22px;
  background: var(--rose);
  color: var(--ink);
}
.btn .sub { display: block; margin-top: 2px; color: #3a2422; font-weight: 400; font-size: 13px; }

/* Panduan status: the five stages on the journey rail. */
.stages { list-style: none; margin: 32px 0 0; padding: 0; }
.stage-entry { position: relative; padding: 0 0 32px 50px; }
.stage-entry:last-child { padding-bottom: 0; }
.stage-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--rose);
}
.stage-entry h2 { display: flex; align-items: center; min-height: 36px; font: 800 21px/1.2 var(--display); letter-spacing: -.3px; }
.stage-num {
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: var(--plum);
  color: var(--cream);
  font: 800 15px/34px var(--display);
  text-align: center;
}
.stage-statuses { margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.badge {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
}

/* Group order: batches the team has opened (group-order.js). */
#open-batches { display: flex; flex-direction: column; gap: 12px; }
.batch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 8px;
  border: 1px solid var(--rose);
  border-radius: var(--r);
  background: var(--surface);
}
.batch-card dl.facts { padding: 0; border: 0; background: none; }
.batch-card p { margin: 0 0 10px; }

/* 404 */
.lost { padding-top: 24px; }
.lost .page-title { font-size: 30px; }
.lost-links { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; }

/* ---- tablet: a full-bleed stack stops reading well ---------------------- */
@media (min-width: 640px) {
  .actions, .track, .page { width: 100%; max-width: 600px; margin: 0 auto; }
  .hero { padding: 56px 24px 32px; }
  .tile { padding: 20px; }
}

/* ---- desktop: two columns ----------------------------------------------- */
@media (min-width: 1024px) {
  .landing {
    grid-template-columns: minmax(440px, 47%) 1fr;
    grid-template-areas: "ribbon ribbon" "hero actions";
  }
  .ribbon-wrap { height: 60px; }
  .ribbon { transform: rotate(-.8deg); font-size: 14px; }
  .hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 60px);
    justify-content: center;
    gap: 36px;
    padding: 80px;
    background:
      linear-gradient(90deg, rgba(23, 18, 17, .2), var(--bg)),
      linear-gradient(rgba(23, 18, 17, .66), rgba(23, 18, 17, .66)),
      url(backdrop.webp) center / cover;
  }
  .actions { max-width: none; margin: 0; padding: 64px 120px 56px 72px; }
  .actions > * { max-width: 560px; }
  .signoff { text-align: left; }

  .topbar { flex-wrap: nowrap; padding: 16px 160px; }
  .topnav { width: auto; margin: 0; padding: 0; gap: 28px; overflow: visible; }
  .track, .page { max-width: none; padding: 48px 160px 56px; gap: 36px; }
  .track-top { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .track-top .search { width: 460px; flex: none; }
  .page-title { font-size: 40px; letter-spacing: -1.2px; }
  .page-hint { font-size: 16px; }
  .cols { flex-direction: row; align-items: flex-start; gap: 56px; }
  .col { display: flex; flex-direction: column; gap: 36px; }
  .col-left { width: 620px; flex: none; }
  .col-right { flex: 1; min-width: 0; padding-top: 4px; }
  .step-photo { width: 96px; height: 96px; }
  .batch-card .step-photo { width: 80px; height: 80px; }
  .tb-list { max-width: 520px; }
  .ticket-main { padding: 32px 32px 28px; gap: 14px; }
  .ticket-title { font-size: 46px; letter-spacing: -1.4px; }
  .ticket-body, .ticket-eta { font-size: 16px; max-width: 520px; }
  .perf { margin: 0 28px; }
  .perf::before { left: -38px; }
  .perf::after { right: -38px; }
  .stub-grid { padding: 14px 32px 28px; }
  .page-foot { max-width: 760px; }

  .page .cols { gap: 64px; }
  .page .col-main { flex: 1; min-width: 0; max-width: 760px; }
  .page .col-side { width: 360px; flex: none; position: -webkit-sticky; position: sticky; top: 24px; }
  .page .col-side .ticket-main { padding: 26px 26px 22px; }
  .page .col-side .ticket-title { font-size: 34px; letter-spacing: -1px; }
  .page .col-side .perf { margin: 0 22px; }
  .page .col-side .perf::before { left: -32px; }
  .page .col-side .perf::after { right: -32px; }
  .page .col-side .stub { padding: 10px 26px 22px; }
  .page-calc .col-side { width: 440px; }
  .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .filter-wide { grid-column: auto; }
  .btn-text { grid-column: 1 / -1; }
  .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .jump { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .jump-label { margin-bottom: 4px; }
  .jump a { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .jump a:hover { color: var(--rose); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .actions { padding: 56px 48px 48px 48px; }
  .topbar { padding: 16px 48px; }
  .topnav { gap: 20px; }
  .track, .page { padding: 40px 48px 48px; }
  .col-left { width: 52%; flex: none; }
}
@media (max-width: 1023px) {
  /* The phone design opens straight on the result; the title and hint come
     back as soon as there is no order on screen. */
  .track.has-order .track-intro {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 359px) {
  .stub-grid dd { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
