/* =====================================================================
   landing-job.css (2026-11-09, phase 21 "show the job"): the Bills, Trips
   and Cars landings only, loaded last (after minimal.css).

   1. The main action is the orange pill with Cocoa Ink text (#111111 on
      #ff4b2b is 5.3:1; white on it was 3.3:1).
   2. .lj, the job strip: four drawn stickers in the order the tool works,
      then one concrete line. Same markup on phones (inside .ap, under the
      hero card) and on desktop (inside .hm-side.l, under the pill).
   3. Desktop: a smaller planet with Mali standing on its rim (.lj-mali).
   ===================================================================== */
.hm.ap-page { --lj-ink: #111111; --lj-cream: #f3eee3; }

/* ---- 1. the main action ---- */
:root:root:root body .hm.ap-page .ap-hero-btn {
  background: var(--accent) !important; color: var(--lj-ink) !important; border: 0 !important;
  min-height: 44px; padding: 10px 10px 10px 18px; gap: 10px; font-weight: 700;
  box-shadow: 0 10px 22px -12px rgba(255, 75, 43, .8) !important;
}
:root:root:root body .hm.ap-page .ap-hero-btn i {
  background: var(--lj-ink) !important; color: var(--lj-cream) !important; border: 0 !important;
}
:root:root:root .hm.ap-page .hm-pill.lj-go {
  background: var(--accent); color: var(--lj-ink); border-color: var(--accent); font-weight: 700;
  font-size: 15px; padding: 8px 8px 8px 26px; gap: 14px;
  box-shadow: 0 14px 28px -16px rgba(255, 75, 43, .85);
  transition: background 200ms var(--sp-ease, ease), box-shadow 200ms var(--sp-ease, ease), transform 200ms var(--sp-ease, ease);
}
:root:root:root .hm.ap-page .hm-pill.lj-go i { width: 38px; height: 38px; background: var(--lj-ink); color: var(--lj-cream); border-color: var(--lj-ink); }
:root:root:root[lang="th"] .hm.ap-page .hm-pill.lj-go { font-size: 16px; letter-spacing: 0; }
:root:root:root .hm.ap-page .hm-pill.lj-go:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); border-color: transparent; box-shadow: 0 16px 30px -14px rgba(255, 75, 43, .9); }
:root:root:root .hm.ap-page .hm-pill.lj-go:hover i { background: var(--lj-ink); color: var(--lj-cream); }
:root:root:root .hm.ap-page :is(.hm-pill.lj-go, .ap-hero):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---- 2. the job strip ---- */
.hm.ap-page .lj {
  display: grid; gap: 12px; margin: 0; padding: 16px 8px 14px;
  background: var(--card-bg, var(--surface)); border: 1px solid var(--edge, var(--line));
  border-radius: var(--card-r, 22px); box-shadow: var(--hard);
}
.hm.ap-page .lj-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
}
.hm.ap-page .lj-steps li {
  position: relative; min-width: 0; margin: 0; padding: 0 2px;
  display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center;
}
.hm.ap-page .lj-steps li + li::before {     /* the dotted path from the last sticker to this one */
  content: ""; position: absolute; top: 21px; left: calc(-50% + 26px); right: calc(50% + 26px);
  border-top: 2px dotted color-mix(in srgb, var(--text) 30%, transparent);
}
.hm.ap-page .lj-steps img { position: relative; width: 44px; height: 44px; margin: 0; display: block; }
.hm.ap-page .lj-steps span {
  font-size: 12.5px; line-height: 1.45; font-weight: 600; color: var(--text);
  text-wrap: balance; letter-spacing: 0;
}
:root:root:root .hm.ap-page .lj .lj-note {
  margin: 0; max-width: none; padding: 12px 8px 0; border-top: 1px solid var(--edge, var(--line));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--text); text-align: left;
}
.hm.ap-page .lj-note img { width: 22px; height: 22px; flex: none; margin: 0; display: block; }

/* ---- 3. desktop: the strip under the pill, Mali on a smaller planet ---- */
.hm.ap-page .lj-mali { display: none; }
@media (min-width: 701px) {
  :root:root:root .hm.ap-page > .hm-hero {
    --lj-rim: clamp(96px, 9vw, 140px);                      /* how much planet shows */
    --lj-mh: clamp(124px, 11vw, 168px);                     /* Mali's height */
    --pt: calc(100% - var(--lj-rim));
    min-height: 0;
    padding-bottom: calc(var(--lj-rim) + var(--lj-mh) - 6px) !important;
  }
  :root:root:root .hm.ap-page .hm-side.l { gap: 24px; }
  :root:root:root .hm.ap-page .hm-side.l > .lj { width: min(660px, 100vw - 64px); padding: 20px 14px 16px; }
  .hm.ap-page .lj-steps li + li::before { top: 25px; left: calc(-50% + 32px); right: calc(50% + 32px); }
  .hm.ap-page .lj-steps img { width: 52px; height: 52px; }
  :root:root:root .hm.ap-page .lj-steps span { font-size: 14px; }
  :root:root:root .hm.ap-page .lj .lj-note { font-size: 14.5px; }
  :root:root:root .hm.ap-page .hm-hero > .lj-mali {
    display: block; position: absolute; z-index: 0; left: 50%; bottom: calc(var(--lj-rim) - 14px);
    width: auto; height: var(--lj-mh); max-width: none; transform: translateX(-50%); pointer-events: none;
    filter: drop-shadow(0 -6px 22px rgba(255, 120, 60, .35));
  }
}

/* ---- 4. what needs an account (phase 21 step 4): a small chip after the title ---- */
.hm.ap-page .lj-acct {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 9px 1px 3px;
  border-radius: 999px; background: var(--fill, rgba(17, 17, 17, .05)); border: 1px solid var(--line);
  font-family: var(--font-body, inherit); font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: 0;
  color: var(--text); vertical-align: 2px; white-space: nowrap;
}
.hm.ap-page .lj-acct img { width: 16px; height: 16px; margin: 0; display: block; }

/* ---- 5. type (phase 21 step 6) ---- */
/* the H1 is the page's keyword line: it reads as the headline, the hero card's line one step under it */
:root:root:root body .hm.ap-page .app-h1-t {
  font-size: clamp(19px, 1.8vw, 23px) !important; font-weight: 700 !important; line-height: 1.4; color: var(--text);
  text-wrap: balance;
}
@media (max-width: 700px) {
  :root:root:root body .hm.ap-page .app-h1-t { font-size: 22px !important; }
  :root:root:root body .hm.ap-page .ap-hero-t b { font-size: 19px; line-height: 1.3; text-wrap: balance; }
  /* Trips' clouds drift only through Mali's half of the hero card, never over the words */
  :root:root:root body .hm.ap-page .hx-ph .hx-cloud { left: 66%; animation-name: ljDriftR; }
  :root:root:root body .hm.ap-page .hx-ph .hx-cloud:nth-of-type(1) { top: 30% !important; }
  :root:root:root body .hm.ap-page .hx-ph .hx-cloud:nth-of-type(2) { top: 82% !important; }
}
@keyframes ljDriftR {
  0% { opacity: 0; transform: translateX(-24px); }
  12% { opacity: var(--o, .7); }
  85% { opacity: var(--o, .7); }
  100% { opacity: 0; transform: translateX(36vw); }
}

/* keep a word whole without touching its text (the Cars H1: หารค่าน้ำมัน) */
.hm.ap-page .lj-nb { white-space: nowrap; }
