/* ============================================================================
   SEVERAL WORKSPACES, ONE OFFICE — pricing page, in "Here is what one is".
   After Stripe's "Embed payments in your platform" card.

   Stripe draws that card client-side from a string table; its CSS names the
   parts: a payment card whose content slides in and cross-fades from order
   details to "Thank you!", an amount pill that travels a dotted connection to
   the platform's logo, a ring at the logo, and a Connected Accounts row that
   lights up. Kept that anatomy on the same 1000x460 stage; the story becomes one
   workspace's approval reaching the Office that runs all of them.
   Builder-safe (motion is the SWITCH block in css/motion.css). Resting state is
   the last frame: approved, and counted in the table.
   ========================================================================== */

.sw{--s:1;position:relative;max-width:100%;width:calc(1000px * var(--s));height:calc(530px * var(--s));margin:40px auto 0}
.sw-stage{position:absolute;left:0;top:0;width:1000px;height:530px;transform:scale(var(--s));transform-origin:0 0;
  border-radius:8px;overflow:hidden;contain:layout paint;font-family:var(--ui);color:var(--ink);
  background:transparent;border:0}   /* 530 tall so the whole window and its frame show; no backdrop: the window and its glass frame sit on the section's grey */
/* clipped, so a stale --s can never widen the page */
.sw-sec{overflow:hidden}
.sw-foot{margin:14px auto 0;text-align:center;font-size:12.5px;color:var(--t4)}

/* ---- the Office, running every workspace ---------------------------------- */
.sw-win{position:absolute;left:216px;top:26px;width:728px;height:470px;border-radius:8px;overflow:hidden;background:#fff;
  border:1px solid rgba(255,255,255,.7);
  /* transparent glass frame: a clear band traced by two faint lines; a faint outer line keeps it visible on the pale grey */
  box-shadow:0 0 0 1px rgba(2,37,79,.06),0 0 0 14px rgba(255,255,255,.4),0 0 0 15px rgba(2,37,79,.08);display:grid;grid-template-columns:180px 1fr;grid-template-rows:34px 1fr}
