/* ==========================================================================
   ONE-PAGE CHECKOUT (2026-09-01)

   A separate stylesheet, loaded AFTER css/checkout.css, rather than an edit to
   it. checkout.css still styles .field-input, .bump-card, .btn-buy,
   .summary-badges and .tline, which this layout reuses — and it also still
   carries the whole 3-step-wizard ruleset (.step-card, .progress-track,
   .pkg-row). That wizard markup is gone from checkout.html, so those rules are
   dead but harmless; they are left in place deliberately so reverting to the
   backup in _qa_backups/PRE_TWOTIER_20260901/ is a single file swap.

   Everything new here is namespaced .co2-* / .tier-* / .addon-* / .paybar /
   .um-* / .pip so it cannot collide with what is still above it.
   Tokens come from css/styles.css's :root — no new colours invented.
   ========================================================================== */

.checkout-body.onepage{ padding-bottom:190px; } /* clears the sticky paybar */

.co2-wrap{ padding:18px 0 8px; }
.co2-grid{ display:grid; grid-template-columns:1fr; gap:14px; align-items:start; }
.co2-main{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.co2-side{ display:none; }

.co2-card{
  background:var(--white); border:1px solid var(--line); border-radius:16px;
  padding:18px 16px; box-shadow:0 1px 2px rgba(26,43,76,.04);
}
.co2-card[hidden]{ display:none; }
.co2-h{ font-size:19px; font-weight:800; color:var(--ink); margin-bottom:14px; letter-spacing:-.2px; }
.co2-h3{ font-size:14px; font-weight:800; color:var(--ink); margin-bottom:10px;
  display:flex; align-items:center; gap:7px; }
.co2-h3 svg{ width:16px; height:16px; color:var(--orange); }
.co2-fine{ font-size:12.5px; color:var(--muted); line-height:1.5; margin-top:8px; }

/* ---- tier selector ---- */
.tier-seg{ display:flex; flex-direction:column; gap:10px; }
.tier-opt{
  position:relative; display:flex; align-items:center; gap:11px; width:100%;
  background:var(--white); border:1.5px solid var(--line); border-radius:14px;
  padding:14px 13px; cursor:pointer; text-align:left; font-family:inherit;
  transition:border-color .15s, background .15s, box-shadow .15s;
}
.tier-opt:hover{ border-color:var(--orange-light); }
.tier-opt.selected{ border-color:var(--orange); background:#FFF9F4; box-shadow:0 0 0 3px rgba(249,115,22,.10); }
.tier-opt:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }
.tier-opt-dot{
  flex:0 0 19px; width:19px; height:19px; border-radius:50%;
  border:2px solid var(--line); position:relative; transition:border-color .15s;
}
.tier-opt.selected .tier-opt-dot{ border-color:var(--orange); }
.tier-opt.selected .tier-opt-dot::after{
  content:""; position:absolute; inset:3px; border-radius:50%; background:var(--orange);
}
/* min-width:0 so a nowrap price can never force the row wider than its
   container — CLAUDE.md CSS gotcha #2, hit before on this codebase. */
.tier-opt-body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.tier-opt-body b{ font-size:15px; font-weight:800; color:var(--ink); }
.tier-opt-sub{ font-size:12px; color:var(--muted); line-height:1.35; }
.tier-opt-price{ flex:0 0 auto; text-align:right; display:flex; flex-direction:column; align-items:flex-end; }
.tier-opt-price s{ font-size:11.5px; color:var(--muted); }
.tier-opt-price .now{ font-size:19px; font-weight:800; color:var(--ink); }
.tier-opt.selected .tier-opt-price .now{ color:var(--orange-dark); }
.tier-opt-flag{
  position:absolute; top:-9px; right:12px; background:var(--gold); color:#fff;
  font-size:9.5px; font-weight:800; letter-spacing:.6px; padding:3px 8px; border-radius:20px;
}

.tier-inc{ list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:7px; }
.tier-inc li{ display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--ink); line-height:1.4; }
.tier-inc li svg{ width:15px; height:15px; flex:0 0 15px; color:var(--success); margin-top:1px; }

