/* DRAFT ONLY (21 Nov): process section variants for Nasser to compare. Default "mg" = stacked cards + sticky timeline rail;
   ?process=timeline = plain timeline ("tl"); ?process=stack = stacked cards only. Not in any live package until he picks. */

/* ---- tl: plain timeline. The line runs behind the nodes, from the first node's centre to the last node's (lp-timeline.js) */
.lp-process.tl .lp-steps{position:relative;display:block;max-width:780px;margin:32px auto 0;padding:0 0 0 76px}
.lp-process.tl .tl-line,.lp-process.tl .tl-fill{position:absolute;left:27px;width:3px;border-radius:2px;z-index:1}
.lp-process.tl .tl-line{background:#e2e0e0}
.lp-process.tl .tl-fill{background:var(--btn-primary,#fecf0a);transition:height .15s linear}
.lp-process.tl .lp-step{position:relative;aspect-ratio:auto;min-height:0;margin:0 0 18px;padding:22px 24px;background:var(--bg-light,#f5f5f7);
  border:1px solid var(--border-color,#eaeaea);box-shadow:none;top:auto;justify-content:flex-start}
.lp-process.tl .lp-step:last-child{margin-bottom:0}
.lp-process.tl .lp-step .ico{position:absolute;z-index:2;left:-76px;top:16px;width:56px;height:56px;border-radius:50%;background:#fff;border:3px solid #e2e0e0;
  display:flex;align-items:center;justify-content:center;margin:0;transition:background .2s,border-color .2s}
.lp-process.tl .lp-step .ico svg{width:28px;height:28px}
.lp-process.tl .lp-step.on .ico{background:var(--btn-primary,#fecf0a);border-color:var(--btn-primary,#fecf0a)}

/* ---- mg: pinned. The section is a tall wrapper (about 4 screens of scroll); its inner panel (heading, rail, card slot)
   sticks at the top of the screen while the page scroll steps the cards through one fixed slot, then releases.
   (Nasser 21 Nov 16:00: "the scroll should stick here, and the cards should start appearing ... the total length should be
   the end of screen from where the panel gets stuck, and the shuffle starts") */
.lp-process.mg{padding:0!important;height:400vh;height:400svh}
.lp-process.mg>.layout-fixed{position:sticky;top:0;height:100vh;height:100svh;display:flex;flex-direction:column;padding-top:28px;padding-bottom:24px;box-sizing:border-box}
.lp-process.mg>.layout-fixed>h2.title{margin-bottom:20px;flex:none}
.lp-process.mg .lp-steps{flex:1;min-height:0;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:minmax(0,1fr);column-gap:18px;
  max-width:820px;width:100%;margin:0 auto;padding:0}
.lp-process.mg .mg-rail{grid-column:1;grid-row:1;position:relative;height:100%}
.lp-process.mg .mg-rail-in{position:absolute;inset:0}
.lp-process.mg .mg-line,.lp-process.mg .mg-fill{position:absolute;left:30px;width:4px;border-radius:2px;z-index:1}
.lp-process.mg .mg-line{top:var(--line-top,28px);bottom:var(--line-bottom,28px);background:#e2e0e0}
.lp-process.mg .mg-fill{top:var(--line-top,28px);height:var(--fill,0px);background:var(--btn-primary,#fecf0a);transition:height .3s ease-out}
.lp-process.mg .mg-node{position:absolute;left:4px;z-index:2;width:56px;height:56px;border-radius:50%;background:#fff;border:3px solid #e2e0e0;
  display:flex;align-items:center;justify-content:center;color:#231f20;transition:background .2s,border-color .2s}
.lp-process.mg .mg-node svg{width:26px;height:26px}
.lp-process.mg .mg-node.on{background:var(--btn-primary,#fecf0a);border-color:var(--btn-primary,#fecf0a)}
/* all four cards share one slot (same grid cell); the current one is on top, earlier ones sit behind, later ones wait hidden */
.lp-process.mg .lp-step{grid-column:2;grid-row:1;align-self:start;position:relative;top:auto;z-index:var(--i);aspect-ratio:auto;min-height:0;margin:0;
  padding:28px 26px;background:#f2f2f4;border:1px solid var(--border-color,#e4e4e4);box-shadow:0 -6px 16px rgba(0,0,0,.08);justify-content:flex-start;
  opacity:0;transform:translateY(48px);transition:opacity .4s ease-out,transform .4s ease-out;pointer-events:none}
.lp-process.mg .lp-step.past{opacity:0;transform:translateY(-8px) scale(.95)}
.lp-process.mg .lp-step.past1{opacity:1;transform:translateY(-8px) scale(.97)}
.lp-process.mg .lp-step.cur{opacity:1;transform:none;pointer-events:auto}
.lp-process.mg .lp-step .ico{display:none}
.lp-process.mg .lp-step h3{font-size:38px}
@media (max-width:767px){
  .lp-process.mg>.layout-fixed{padding-top:20px;padding-bottom:16px}
  .lp-process.mg .lp-steps{grid-template-columns:46px minmax(0,1fr);column-gap:12px}
  .lp-process.mg .mg-node{left:0;width:46px;height:46px}
  .lp-process.mg .mg-node svg{width:22px;height:22px}
  .lp-process.mg .mg-line,.lp-process.mg .mg-fill{left:21px;width:3px}
  .lp-process.mg .lp-step{padding:22px 20px}
  .lp-process.mg .lp-step h3{font-size:32px}
}
/* ---- hz (default): pinned panel, horizontal timeline, cards accumulate until the 4 fill the screen below the timeline.
   Desktop: 2 x 2 grid; mobile: 4 rows, each about a quarter of the space. */
.lp-process.hz{padding:0!important;height:400vh;height:400svh}
.lp-process.hz>.layout-fixed{position:sticky;top:0;height:100vh;height:100svh;display:flex;flex-direction:column;padding-top:28px;padding-bottom:24px;box-sizing:border-box}
.lp-process.hz>.layout-fixed>h2.title{margin-bottom:14px;flex:none}
.lp-process.hz .hz-body{flex:1;min-height:0;display:flex;flex-direction:column}
.lp-process.hz .hz-bar{position:relative;flex:none;display:flex;justify-content:space-between;max-width:820px;width:100%;margin:0 auto 16px}
.lp-process.hz .hz-line,.lp-process.hz .hz-fill{position:absolute;height:4px;margin-top:-2px;border-radius:2px;z-index:1}
.lp-process.hz .hz-bar.vert .hz-line,.lp-process.hz .hz-bar.vert .hz-fill{width:4px;height:0;margin:0 0 0 -2px}
.lp-process.hz .hz-bar.vert .hz-line{height:auto}
.lp-process.hz .hz-bar.vert .hz-fill{transition:height .35s ease-out}
.lp-process.hz .hz-line{background:#e2e0e0}
.lp-process.hz .hz-fill{background:var(--btn-primary,#fecf0a);width:0;transition:width .35s ease-out}
.lp-process.hz .hz-node{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:6px;width:80px}
.lp-process.hz .hz-node .dot{width:56px;height:56px;border-radius:50%;background:#fff;border:3px solid #e2e0e0;display:flex;align-items:center;justify-content:center;
  color:#231f20;transition:background .2s,border-color .2s;box-sizing:border-box}
.lp-process.hz .hz-node .dot svg{width:26px;height:26px}
.lp-process.hz .hz-node.on .dot{background:var(--btn-primary,#fecf0a);border-color:var(--btn-primary,#fecf0a)}
.lp-process.hz .hz-node .lab{font-size:13px;font-weight:600;color:#5b5758;white-space:nowrap}
.lp-process.hz .hz-node.on .lab{color:#231f20}
.lp-process.hz .lp-steps{flex:1;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:12px;width:100%;margin:0;padding:0}
.lp-process.hz .lp-step{position:relative;top:auto;aspect-ratio:auto;min-height:0;margin:0;padding:14px 24px;overflow:hidden;display:flex;flex-direction:column;justify-content:center;
  background:#f2f2f4;border:1px solid var(--border-color,#e4e4e4);box-shadow:none;
  opacity:0;transform:translateY(60px);transition:opacity .45s ease-out,transform .45s ease-out}
.lp-process.hz .lp-step.in{opacity:1;transform:none}
.lp-process.hz .lp-step .ico{display:none}
.lp-process.hz .lp-step .num{margin-bottom:2px}
.lp-process.hz .lp-step h3{font-size:30px;margin-bottom:4px}
.lp-process.hz .lp-step p{margin:0}
/* desktop (Nasser 21 Nov 16:38: "for desktop vertical timeline is better"): rail on the left, one card row per node */
@media (min-width:768px){
  .lp-process.hz .hz-body{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:20px;max-width:860px;width:100%;margin:0 auto}
  .lp-process.hz .hz-bar{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));row-gap:12px;justify-items:center;align-items:center;margin:0;max-width:none;width:auto}
  .lp-process.hz .hz-node{width:auto}
  .lp-process.hz .hz-node .lab{display:none}
  /* thinner cards with air between them (Nasser 21 Nov 16:44: "make the boxes thinner, and add more padding"): each card
     hugs its content (number and title on one line), centred in its row, so the node stays on the card's centre line */
  .lp-process.hz .lp-steps{gap:0}
  .lp-process.hz .hz-bar{row-gap:0}
  .lp-process.hz .lp-step{align-self:center;height:min(112px,calc(100% - 24px));padding:10px 34px;display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:baseline;justify-content:flex-start;text-align:left}
  .lp-process.hz .lp-step .num{display:inline-block;margin:0 10px 0 0;vertical-align:baseline}
  .lp-process.hz .lp-step h3{display:inline-block;margin:0 0 6px;font-size:30px;vertical-align:baseline}
  .lp-process.hz .lp-step p{font-size:16px;line-height:1.4}
  .lp-process.hz .lp-step p{flex-basis:100%}
}
@media (max-width:767px){
  .lp-process.hz>.layout-fixed{padding-top:16px;padding-bottom:14px}
  .lp-process.hz>.layout-fixed>h2.title{font-size:30px;margin-bottom:10px}
  .lp-process.hz .hz-bar{margin-bottom:10px}
  .lp-process.hz .hz-node{width:64px;gap:4px}
  .lp-process.hz .hz-node .dot{width:40px;height:40px;border-width:2px}
  .lp-process.hz .hz-node .dot svg{width:20px;height:20px}
  .lp-process.hz .hz-node .lab{font-size:11px}
  .lp-process.hz .hz-line,.lp-process.hz .hz-fill{height:3px}
  .lp-process.hz .lp-steps{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:8px}
  .lp-process.hz .lp-step{padding:10px 14px}
  .lp-process.hz .lp-step .ico{display:none}
  .lp-process.hz .lp-step .num{display:inline;margin:0 8px 0 0;font-size:12px}
  .lp-process.hz .lp-step h3{display:inline;font-size:22px;line-height:1.1}
  .lp-process.hz .lp-step p{font-size:14px;line-height:1.35;margin-top:4px}
  .lp-process.hz .lp-step:last-child{padding-right:74px}  /* keep text clear of the WhatsApp float */
}

/* reduced motion: a plain list with a full line, no stacking */
@media (prefers-reduced-motion:reduce){
  .lp-process.hz{height:auto;padding:80px 0!important}
  .lp-process.hz>.layout-fixed{position:static;height:auto}
  .lp-process.hz .lp-steps{grid-template-rows:none}
  .lp-process.hz .lp-step{opacity:1;transform:none;transition:none}
  .lp-process.hz .hz-fill{transition:none}
  .lp-process.mg{height:auto;padding:80px 0!important}
  .lp-process.mg>.layout-fixed{position:static;height:auto}
  .lp-process.mg .lp-steps{grid-template-rows:none}
  .lp-process.mg .lp-step{grid-row:auto;margin-bottom:16px;opacity:1;transform:none;transition:none;pointer-events:auto}
  .lp-process.mg .mg-fill,.lp-process.mg .mg-node,.lp-process.tl .tl-fill,.lp-process.tl .lp-step .ico{transition:none}
}
