/* Mix & match combo page (/combo, /bm/combo). Markup: tools/render-combo.cjs. Behaviour: combo.js.
   The site's own world turned up: blue hero with a product stage, the gold promo ticket as the motif
   (dashed tear line), and the bill as a navy receipt. Colour has one job each:
   gold = RM20 promo and the saving, blue = what you pay and what you picked, navy = your bill. */
:root{--cb-navy-text:#b8c7da;--cb-navy-soft:#8fa3bb;--cb-navy-line:#ffffff1f;--cb-pay:#2468ee;--cb-gold:#ffd84a}

/* ---------- Hero: the offer, and a real two-product example on a stage ---------- */
.cb-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;align-items:center;padding:64px max(32px,calc((100vw - 1320px)/2)) 112px;background:radial-gradient(ellipse 60% 70% at 78% 55%,#2b80ff 0%,transparent 70%),var(--blue);color:white;overflow:hidden}
.cb-hero h1{font-size:clamp(60px,7.4vw,118px);text-wrap:balance}
.cb-hero h1 span{color:var(--accent)}
.cb-hero-copy p{max-width:500px;margin-top:22px;font-size:17px;color:#e2efff}
.cb-start{margin-top:28px;gap:14px;font-weight:700}
.cb-start:hover{background:white}
.cb-stage{--cap:70px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;margin:0;min-height:470px}
.cb-stage-floor{position:absolute;left:8%;right:4%;bottom:calc(var(--cap) - 10px);height:70px;border-radius:50%;background:radial-gradient(closest-side,#03235a8c,transparent)}
.cb-stage-product{position:absolute;bottom:calc(var(--cap) + 4px);height:auto;filter:drop-shadow(18px 26px 18px #03285266)}
.cb-stage-a{left:2%;width:50%}
.cb-stage-b{right:0;width:58%}
.cb-stage-plus{position:absolute;left:47%;top:40%;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:white;color:var(--blue);box-shadow:0 10px 26px #03285240;transform:translate(-50%,-50%)}
.cb-stage-plus svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}
/* The site's gold promo ticket, stamped on the pair: a dashed tear line down its left side */
.cb-stage-ticket{position:absolute;top:4%;right:2%;display:grid;padding:14px 22px 12px 30px;border-radius:4px;background:var(--accent);color:var(--ink);box-shadow:0 14px 30px #03285259;transform:rotate(-6deg)}
.cb-stage-ticket:before{content:'';position:absolute;left:12px;top:8px;bottom:8px;border-left:2px dashed #07183940}
.cb-stage-ticket b{font-family:var(--display);font-size:clamp(56px,6vw,84px);line-height:.85}
.cb-stage-ticket small{font-size:14px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.cb-stage figcaption{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cb-stage figcaption span{display:block;padding:10px 14px;border-radius:4px;background:#04265eb3;font-size:14px;line-height:1.45;color:#e2efff;font-variant-numeric:tabular-nums;backdrop-filter:blur(6px)}
.cb-stage figcaption b{display:block;color:white}
.cb-stage figcaption strong{color:var(--accent)}
.cb-stage figcaption s{color:#a9c6f2}

/* ---------- The terms, as a strip of tickets overlapping the hero ---------- */
.cb-tickets{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:-64px auto 0;padding:0 max(32px,calc((100vw - 1320px)/2));list-style:none}
.cb-tickets li{position:relative;display:grid;align-content:start;gap:6px;padding:20px 20px 20px 34px;border-radius:4px;background:white;color:var(--muted);font-size:15px;line-height:1.5;box-shadow:0 12px 32px #0719391f}
.cb-tickets li:before{content:'';position:absolute;left:16px;top:12px;bottom:12px;border-left:2px dashed #0718392b}
.cb-tickets b{font-family:var(--display);font-size:26px;line-height:1;text-transform:uppercase;color:var(--ink)}
.cb-tickets .is-gold{background:var(--accent);color:var(--ink)}
.cb-tickets .is-blue{background:var(--ink);color:var(--cb-navy-text)}
.cb-tickets .is-blue b{color:var(--accent)}
.cb-tickets .is-blue:before{border-color:#ffffff38}

/* ---------- Picker ---------- */
.cb-builder{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(370px,.95fr);gap:48px;align-items:start}
.cb-pick{scroll-margin-top:24px}
.cb-pick h2,.cb-bill h2{font-size:clamp(42px,4.8vw,72px)}
.cb-cats{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 18px}
.cb-cats button{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px 0 12px;border:1px solid #c5d2e1;border-radius:3px;background:white;font-size:14px;font-weight:600;transition:background .2s,border-color .2s,color .2s}
.cb-cats button svg{width:20px;height:20px;color:var(--blue);transition:color .2s}
.cb-cats button:hover{border-color:var(--blue)}
.cb-cats button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:white}
.cb-cats button[aria-pressed="true"] svg{color:white}
.cb-cats button span{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--accent);color:var(--ink);font-size:13px;font-weight:700;line-height:22px;text-align:center}
.cb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px}
.cb-tile{position:relative;display:grid;align-content:start;gap:3px;padding:10px 12px 14px;border:1px solid var(--line);border-radius:4px;background:white;text-align:left;transition:border-color .2s,box-shadow .25s,transform .25s var(--ease)}
.cb-tile:hover{border-color:#8fb3e8;box-shadow:0 12px 26px #07193914;transform:translateY(-3px)}
.cb-tile-art{display:block;aspect-ratio:1;margin-bottom:6px;border-radius:3px;background:#eef4fd;transition:background .3s}
.cb-tile-art img{width:100%;height:100%;object-fit:contain;transition:transform .35s var(--ease)}
.cb-tile:hover .cb-tile-art img{transform:scale(1.04)}
.cb-tile-name{font-size:15px;font-weight:700;line-height:1.25}
.cb-tile-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 7px;margin-top:4px}
.cb-tile-price b{font-size:21px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--blue)}
.cb-tile-price s,.cb-tile-note{font-size:14px;color:var(--muted)}
.cb-tile-note{line-height:1.35}
.cb-tick{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #b3c3d6;border-radius:50%;background:white;transition:background .2s,border-color .2s,transform .3s var(--ease)}
.cb-tick svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round}
/* Picked: the tile turns blue like the site's hero, and the plus turns into a gold cross to take it out again */
.cb-tile[aria-pressed="true"]{border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
.cb-tile[aria-pressed="true"] .cb-tile-art{background:radial-gradient(circle at 50% 45%,#3b8cff,var(--blue) 72%)}
/* Two or more units of this product: a gold ×2 on the photo */
.cb-tile-qty{position:absolute;top:12px;left:12px;padding:2px 9px;border-radius:3px;background:var(--accent);color:var(--ink);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.cb-tile[aria-pressed="true"] .cb-tick{background:var(--accent);border-color:var(--accent);transform:rotate(45deg)}
.cb-pick-note{max-width:640px;margin-top:18px;font-size:14px;color:var(--muted)}

/* ---------- The bill: a navy receipt ---------- */
.cb-bill{position:sticky;top:24px;display:grid;gap:18px;max-height:calc(100vh - 48px);overflow:auto;overscroll-behavior:contain;padding:30px;border-radius:4px;background:var(--ink);color:white;box-shadow:12px 12px 0 var(--blue);scrollbar-width:thin;scrollbar-color:#ffffff40 transparent}
.cb-bill-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.cb-count{font-size:14px;font-weight:600;color:var(--cb-navy-text);white-space:nowrap}
.cb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
[data-cb-bill]{display:grid;gap:18px}
/* Before it unlocks: one slot per product needed */
.cb-slots{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cb-slot{display:grid;justify-items:center;align-content:center;gap:6px;min-height:118px;padding:12px;border:1.5px dashed #ffffff47;border-radius:4px;font-size:14px;font-weight:600;color:var(--cb-navy-text);text-align:center}
.cb-slot i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffffff14;font-style:normal;font-size:22px;line-height:1;color:white}
.cb-slot.is-filled{border:1.5px solid var(--cb-pay);background:#2468ee26;color:white}
.cb-slot img{width:64px;height:64px;object-fit:contain;border-radius:3px;background:#eef4fd}
.cb-empty{color:var(--cb-navy-text)}
.cb-more{padding:12px 14px;border:1px solid #ffe48066;border-radius:4px;background:#ffe48014;color:var(--accent);font-size:15px;font-weight:600}
/* The saving: the gold promo ticket with its dashed tear line */
.cb-save{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;padding:16px 20px 18px 30px;border-radius:4px;background:var(--accent);color:var(--ink);overflow:hidden}
.cb-save:before{content:'';position:absolute;left:14px;top:12px;bottom:12px;border-left:2px dashed #07183933}
.cb-unlocked{flex-basis:100%;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cb-save strong{font-family:var(--display);font-size:clamp(50px,4.6vw,66px);line-height:.9;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.cb-save>span:last-child{flex:1 1 140px;font-size:14px;line-height:1.45}
.cb-lines{list-style:none;margin:0;padding:0}
.cb-lines li{display:grid;grid-template-columns:56px minmax(0,1fr) 44px;align-items:start;gap:8px 14px;padding:14px 0;border-bottom:1px solid var(--cb-navy-line)}
.cb-lines li:first-child{border-top:1px solid var(--cb-navy-line)}
.cb-lines img{width:56px;height:56px;object-fit:contain;border-radius:3px;background:#eef4fd}
.cb-line-body{display:grid;gap:1px;min-width:0}
.cb-line-body a{font-size:15px;font-weight:700;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color .2s}
.cb-line-body a:hover{text-decoration-color:currentColor}
.cb-line-plan{font-size:14px;color:var(--cb-navy-text);line-height:1.4}
.cb-line-price{font-size:14px;font-variant-numeric:tabular-nums}
.cb-line-price b{color:var(--accent)}
.cb-line-price s{color:var(--cb-navy-soft)}
.cb-line-controls{grid-column:2/3;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.cb-line-terms{display:flex;flex-wrap:wrap;gap:4px}
.cb-line-term{font-size:14px;color:var(--cb-navy-text)}
/* How many of this product: − 2 + */
.cb-qty{display:inline-flex;align-items:center;border:1px solid #ffffff40;border-radius:3px}
.cb-qty button{display:grid;place-items:center;width:44px;height:42px;border:0;background:transparent;color:white;transition:background .2s}
.cb-qty button:hover:not(:disabled){background:#ffffff14}
.cb-qty button:disabled{opacity:.35}
.cb-qty svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.cb-qty output{min-width:28px;font-size:16px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
/* Always room for one more: back to the picker */
.cb-add-more{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1.5px dashed #ffffff47;border-radius:4px;background:transparent;color:white;font-size:15px;font-weight:600;transition:border-color .2s,background .2s}
.cb-add-more:hover{border-color:var(--accent);background:#ffe48014}
.cb-add-more span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--ink)}
.cb-add-more svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.cb-line-terms button{min-height:44px;padding:0 12px;border:1px solid #ffffff40;border-radius:3px;background:transparent;color:white;font-size:14px;font-weight:600;white-space:nowrap;transition:background .2s,border-color .2s}
.cb-line-terms button:hover{border-color:white}
.cb-line-terms button[aria-pressed="true"]{background:white;border-color:white;color:var(--ink)}
.cb-remove{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:3px;background:transparent;color:var(--cb-navy-text);transition:background .2s,color .2s}
.cb-remove:hover{background:#ffffff14;color:white}
.cb-remove svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.cb-bill-sub{margin-top:6px;font-size:15px;font-weight:700;letter-spacing:0}

/* Monthly bill chart: months across, ringgit up. Drawn by combo.js; the phase list below says the same in words */
.cb-chart{position:relative;height:160px;margin:20px 0 26px;border-bottom:1px solid #ffffff59}
.cb-chart svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 100%;animation:cb-grow .55s cubic-bezier(.16,1,.3,1)}
.cb-chart rect{stroke:var(--ink);stroke-width:1.5;vector-effect:non-scaling-stroke}
.cb-chart .is-promo{fill:var(--cb-gold)}
.cb-chart .is-pay{fill:var(--cb-pay)}
.cb-chart .is-gap{fill:#ffffff12;stroke:none}
.cb-chart line{stroke:white;stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.cb-chart-value{position:absolute;transform:translate(-50%,calc(100% + 6px));color:white;font-size:14px;font-weight:700;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #0718394d}
.cb-chart-month{position:absolute;top:100%;margin-top:5px;font-size:14px;line-height:1.2;color:var(--cb-navy-text);white-space:nowrap;font-variant-numeric:tabular-nums}
.cb-chart-month.is-end{transform:translateX(-100%)}
.cb-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px;color:var(--cb-navy-text)}
.cb-legend span{display:inline-flex;align-items:center;gap:7px}
.cb-legend span:before{content:'';width:12px;height:12px;border-radius:2px}
.cb-legend .is-promo:before{background:var(--cb-gold)}
.cb-legend .is-pay:before{background:var(--cb-pay)}
.cb-legend .is-gap:before{background:#ffffff12;border-top:2px dashed white}
.cb-phases{list-style:none;margin:0;padding:0}
.cb-phases li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--cb-navy-line);font-size:14px;color:var(--cb-navy-text);font-variant-numeric:tabular-nums}
.cb-phases b{font-size:17px;color:white;white-space:nowrap}
.cb-phases small{margin-left:2px;font-size:14px;font-weight:400;color:var(--cb-navy-soft)}
.cb-phases s{margin-left:10px;font-size:14px;font-weight:400;color:var(--cb-navy-soft)}
.cb-whatsapp{width:100%;justify-content:space-between}
.cb-fine{font-size:14px;line-height:1.55;color:var(--cb-navy-text)}

/* ---------- Motion ---------- */
/* Hero, once on load: the two products rise onto the stage, the plus joins them, the ticket stamps on */
.cb-stage-product{animation:cb-rise .8s cubic-bezier(.16,1,.3,1) both}
.cb-stage-b{animation-delay:.12s}
.cb-stage-plus{animation:cb-pop .5s cubic-bezier(.16,1,.3,1) .45s both}
.cb-stage-ticket{animation:cb-stamp .6s cubic-bezier(.16,1,.3,1) .7s both}
/* Every change to the bill: the bars grow back up from the baseline */
@keyframes cb-grow{from{transform:scaleY(.35);opacity:.4}}
@keyframes cb-rise{from{transform:translateY(46px);opacity:0}}
@keyframes cb-pop{from{transform:translate(-50%,-50%) scale(.3);opacity:0}}
@keyframes cb-stamp{from{transform:rotate(-16deg) scale(1.5);opacity:0}}
/* The unlock: when the second product goes in, the saving ticket stamps in and a light sweeps across it, once */
.cb-save.is-new{animation:cb-unlock .6s cubic-bezier(.16,1,.3,1)}
.cb-save.is-new:after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,#ffffffb3 50%,transparent 70%);transform:translateX(-100%);animation:cb-sheen .9s ease-out .25s forwards;pointer-events:none}
@keyframes cb-unlock{from{transform:scale(1.08) rotate(-2deg);opacity:0}}
@keyframes cb-sheen{to{transform:translateX(100%)}}
/* The picked photo flies into the bill (combo.js, View Transitions) */
::view-transition-group(cb-fly){animation-duration:.55s;animation-timing-function:cubic-bezier(.16,1,.3,1)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}

/* ---------- Phones and tablets ---------- */
.cb-dock{display:none}
@media(max-width:1024px){
  .cb-hero{grid-template-columns:1fr;gap:20px;padding:48px 25px 104px}
  .cb-stage{min-height:400px;max-width:560px;width:100%;justify-self:center}
  .cb-tickets{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 25px}
  .cb-builder{grid-template-columns:1fr;gap:56px}
  .cb-bill{position:static;max-height:none;overflow:visible}
  /* A bar at the bottom says what is in the combo and jumps to the bill, until the bill is on screen */
  .cb-dock{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:66;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:0 18px;border-radius:4px;background:var(--ink);color:white;font-size:15px;font-weight:600;box-shadow:0 8px 24px #00193545;transform:translateY(calc(100% + 24px));opacity:0;visibility:hidden;transition:transform .3s var(--ease),opacity .2s,visibility .3s}
  .cb-dock b{white-space:nowrap;color:var(--accent)}
  .cb-dock[data-active="true"]:not([data-bill-visible="true"]){transform:none;opacity:1;visibility:visible}
  body:has(.cb-dock[data-active="true"]:not([data-bill-visible="true"])) .wa-float{bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media(max-width:760px){
  .cb-hero{padding:40px 21px 96px}
  .cb-hero h1{font-size:clamp(50px,13vw,76px)}
  .cb-stage{--cap:128px;min-height:400px}
  .cb-stage-plus{width:46px;height:46px}
  .cb-stage-ticket{padding:10px 16px 9px 24px}
  .cb-stage-ticket:before{left:9px}
  .cb-stage figcaption{grid-template-columns:1fr}
  .cb-stage figcaption span{padding:8px 12px}
  .cb-tickets{grid-template-columns:1fr;gap:10px;padding:0 21px;margin-top:-56px}
  .cb-tickets li{padding:16px 16px 16px 30px}
  .cb-tickets b{font-size:22px}
  .cb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cb-tile{padding:8px 10px 12px}
  .cb-tile-art{aspect-ratio:5/4}
  .cb-tile-price b{font-size:18px}
  .cb-bill{padding:22px 20px;box-shadow:6px 6px 0 var(--blue)}
  .cb-lines li{grid-template-columns:48px minmax(0,1fr) 44px}
  .cb-lines img{width:48px;height:48px}
}
/* Less motion: no rising, stamping, growing or flying. Colour and state changes stay, so every pick still shows */
@media(prefers-reduced-motion:reduce){
  .cb-stage-product,.cb-stage-plus,.cb-stage-ticket,.cb-chart svg,.cb-save.is-new{animation:none}
  .cb-save.is-new:after{display:none}
  .cb-tile,.cb-tick,.cb-dock,.cb-tile-art img{transition:none}
  .cb-tile:hover{transform:none}
  .cb-tile:hover .cb-tile-art img{transform:none}
}

/* ---------- Every combo price (a table with links to each product) and the questions ---------- */
.cb-info{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:48px;align-items:start;padding-top:24px}
.cb-info+.cb-info{padding-top:0}
.cb-info h2{font-size:clamp(40px,4.4vw,64px)}
.cb-info-side p{max-width:360px;margin:16px 0 0;color:var(--muted)}
.cb-info-side .button{margin-top:20px}
.cb-prices,.cb-faq-list details{border:1px solid var(--line);border-radius:4px;background:white}
.cb-prices summary,.cb-faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:14px 20px;font-size:16px;font-weight:700;cursor:pointer;list-style:none}
.cb-prices summary::-webkit-details-marker,.cb-faq-list summary::-webkit-details-marker{display:none}
.cb-prices summary span,.cb-faq-list summary span{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent);font-size:20px;line-height:1;transition:transform .25s var(--ease)}
.cb-prices[open] summary span,.cb-faq-list details[open] summary span{transform:rotate(45deg)}
.cb-table-wrap{overflow-x:auto;padding:0 20px 16px}
.cb-prices table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.cb-prices th,.cb-prices td{padding:11px 10px;border-top:1px solid var(--line);text-align:left;white-space:nowrap}
.cb-prices thead th{border-top:0;font-size:14px;font-weight:600;color:var(--muted)}
.cb-prices tbody th a{font-weight:700;text-decoration:underline;text-decoration-color:#07183933;text-underline-offset:3px}
.cb-prices tbody th a:hover{text-decoration-color:currentColor}
.cb-prices tbody th small{display:block;font-size:14px;font-weight:400;color:var(--muted)}
.cb-prices s{color:var(--muted)}
.cb-prices td b{color:var(--blue);font-size:17px}
.cb-faq-list{display:grid;gap:10px}
.cb-faq-list p{margin:0;padding:0 20px 18px;max-width:68ch;color:var(--muted)}
@media(max-width:1024px){.cb-info{grid-template-columns:1fr;gap:24px}}
@media(max-width:760px){.cb-table-wrap{padding:0 8px 12px}.cb-prices th,.cb-prices td{padding:10px 8px}}
@media(prefers-reduced-motion:reduce){.cb-prices summary span,.cb-faq-list summary span{transition:none}}