/* ---- the honest decoy ---- */
.co2-decoy{ margin-top:16px; border:1px dashed var(--line); border-radius:12px; padding:12px 13px; background:#FCFAF7; }
.decoy-head{ display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); margin-bottom:8px; }
.decoy-head svg{ width:14px; height:14px; }
.decoy-lines{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.decoy-lines li{ display:flex; justify-content:space-between; gap:12px; font-size:12.5px; color:var(--muted); }
.decoy-total{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; padding-top:8px;
  border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
.decoy-total b{ color:var(--ink); text-decoration:line-through; text-decoration-color:var(--danger); }
.decoy-vs{ margin-top:10px; font-size:13px; color:var(--ink); line-height:1.45; }
.decoy-vs b{ color:var(--orange-dark); font-weight:800; }

/* ---- ladder ---- */
.ladder-card[hidden]{ display:none; }
.ladder-top{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.ladder-bar{ flex:1 1 auto; height:7px; border-radius:6px; background:var(--line); overflow:hidden; }
.ladder-fill{ display:block; height:100%; width:25%; border-radius:6px;
  background:linear-gradient(90deg,var(--orange-light),var(--orange)); transition:width .35s ease; }
.ladder-label{ flex:0 0 auto; font-size:11px; font-weight:800; color:var(--muted); letter-spacing:.2px; }
.ladder-pips{ display:flex; gap:6px; margin-bottom:14px; }
.pip{ width:9px; height:9px; border-radius:50%; background:var(--line); transition:background .25s, transform .25s; }
.pip.on{ background:var(--orange); transform:scale(1.15); }

.addon-list{ display:flex; flex-direction:column; gap:10px; }
.addon-row{
  display:flex; align-items:center; gap:11px; width:100%; font-family:inherit; text-align:left;
  background:var(--white); border:1.5px solid var(--line); border-radius:14px; padding:13px;
  cursor:pointer; transition:border-color .15s, background .15s;
}
.addon-row:hover{ border-color:var(--orange-light); }
.addon-row.on{ border-color:var(--success); background:var(--success-light); }
.addon-row:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }
.addon-check{
  flex:0 0 20px; width:20px; height:20px; border-radius:6px; border:2px solid var(--line);
  display:grid; place-items:center; transition:background .15s, border-color .15s;
}
.addon-check svg{ width:13px; height:13px; color:#fff; opacity:0; transition:opacity .15s; }
.addon-row.on .addon-check{ background:var(--success); border-color:var(--success); }
.addon-row.on .addon-check svg{ opacity:1; }
.addon-ico{ flex:0 0 auto; display:grid; place-items:center; width:30px; height:30px;
  border-radius:9px; background:var(--peach); }
.addon-ico svg{ width:16px; height:16px; color:var(--orange-dark); }
.addon-body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.addon-body b{ font-size:14px; font-weight:800; color:var(--ink); }
.addon-sub{ font-size:11.5px; color:var(--muted); line-height:1.35; }
.addon-price{ flex:0 0 auto; text-align:right; display:flex; flex-direction:column; align-items:flex-end; }
.addon-price s{ font-size:11px; color:var(--muted); }
.addon-price .now{ font-size:16px; font-weight:800; color:var(--orange-dark); }

/* ---- sequenced upgrade ---- */
.upgrade-moment{
  display:flex; gap:11px; margin-top:14px; padding:14px 13px; border-radius:14px;
  background:linear-gradient(135deg,var(--gold-bg),#FFF); border:1.5px solid var(--gold-light);
}
.upgrade-moment[hidden]{ display:none; }
.um-ico{ flex:0 0 auto; width:32px; height:32px; border-radius:10px; background:var(--gold);
  display:grid; place-items:center; }
.um-ico svg{ width:18px; height:18px; color:#fff; }
.um-body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:5px; }
.um-body > b{ font-size:14px; font-weight:800; color:var(--ink); }
.um-body > span{ font-size:12.5px; color:var(--ink); line-height:1.45; }
.um-cta{
  margin-top:5px; align-self:flex-start; display:inline-flex; align-items:center; gap:7px;
  background:var(--gold); color:#fff; border:0; border-radius:10px; padding:9px 14px;
  font-family:inherit; font-size:13px; font-weight:800; cursor:pointer; transition:filter .15s;
}
.um-cta:hover{ filter:brightness(1.07); }
.um-cta:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; }
.um-cta svg{ width:15px; height:15px; }

/* ---- recap ---- */
.recap-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.recap-list li{ display:flex; align-items:flex-start; gap:8px; font-size:13px; color:var(--ink); line-height:1.4; }
.recap-list li svg{ width:15px; height:15px; flex:0 0 15px; color:var(--success); margin-top:1px; }
.free-tag{ margin-left:auto; flex:0 0 auto; font-size:9.5px; font-weight:800; letter-spacing:.5px;
  color:var(--success); background:var(--success-light); padding:2px 7px; border-radius:20px; }
.savings-pill{ margin-top:12px; display:flex; align-items:center; gap:7px; font-size:13px;
  color:var(--ink); background:var(--gold-bg); border:1px solid var(--gold-light);
  border-radius:10px; padding:9px 11px; }
.savings-pill[hidden]{ display:none; }
.savings-pill svg{ width:15px; height:15px; flex:0 0 15px; color:var(--gold); }
.savings-pill b{ color:var(--gold); }

/* ---- email / pay ---- */
.field-input.ok{ border-color:var(--success); }
.field-ok{ display:flex; align-items:center; gap:6px; margin-top:6px; font-size:12px; color:var(--success); }
.field-ok[hidden]{ display:none; }
.field-ok svg{ width:14px; height:14px; }
.qr-hint{
  display:flex; align-items:flex-start; gap:8px; margin-top:10px; padding:10px 11px;
  background:var(--peach); border-radius:10px; font-size:12.5px; color:var(--ink); line-height:1.45;
}
.qr-hint svg{ width:15px; height:15px; flex:0 0 15px; margin-top:1px; color:var(--orange-dark); }
.pending-note{ display:flex; align-items:center; gap:8px; margin-top:10px; padding:10px 11px;
  background:var(--gold-bg); border-radius:10px; font-size:12.5px; color:var(--ink); }
.pending-note[hidden]{ display:none; }
.pending-note svg{ width:15px; height:15px; flex:0 0 15px; color:var(--gold); }

.guarantee-card{ display:flex; gap:12px; align-items:flex-start; }
.guarantee-card .g-ico{ flex:0 0 auto; width:34px; height:34px; border-radius:10px;
  background:var(--success-light); display:grid; place-items:center; }
.guarantee-card .g-ico svg{ width:19px; height:19px; color:var(--success); }
.guarantee-card b{ display:block; font-size:14px; font-weight:800; color:var(--ink); margin-bottom:3px; }
.guarantee-card span{ font-size:12.5px; color:var(--muted); line-height:1.45; }

/* ---- confirmed + post-purchase ---- */
.confirmed-card{ text-align:center; }
.confirmed-card .confirm-icon svg{ width:44px; height:44px; color:var(--success); }
.confirm-headline{ font-size:21px; font-weight:800; color:var(--ink); margin:10px 0 6px; letter-spacing:-.2px; }
.confirmed-card p{ font-size:13.5px; color:var(--muted); margin-bottom:14px; }
.post-upsell{ margin-top:18px; padding-top:16px; border-top:1px solid var(--line); text-align:left; }
.post-upsell[hidden]{ display:none; }
.pu-head{ display:flex; align-items:center; gap:7px; font-size:14px; color:var(--ink); margin-bottom:6px; }
.pu-head svg{ width:16px; height:16px; color:var(--gold); }
.post-upsell p{ font-size:12.5px; color:var(--muted); margin-bottom:12px; }

/* ---- sticky pay bar ---- */
.paybar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:var(--white); border-top:1px solid var(--line);
  box-shadow:0 -4px 20px rgba(26,43,76,.10);
  padding:10px 0 max(8px, env(safe-area-inset-bottom));
}
.paybar[hidden]{ display:none; }
.paybar-inner{ display:flex; align-items:center; gap:12px; }
.paybar-total{ flex:0 0 auto; display:flex; flex-direction:column; line-height:1.1; }
.paybar-total span{ font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.4px; }
.paybar-total b{ font-size:21px; font-weight:800; color:var(--ink); }
.paybar-btn{ flex:1 1 auto; min-width:0; justify-content:center; }
.paybar-btn span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.paybar-legal{ margin:6px auto 0; max-width:var(--frame); padding:0 16px;
  font-size:10px; color:var(--muted); text-align:center; line-height:1.4; }
.paybar-legal a{ color:var(--muted); text-decoration:underline; }

/* ---- email sheet + exit modal ---- */
.sheet-backdrop{ position:fixed; inset:0; background:rgba(26,43,76,.45); z-index:70;
  opacity:0; transition:opacity .2s; }
.sheet-backdrop[hidden]{ display:none; }
.sheet-backdrop.open{ opacity:1; }
.email-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  background:var(--white); border-radius:20px 20px 0 0;
  padding:22px 18px max(22px, env(safe-area-inset-bottom));
  display:flex; flex-direction:column; gap:8px;
  transform:translateY(100%); transition:transform .24s cubic-bezier(.22,.9,.3,1);
  max-width:520px; margin:0 auto;
}
.email-sheet[hidden]{ display:none; }
.email-sheet.open{ transform:translateY(0); }
.email-sheet > b{ font-size:17px; font-weight:800; color:var(--ink); }
.sheet-sub{ font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.email-sheet .btn-buy{ margin-top:6px; }
.sheet-close{ position:absolute; top:12px; right:12px; background:transparent; border:0;
  cursor:pointer; color:var(--muted); padding:6px; line-height:0; }
.sheet-close svg{ width:19px; height:19px; }

.exit-modal{
  position:fixed; left:50%; top:50%; z-index:80; width:min(400px, calc(100vw - 32px));
  transform:translate(-50%,-46%) scale(.96); opacity:0;
  background:var(--white); border-radius:18px; padding:24px 20px;
  display:flex; flex-direction:column; gap:9px; text-align:center;
  box-shadow:0 20px 60px rgba(26,43,76,.28);
  transition:opacity .2s, transform .2s;
}
.exit-modal[hidden]{ display:none; }
.exit-modal.open{ opacity:1; transform:translate(-50%,-50%) scale(1); }
.exit-ico{ width:44px; height:44px; margin:0 auto; border-radius:14px; background:var(--gold-bg);
  display:grid; place-items:center; }
.exit-ico svg{ width:24px; height:24px; color:var(--gold); }
.exit-modal > b{ font-size:18px; font-weight:800; color:var(--ink); }
.exit-modal > span{ font-size:13px; color:var(--muted); line-height:1.5; }
.exit-dismiss{ background:transparent; border:0; color:var(--muted); font-family:inherit;
  font-size:12.5px; cursor:pointer; text-decoration:underline; padding:4px; }

/* On a 375px phone the pay button had 186px of room for a 272px label, so the
   single most important string on the page rendered as "Bayaran ₱1,299 — k…".
   The separate TOTAL block was showing the same number two inches to its left,
   so it is the redundant half: drop it under 430px and give the button the
   full width. Measured after the change: 272px label into 287px of room. */
@media (max-width:430px){
  .paybar-total{ display:none; }
  .paybar-btn{ width:100%; font-size:14.5px; padding-left:12px; padding-right:12px; }
}

/* ---- desktop: the summary becomes a sticky sidebar ---- */
@media (min-width:900px){
  .co2-grid{ grid-template-columns:minmax(0,1fr) 320px; gap:20px; max-width:960px; margin:0 auto; }
  .co2-side{ display:block; position:sticky; top:84px; }
  .side-lines{ display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
  .checkout-body.onepage{ padding-bottom:150px; }
}

@media (prefers-reduced-motion:reduce){
  .ladder-fill, .pip, .email-sheet, .exit-modal, .sheet-backdrop{ transition:none !important; }
}

/* ==========================================================================
   CART CHIPS (2026-09-02) — what is in the cart, at the top of the page

   A customer screenshot showed "Negosyo Starter ₱399" selected above a pay
   button reading "Bayaran ₱898". Both numbers were right; the ₱499 payroll
   add-on that explained the gap was in a card further down the page. From
   where the buyer was looking, the total was unexplainable.
   ========================================================================== */
.cart-chips{
  display:flex; flex-wrap:wrap; align-items:center; gap:7px;
  margin-top:14px; padding:11px 12px;
  background:var(--gold-bg); border:1px solid var(--gold-light); border-radius:12px;
}
.cart-chips[hidden]{ display:none; }
.cart-chips-head{
  font-size:11px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  color:var(--gold); margin-right:2px;
}
.cart-chip{
  display:inline-flex; align-items:center; gap:6px; font-family:inherit;
  background:var(--white); border:1px solid var(--gold-light); border-radius:20px;
  padding:6px 10px; font-size:12.5px; font-weight:700; color:var(--ink);
  cursor:pointer; transition:border-color .15s, background .15s;
}
.cart-chip:hover{ border-color:var(--danger); }
.cart-chip:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }
.cart-chip svg{ width:13px; height:13px; color:var(--muted); flex:0 0 13px; }
.cart-chip:hover svg{ color:var(--danger); }

/* The paybar's left column now names the cart's composition rather than the
   bare word "Total", so the number is explainable even at a glance. */
.paybar-total span{ max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