.sw-bar{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;background:var(--cloud);border-bottom:1px solid var(--line);position:relative}
.sw-dots{position:absolute;left:14px;top:12px;display:flex;gap:6px}
.sw-dots i{display:block;width:10px;height:10px;border-radius:50%;background:#dbe3ed}
.sw-url{display:flex;align-items:center;gap:6px;width:300px;height:22px;justify-content:center;border-radius:5px;background:#fff;border:1px solid var(--line);font-size:11.5px;color:var(--mute)}
.sw-side{padding:16px 16px;display:flex;flex-direction:column;gap:3px}
.sw-brand{display:flex;align-items:center;gap:10px;height:24px;margin:0 0 16px 8px;font-size:13px;font-weight:600;color:var(--navy)}
/* the symbol alone: the wordmark SVG re-framed to its left square. The favicon
   has a black ground baked in and read as a dark disc here */
.sw-mk{position:relative;flex:none;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);
  background:#fff url(../assets/img/manelink-mark.svg) no-repeat center/18px 18px}
.sw-ring{position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--blue);opacity:0}
.sw-nav{height:30px;padding:0 10px;border-radius:5px;display:flex;align-items:center;font-size:12.5px;color:var(--mute)}
.sw-nav.on{background:var(--sky);color:var(--blue-d);font-weight:600}
.sw-main{border-left:1px solid var(--line);padding:20px 0 0}
.sw-h{display:block;padding:0 22px 14px;font:700 15px var(--display);color:var(--navy)}
.sw-tr{position:relative;display:grid;grid-template-columns:2fr 1.3fr 1fr 1.5fr;align-items:center;height:37px;padding:0 22px;
  border-bottom:1px solid var(--line);font-size:12px;color:var(--mute)}
.sw-tr>span{position:relative;z-index:1}
.sw-th{height:28px;font-size:11px;font-weight:600;color:var(--navy)}
.sw-bg{position:absolute;inset:0;display:block;background:#f3f8fe;box-shadow:0 2px 8px rgba(2,37,79,.10)}
.sw-ac{display:flex;align-items:center;gap:8px;color:var(--navy);font-weight:600}
.sw-ic{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#fff;font:700 10px var(--ui);font-style:normal}
.c1{background:var(--blue)}
.c2{background:#4a68d2}
.c3{background:#152a84}
.c4{background:#7b95e9}
.sw-n{position:relative;display:block;height:16px}
.sw-n span{position:absolute;left:0;top:0;line-height:16px}
.sw-o{opacity:0}
.sw-x{color:var(--blue-d);font-weight:600}

/* ---- the connection ------------------------------------------------------ */
.sw-ln{position:absolute;display:block;z-index:2}
.sw-lv{left:150px;top:88px;width:1px;height:22px;background:repeating-linear-gradient(180deg,rgba(41,70,182,.7) 0 2px,transparent 2px 5px)}
.sw-lh{left:150px;top:88px;width:88px;height:1px;background:repeating-linear-gradient(90deg,rgba(41,70,182,.7) 0 2px,transparent 2px 5px)}
.sw-pill{position:absolute;z-index:4;left:116px;top:77px;height:22px;padding:0 9px;display:flex;align-items:center;border-radius:6px;
  background:#fff;border:1px solid #d6dbf1;box-shadow:0 4px 12px rgba(2,37,79,.12);font-size:11.5px;font-weight:600;color:var(--blue-d);opacity:0}

/* ---- the approval, inside one workspace --------------------------------- */
.sw-card{position:absolute;z-index:3;left:70px;top:110px;width:296px;height:326px;border-radius:8px;overflow:hidden;background:#fff;
  border:1px solid var(--line);box-shadow:0 16px 32px -8px rgba(2,37,79,.18)}
.sw-cc{position:absolute;inset:0;padding:16px 20px}
.sw-who{display:flex;align-items:center;gap:10px}
.sw-who .sw-ic{width:30px;height:30px;font-size:13px}
.sw-who b{font:700 15px var(--display);color:var(--navy)}
.sw-s1,.sw-s2{position:absolute;left:20px;right:20px;top:64px;display:flex;flex-direction:column}
.sw-s1{opacity:0}
.sw-t{display:flex;flex-direction:column;gap:3px;margin-bottom:12px;font-size:14px;font-weight:600;color:var(--ink)}
.sw-t small{font-size:12.5px;font-weight:400;color:var(--mute)}
.sw-row{display:flex;justify-content:space-between;align-items:center;height:40px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink)}
.sw-row em{font-style:normal;color:var(--t4)}
.sw-mono{font:500 11px ui-monospace,SFMono-Regular,Menlo,monospace}
.sw-tot{font-weight:600}
.sw-tot em{color:var(--blue-d);font-weight:600}
.sw-go{margin-top:16px;height:36px;border-radius:6px;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:13px;font-weight:600}

/* ---- breakpoints: a floor for --s; the page script sets the exact fit ---- */
@media (max-width:991px){ .sw{--s:.72} }
@media (max-width:767px){ .sw{--s:.43} }
@media (max-width:479px){ .sw{--s:.28} }

/* the four workspace kinds stacked in one column on the left, the animation on the right */
.sw-split{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:28px;align-items:start;margin-top:8px}
.sw-split .kinds{grid-template-columns:1fr;gap:10px}
.sw-split .kind{padding:16px 20px;gap:4px}
.sw-split .kind h3{font-size:17px}
.sw-split .kind p{font-size:14px;line-height:1.5}
.sw-col{min-width:0}
.sw-col .sw{margin-top:0}
@media (max-width:991px){ .sw-split{grid-template-columns:minmax(0,1fr);gap:32px} }

/* the stage's empty left edge is trimmed: only x 55 to 965 of the 1000px stage shows,
   so the approval card sits close to the cards and the picture fills its column */
.sw-col .sw{width:calc(910px * var(--s));height:calc(530px * var(--s));overflow:hidden}
.sw-col .sw-stage{left:calc(-55px * var(--s))}
/* cards: the kind name with the same coloured dot as its rows in the table */
.sw-split .kind h3{display:flex;align-items:center;gap:10px}
.kind-dot{flex:none;display:block;width:12px;height:12px;border-radius:50%}
.sw-split .kind{padding:18px 20px}

/* the four kind cards: white with a royal-grey outline, nothing more. They are a
   list, not links, so they neither lift nor cast a shadow the way the plan cards do */
.sw-split .kind{border-color:#c9d3ef;border-radius:8px;background:#fff}
.kind-dot{box-shadow:0 0 0 3px rgba(41,70,182,.10)}
